@ringcentral/juno 2.1.1 → 2.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.
Files changed (162) hide show
  1. package/README.md +1 -2
  2. package/components/Animations/Highlight/Highlight.d.ts +2 -2
  3. package/components/Badge/Badge.d.ts +11 -2
  4. package/components/Badge/Badge.js +27 -3
  5. package/components/Badge/styles/BadgeStyle.js +3 -2
  6. package/components/Badge/utils/BadgeUtils.d.ts +7 -0
  7. package/components/Badge/utils/BadgeUtils.js +11 -0
  8. package/components/Badge/utils/index.d.ts +1 -0
  9. package/components/Badge/utils/index.js +1 -0
  10. package/components/Badge/utils/useRoundBadgeOffset.d.ts +7 -0
  11. package/components/Badge/utils/useRoundBadgeOffset.js +25 -0
  12. package/components/Chip/Chip.d.ts +21 -3
  13. package/components/Chip/Chip.js +1 -1
  14. package/components/Downshift/SuggestionList/utils/useSuggestionList.js +1 -2
  15. package/components/Downshift/utils/useDownshift.js +2 -3
  16. package/components/Downshift/utils/useDownshiftTag.js +1 -2
  17. package/components/Forms/Picker/DatePicker/DatePicker.js +10 -11
  18. package/components/Forms/Select/PlainSelect/PlainSelect.js +1 -2
  19. package/components/Table/Table.d.ts +14 -0
  20. package/components/Table/Table.js +17 -0
  21. package/components/Table/TableBody/TableBody.d.ts +8 -0
  22. package/components/Table/TableBody/TableBody.js +14 -0
  23. package/components/Table/TableBody/index.d.ts +1 -0
  24. package/components/Table/TableBody/index.js +4 -0
  25. package/components/Table/TableCell/TableCell.d.ts +27 -0
  26. package/components/Table/TableCell/TableCell.js +39 -0
  27. package/components/Table/TableCell/index.d.ts +1 -0
  28. package/components/Table/TableCell/index.js +4 -0
  29. package/components/Table/TableCell/styles/TableCellStyle.d.ts +3 -0
  30. package/components/Table/TableCell/styles/TableCellStyle.js +16 -0
  31. package/components/Table/TableCell/styles/index.d.ts +1 -0
  32. package/components/Table/TableCell/styles/index.js +4 -0
  33. package/components/Table/TableCell/utils/TableCellUtils.d.ts +1 -0
  34. package/components/Table/TableCell/utils/TableCellUtils.js +4 -0
  35. package/components/Table/TableCell/utils/index.d.ts +1 -0
  36. package/components/Table/TableCell/utils/index.js +4 -0
  37. package/components/Table/TableContainer/TableContainer.d.ts +19 -0
  38. package/components/Table/TableContainer/TableContainer.js +22 -0
  39. package/components/Table/TableContainer/index.d.ts +1 -0
  40. package/components/Table/TableContainer/index.js +4 -0
  41. package/components/Table/TableContainer/styles/TableContainerStyle.d.ts +3 -0
  42. package/components/Table/TableContainer/styles/TableContainerStyle.js +13 -0
  43. package/components/Table/TableContainer/styles/index.d.ts +1 -0
  44. package/components/Table/TableContainer/styles/index.js +4 -0
  45. package/components/Table/TableHead/TableHead.d.ts +8 -0
  46. package/components/Table/TableHead/TableHead.js +14 -0
  47. package/components/Table/TableHead/index.d.ts +1 -0
  48. package/components/Table/TableHead/index.js +4 -0
  49. package/components/Table/TableRow/TableRow.d.ts +15 -0
  50. package/components/Table/TableRow/TableRow.js +20 -0
  51. package/components/Table/TableRow/index.d.ts +1 -0
  52. package/components/Table/TableRow/index.js +4 -0
  53. package/components/Table/TableRow/styles/TableRowStyle.d.ts +3 -0
  54. package/components/Table/TableRow/styles/TableRowStyle.js +9 -0
  55. package/components/Table/TableRow/styles/index.d.ts +1 -0
  56. package/components/Table/TableRow/styles/index.js +4 -0
  57. package/components/Table/TableRow/utils/TableRowUtils.d.ts +1 -0
  58. package/components/Table/TableRow/utils/TableRowUtils.js +4 -0
  59. package/components/Table/TableRow/utils/index.d.ts +1 -0
  60. package/components/Table/TableRow/utils/index.js +4 -0
  61. package/components/Table/context.d.ts +10 -0
  62. package/components/Table/context.js +4 -0
  63. package/components/Table/index.d.ts +8 -0
  64. package/components/Table/index.js +10 -0
  65. package/components/Table/types.d.ts +1 -0
  66. package/components/Table/types.js +2 -0
  67. package/components/Tables/TableHead.d.ts +1 -1
  68. package/components/Tables/TableHead.js +1 -3
  69. package/components/Tables/TableHeadCell.d.ts +1 -1
  70. package/components/Tables/TableHeadCell.js +1 -2
  71. package/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.d.ts +7 -3
  72. package/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.js +4 -4
  73. package/components/Tooltip/utils/useTooltipForceHide.js +24 -10
  74. package/components/index.d.ts +1 -1
  75. package/components/index.js +1 -1
  76. package/es6/README.md +1 -2
  77. package/es6/components/Badge/Badge.js +30 -6
  78. package/es6/components/Badge/styles/BadgeStyle.js +4 -3
  79. package/es6/components/Badge/utils/BadgeUtils.js +11 -0
  80. package/es6/components/Badge/utils/index.js +1 -0
  81. package/es6/components/Badge/utils/useRoundBadgeOffset.js +23 -0
  82. package/es6/components/Chip/Chip.js +2 -2
  83. package/es6/components/Downshift/SuggestionList/utils/useSuggestionList.js +1 -2
  84. package/es6/components/Downshift/utils/useDownshift.js +1 -2
  85. package/es6/components/Downshift/utils/useDownshiftTag.js +1 -2
  86. package/es6/components/Forms/Picker/DatePicker/DatePicker.js +1 -2
  87. package/es6/components/Forms/Select/PlainSelect/PlainSelect.js +1 -2
  88. package/es6/components/Table/Table.js +15 -0
  89. package/es6/components/Table/TableBody/TableBody.js +12 -0
  90. package/es6/components/Table/TableBody/index.js +1 -0
  91. package/es6/components/Table/TableCell/TableCell.js +37 -0
  92. package/es6/components/Table/TableCell/index.js +1 -0
  93. package/es6/components/Table/TableCell/styles/TableCellStyle.js +14 -0
  94. package/es6/components/Table/TableCell/styles/index.js +1 -0
  95. package/es6/components/Table/TableCell/utils/TableCellUtils.js +2 -0
  96. package/es6/components/Table/TableCell/utils/index.js +1 -0
  97. package/es6/components/Table/TableContainer/TableContainer.js +20 -0
  98. package/es6/components/Table/TableContainer/index.js +1 -0
  99. package/es6/components/Table/TableContainer/styles/TableContainerStyle.js +11 -0
  100. package/es6/components/Table/TableContainer/styles/index.js +1 -0
  101. package/es6/components/Table/TableHead/TableHead.js +12 -0
  102. package/es6/components/Table/TableHead/index.js +1 -0
  103. package/es6/components/Table/TableRow/TableRow.js +18 -0
  104. package/es6/components/Table/TableRow/index.js +1 -0
  105. package/es6/components/Table/TableRow/styles/TableRowStyle.js +7 -0
  106. package/es6/components/Table/TableRow/styles/index.js +1 -0
  107. package/es6/components/Table/TableRow/utils/TableRowUtils.js +2 -0
  108. package/es6/components/Table/TableRow/utils/index.js +1 -0
  109. package/es6/components/Table/context.js +2 -0
  110. package/es6/components/Table/index.js +7 -0
  111. package/es6/components/Table/types.js +0 -0
  112. package/es6/components/Tables/TableHead.js +1 -3
  113. package/es6/components/Tables/TableHeadCell.js +2 -3
  114. package/es6/components/Tabs/Tabs/MoreMenuTab/MoreMenuTab.js +5 -5
  115. package/es6/components/Tooltip/utils/useTooltipForceHide.js +25 -11
  116. package/es6/components/index.js +1 -1
  117. package/es6/foundation/hooks/index.js +2 -0
  118. package/es6/foundation/hooks/useControlled/index.js +1 -0
  119. package/es6/foundation/hooks/useControlled/useControlled.js +1 -0
  120. package/es6/foundation/hooks/useEventListener/useEventListener.js +8 -6
  121. package/es6/foundation/hooks/useGlobalListener/index.js +1 -0
  122. package/es6/foundation/hooks/useGlobalListener/useGlobalListener.js +130 -0
  123. package/es6/foundation/hooks/useHiddenTabindex/useHiddenTabindex.js +4 -3
  124. package/es6/foundation/hooks/useLongPress/useLongPress.js +2 -3
  125. package/es6/foundation/hooks/useOverflow/useOverflow.js +18 -15
  126. package/es6/foundation/hooks/useResizeObserver/useResizeObserver.js +4 -4
  127. package/es6/foundation/hooks/useTouchMouseEvent/useTouchMouseEvent.js +8 -5
  128. package/es6/foundation/utils/getRefElement.js +13 -0
  129. package/es6/foundation/utils/index.js +1 -0
  130. package/es6/foundation/utils/removeClassName.js +4 -3
  131. package/es6/foundation/utils/selectionHandler.js +7 -6
  132. package/foundation/hooks/index.d.ts +2 -0
  133. package/foundation/hooks/index.js +2 -0
  134. package/foundation/hooks/useControlled/index.d.ts +1 -0
  135. package/foundation/hooks/useControlled/index.js +4 -0
  136. package/foundation/hooks/useControlled/useControlled.d.ts +1 -0
  137. package/foundation/hooks/useControlled/useControlled.js +4 -0
  138. package/foundation/hooks/useEventListener/useEventListener.d.ts +2 -2
  139. package/foundation/hooks/useEventListener/useEventListener.js +8 -6
  140. package/foundation/hooks/useGlobalListener/index.d.ts +1 -0
  141. package/foundation/hooks/useGlobalListener/index.js +4 -0
  142. package/foundation/hooks/useGlobalListener/useGlobalListener.d.ts +108 -0
  143. package/foundation/hooks/useGlobalListener/useGlobalListener.js +133 -0
  144. package/foundation/hooks/useHiddenTabindex/useHiddenTabindex.d.ts +2 -2
  145. package/foundation/hooks/useHiddenTabindex/useHiddenTabindex.js +4 -3
  146. package/foundation/hooks/useLongPress/useLongPress.js +1 -2
  147. package/foundation/hooks/useOverflow/useOverflow.d.ts +2 -3
  148. package/foundation/hooks/useOverflow/useOverflow.js +18 -15
  149. package/foundation/hooks/useResizeObserver/useResizeObserver.d.ts +2 -3
  150. package/foundation/hooks/useResizeObserver/useResizeObserver.js +3 -3
  151. package/foundation/hooks/useTouchMouseEvent/useTouchMouseEvent.d.ts +5 -1
  152. package/foundation/hooks/useTouchMouseEvent/useTouchMouseEvent.js +8 -5
  153. package/foundation/theme/theme.type.d.ts +6 -3
  154. package/foundation/utils/getRefElement.d.ts +6 -0
  155. package/foundation/utils/getRefElement.js +15 -0
  156. package/foundation/utils/index.d.ts +1 -0
  157. package/foundation/utils/index.js +1 -0
  158. package/foundation/utils/removeClassName.d.ts +3 -3
  159. package/foundation/utils/removeClassName.js +4 -3
  160. package/foundation/utils/selectionHandler.d.ts +3 -3
  161. package/foundation/utils/selectionHandler.js +7 -6
  162. package/package.json +5 -5
@@ -0,0 +1,15 @@
1
+ import React, { ComponentProps } from 'react';
2
+ import MuiTableRow, { TableRowClassKey } from '@material-ui/core/TableRow';
3
+ import { RcBaseProps } from '../../../foundation';
4
+ declare type RcTableRowProps = {
5
+ /**
6
+ * `hover` and `selected` styles will be useless when it is `true`
7
+ * @default false
8
+ */
9
+ disabled?: boolean;
10
+ classes?: Partial<Record<TableRowClassKey | 'disabled', string>>;
11
+ } & RcBaseProps<ComponentProps<typeof MuiTableRow>, 'classes'>;
12
+ declare const RcTableRow: import("styled-components").StyledComponentClass<Pick<RcTableRowProps, "key" | "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "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" | "onChange" | "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" | "slot" | "title" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "innerRef" | "disabled" | "selected" | "hover"> & React.RefAttributes<any>, import("../../../foundation").RcTheme, Pick<Pick<RcTableRowProps, "key" | "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "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" | "onChange" | "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" | "slot" | "title" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "innerRef" | "disabled" | "selected" | "hover"> & React.RefAttributes<any>, "ref" | "key" | "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "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" | "onChange" | "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" | "slot" | "title" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "innerRef" | "disabled" | "selected" | "hover"> & {
13
+ theme?: import("../../../foundation").RcTheme | undefined;
14
+ }>;
15
+ export { RcTableRow, RcTableRowProps };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var react_1 = tslib_1.__importStar(require("react"));
5
+ var TableRow_1 = tslib_1.__importDefault(require("@material-ui/core/TableRow"));
6
+ var foundation_1 = require("../../../foundation");
7
+ var styles_1 = require("./styles");
8
+ var utils_1 = require("./utils");
9
+ var clsx_1 = tslib_1.__importDefault(require("clsx"));
10
+ var _RcTableRow = react_1.forwardRef(function (props, ref) {
11
+ var _a;
12
+ var _b = foundation_1.useThemeProps({ props: props, name: 'RcTableRow' }), className = _b.className, classesProp = _b.classes, children = _b.children, disabled = _b.disabled, rest = tslib_1.__rest(_b, ["className", "classes", "children", "disabled"]);
13
+ var classes = react_1.useMemo(function () { return foundation_1.combineClasses(utils_1.RcTableRowClasses, classesProp); }, [classesProp]);
14
+ return (react_1.default.createElement(TableRow_1.default, tslib_1.__assign({}, rest, { ref: ref, classes: classes, className: clsx_1.default(className, (_a = {}, _a[utils_1.RcTableRowClasses.disabled] = disabled, _a)) }), children));
15
+ });
16
+ var RcTableRow = foundation_1.styled(_RcTableRow)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), styles_1.TableRowStyle);
17
+ exports.RcTableRow = RcTableRow;
18
+ RcTableRow.defaultProps = {};
19
+ RcTableRow.displayName = 'RcTableRow';
20
+ var templateObject_1;
@@ -0,0 +1 @@
1
+ export * from './TableRow';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./TableRow"), exports);
@@ -0,0 +1,3 @@
1
+ import { RcThemedStyled } from '../../../../foundation';
2
+ import { RcTableRowProps } from '../TableRow';
3
+ export declare const TableRowStyle: RcThemedStyled<RcTableRowProps, any>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var foundation_1 = require("../../../../foundation");
5
+ var utils_1 = require("../utils");
6
+ exports.TableRowStyle = function () {
7
+ return foundation_1.css(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", " {\n &.", ", &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &,\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &.", ", &.", ", &:hover {\n background-color: unset;\n }\n }\n "], ["\n ", " {\n &.", ", &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &,\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", " {\n &.", ", &.", ", &:hover {\n background-color: unset;\n }\n }\n "])), foundation_1.nonTouchHoverMedia, utils_1.RcTableRowClasses.hover, foundation_1.setOpacity(foundation_1.palette2('action', 'grayLight'), '08'), utils_1.RcTableRowClasses.selected, foundation_1.setOpacity(foundation_1.palette2('interactive', 'f01'), '08'), utils_1.RcTableRowClasses.disabled, utils_1.RcTableRowClasses.selected, utils_1.RcTableRowClasses.hover);
8
+ };
9
+ var templateObject_1;
@@ -0,0 +1 @@
1
+ export * from './TableRowStyle';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./TableRowStyle"), exports);
@@ -0,0 +1 @@
1
+ export declare const RcTableRowClasses: Partial<import("../../../../foundation").UnitMap<"footer" | "head" | "root" | "disabled" | "selected" | "hover", any>>;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var foundation_1 = require("../../../../foundation");
4
+ exports.RcTableRowClasses = foundation_1.RcClasses(['selected', 'hover', 'disabled'], 'RcTableRow');
@@ -0,0 +1 @@
1
+ export * from './TableRowUtils';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./TableRowUtils"), exports);
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="styled-jsx" />
3
+ import { RcTableSize } from './types';
4
+ export declare type TableContextProps = {
5
+ /**
6
+ * Allows TableCells to inherit size of the Table.
7
+ */
8
+ size?: RcTableSize;
9
+ };
10
+ export declare const RcTableContext: import("react").Context<TableContextProps>;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_1 = require("react");
4
+ exports.RcTableContext = react_1.createContext({});
@@ -0,0 +1,8 @@
1
+ export * from './Table';
2
+ export * from './TableBody';
3
+ export * from './TableCell';
4
+ export * from './TableContainer';
5
+ export * from './TableHead';
6
+ export * from './TableRow';
7
+ export * from './context';
8
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Table"), exports);
5
+ tslib_1.__exportStar(require("./TableBody"), exports);
6
+ tslib_1.__exportStar(require("./TableCell"), exports);
7
+ tslib_1.__exportStar(require("./TableContainer"), exports);
8
+ tslib_1.__exportStar(require("./TableHead"), exports);
9
+ tslib_1.__exportStar(require("./TableRow"), exports);
10
+ tslib_1.__exportStar(require("./context"), exports);
@@ -0,0 +1 @@
1
+ export declare type RcTableSize = 'large' | 'medium' | 'small' | 'auto';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { TableHeadProps } from './types';
3
- declare const RcTableHeadView: (inProps: TableHeadProps) => JSX.Element;
3
+ declare const RcTableHeadView: (props: TableHeadProps) => JSX.Element;
4
4
  export { RcTableHeadView };
@@ -2,12 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
4
  var react_1 = tslib_1.__importDefault(require("react"));
5
- var foundation_1 = require("../../foundation");
6
5
  var styled_1 = require("./styled");
7
6
  var TableHeadCell_1 = require("./TableHeadCell");
8
7
  var types_1 = require("./types");
9
- var RcTableHeadView = function (inProps) {
10
- var props = foundation_1.useThemeProps({ props: inProps, name: 'RcTableHeadView' });
8
+ var RcTableHeadView = function (props) {
11
9
  var columnData = props.columnData, sortMap = props.sortMap, sortHandler = props.sortHandler;
12
10
  return (react_1.default.createElement("thead", null,
13
11
  react_1.default.createElement(styled_1.StyledTableRow, null, columnData.map(function (column) {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { TableHeadCellProps } from './types';
3
- declare const RcTableHeadCell: (inProps: TableHeadCellProps) => JSX.Element;
3
+ declare const RcTableHeadCell: (props: TableHeadCellProps) => JSX.Element;
4
4
  export { RcTableHeadCell };
@@ -9,8 +9,7 @@ var foundation_1 = require("../../foundation");
9
9
  var Icon_1 = require("../Icon");
10
10
  var styled_1 = require("./styled");
11
11
  var types_1 = require("./types");
12
- var RcTableHeadCell = function (inProps) {
13
- var props = foundation_1.useThemeProps({ props: inProps, name: 'RcTableHeadCell' });
12
+ var RcTableHeadCell = function (props) {
14
13
  var automationID = props.automationID, title = props.title, width = props.width, sortDirection = props.sortDirection, sortKey = props.sortKey, textAlign = props.textAlign;
15
14
  var onClick = function () {
16
15
  var sortHandler = props.sortHandler, sortKey = props.sortKey, sortDirection = props.sortDirection;
@@ -1,11 +1,15 @@
1
- import React from 'react';
1
+ import React, { ComponentType } from 'react';
2
2
  import { RcBaseProps } from '../../../../foundation';
3
- import { RcMenuProps } from '../../../Menu';
3
+ import { RcMenuItemProps, RcMenuProps } from '../../../Menu';
4
4
  import { RcTooltipProps } from '../../../Tooltip';
5
5
  import { RcTabProps } from '../../Tab';
6
6
  declare type MoreMenuTabProps = {
7
7
  menuItems: RcBaseProps<RcTabProps>[];
8
8
  MenuProps?: RcBaseProps<RcMenuProps, 'anchorEl' | 'open' | 'variant'>;
9
+ /**
10
+ * custom MenuItem render component
11
+ */
12
+ MenuItemComponent?: ComponentType<RcMenuItemProps>;
9
13
  TooltipProps?: RcBaseProps<RcTooltipProps, 'children'>;
10
14
  onChange?: (event: React.MouseEvent<HTMLLIElement>, value: any) => void;
11
15
  orientation?: 'horizontal' | 'vertical';
@@ -13,7 +17,7 @@ declare type MoreMenuTabProps = {
13
17
  } & RcBaseProps<RcTabProps, 'onChange'>;
14
18
  declare const DEFAULT_MORE_MENU_TAB_LABEL = "more_menu_tab";
15
19
  /** inner component */
16
- declare const MoreMenuTab: import("styled-components").StyledComponentClass<Pick<MoreMenuTabProps, "key" | "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "direction" | "orientation" | "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" | "onChange" | "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" | "label" | "slot" | "title" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "value" | "innerRef" | "disabled" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "icon" | "disableFocusRipple" | "fullWidth" | "TooltipProps" | "selected" | "MenuProps" | "menuItems" | "MoreIcon"> & React.RefAttributes<any>, import("../../../../foundation").RcTheme, Pick<Pick<MoreMenuTabProps, "key" | "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "direction" | "orientation" | "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" | "onChange" | "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" | "label" | "slot" | "title" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "value" | "innerRef" | "disabled" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "icon" | "disableFocusRipple" | "fullWidth" | "TooltipProps" | "selected" | "MenuProps" | "menuItems" | "MoreIcon"> & React.RefAttributes<any>, "ref" | "key" | "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "direction" | "orientation" | "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" | "onChange" | "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" | "label" | "slot" | "title" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "value" | "innerRef" | "disabled" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "icon" | "disableFocusRipple" | "fullWidth" | "TooltipProps" | "selected" | "MenuProps" | "menuItems" | "MoreIcon"> & {
20
+ declare const MoreMenuTab: import("styled-components").StyledComponentClass<Pick<MoreMenuTabProps, "key" | "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "direction" | "orientation" | "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" | "onChange" | "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" | "label" | "slot" | "title" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "value" | "innerRef" | "disabled" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "icon" | "disableFocusRipple" | "fullWidth" | "TooltipProps" | "selected" | "MenuProps" | "menuItems" | "MenuItemComponent" | "MoreIcon"> & React.RefAttributes<any>, import("../../../../foundation").RcTheme, Pick<Pick<MoreMenuTabProps, "key" | "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "direction" | "orientation" | "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" | "onChange" | "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" | "label" | "slot" | "title" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "value" | "innerRef" | "disabled" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "icon" | "disableFocusRipple" | "fullWidth" | "TooltipProps" | "selected" | "MenuProps" | "menuItems" | "MenuItemComponent" | "MoreIcon"> & React.RefAttributes<any>, "ref" | "key" | "className" | "color" | "id" | "lang" | "style" | "role" | "tabIndex" | "direction" | "orientation" | "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" | "onChange" | "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" | "label" | "slot" | "title" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "size" | "value" | "innerRef" | "disabled" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "icon" | "disableFocusRipple" | "fullWidth" | "TooltipProps" | "selected" | "MenuProps" | "menuItems" | "MenuItemComponent" | "MoreIcon"> & {
17
21
  theme?: import("../../../../foundation").RcTheme | undefined;
18
22
  }>;
19
23
  export { DEFAULT_MORE_MENU_TAB_LABEL, MoreMenuTab };
@@ -14,10 +14,10 @@ var styles_1 = require("./styles");
14
14
  var DEFAULT_MORE_MENU_TAB_LABEL = 'more_menu_tab';
15
15
  exports.DEFAULT_MORE_MENU_TAB_LABEL = DEFAULT_MORE_MENU_TAB_LABEL;
16
16
  var _MoreMenuTab = react_1.forwardRef(function (props, ref) {
17
- var menuItems = props.menuItems, _a = props.MenuProps, MenuProps = _a === void 0 ? {} : _a, TooltipProps = props.TooltipProps, onChange = props.onChange, MoreIconProp = props.MoreIcon, rest = tslib_1.__rest(props, ["menuItems", "MenuProps", "TooltipProps", "onChange", "MoreIcon"]);
17
+ var menuItems = props.menuItems, _a = props.MenuItemComponent, MenuItemComponent = _a === void 0 ? Menu_1.RcMenuItem : _a, _b = props.MenuProps, MenuProps = _b === void 0 ? {} : _b, TooltipProps = props.TooltipProps, onChange = props.onChange, MoreIconProp = props.MoreIcon, rest = tslib_1.__rest(props, ["menuItems", "MenuItemComponent", "MenuProps", "TooltipProps", "onChange", "MoreIcon"]);
18
18
  var menuIdProp = MenuProps.id, onMenuCloseProp = MenuProps.onClose, MenuPropsRest = tslib_1.__rest(MenuProps, ["id", "onClose"]);
19
19
  var menuId = foundation_1.useId(menuIdProp);
20
- var _b = tslib_1.__read(react_1.useState(null), 2), anchorEl = _b[0], setAnchorEl = _b[1];
20
+ var _c = tslib_1.__read(react_1.useState(null), 2), anchorEl = _c[0], setAnchorEl = _c[1];
21
21
  var MoreIcon = react_1.useMemo(function () {
22
22
  var Icon = MoreIconProp || (react_1.default.createElement(Icon_1.RcIcon, { size: "medium", color: "neutral.f04", symbol: juno_icon_1.MoreHoriz }));
23
23
  if (TooltipProps === null || TooltipProps === void 0 ? void 0 : TooltipProps.title) {
@@ -42,11 +42,11 @@ var _MoreMenuTab = react_1.forwardRef(function (props, ref) {
42
42
  onChange === null || onChange === void 0 ? void 0 : onChange(event, value);
43
43
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
44
44
  };
45
- return (react_1.default.createElement(Menu_1.RcMenuItem, { key: utils_1.getKey(menuItemRest.key, idx), disabled: disabled, selected: selected, value: value, onClick: handleClick, "data-test-automation-id": menuItemRest['data-test-automation-id'] },
45
+ return (react_1.default.createElement(MenuItemComponent, { key: utils_1.getKey(menuItemRest.key, idx), disabled: disabled, selected: selected, value: value, onClick: handleClick, "data-test-automation-id": menuItemRest['data-test-automation-id'] },
46
46
  icon ? react_1.default.createElement(List_1.RcListItemIcon, null, icon) : null,
47
47
  react_1.default.createElement(List_1.RcListItemText, { primary: label || value })));
48
48
  });
49
- }, [menuItems, onChange]);
49
+ }, [MenuItemComponent, menuItems, onChange]);
50
50
  return (react_1.default.createElement(react_1.default.Fragment, null,
51
51
  react_1.default.createElement(Tab_1.RcTab, tslib_1.__assign({}, rest, { ref: ref, onClick: handleTabClick, label: MoreIcon, value: DEFAULT_MORE_MENU_TAB_LABEL, "aria-haspopup": "true", "aria-controls": menuId })),
52
52
  react_1.default.createElement(Menu_1.RcMenu, tslib_1.__assign({ autoClose: true }, MenuPropsRest, { id: menuId, anchorEl: anchorEl, open: Boolean(anchorEl), variant: "menu", onClose: handleMenuClose }), MenuList)));
@@ -1,10 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var tslib_1 = require("tslib");
4
+ /* eslint-disable react-hooks/rules-of-hooks */
4
5
  var react_1 = require("react");
5
6
  var foundation_1 = require("../../../foundation");
6
7
  exports.useTooltipForceHide = function (_a) {
7
8
  var tooltipForceHide = _a.tooltipForceHide, openProp = _a.open, onClose = _a.onClose, onOpen = _a.onOpen, ref = _a.ref;
9
+ if (process.env.NODE_ENV !== 'production') {
10
+ foundation_1.useChange(function (prev) {
11
+ // ignore first time
12
+ if (prev !== undefined) {
13
+ foundation_1.logInDev({
14
+ component: 'RcTooltip',
15
+ message: 'Should not change tooltipForceHide between controlled and uncontrolled, tooltipForceHide should always be boolean value',
16
+ level: 'error',
17
+ });
18
+ }
19
+ }, function () { return tooltipForceHide === undefined; });
20
+ }
21
+ // * when not set tooltipForceHide, always return undefined directly, not bind any event addition
22
+ if (tooltipForceHide === undefined)
23
+ return undefined;
8
24
  var _b = tslib_1.__read(foundation_1.useRefState(false), 2), openRef = _b[0], setOpen = _b[1];
9
25
  var isOverRef = react_1.useRef(false);
10
26
  var openState = tooltipForceHide ? false : openProp !== null && openProp !== void 0 ? openProp : openRef.current;
@@ -37,14 +53,12 @@ exports.useTooltipForceHide = function (_a) {
37
53
  setOpen(false);
38
54
  onClose === null || onClose === void 0 ? void 0 : onClose(event);
39
55
  });
40
- return tooltipForceHide !== undefined
41
- ? {
42
- disableFocusListener: tooltipForceHide,
43
- disableHoverListener: tooltipForceHide,
44
- disableTouchListener: tooltipForceHide,
45
- open: openState,
46
- onOpen: handleOpen,
47
- onClose: handleClose,
48
- }
49
- : undefined;
56
+ return {
57
+ disableFocusListener: tooltipForceHide,
58
+ disableHoverListener: tooltipForceHide,
59
+ disableTouchListener: tooltipForceHide,
60
+ open: openState,
61
+ onOpen: handleOpen,
62
+ onClose: handleClose,
63
+ };
50
64
  };
@@ -41,7 +41,7 @@ export * from './Responsive';
41
41
  export * from './Snackbar';
42
42
  export * from './Stepper';
43
43
  export * from './TablePagination';
44
- export * from './Tables';
44
+ export * from './Table';
45
45
  export * from './Tabs';
46
46
  export * from './Tag';
47
47
  export * from './Text';
@@ -44,7 +44,7 @@ tslib_1.__exportStar(require("./Responsive"), exports);
44
44
  tslib_1.__exportStar(require("./Snackbar"), exports);
45
45
  tslib_1.__exportStar(require("./Stepper"), exports);
46
46
  tslib_1.__exportStar(require("./TablePagination"), exports);
47
- tslib_1.__exportStar(require("./Tables"), exports);
47
+ tslib_1.__exportStar(require("./Table"), exports);
48
48
  tslib_1.__exportStar(require("./Tabs"), exports);
49
49
  tslib_1.__exportStar(require("./Tag"), exports);
50
50
  tslib_1.__exportStar(require("./Text"), exports);
package/es6/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Juno
2
2
 
3
3
  [![NPM version](https://img.shields.io/npm/v/@ringcentral/juno/latest.svg)](https://www.npmjs.com/package/@ringcentral/juno)
4
- [![NPM beta version](https://img.shields.io/npm/v/@ringcentral/juno/beta.svg)](https://www.npmjs.com/package/@ringcentral/juno?activeTab=versions)
5
4
 
6
- [![NPM version](https://img.shields.io/npm/v/@ringcentral/juno-icon/beta.svg)](https://www.npmjs.com/package/@ringcentral/juno-icon)
5
+ [![NPM version](https://img.shields.io/npm/v/@ringcentral/juno-icon/latest.svg)](https://www.npmjs.com/package/@ringcentral/juno-icon)
7
6
 
8
7
  Ringcentral React Component library, make your app have the same user experience as Ringcentral Apps.
9
8
 
@@ -1,19 +1,41 @@
1
1
  import { __assign, __makeTemplateObject, __rest } from "tslib";
2
- import React, { forwardRef, useMemo, } from 'react';
2
+ import React, { forwardRef, useMemo, useRef, } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import MuiBadge from '@material-ui/core/Badge';
5
5
  import { capitalize } from '@material-ui/core/utils';
6
- import { combineProps, styled, useThemeProps, } from '../../foundation';
6
+ import { combineProps, logInDev, styled, useChange, useForkRef, useThemeProps, } from '../../foundation';
7
7
  import { RcBox } from '../Box';
8
8
  import { RcPresence } from '../Presence';
9
9
  import { BadgeStyle } from './styles';
10
- import { RcBadgeClasses } from './utils';
10
+ import { RcBadgeClasses, useRoundBadgeOffset } from './utils';
11
11
  var _RcBadge = forwardRef(function (inProps, ref) {
12
12
  var props = useThemeProps({ props: inProps, name: 'RcBadge' });
13
13
  var classesProp = props.classes, children = props.children, overlap = props.overlap, color = props.color, variant = props.variant, textColor = props.textColor, anchorOrigin = props.anchorOrigin, borderColor = props.borderColor, component = props.component, dotComponent = props.dotComponent, dotProps = props.dotProps, rest = __rest(props, ["classes", "children", "overlap", "color", "variant", "textColor", "anchorOrigin", "borderColor", "component", "dotComponent", "dotProps"]);
14
+ // * should never change overlap
15
+ if (process.env.NODE_ENV !== 'production') {
16
+ // eslint-disable-next-line react-hooks/rules-of-hooks
17
+ useChange(function (prev) {
18
+ if (!prev)
19
+ return;
20
+ logInDev({
21
+ component: 'RcBadge',
22
+ message: 'Should not change `overlap` prop after component render',
23
+ level: 'error',
24
+ });
25
+ }, function () { return overlap; });
26
+ }
27
+ var innerRef = useRef(null);
28
+ var badgeRef = useForkRef(innerRef, ref);
29
+ var isRound = overlap === 'round';
30
+ var isDot = variant === 'dot';
31
+ var notPassOverlapToMui = overlap !== 'none' && !isRound;
32
+ // overlap will never change in production mode
33
+ if (isRound) {
34
+ // eslint-disable-next-line react-hooks/rules-of-hooks
35
+ useRoundBadgeOffset(innerRef);
36
+ }
14
37
  var classes = useMemo(function () { return combineProps(RcBadgeClasses, classesProp); }, [classesProp]);
15
38
  var CustomDotBadge = useMemo(function () {
16
- var isDot = variant === 'dot';
17
39
  return isDot
18
40
  ? forwardRef(function (_a, ref) {
19
41
  var OmitChildren = _a.children, rest = __rest(_a, ["children"]);
@@ -27,8 +49,10 @@ var _RcBadge = forwardRef(function (inProps, ref) {
27
49
  React.createElement(DotComponent, __assign({}, applyDotProps))))));
28
50
  })
29
51
  : undefined;
30
- }, [anchorOrigin, children, dotComponent, dotProps, overlap, variant]);
31
- return (React.createElement(MuiBadge, __assign({}, rest, { variant: variant, anchorOrigin: anchorOrigin, component: (component || CustomDotBadge), overlap: overlap !== 'none' ? overlap : undefined, ref: ref, classes: classes }), children));
52
+ }, [isDot, dotProps, overlap, anchorOrigin, children, dotComponent]);
53
+ return (React.createElement(MuiBadge, __assign({}, rest, { variant: variant, anchorOrigin: anchorOrigin, component: (component || CustomDotBadge),
54
+ // TODO: that as any for ts v3.8 still not support pick variable out of if check
55
+ overlap: notPassOverlapToMui ? overlap : undefined, ref: badgeRef, classes: classes }), children));
32
56
  });
33
57
  var RcBadge = styled(_RcBadge)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), BadgeStyle);
34
58
  RcBadge.defaultProps = {
@@ -1,8 +1,9 @@
1
1
  import { __makeTemplateObject } from "tslib";
2
2
  import { css, fakeBorder, getParsePaletteColor, } from '../../../foundation';
3
- import { RcBadgeClasses } from '../utils';
3
+ import { RcBadgeClasses, roundBadgeMarginKey } from '../utils';
4
4
  export var BadgeStyle = function (_a) {
5
5
  var badgeContent = _a.badgeContent, overlap = _a.overlap, variant = _a.variant, textColor = _a.textColor, borderColor = _a.borderColor, max = _a.max, color = _a.color;
6
+ var overlapRound = overlap === 'round';
6
7
  var overlapNone = overlap === 'none';
7
8
  var isStandard = variant !== 'dot';
8
9
  var borderCurrColor = getParsePaletteColor(borderColor, null, false);
@@ -10,10 +11,10 @@ export var BadgeStyle = function (_a) {
10
11
  var manyChar = (['number', 'string'].includes(typeof badgeContent) &&
11
12
  ("" + badgeContent).length !== 1) ||
12
13
  (max && max > 0 && +badgeContent > max);
13
- return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n .", " {\n color: ", ";\n background-color: ", ";\n\n ", ";\n\n ", "\n\n ", "\n }\n "], ["\n .", " {\n color: ", ";\n background-color: ", ";\n\n ",
14
+ return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n .", " {\n margin: ", ";\n color: ", ";\n background-color: ", ";\n\n ", ";\n\n ", "\n\n ", "\n }\n "], ["\n .", " {\n margin: ", ";\n color: ", ";\n background-color: ", ";\n\n ",
14
15
  ";\n\n ",
15
16
  "\n\n ",
16
- "\n }\n "])), RcBadgeClasses.badge, getParsePaletteColor(textColor, null, false), getParsePaletteColor(color, null, false), borderColor && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ",
17
+ "\n }\n "])), RcBadgeClasses.badge, overlapRound && "var(" + roundBadgeMarginKey + ")", getParsePaletteColor(textColor, null, false), getParsePaletteColor(color, null, false), borderColor && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ",
17
18
  "\n "])), isStandard
18
19
  ? fakeBorder({ color: borderCurrColor, radius: 'round' })
19
20
  : css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-color: ", ";\n "], ["\n border-color: ", ";\n "])), borderCurrColor)), isStandard && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 18px;\n min-width: 18px;\n padding: ", ";\n "], ["\n height: 18px;\n min-width: 18px;\n padding: ", ";\n "])), !manyChar && 0), overlapNone && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: unset;\n transform: unset;\n\n &.", " {\n transform: scale(0);\n }\n "], ["\n position: unset;\n transform: unset;\n\n &.", " {\n transform: scale(0);\n }\n "])), RcBadgeClasses.invisible));
@@ -1,2 +1,13 @@
1
1
  import { RcClasses } from '../../../foundation';
2
2
  export var RcBadgeClasses = RcClasses(['badge', 'invisible'], 'RcBadge');
3
+ export var roundBadgeMarginKey = '--badge-round-margin';
4
+ var sqrt2 = Math.sqrt(2);
5
+ var powBy = sqrt2 - 1; // 0.292893218813452
6
+ /**
7
+ * a circle inside square, that diagonal of a square to circle distance to be the round offset.
8
+ * @param x that circle r
9
+ * @returns the distance of that offset
10
+ */
11
+ export var getRoundOffset = function (x) {
12
+ return (x * powBy) / sqrt2;
13
+ };
@@ -1 +1,2 @@
1
1
  export * from './BadgeUtils';
2
+ export * from './useRoundBadgeOffset';