shineout 3.3.0-beta.8 → 3.3.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.
@@ -1,8 +1,9 @@
1
1
  import { ModalProps } from '../modal/modal.type';
2
+ import { type } from '../utils';
2
3
  /**
3
4
  * @title Drawer
4
5
  */
5
- export interface DrawerProps extends Omit<ModalProps, 'moveable'> {
6
+ interface DrawerPropsOrgin extends Omit<ModalProps, 'moveable'> {
6
7
  /** *
7
8
  * @en 弹出位置
8
9
  * @cn Pop-up position
@@ -22,3 +23,5 @@ export interface DrawerProps extends Omit<ModalProps, 'moveable'> {
22
23
  */
23
24
  height?: number | string;
24
25
  }
26
+ export type DrawerProps = type.RequireAWithB<DrawerPropsOrgin, 'type', 'title'>;
27
+ export {};
package/esm/index.js CHANGED
@@ -58,5 +58,5 @@ export * from "./deprecated";
58
58
  import * as _TYPE from "./type";
59
59
  export { _TYPE as TYPE };
60
60
  export default {
61
- version: '3.3.0-beta.8'
61
+ version: '3.3.0'
62
62
  };
@@ -1 +1,2 @@
1
1
  export type { TabsProps as Props } from './tabs.type';
2
+ export type { TabsPanelProps as PanelProps } from './tabs-panel.type';
@@ -17,8 +17,9 @@ import normalizeWheel from './dom/normalizeWheel';
17
17
  import * as position from './dom/popover';
18
18
  import ready from './dom/ready';
19
19
  import isJson from './validate/isJson';
20
+ import * as type from './type';
20
21
  import accept from './accept';
21
22
  declare const validate: () => void;
22
23
  declare const cssAccessors: {};
23
24
  declare const cssInject: {};
24
- export { classname, clone, color, flat, func, hash, is, number, objects, shallowEqual, string, tree, detect, doc, element, normalizeWheel, position, ready, isJson, validate, cssAccessors, cssInject, accept, };
25
+ export { classname, clone, color, flat, func, hash, is, number, objects, shallowEqual, string, tree, detect, doc, element, normalizeWheel, position, ready, isJson, validate, cssAccessors, cssInject, type, accept, };
@@ -17,10 +17,11 @@ import normalizeWheel from "./dom/normalizeWheel";
17
17
  import * as position from "./dom/popover";
18
18
  import ready from "./dom/ready";
19
19
  import isJson from "./validate/isJson";
20
+ import * as type from "./type";
20
21
  // import validate from './validate';
21
22
 
22
23
  import accept from "./accept";
23
24
  var validate = function validate() {};
24
25
  var cssAccessors = {};
25
26
  var cssInject = {};
26
- export { classname, clone, color, flat, func, hash, is, number, objects, shallowEqual, string, tree, detect, doc, element, normalizeWheel, position, ready, isJson, validate, cssAccessors, cssInject, accept };
27
+ export { classname, clone, color, flat, func, hash, is, number, objects, shallowEqual, string, tree, detect, doc, element, normalizeWheel, position, ready, isJson, validate, cssAccessors, cssInject, type, accept };
@@ -0,0 +1,3 @@
1
+ export type RequireAWithB<T, A extends keyof T, B extends keyof T> = (Omit<T, A> & {
2
+ [K in A]?: never;
3
+ }) | (T & Required<Pick<T, B>>) | (T & Required<Pick<T, A | B>>);
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shineout",
3
- "version": "3.3.0-beta.8",
3
+ "version": "3.3.0",
4
4
  "description": "A components library for React",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -16,10 +16,10 @@
16
16
  "module": "./esm/index.js",
17
17
  "typings": "./cjs/index.d.ts",
18
18
  "dependencies": {
19
- "@sheinx/base": "3.3.0-beta.8",
20
- "@sheinx/hooks": "3.3.0-beta.8",
21
- "@sheinx/shineout-style": "3.3.0-beta.8",
22
- "@sheinx/theme": "3.3.0-beta.8",
19
+ "@sheinx/base": "3.3.0",
20
+ "@sheinx/hooks": "3.3.0",
21
+ "@sheinx/shineout-style": "3.3.0",
22
+ "@sheinx/theme": "3.3.0",
23
23
  "classnames": "^2.0.0",
24
24
  "immer": "^10.0.0",
25
25
  "deep-eql": "^4.0.0"