@ucloud-fe/react-components 1.3.27 → 1.4.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/icon.min.js +1 -1
  3. package/dist/main.min.js +4 -4
  4. package/lib/components/AutoComplete/AutoComplete.js +7 -4
  5. package/lib/components/Badge/Bubble.d.ts +2 -0
  6. package/lib/components/Box/Box.d.ts +1 -0
  7. package/lib/components/Calendar/Calendar.d.ts +6 -1
  8. package/lib/components/Calendar/Calendar.js +12 -4
  9. package/lib/components/Calendar/Cell.d.ts +8 -0
  10. package/lib/components/Calendar/Cell.js +55 -0
  11. package/lib/components/Calendar/HeaderButton.d.ts +8 -0
  12. package/lib/components/Calendar/HeaderButton.js +75 -0
  13. package/lib/components/Calendar/HeaderSwitcher.d.ts +2 -1
  14. package/lib/components/Calendar/Month.js +10 -4
  15. package/lib/components/Calendar/TwoSide.d.ts +4 -0
  16. package/lib/components/Calendar/TwoSide.js +155 -0
  17. package/lib/components/Calendar/index.d.ts +3 -0
  18. package/lib/components/Calendar/index.js +9 -0
  19. package/lib/components/Calendar/locale/en_US.js +2 -1
  20. package/lib/components/Calendar/locale/zh_CN.d.ts +1 -0
  21. package/lib/components/Calendar/locale/zh_CN.js +3 -2
  22. package/lib/components/Calendar/style/index.d.ts +13 -0
  23. package/lib/components/Calendar/style/index.js +29 -7
  24. package/lib/components/Calendar/utils.d.ts +1 -1
  25. package/lib/components/Calendar/utils.js +5 -5
  26. package/lib/components/DatePicker/DatePicker.d.ts +1 -1
  27. package/lib/components/DatePicker/DatePicker.js +5 -7
  28. package/lib/components/DatePicker/Footer.d.ts +5 -3
  29. package/lib/components/DatePicker/Footer.js +33 -57
  30. package/lib/components/DatePicker/Month.js +4 -6
  31. package/lib/components/DatePicker/Range.d.ts +2 -2
  32. package/lib/components/DatePicker/Range.js +179 -71
  33. package/lib/components/DatePicker/locale/en_US.js +2 -1
  34. package/lib/components/DatePicker/locale/zh_CN.d.ts +1 -0
  35. package/lib/components/DatePicker/locale/zh_CN.js +2 -1
  36. package/lib/components/DatePicker/style/index.d.ts +24 -5
  37. package/lib/components/DatePicker/style/index.js +102 -34
  38. package/lib/components/DatePicker/usePicker.js +90 -31
  39. package/lib/components/DatePicker/useRangePicker.d.ts +16 -0
  40. package/lib/components/DatePicker/{RangePicker.js → useRangePicker.js} +44 -80
  41. package/lib/components/DatePicker/utils.d.ts +1 -1
  42. package/lib/components/Form/ControllerContext.d.ts +1 -1
  43. package/lib/components/Input/Input.js +4 -2
  44. package/lib/components/Input/Search.js +1 -1
  45. package/lib/components/Input/style/index.d.ts +2 -1
  46. package/lib/components/Input/style/index.js +6 -4
  47. package/lib/components/Loading/Loading.d.ts +1 -0
  48. package/lib/components/NumberInput/NumberInput.d.ts +12 -0
  49. package/lib/components/NumberInput/NumberInput.js +1 -1
  50. package/lib/components/Pagination/Options.js +1 -1
  51. package/lib/components/Popover/Popover.d.ts +7 -0
  52. package/lib/components/Popover/style/index.d.ts +1 -0
  53. package/lib/components/Select/style/index.d.ts +6 -6
  54. package/lib/components/SvgIcon/SvgIcon.d.ts +1 -0
  55. package/lib/components/SvgIcon/SvgIcon.js +6 -0
  56. package/lib/components/SvgIcon/SvgIconWrap.d.ts +1 -0
  57. package/lib/components/SvgIcon/icons/DoubleArrowLeft.d.ts +3 -0
  58. package/lib/components/SvgIcon/icons/DoubleArrowLeft.js +27 -0
  59. package/lib/components/SvgIcon/icons/DoubleArrowRight.d.ts +3 -0
  60. package/lib/components/SvgIcon/icons/DoubleArrowRight.js +26 -0
  61. package/lib/components/Tabs/Tabs.js +1 -1
  62. package/lib/components/Tabs/style/index.d.ts +1 -1
  63. package/lib/components/Tag/Group.d.ts +1 -0
  64. package/lib/components/Tag/Icon.d.ts +1 -0
  65. package/lib/components/Tag/Tag.d.ts +1 -0
  66. package/lib/components/Textarea/Textarea.d.ts +1 -0
  67. package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -0
  68. package/lib/components/ThemeProvider/dark.js +6 -249
  69. package/lib/components/ThemeProvider/designTokens.d.ts +267 -258
  70. package/lib/components/ThemeProvider/designTokens.js +460 -185
  71. package/lib/components/ThemeProvider/designTokensDark.d.ts +267 -0
  72. package/lib/components/ThemeProvider/designTokensDark.js +540 -0
  73. package/lib/components/ThemeProvider/theme.d.ts +1 -1
  74. package/lib/components/ThemeProvider/theme.js +3 -3
  75. package/lib/components/TimePicker/TimePicker.d.ts +1 -1
  76. package/lib/components/TimePicker/TimePicker.js +11 -13
  77. package/lib/components/TimePicker/style/index.d.ts +3 -1
  78. package/lib/components/TimePicker/style/index.js +11 -21
  79. package/lib/hooks/usePopoverConfig.d.ts +4 -4
  80. package/lib/libs/rc-align/index.d.ts +4 -0
  81. package/lib/libs/rc-table/Table.d.ts +5 -0
  82. package/lib/libs/rc-table/TableCell.d.ts +1 -0
  83. package/lib/utils/KeyCode.d.ts +15 -0
  84. package/lib/{interfaces → utils}/KeyCode.js +0 -0
  85. package/package.json +3 -4
  86. package/lib/components/DatePicker/RangePicker.d.ts +0 -17
  87. package/lib/interfaces/KeyCode.d.ts +0 -15
  88. package/lib/style/color.js +0 -23
@@ -1,19 +1,32 @@
1
1
  /// <reference types="react" />
2
+ import { InputProps } from '../../../components/Input';
2
3
  import { Theme, Size } from '../../../style';
3
4
  export declare const prefixCls: string;
4
5
  export declare const dateSeparatorCls: string;
5
6
  export declare const shortcutCls: string;
6
7
  export declare const footerCls: string;
7
- export declare const tipCls: string;
8
8
  export declare const readonlyInputCls: string;
9
+ export declare const tipCls: string;
10
+ export declare const errorTipCls: string;
11
+ export declare const tipIconCls: string;
12
+ export declare const datePickerPopupCls: string;
13
+ export declare const inputMixin: ({ disabled, status, theme: { designTokens: DT } }: any) => import("@emotion/utils").SerializedStyles;
9
14
  export declare const PickerContainer: import("react").ForwardRefExoticComponent<{
10
15
  disabled?: boolean | undefined;
11
16
  isMonth?: boolean | undefined;
12
17
  hasTime?: boolean | undefined;
18
+ status?: InputProps['status'];
13
19
  } & import("react").HTMLAttributes<HTMLDivElement> & {
14
20
  theme?: Theme | undefined;
15
21
  } & import("react").RefAttributes<HTMLDivElement>>;
16
- export declare const SPopup: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & {
22
+ export declare const SPopup: import("react").ForwardRefExoticComponent<{
23
+ endInputHighlight: boolean;
24
+ isMonth?: boolean | undefined;
25
+ hasTime?: boolean | undefined;
26
+ hasPrefix?: boolean | undefined;
27
+ hasSuffix?: boolean | undefined;
28
+ clearable?: boolean | undefined;
29
+ } & import("react").HTMLAttributes<HTMLElement> & {
17
30
  theme?: Theme | undefined;
18
31
  } & import("react").RefAttributes<HTMLElement>>;
19
32
  export declare const SRangeInputWrap: import("react").ForwardRefExoticComponent<{
@@ -34,10 +47,16 @@ export declare const RangeInputWrap: import("react").ForwardRefExoticComponent<{
34
47
  isMonth?: boolean | undefined;
35
48
  hasTime?: boolean | undefined;
36
49
  hasPrefix?: boolean | undefined;
50
+ hasSuffix?: boolean | undefined;
51
+ disabled?: boolean | undefined;
52
+ clearable?: boolean | undefined;
53
+ status?: InputProps['status'];
54
+ isEnd?: boolean | undefined;
37
55
  } & import("react").HTMLAttributes<HTMLElement> & {
38
56
  theme?: Theme | undefined;
39
57
  } & import("react").RefAttributes<HTMLElement>>;
40
58
  export declare const RangeSelect: import("@emotion/styled-base").StyledComponent<import("../../Select/Select").SelectProps & Omit<import("react").HTMLAttributes<HTMLDivElement>, keyof import("../../Select/Select").SelectProps>, Pick<import("../../Select/Select").SelectProps & Omit<import("react").HTMLAttributes<HTMLDivElement>, keyof import("../../Select/Select").SelectProps>, "className" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | keyof import("../../Select/Select").SelectProps>, object>;
41
- export declare const RangeDateSeparator: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & {
42
- theme?: Theme | undefined;
43
- } & import("react").RefAttributes<HTMLElement>>;
59
+ export declare const Arrow: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>, keyof import("react").HTMLAttributes<HTMLSpanElement>>, object>;
60
+ export declare const RangeCalendarWrap: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
61
+ visible: boolean;
62
+ }, object>;