@douyinfe/semi-ui 2.31.3-alpha.0 → 2.31.3

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.
Files changed (49) hide show
  1. package/dist/umd/semi-ui.js +10874 -5569
  2. package/dist/umd/semi-ui.js.map +1 -1
  3. package/dist/umd/semi-ui.min.js +1 -1
  4. package/dist/umd/semi-ui.min.js.map +1 -1
  5. package/lib/cjs/anchor/index.d.ts +1 -1
  6. package/lib/cjs/autoComplete/index.d.ts +1 -1
  7. package/lib/cjs/carousel/CarouselIndicator.d.ts +1 -1
  8. package/lib/cjs/carousel/index.d.ts +2 -2
  9. package/lib/cjs/datePicker/datePicker.d.ts +2 -2
  10. package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
  11. package/lib/cjs/datePicker/quickControl.d.ts +1 -1
  12. package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
  13. package/lib/cjs/dropdown/index.d.ts +1 -1
  14. package/lib/cjs/form/baseForm.d.ts +3 -3
  15. package/lib/cjs/form/field.d.ts +3 -3
  16. package/lib/cjs/modal/confirm.d.ts +27 -27
  17. package/lib/cjs/overflowList/index.d.ts +1 -1
  18. package/lib/cjs/popover/index.d.ts +1 -1
  19. package/lib/cjs/radio/radio.d.ts +1 -1
  20. package/lib/cjs/radio/radioGroup.d.ts +1 -1
  21. package/lib/cjs/select/index.d.ts +1 -1
  22. package/lib/cjs/table/Table.d.ts +1 -1
  23. package/lib/cjs/table/Table.js +2 -2
  24. package/lib/cjs/tooltip/index.d.ts +1 -1
  25. package/lib/cjs/typography/numeral.d.ts +1 -1
  26. package/lib/cjs/typography/title.d.ts +1 -1
  27. package/lib/es/anchor/index.d.ts +1 -1
  28. package/lib/es/autoComplete/index.d.ts +1 -1
  29. package/lib/es/carousel/CarouselIndicator.d.ts +1 -1
  30. package/lib/es/carousel/index.d.ts +2 -2
  31. package/lib/es/datePicker/datePicker.d.ts +2 -2
  32. package/lib/es/datePicker/monthsGrid.d.ts +1 -1
  33. package/lib/es/datePicker/quickControl.d.ts +1 -1
  34. package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
  35. package/lib/es/dropdown/index.d.ts +1 -1
  36. package/lib/es/form/baseForm.d.ts +3 -3
  37. package/lib/es/form/field.d.ts +3 -3
  38. package/lib/es/modal/confirm.d.ts +27 -27
  39. package/lib/es/overflowList/index.d.ts +1 -1
  40. package/lib/es/popover/index.d.ts +1 -1
  41. package/lib/es/radio/radio.d.ts +1 -1
  42. package/lib/es/radio/radioGroup.d.ts +1 -1
  43. package/lib/es/select/index.d.ts +1 -1
  44. package/lib/es/table/Table.d.ts +1 -1
  45. package/lib/es/table/Table.js +2 -2
  46. package/lib/es/tooltip/index.d.ts +1 -1
  47. package/lib/es/typography/numeral.d.ts +1 -1
  48. package/lib/es/typography/title.d.ts +1 -1
  49. package/package.json +10 -10
@@ -150,15 +150,15 @@ export declare function withError(props: ModalReactProps): {
150
150
  footer?: React.ReactNode;
151
151
  header?: React.ReactNode;
152
152
  direction?: any;
153
- mask?: boolean;
154
- content?: React.ReactNode;
155
153
  width?: string | number;
156
154
  height?: string | number;
157
- zIndex?: number;
155
+ mask?: boolean;
158
156
  visible?: boolean;
157
+ content?: React.ReactNode;
158
+ icon: string | number | boolean | React.ReactFragment | JSX.Element;
159
+ zIndex?: number;
159
160
  closeOnEsc?: boolean;
160
161
  preventScroll?: boolean;
161
- icon: string | number | boolean | React.ReactFragment | JSX.Element;
162
162
  afterClose?: () => void;
163
163
  keepDOM?: boolean;
164
164
  cancelText?: string;
@@ -208,6 +208,8 @@ export declare function withError(props: ModalReactProps): {
208
208
  onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
209
209
  form?: string;
210
210
  slot?: string;
211
+ hidden?: boolean;
212
+ color?: string;
211
213
  onChange?: React.FormEventHandler<HTMLButtonElement>;
212
214
  defaultChecked?: boolean;
213
215
  defaultValue?: string | number | readonly string[];
@@ -221,28 +223,26 @@ export declare function withError(props: ModalReactProps): {
221
223
  formNoValidate?: boolean;
222
224
  formTarget?: string;
223
225
  dir?: string;
224
- draggable?: boolean | "true" | "false";
225
- hidden?: boolean;
226
+ draggable?: boolean | "false" | "true";
226
227
  lang?: string;
227
228
  translate?: "no" | "yes";
228
229
  prefix?: string;
229
- contentEditable?: "inherit" | (boolean | "true" | "false");
230
+ contentEditable?: "inherit" | (boolean | "false" | "true");
230
231
  inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
231
232
  tabIndex?: number;
232
- color?: string;
233
233
  role?: React.AriaRole;
234
234
  onMouseOut?: React.MouseEventHandler<HTMLButtonElement>;
235
235
  onMouseOver?: React.MouseEventHandler<HTMLButtonElement>;
236
236
  onFocus?: React.FocusEventHandler<HTMLButtonElement>;
237
237
  onBlur?: React.FocusEventHandler<HTMLButtonElement>;
238
238
  onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
239
- 'aria-expanded'?: boolean | "true" | "false";
240
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false";
239
+ 'aria-expanded'?: boolean | "false" | "true";
240
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
241
241
  'aria-controls'?: string;
242
242
  'aria-describedby'?: string;
243
243
  contextMenu?: string;
244
244
  placeholder?: string;
245
- spellCheck?: boolean | "true" | "false";
245
+ spellCheck?: boolean | "false" | "true";
246
246
  radioGroup?: string;
247
247
  about?: string;
248
248
  datatype?: string;
@@ -264,42 +264,42 @@ export declare function withError(props: ModalReactProps): {
264
264
  unselectable?: "on" | "off";
265
265
  is?: string;
266
266
  'aria-activedescendant'?: string;
267
- 'aria-atomic'?: boolean | "true" | "false";
268
- 'aria-autocomplete'?: "both" | "none" | "list" | "inline";
269
- 'aria-busy'?: boolean | "true" | "false";
270
- 'aria-checked'?: boolean | "true" | "false" | "mixed";
267
+ 'aria-atomic'?: boolean | "false" | "true";
268
+ 'aria-autocomplete'?: "both" | "none" | "inline" | "list";
269
+ 'aria-busy'?: boolean | "false" | "true";
270
+ 'aria-checked'?: boolean | "mixed" | "false" | "true";
271
271
  'aria-colcount'?: number;
272
272
  'aria-colindex'?: number;
273
273
  'aria-colspan'?: number;
274
- 'aria-current'?: boolean | "time" | "true" | "false" | "location" | "page" | "step" | "date";
274
+ 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "location" | "step" | "date";
275
275
  'aria-details'?: string;
276
- 'aria-disabled'?: boolean | "true" | "false";
276
+ 'aria-disabled'?: boolean | "false" | "true";
277
277
  'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup";
278
278
  'aria-errormessage'?: string;
279
279
  'aria-flowto'?: string;
280
- 'aria-grabbed'?: boolean | "true" | "false";
281
- 'aria-hidden'?: boolean | "true" | "false";
282
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
280
+ 'aria-grabbed'?: boolean | "false" | "true";
281
+ 'aria-hidden'?: boolean | "false" | "true";
282
+ 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling";
283
283
  'aria-keyshortcuts'?: string;
284
284
  'aria-labelledby'?: string;
285
285
  'aria-level'?: number;
286
286
  'aria-live'?: "off" | "assertive" | "polite";
287
- 'aria-modal'?: boolean | "true" | "false";
288
- 'aria-multiline'?: boolean | "true" | "false";
289
- 'aria-multiselectable'?: boolean | "true" | "false";
287
+ 'aria-modal'?: boolean | "false" | "true";
288
+ 'aria-multiline'?: boolean | "false" | "true";
289
+ 'aria-multiselectable'?: boolean | "false" | "true";
290
290
  'aria-orientation'?: "horizontal" | "vertical";
291
291
  'aria-owns'?: string;
292
292
  'aria-placeholder'?: string;
293
293
  'aria-posinset'?: number;
294
- 'aria-pressed'?: boolean | "true" | "false" | "mixed";
295
- 'aria-readonly'?: boolean | "true" | "false";
294
+ 'aria-pressed'?: boolean | "mixed" | "false" | "true";
295
+ 'aria-readonly'?: boolean | "false" | "true";
296
296
  'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
297
- 'aria-required'?: boolean | "true" | "false";
297
+ 'aria-required'?: boolean | "false" | "true";
298
298
  'aria-roledescription'?: string;
299
299
  'aria-rowcount'?: number;
300
300
  'aria-rowindex'?: number;
301
301
  'aria-rowspan'?: number;
302
- 'aria-selected'?: boolean | "true" | "false";
302
+ 'aria-selected'?: boolean | "false" | "true";
303
303
  'aria-setsize'?: number;
304
304
  'aria-sort'?: "none" | "ascending" | "descending" | "other";
305
305
  'aria-valuemax'?: number;
@@ -88,7 +88,7 @@ declare class OverflowList extends BaseComponent<OverflowListProps, OverflowList
88
88
  className: string;
89
89
  style: {
90
90
  maxWidth: string;
91
- visibility: "visible" | "hidden";
91
+ visibility: "hidden" | "visible";
92
92
  accentColor?: import("csstype").Property.AccentColor;
93
93
  alignContent?: import("csstype").Property.AlignContent;
94
94
  alignItems?: import("csstype").Property.AlignItems;
@@ -55,7 +55,7 @@ declare class Popover extends React.PureComponent<PopoverProps, PopoverState> {
55
55
  visible: PropTypes.Requireable<boolean>;
56
56
  autoAdjustOverflow: PropTypes.Requireable<boolean>;
57
57
  motion: PropTypes.Requireable<boolean>;
58
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
58
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver">;
59
59
  margin: PropTypes.Requireable<NonNullable<number | object>>;
60
60
  mouseEnterDelay: PropTypes.Requireable<number>;
61
61
  mouseLeaveDelay: PropTypes.Requireable<number>;
@@ -82,7 +82,7 @@ declare class Radio extends BaseComponent<RadioProps, RadioState> {
82
82
  prefixCls?: string;
83
83
  name?: string;
84
84
  onChange?: (e: RadioChangeEvent) => void;
85
- buttonSize?: "small" | "middle" | "large";
85
+ buttonSize?: "small" | "large" | "middle";
86
86
  isCardRadio?: boolean;
87
87
  isPureCardRadio?: boolean;
88
88
  };
@@ -48,7 +48,7 @@ declare class RadioGroup extends BaseComponent<RadioGroupProps, RadioGroupState>
48
48
  disabled: PropTypes.Requireable<boolean>;
49
49
  name: PropTypes.Requireable<string>;
50
50
  options: PropTypes.Requireable<any[]>;
51
- buttonSize: PropTypes.Requireable<"small" | "middle" | "large">;
51
+ buttonSize: PropTypes.Requireable<"small" | "large" | "middle">;
52
52
  type: PropTypes.Requireable<"default" | "button" | "card" | "pureCard">;
53
53
  value: PropTypes.Requireable<any>;
54
54
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
@@ -181,7 +181,7 @@ declare class Select extends BaseComponent<SelectProps, SelectState> {
181
181
  expandRestTagsOnClick: PropTypes.Requireable<boolean>;
182
182
  onDropdownVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
183
183
  zIndex: PropTypes.Requireable<number>;
184
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
184
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
185
185
  onSearch: PropTypes.Requireable<(...args: any[]) => any>;
186
186
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
187
187
  dropdownClassName: PropTypes.Requireable<string>;
@@ -308,7 +308,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
308
308
  showSizeChanger?: boolean;
309
309
  showQuickJumper?: boolean;
310
310
  popoverZIndex?: number;
311
- popoverPosition?: "top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
311
+ popoverPosition?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver";
312
312
  hideOnSinglePage?: boolean;
313
313
  hoverShowPageSelect?: boolean;
314
314
  };
@@ -45,7 +45,7 @@ var __rest = this && this.__rest || function (s, e) {
45
45
  import React, { createRef, isValidElement } from 'react';
46
46
  import PropTypes from 'prop-types';
47
47
  import classnames from 'classnames';
48
- import { mergeQueries, equalWith, assignColumnKeys, flattenColumns, getAllDisabledRowKeys } from '@douyinfe/semi-foundation/lib/es/table/utils';
48
+ import { mergeQueries, equalWith, mergeColumns, assignColumnKeys, flattenColumns, getAllDisabledRowKeys } from '@douyinfe/semi-foundation/lib/es/table/utils';
49
49
  import Store from '@douyinfe/semi-foundation/lib/es/utils/Store';
50
50
  import TableFoundation from '@douyinfe/semi-foundation/lib/es/table/foundation';
51
51
  import { strings, cssClasses, numbers } from '@douyinfe/semi-foundation/lib/es/table/constants';
@@ -64,7 +64,7 @@ import ColumnSorter from './ColumnSorter';
64
64
  import ExpandedIcon from './CustomExpandIcon';
65
65
  import HeadTable from './HeadTable';
66
66
  import BodyTable from './Body';
67
- import { logger, cloneDeep, mergeComponents, mergeColumns } from './utils';
67
+ import { logger, cloneDeep, mergeComponents } from './utils';
68
68
 
69
69
  class Table extends BaseComponent {
70
70
  constructor(props, context) {
@@ -88,7 +88,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
88
88
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
89
89
  motion: PropTypes.Requireable<boolean>;
90
90
  autoAdjustOverflow: PropTypes.Requireable<boolean>;
91
- position: PropTypes.Requireable<"top" | "topLeft" | "topRight" | "left" | "leftTop" | "leftBottom" | "right" | "rightTop" | "rightBottom" | "bottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
91
+ position: PropTypes.Requireable<"left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "bottomLeft" | "bottomRight" | "leftTopOver" | "rightTopOver" | "leftBottomOver" | "rightBottomOver">;
92
92
  getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
93
93
  mouseEnterDelay: PropTypes.Requireable<number>;
94
94
  mouseLeaveDelay: PropTypes.Requireable<number>;
@@ -28,7 +28,7 @@ export default class Numeral extends PureComponent<NumeralProps> {
28
28
  static propTypes: {
29
29
  rule: PropTypes.Requireable<"text" | "numbers" | "bytes-decimal" | "bytes-binary" | "percentages" | "exponential">;
30
30
  precision: PropTypes.Requireable<number>;
31
- truncate: PropTypes.Requireable<"ceil" | "floor" | "round">;
31
+ truncate: PropTypes.Requireable<"round" | "ceil" | "floor">;
32
32
  parser: PropTypes.Requireable<(...args: any[]) => any>;
33
33
  copyable: PropTypes.Requireable<NonNullable<boolean | object>>;
34
34
  delete: PropTypes.Requireable<boolean>;
@@ -37,7 +37,7 @@ export default class Title extends PureComponent<TitleProps> {
37
37
  underline: PropTypes.Requireable<boolean>;
38
38
  strong: PropTypes.Requireable<boolean>;
39
39
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
40
- heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
40
+ heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 6 | 5>;
41
41
  style: PropTypes.Requireable<object>;
42
42
  className: PropTypes.Requireable<string>;
43
43
  component: PropTypes.Requireable<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.31.3-alpha.0",
3
+ "version": "2.31.3",
4
4
  "description": "",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -17,17 +17,17 @@
17
17
  "lib/*"
18
18
  ],
19
19
  "dependencies": {
20
- "@douyinfe/semi-animation": "2.31.3-alpha.0",
21
- "@douyinfe/semi-animation-react": "2.31.3-alpha.0",
22
- "@douyinfe/semi-foundation": "2.31.3-alpha.0",
23
- "@douyinfe/semi-icons": "2.31.3-alpha.0",
24
- "@douyinfe/semi-illustrations": "2.31.3-alpha.0",
25
- "@douyinfe/semi-theme-default": "2.31.3-alpha.0",
20
+ "@douyinfe/semi-animation": "2.31.3",
21
+ "@douyinfe/semi-animation-react": "2.31.3",
22
+ "@douyinfe/semi-foundation": "2.31.3",
23
+ "@douyinfe/semi-icons": "2.31.3",
24
+ "@douyinfe/semi-illustrations": "2.31.3",
25
+ "@douyinfe/semi-theme-default": "2.31.3",
26
26
  "async-validator": "^3.5.0",
27
27
  "classnames": "^2.2.6",
28
28
  "copy-text-to-clipboard": "^2.1.1",
29
- "date-fns": "^2.9.0",
30
- "date-fns-tz": "^1.0.10",
29
+ "date-fns": "^2.29.3",
30
+ "date-fns-tz": "^1.3.8",
31
31
  "lodash": "^4.17.21",
32
32
  "prop-types": "^15.7.2",
33
33
  "react-resizable": "^1.8.0",
@@ -69,7 +69,7 @@
69
69
  ],
70
70
  "author": "",
71
71
  "license": "MIT",
72
- "gitHead": "132450ec528a6a6396458866467d7e5acd74dfb3",
72
+ "gitHead": "6335109d0cfce3930842beeefcf11efa296da433",
73
73
  "devDependencies": {
74
74
  "@babel/plugin-proposal-decorators": "^7.15.8",
75
75
  "@babel/plugin-transform-runtime": "^7.15.8",