shineout 3.6.0-beta.9 → 3.6.0
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/cjs/alert/alert.d.ts +1 -2
- package/cjs/avatar/avatar.d.ts +1 -2
- package/cjs/avatar/group.d.ts +1 -2
- package/cjs/badge/badge.d.ts +1 -2
- package/cjs/breadcrumb/breadcrumb.d.ts +1 -2
- package/cjs/button/button.d.ts +1 -2
- package/cjs/button/group.d.ts +1 -2
- package/cjs/card/accordion.d.ts +1 -2
- package/cjs/card/body.d.ts +1 -2
- package/cjs/card/card.d.ts +1 -2
- package/cjs/card/footer.d.ts +1 -2
- package/cjs/card/header.d.ts +1 -2
- package/cjs/card/index.d.ts +5 -6
- package/cjs/card-group/card-group.d.ts +1 -2
- package/cjs/card-group/index.d.ts +1 -2
- package/cjs/card-group/item.d.ts +1 -2
- package/cjs/carousel/carousel.d.ts +1 -2
- package/cjs/cascader/cascader.d.ts +1 -2
- package/cjs/checkbox/checkbox.d.ts +1 -2
- package/cjs/checkbox/group.d.ts +1 -2
- package/cjs/collapse/collapse-item.d.ts +1 -2
- package/cjs/collapse/collapse.d.ts +1 -2
- package/cjs/date-picker/date-picker.d.ts +1 -2
- package/cjs/descriptions/descriptions.d.ts +1 -2
- package/cjs/divider/divider.d.ts +1 -2
- package/cjs/drawer/drawer.d.ts +1 -2
- package/cjs/dropdown/dropdown.d.ts +1 -2
- package/cjs/editable-area/editable-area.d.ts +1 -2
- package/cjs/empty/empty.d.ts +1 -2
- package/cjs/form/form-button.d.ts +3 -4
- package/cjs/form/form-field.d.ts +1 -2
- package/cjs/form/form-fieldset.d.ts +1 -2
- package/cjs/form/form-item.d.ts +1 -2
- package/cjs/form/form.d.ts +1 -2
- package/cjs/form/index.d.ts +6 -6
- package/cjs/gap/gap.d.ts +1 -2
- package/cjs/hooks/use-field-common.d.ts +1 -1
- package/cjs/icon/icon.d.ts +1 -2
- package/cjs/image/group.d.ts +1 -2
- package/cjs/image/image.d.ts +1 -2
- package/cjs/image/image.type.d.ts +2 -1
- package/cjs/index.js +1 -1
- package/cjs/input/group.d.ts +1 -2
- package/cjs/input/input.d.ts +1 -1
- package/cjs/input/number.d.ts +1 -2
- package/cjs/input/password.d.ts +1 -2
- package/cjs/link/link.d.ts +1 -2
- package/cjs/list/base-item.d.ts +1 -2
- package/cjs/list/list.d.ts +1 -2
- package/cjs/menu/menu.d.ts +1 -2
- package/cjs/menu/search.d.ts +1 -2
- package/cjs/modal/modal.d.ts +1 -2
- package/cjs/modal/submit.d.ts +1 -2
- package/cjs/pagination/pagination.d.ts +1 -2
- package/cjs/popover/confirm.d.ts +1 -2
- package/cjs/popover/popover.d.ts +2 -3
- package/cjs/progress/progress.d.ts +1 -2
- package/cjs/radio/group.d.ts +1 -2
- package/cjs/radio/radio.d.ts +1 -2
- package/cjs/rate/rate.d.ts +1 -2
- package/cjs/slider/slider.d.ts +1 -2
- package/cjs/spin/spin.d.ts +1 -2
- package/cjs/steps/interface.d.ts +1 -0
- package/cjs/steps/step.d.ts +1 -2
- package/cjs/steps/steps.d.ts +1 -2
- package/cjs/sticky/sticky.d.ts +1 -2
- package/cjs/switch/switch.d.ts +1 -2
- package/cjs/table/table.d.ts +1 -2
- package/cjs/table/table.js +3 -1
- package/cjs/tabs/tabs-panel.d.ts +1 -2
- package/cjs/tabs/tabs.d.ts +1 -2
- package/cjs/tag/tag-input.d.ts +1 -2
- package/cjs/tag/tag.d.ts +1 -2
- package/cjs/tests/t-01-tabs-link.d.ts +1 -2
- package/cjs/textarea/textarea.d.ts +1 -2
- package/cjs/tooltip/tooltip.d.ts +1 -2
- package/cjs/transfer/transfer.d.ts +1 -2
- package/cjs/tree/tree.d.ts +1 -2
- package/cjs/tree-select/tree-select.d.ts +1 -2
- package/cjs/upload/button.d.ts +1 -2
- package/cjs/upload/dragger.d.ts +3 -0
- package/cjs/upload/dragger.js +24 -0
- package/cjs/upload/dragger.type.d.ts +2 -0
- package/cjs/upload/dragger.type.js +5 -0
- package/cjs/upload/image.d.ts +1 -2
- package/cjs/upload/index.d.ts +6 -0
- package/cjs/upload/index.js +4 -0
- package/cjs/upload/interface.d.ts +1 -0
- package/cjs/upload/upload.d.ts +1 -2
- package/cjs/utils/dom/detect.d.ts +1 -1
- package/dist/shineout.js +1588 -792
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/alert/alert.d.ts +1 -2
- package/esm/avatar/avatar.d.ts +1 -2
- package/esm/avatar/group.d.ts +1 -2
- package/esm/badge/badge.d.ts +1 -2
- package/esm/breadcrumb/breadcrumb.d.ts +1 -2
- package/esm/button/button.d.ts +1 -2
- package/esm/button/group.d.ts +1 -2
- package/esm/card/accordion.d.ts +1 -2
- package/esm/card/body.d.ts +1 -2
- package/esm/card/card.d.ts +1 -2
- package/esm/card/footer.d.ts +1 -2
- package/esm/card/header.d.ts +1 -2
- package/esm/card/index.d.ts +5 -6
- package/esm/card-group/card-group.d.ts +1 -2
- package/esm/card-group/index.d.ts +1 -2
- package/esm/card-group/item.d.ts +1 -2
- package/esm/carousel/carousel.d.ts +1 -2
- package/esm/cascader/cascader.d.ts +1 -2
- package/esm/checkbox/checkbox.d.ts +1 -2
- package/esm/checkbox/group.d.ts +1 -2
- package/esm/collapse/collapse-item.d.ts +1 -2
- package/esm/collapse/collapse.d.ts +1 -2
- package/esm/date-picker/date-picker.d.ts +1 -2
- package/esm/descriptions/descriptions.d.ts +1 -2
- package/esm/divider/divider.d.ts +1 -2
- package/esm/drawer/drawer.d.ts +1 -2
- package/esm/dropdown/dropdown.d.ts +1 -2
- package/esm/editable-area/editable-area.d.ts +1 -2
- package/esm/empty/empty.d.ts +1 -2
- package/esm/form/form-button.d.ts +3 -4
- package/esm/form/form-field.d.ts +1 -2
- package/esm/form/form-fieldset.d.ts +1 -2
- package/esm/form/form-item.d.ts +1 -2
- package/esm/form/form.d.ts +1 -2
- package/esm/form/index.d.ts +6 -6
- package/esm/gap/gap.d.ts +1 -2
- package/esm/hooks/use-field-common.d.ts +1 -1
- package/esm/icon/icon.d.ts +1 -2
- package/esm/image/group.d.ts +1 -2
- package/esm/image/image.d.ts +1 -2
- package/esm/image/image.type.d.ts +2 -1
- package/esm/index.js +1 -1
- package/esm/input/group.d.ts +1 -2
- package/esm/input/input.d.ts +1 -1
- package/esm/input/number.d.ts +1 -2
- package/esm/input/password.d.ts +1 -2
- package/esm/link/link.d.ts +1 -2
- package/esm/list/base-item.d.ts +1 -2
- package/esm/list/list.d.ts +1 -2
- package/esm/menu/menu.d.ts +1 -2
- package/esm/menu/search.d.ts +1 -2
- package/esm/modal/modal.d.ts +1 -2
- package/esm/modal/submit.d.ts +1 -2
- package/esm/pagination/pagination.d.ts +1 -2
- package/esm/popover/confirm.d.ts +1 -2
- package/esm/popover/popover.d.ts +2 -3
- package/esm/progress/progress.d.ts +1 -2
- package/esm/radio/group.d.ts +1 -2
- package/esm/radio/radio.d.ts +1 -2
- package/esm/rate/rate.d.ts +1 -2
- package/esm/slider/slider.d.ts +1 -2
- package/esm/spin/spin.d.ts +1 -2
- package/esm/steps/interface.d.ts +1 -0
- package/esm/steps/step.d.ts +1 -2
- package/esm/steps/steps.d.ts +1 -2
- package/esm/sticky/sticky.d.ts +1 -2
- package/esm/switch/switch.d.ts +1 -2
- package/esm/table/table.d.ts +1 -2
- package/esm/table/table.js +4 -2
- package/esm/tabs/tabs-panel.d.ts +1 -2
- package/esm/tabs/tabs.d.ts +1 -2
- package/esm/tag/tag-input.d.ts +1 -2
- package/esm/tag/tag.d.ts +1 -2
- package/esm/tests/t-01-tabs-link.d.ts +1 -2
- package/esm/textarea/textarea.d.ts +1 -2
- package/esm/tooltip/tooltip.d.ts +1 -2
- package/esm/transfer/transfer.d.ts +1 -2
- package/esm/tree/tree.d.ts +1 -2
- package/esm/tree-select/tree-select.d.ts +1 -2
- package/esm/upload/button.d.ts +1 -2
- package/esm/upload/dragger.d.ts +3 -0
- package/esm/upload/dragger.js +18 -0
- package/esm/upload/dragger.type.d.ts +2 -0
- package/esm/upload/dragger.type.js +1 -0
- package/esm/upload/image.d.ts +1 -2
- package/esm/upload/index.d.ts +6 -0
- package/esm/upload/index.js +4 -0
- package/esm/upload/interface.d.ts +1 -0
- package/esm/upload/upload.d.ts +1 -2
- package/esm/utils/dom/detect.d.ts +1 -1
- package/package.json +5 -5
package/cjs/tag/tag-input.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TagInputProps } from './tag.type';
|
|
3
2
|
declare const TagInput: {
|
|
4
|
-
(props: TagInputProps): JSX.Element;
|
|
3
|
+
(props: TagInputProps): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
displayName: string;
|
|
6
5
|
};
|
|
7
6
|
export default TagInput;
|
package/cjs/tag/tag.d.ts
CHANGED
package/cjs/tooltip/tooltip.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { KeygenResult } from '@sheinx/hooks';
|
|
3
2
|
import { TransferProps } from './transfer.type';
|
|
4
|
-
declare const _default: <DataItem, Value extends KeygenResult[]>(props: TransferProps<DataItem, Value>) => JSX.Element;
|
|
3
|
+
declare const _default: <DataItem, Value extends KeygenResult[]>(props: TransferProps<DataItem, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default _default;
|
package/cjs/tree/tree.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TreeProps } from './tree.type';
|
|
3
2
|
declare const Tree: {
|
|
4
|
-
<DataItem, Value extends any[]>(props: TreeProps<DataItem, Value>): JSX.Element;
|
|
3
|
+
<DataItem, Value extends any[]>(props: TreeProps<DataItem, Value>): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
displayName: string;
|
|
6
5
|
};
|
|
7
6
|
export default Tree;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TreeSelectValueType } from '@sheinx/base';
|
|
3
2
|
import { TreeSelectProps } from './tree-select.type';
|
|
4
|
-
declare const _default: <DataItem, Value extends TreeSelectValueType>(props: TreeSelectProps<DataItem, Value>) => JSX.Element;
|
|
3
|
+
declare const _default: <DataItem, Value extends TreeSelectValueType>(props: TreeSelectProps<DataItem, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default _default;
|
package/cjs/upload/button.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { UploadButtonProps } from './button.type';
|
|
3
|
-
declare const _default: <T>(props: UploadButtonProps<T>) => JSX.Element;
|
|
2
|
+
declare const _default: <T>(props: UploadButtonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _base = require("@sheinx/base");
|
|
8
|
+
var _shineoutStyle = require("@sheinx/shineout-style");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
+
var jssStyle = {
|
|
17
|
+
upload: _shineoutStyle.useUploadStyle
|
|
18
|
+
};
|
|
19
|
+
var BaseUploadDragger = function BaseUploadDragger(props) {
|
|
20
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_base.UploadDragger, _objectSpread({
|
|
21
|
+
jssStyle: jssStyle
|
|
22
|
+
}, props));
|
|
23
|
+
};
|
|
24
|
+
var _default = exports.default = BaseUploadDragger;
|
package/cjs/upload/image.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { UploadImageProps } from './image.type';
|
|
3
|
-
declare const _default: <T>(props: UploadImageProps<T>) => JSX.Element;
|
|
2
|
+
declare const _default: <T>(props: UploadImageProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default _default;
|
package/cjs/upload/index.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import Upload from './upload';
|
|
2
2
|
import UploadImage from './image';
|
|
3
3
|
import UploadButton from './button';
|
|
4
|
+
import UploadDragger from './dragger';
|
|
4
5
|
type RefUpload = typeof Upload;
|
|
5
6
|
type RefUploadImage = typeof UploadImage;
|
|
6
7
|
type RefUploadButton = typeof UploadButton;
|
|
8
|
+
type RefUploadDragger = typeof UploadDragger;
|
|
7
9
|
export interface UploadComponent extends RefUpload {
|
|
8
10
|
displayName: string;
|
|
9
11
|
Image: UploadImageComponent;
|
|
10
12
|
Button: UploadButtonComponent;
|
|
13
|
+
Dragger: UploadDraggerComponent;
|
|
11
14
|
}
|
|
12
15
|
export interface UploadImageComponent extends RefUploadImage {
|
|
13
16
|
displayName: string;
|
|
@@ -15,5 +18,8 @@ export interface UploadImageComponent extends RefUploadImage {
|
|
|
15
18
|
export interface UploadButtonComponent extends RefUploadButton {
|
|
16
19
|
displayName: string;
|
|
17
20
|
}
|
|
21
|
+
export interface UploadDraggerComponent extends RefUploadDragger {
|
|
22
|
+
displayName: string;
|
|
23
|
+
}
|
|
18
24
|
declare const UploadComp: UploadComponent;
|
|
19
25
|
export default UploadComp;
|
package/cjs/upload/index.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _upload = _interopRequireDefault(require("./upload"));
|
|
9
9
|
var _image = _interopRequireDefault(require("./image"));
|
|
10
10
|
var _button = _interopRequireDefault(require("./button"));
|
|
11
|
+
var _dragger = _interopRequireDefault(require("./dragger"));
|
|
11
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
13
|
var UploadImageComp = _image.default;
|
|
13
14
|
UploadImageComp.displayName = 'ShineoutUploadImage';
|
|
@@ -15,6 +16,9 @@ var UploadButtonComp = _button.default;
|
|
|
15
16
|
UploadButtonComp.displayName = 'ShineoutUploadButton';
|
|
16
17
|
var UploadComp = _upload.default;
|
|
17
18
|
UploadComp.displayName = 'ShineoutUpload';
|
|
19
|
+
var UploadDraggerComp = _dragger.default;
|
|
20
|
+
UploadDraggerComp.displayName = 'ShineoutUploadDragger';
|
|
18
21
|
UploadComp.Image = UploadImageComp;
|
|
19
22
|
UploadComp.Button = UploadButtonComp;
|
|
23
|
+
UploadComp.Dragger = UploadDraggerComp;
|
|
20
24
|
var _default = exports.default = UploadComp;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type { UploadProps as Props, Validator } from './upload.type';
|
|
2
2
|
export type { UploadImageProps as ImageProps } from './image.type';
|
|
3
|
+
export type { UploadDraggerProps as DraggerProps } from './dragger.type';
|
|
3
4
|
export type { UploadOptions as Options } from '@sheinx/hooks';
|
package/cjs/upload/upload.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const TRANSFORMS: {
|
|
|
5
5
|
MozTransform: string;
|
|
6
6
|
transform: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function getTransformName(): "transform" | "webkitTransform" | "msTransform" | "
|
|
8
|
+
export declare function getTransformName(): "transform" | "webkitTransform" | "msTransform" | "MozTransform" | "OTransform";
|
|
9
9
|
export declare function has3d(): boolean;
|
|
10
10
|
export declare const eventPassive: boolean | {
|
|
11
11
|
passive: boolean;
|