@pinnacle0/web-ui 0.3.55 → 0.3.56

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.
@@ -16,7 +16,7 @@ interface BaseOption {
16
16
  export declare class DocumentTitle extends React.PureComponent<Props> {
17
17
  static displayName: string;
18
18
  static baseOption: BaseOption;
19
- static register: <K extends keyof BaseOption>(option: BaseOption | Pick<BaseOption, K>) => BaseOption & (BaseOption | Pick<BaseOption, K>);
19
+ static register: <K extends keyof BaseOption>(option: BaseOption | Pick<BaseOption, K>) => BaseOption | (BaseOption & Pick<BaseOption, K>);
20
20
  private readonly prevTitle;
21
21
  constructor(props: Props);
22
22
  componentDidMount(): void;
@@ -24,6 +24,6 @@ export declare class EnumSelect<Enum extends string | boolean | number> extends
24
24
  static InitialNullable: typeof InitialNullable;
25
25
  static Map: typeof Map;
26
26
  getAntSelectValue: () => LabeledValue | undefined;
27
- onChange: ({ value: antValue }: LabeledValue) => void;
27
+ onChange: ({ value }: LabeledValue) => void;
28
28
  render(): JSX.Element;
29
29
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { VirtualItem } from "react-virtual";
2
3
  import type { ItemRenderer } from "./type";
3
4
  import type { Gap } from "../type";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { VirtualFlatListProps } from "./type";
2
3
  import "./index.less";
3
4
  /**
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import type { FlatListProps } from "./type";
2
3
  export declare const FlatList: <T>(props: FlatListProps<T>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Measure } from "../../VirtualFlatList/type";
2
3
  import type { FooterData } from "../../type";
3
4
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface Props {
3
4
  loading: boolean;
@@ -0,0 +1,9 @@
1
+ import type { ImageProps } from "antd/lib/image";
2
+ import React from "react";
3
+ import "antd/lib/card/style";
4
+ export interface Props extends ImageProps {
5
+ }
6
+ export declare class Image extends React.PureComponent<Props> {
7
+ static displayName: string;
8
+ render(): JSX.Element;
9
+ }
package/core/Image.js ADDED
@@ -0,0 +1,42 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __assign = (this && this.__assign) || function () {
17
+ __assign = Object.assign || function(t) {
18
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
19
+ s = arguments[i];
20
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
+ t[p] = s[p];
22
+ }
23
+ return t;
24
+ };
25
+ return __assign.apply(this, arguments);
26
+ };
27
+ import AntImage from "antd/lib/image";
28
+ import React from "react";
29
+ import "antd/lib/card/style";
30
+ var Image = /** @class */ (function (_super) {
31
+ __extends(Image, _super);
32
+ function Image() {
33
+ return _super !== null && _super.apply(this, arguments) || this;
34
+ }
35
+ Image.prototype.render = function () {
36
+ return React.createElement(AntImage, __assign({}, this.props));
37
+ };
38
+ Image.displayName = "Image";
39
+ return Image;
40
+ }(React.PureComponent));
41
+ export { Image };
42
+ //# sourceMappingURL=Image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.js","sourceRoot":"","sources":["../../src/core/Image.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAI7B;IAA2B,yBAA0B;IAArD;;IAMA,CAAC;IAHG,sBAAM,GAAN;QACI,OAAO,oBAAC,QAAQ,eAAK,IAAI,CAAC,KAAK,EAAI,CAAC;IACxC,CAAC;IAJM,iBAAW,GAAG,OAAO,CAAC;IAKjC,YAAC;CAAA,AAND,CAA2B,KAAK,CAAC,aAAa,GAM7C;SANY,KAAK"}
@@ -19,7 +19,7 @@ export interface Props extends Omit<TabsProps, "tabBarExtraContent"> {
19
19
  export declare class Tabs extends React.PureComponent<Props> {
20
20
  static displayName: string;
21
21
  static Single: typeof Single;
22
- static TabPane: typeof import("rc-tabs").TabPane;
22
+ static TabPane: React.FC<import("antd/lib/tabs").TabPaneProps>;
23
23
  static defaultProps: PickOptional<Props>;
24
24
  private tabBarRef;
25
25
  componentDidMount(): void;
@@ -13,7 +13,7 @@ export interface State {
13
13
  paused: boolean;
14
14
  }
15
15
  export declare const VerticalMarquee: React.NamedExoticComponent<Props> & {
16
- readonly type: ({ className: extraClassName, speed, height, styles, children }: Props) => JSX.Element;
16
+ readonly type: ({ className, speed, height, styles, children }: Props) => JSX.Element;
17
17
  } & {
18
18
  displayName: string;
19
19
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { VirtualItem } from "react-virtual";
2
3
  import type { ColumnFixedPosition, VirtualTableColumn, VirtualTableRowExpand, StickyPosition } from "./type";
3
4
  interface Props<RowType extends object> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { SafeReactChild, StringKey } from "../../internal/type";
2
3
  import type { VirtualTableColumn, VirtualTableRowExpand, VirtualTableRowSelection } from "./type";
3
4
  import "./index.less";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinnacle0/web-ui",
3
- "version": "0.3.55",
3
+ "version": "0.3.56",
4
4
  "author": "Pinnacle",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@ant-design/icons": "4.7.0",
28
- "antd": "4.22.2",
28
+ "antd": "4.23.0",
29
29
  "classnames": "2.3.1",
30
30
  "moment": "2.29.4",
31
31
  "rc-resize-observer": "1.2.0",
@@ -37,19 +37,20 @@
37
37
  "react-router-dom": ">=5.2.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@babel/core": "7.18.9",
41
- "@babel/runtime": "7.18.9",
42
- "@testing-library/dom": "8.16.0",
43
- "@testing-library/jest-dom": "5.16.4",
44
- "@testing-library/react": "13.3.0",
45
- "@testing-library/user-event": "14.3.0",
40
+ "@babel/core": "7.19.0",
41
+ "@babel/runtime": "7.19.0",
42
+ "@testing-library/dom": "8.17.1",
43
+ "@testing-library/jest-dom": "5.16.5",
44
+ "@testing-library/react": "13.4.0",
45
+ "@testing-library/user-event": "14.4.3",
46
46
  "@types/history": "4.7.11",
47
- "@types/react": "18.0.15",
47
+ "@types/react": "18.0.18",
48
48
  "@types/react-dom": "18.0.6",
49
49
  "@types/react-router-dom": "5.3.2",
50
50
  "less": "4.1.3",
51
51
  "react": "18.2.0",
52
52
  "react-dom": "18.2.0",
53
- "react-router-dom": "5.3.0"
53
+ "react-router-dom": "5.3.0",
54
+ "typescript": "4.8.3"
54
55
  }
55
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AdminNavigatorBase.js","sourceRoot":"","sources":["../../src/util/AdminNavigatorBase.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAoDtC;IACI;;OAEG;IACH,4BACY,2BAAoC,EACpC,yBAAqC,EACrC,yBAAiC,EACjC,sBAAgC;QAHhC,gCAA2B,GAA3B,2BAA2B,CAAS;Q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