yootd 0.0.91 → 0.0.92

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,11 +1,10 @@
1
- import { BadgeProps } from 'antd';
1
+ import { Badge as AntBadge, BadgeProps } from 'antd';
2
2
  import React from 'react';
3
- import Ribbon from 'antd/es/badge/Ribbon';
4
3
  import './index.scss';
5
4
  export type { ScrollNumberProps } from 'antd/es/badge';
6
5
  export type { BadgeProps };
7
6
  type BadgeType = typeof BadgeComponent & {
8
- Ribbon: typeof Ribbon;
7
+ Ribbon: typeof AntBadge.Ribbon;
9
8
  };
10
9
  export declare const BadgeComponent: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
11
10
  export declare const Badge: BadgeType;
@@ -4,7 +4,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
5
  import { Badge as AntBadge } from 'antd';
6
6
  import React, { forwardRef } from 'react';
7
- import Ribbon from 'antd/es/badge/Ribbon';
8
7
  import { useBem } from "../hooks/useBem";
9
8
  import "./index.scss";
10
9
  export var BadgeComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -18,4 +17,4 @@ export var BadgeComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
18
17
  });
19
18
  export var Badge = BadgeComponent;
20
19
  Badge.displayName = 'Badge';
21
- Badge.Ribbon = Ribbon;
20
+ Badge.Ribbon = AntBadge.Ribbon;
@@ -1,6 +1,6 @@
1
1
  import type { CascaderProps as AntCascaderProps } from 'antd';
2
2
  import { Cascader as AntCascader } from 'antd';
3
- import { CascaderRef, DefaultOptionType } from 'antd/es/cascader';
3
+ import type { CascaderRef, DefaultOptionType } from 'antd/es/cascader';
4
4
  import React from 'react';
5
5
  import './index.scss';
6
6
  export type CascaderProps<OptionType extends DefaultOptionType = DefaultOptionType, ValueField extends keyof OptionType = keyof OptionType, Multiple extends boolean = boolean> = AntCascaderProps<OptionType, ValueField, Multiple>;
@@ -1,6 +1,6 @@
1
1
  import type { CheckboxProps as AntCheckboxProps } from 'antd';
2
2
  import { Checkbox as AntCheckBox } from 'antd';
3
- import { CheckboxRef } from 'antd/es/checkbox';
3
+ import type { CheckboxRef } from 'antd/es/checkbox';
4
4
  import React from 'react';
5
5
  export type CheckboxProps = AntCheckboxProps;
6
6
  type AntCheckBoxType = typeof AntCheckBox;
@@ -1,4 +1,4 @@
1
- import { DatePickerProps as AntdDatePickerProps } from 'antd/es/date-picker';
1
+ import type { DatePickerProps as AntdDatePickerProps } from 'antd/es/date-picker';
2
2
  import dayjs from 'dayjs';
3
3
  import { FC } from 'react';
4
4
  type PickerType = 'time' | 'date' | 'week' | 'month' | 'quarter' | 'year';
@@ -1,4 +1,4 @@
1
- import { RangePickerProps } from 'antd/es/date-picker';
1
+ import type { RangePickerProps } from 'antd/es/date-picker';
2
2
  import dayjs from 'dayjs';
3
3
  import { FC } from 'react';
4
4
  type PickerType = 'time' | 'date' | 'week' | 'month' | 'quarter' | 'year';
@@ -1,5 +1,5 @@
1
1
  import { Modal as AntModal, ModalProps } from 'antd';
2
- import { ModalStaticFunctions } from 'antd/es/modal/confirm';
2
+ import type { ModalStaticFunctions } from 'antd/es/modal/confirm';
3
3
  import React from 'react';
4
4
  import './index.scss';
5
5
  export type { ModalFuncProps, ModalLocale } from 'antd/es/modal';
@@ -54,7 +54,7 @@ var ModalComponent = function ModalComponent(_ref) {
54
54
  var tcb = mb.b('title').b('content');
55
55
  useEffect(function () {
56
56
  var svg = createColorDefs(mb);
57
- console.log("create color defs");
57
+ console.log('create color defs');
58
58
  if (svg) {
59
59
  document.body.appendChild(svg);
60
60
  }
@@ -1,4 +1,3 @@
1
1
  import { Radio as AntRadio } from 'antd';
2
2
  export type { RadioChangeEvent, RadioChangeEventTarget, RadioGroupButtonStyle, RadioGroupContextProps, RadioGroupOptionType, RadioGroupProps, RadioProps, RadioRef, } from 'antd/es/radio';
3
- export { Button, Group } from 'antd/es/radio';
4
3
  export declare const Radio: typeof AntRadio;
@@ -1,3 +1,2 @@
1
1
  import { Radio as AntRadio } from 'antd';
2
- export { Button, Group } from 'antd/es/radio';
3
2
  export var Radio = AntRadio;
@@ -1,7 +1,7 @@
1
1
  import type { TableProps as AntTableProps } from 'antd';
2
2
  import { Table as AntTable } from 'antd';
3
- import { AnyObject } from 'antd/es/_util/type';
4
- import { ColumnType as AntColumnType } from 'antd/es/table';
3
+ import type { AnyObject } from 'antd/es/_util/type';
4
+ import type { ColumnType as AntColumnType } from 'antd/es/table';
5
5
  import React from 'react';
6
6
  import './index.scss';
7
7
  type AntTableType = typeof AntTable;
@@ -19,9 +19,6 @@ import React, { forwardRef, useEffect, useMemo, useState } from 'react';
19
19
  import { PrimaryHeaderRow } from "./components/primary-header-row";
20
20
  import { arrayMove } from "../utils/utils";
21
21
  import { PrimaryTBodyRow } from "./components/primary-tbody-row";
22
-
23
- // import { RefTable } from 'antd/es/table/interface';
24
-
25
22
  import "./index.scss";
26
23
  export var TableRowContext = /*#__PURE__*/React.createContext({});
27
24
  var InternalTable = function InternalTable(_ref, ref) {
@@ -1,7 +1,7 @@
1
1
  import type { UploadFile } from 'antd';
2
2
  import React from 'react';
3
3
  import '../index.scss';
4
- import { UploadRef } from 'antd/es/upload/Upload';
4
+ import type { UploadRef } from 'antd/es/upload/Upload';
5
5
  declare const FileUpload: React.ForwardRefExoticComponent<import("antd").UploadProps<any> & {
6
6
  maxCount?: number | undefined;
7
7
  accept?: string | undefined;
@@ -1,7 +1,7 @@
1
1
  import type { UploadFile } from 'antd';
2
2
  import React from 'react';
3
3
  import '../index.scss';
4
- import { UploadRef } from 'antd/es/upload/Upload';
4
+ import type { UploadRef } from 'antd/es/upload/Upload';
5
5
  declare const ImageUpload: React.ForwardRefExoticComponent<import("antd").UploadProps<any> & {
6
6
  maxCount?: number | undefined;
7
7
  accept?: string | undefined;
@@ -1,7 +1,7 @@
1
1
  import type { UploadProps as AntUploadProps, UploadFile } from 'antd';
2
2
  import React from 'react';
3
3
  import { Upload as AntUpload } from 'antd';
4
- import { UploadRef } from 'antd/es/upload/Upload';
4
+ import type { UploadRef } from 'antd/es/upload/Upload';
5
5
  export type { DraggerProps, RcFile, UploadChangeParam, UploadFile, UploadListProps, } from 'antd/es/upload';
6
6
  export type UploadProps = AntUploadProps & {
7
7
  maxCount?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.0.91",
3
+ "version": "0.0.92",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",