@qn-pandora/pandora-component 5.1.0 → 5.1.2

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 (280) hide show
  1. package/README.md +36 -36
  2. package/es/components/AutoComplete/index.js +2 -2
  3. package/es/components/AutoComplete/style.css +127 -39
  4. package/es/components/AutoComplete/style.less +8 -8
  5. package/es/components/Breadcrumb/style.css +13 -3
  6. package/es/components/Breadcrumb/style.less +9 -9
  7. package/es/components/Button/style.css +282 -176
  8. package/es/components/Button/style.less +51 -51
  9. package/es/components/Card/RowExtra/style.css +6 -0
  10. package/es/components/Card/RowExtra/style.less +8 -8
  11. package/es/components/Card/SearchInput/style.less +8 -8
  12. package/es/components/Card/style.css +61 -66
  13. package/es/components/Card/style.less +11 -11
  14. package/es/components/CheckTransformList/style.css +345 -121
  15. package/es/components/CheckTransformList/style.less +35 -35
  16. package/es/components/Checkbox/index.js +9 -1
  17. package/es/components/Checkbox/style.css +5 -0
  18. package/es/components/Checkbox/style.less +5 -5
  19. package/es/components/CheckboxList/style.css +10 -5
  20. package/es/components/CheckboxList/style.less +11 -11
  21. package/es/components/Collapse/style.css +35 -3
  22. package/es/components/Collapse/style.less +58 -58
  23. package/es/components/CollapsiblePanel/style.less +63 -63
  24. package/es/components/DateTimePicker/Base/index.d.ts +3 -0
  25. package/es/components/DateTimePicker/Base/index.js +51 -6
  26. package/es/components/DateTimePicker/Base/style.css +508 -112
  27. package/es/components/DateTimePicker/Base/style.less +167 -160
  28. package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  29. package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
  30. package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  31. package/es/components/DateTimePicker/DisplayInput/index.js +3 -1
  32. package/es/components/DateTimePicker/DisplayInput/style.css +231 -53
  33. package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
  34. package/es/components/DateTimePicker/constants.d.ts +9 -3
  35. package/es/components/DateTimePicker/constants.js +1 -0
  36. package/es/components/DateTimePicker/index.js +1 -1
  37. package/es/components/DateTimePicker/style.css +77 -46
  38. package/es/components/DateTimePicker/style.less +19 -19
  39. package/es/components/DateTimePicker/time.d.ts +1 -0
  40. package/es/components/DateTimePicker/time.js +1 -0
  41. package/es/components/DateTimePicker/transform.js +4 -2
  42. package/es/components/Descriptions/style.css +77 -46
  43. package/es/components/Descriptions/style.less +16 -16
  44. package/es/components/Drawer/CloseIcon/style.less +8 -8
  45. package/es/components/Drawer/index.d.ts +6 -6
  46. package/es/components/Drawer/index.js +4 -4
  47. package/es/components/Drawer/style.css +244 -169
  48. package/es/components/Drawer/style.less +69 -61
  49. package/es/components/FileResumable/index.js +2 -3
  50. package/es/components/FileResumable/style.css +20 -50
  51. package/es/components/FileResumable/style.less +94 -94
  52. package/es/components/FlameGraph/customTooltip.d.ts +22 -0
  53. package/es/components/FlameGraph/customTooltip.js +91 -0
  54. package/es/components/FlameGraph/index.d.ts +16 -0
  55. package/es/components/FlameGraph/index.js +96 -0
  56. package/es/components/FlameGraph/style.css +8 -0
  57. package/es/components/FlameGraph/style.less +14 -0
  58. package/es/components/Input/index.d.ts +1 -1
  59. package/es/components/Input/style.css +231 -53
  60. package/es/components/Input/style.less +12 -12
  61. package/es/components/KeyValuePair/style.less +25 -25
  62. package/es/components/Menu/Option.d.ts +1 -1
  63. package/es/components/Menu/Option.js +12 -4
  64. package/es/components/Menu/style.css +31 -22
  65. package/es/components/Menu/style.less +18 -18
  66. package/es/components/Modal/style.css +11 -8
  67. package/es/components/Modal/style.less +30 -30
  68. package/es/components/NameExplainTooltip/style.css +1 -1
  69. package/es/components/NameExplainTooltip/style.less +10 -10
  70. package/es/components/NameLimiter/index.js +1 -1
  71. package/es/components/NameLimiter/style.css +83 -55
  72. package/es/components/NameLimiter/style.less +19 -19
  73. package/es/components/OptionList/InlineOptionList/style.css +22 -9
  74. package/es/components/OptionList/InlineOptionList/style.less +16 -16
  75. package/es/components/OptionList/OptionItem/style.css +85 -57
  76. package/es/components/OptionList/OptionItem/style.less +25 -25
  77. package/es/components/OptionList/PopoverOptionList/index.js +1 -1
  78. package/es/components/OptionList/PopoverOptionList/style.css +80 -49
  79. package/es/components/OptionList/PopoverOptionList/style.less +30 -30
  80. package/es/components/OptionList/style.css +187 -115
  81. package/es/components/OptionList/style.less +3 -3
  82. package/es/components/RadioGroup/style.css +51 -40
  83. package/es/components/RadioGroup/style.less +41 -41
  84. package/es/components/RangeInput/style.css +604 -87
  85. package/es/components/RangeInput/style.less +37 -37
  86. package/es/components/RemarkName/style.css +83 -55
  87. package/es/components/RemarkName/style.less +2 -2
  88. package/es/components/Selector/style.css +127 -39
  89. package/es/components/Selector/style.less +99 -99
  90. package/es/components/Spin/style.css +10 -8
  91. package/es/components/Spin/style.less +26 -26
  92. package/es/components/Steps/ControlButton/style.less +5 -5
  93. package/es/components/Steps/style.css +59 -21
  94. package/es/components/Steps/style.less +48 -48
  95. package/es/components/Table/ColumnSetting/index.d.ts +1 -0
  96. package/es/components/Table/ColumnSetting/index.js +19 -14
  97. package/es/components/Table/ColumnSetting/style.css +2 -5
  98. package/es/components/Table/ColumnSetting/style.less +50 -51
  99. package/es/components/Table/ColumnTag/style.css +4 -4
  100. package/es/components/Table/ColumnTag/style.less +40 -40
  101. package/es/components/Table/EmptyText.d.ts +7 -0
  102. package/es/components/Table/EmptyText.js +22 -0
  103. package/es/components/Table/ResizableTitle/style.less +25 -25
  104. package/es/components/Table/index.d.ts +19 -88
  105. package/es/components/Table/index.js +142 -326
  106. package/es/components/Table/style.css +146 -98
  107. package/es/components/Table/style.less +364 -345
  108. package/es/components/Table/type.d.ts +63 -0
  109. package/es/components/Table/type.js +5 -0
  110. package/es/components/Table/util.d.ts +58 -0
  111. package/es/components/Table/util.js +218 -0
  112. package/es/components/Tabs/style.css +127 -78
  113. package/es/components/Tabs/style.less +33 -33
  114. package/es/components/TagList/Tag/style.css +5 -5
  115. package/es/components/TagList/Tag/style.less +72 -72
  116. package/es/components/TagList/TagSwitch/style.css +1 -1
  117. package/es/components/TagList/TagSwitch/style.less +28 -28
  118. package/es/components/TagList/style.css +6 -6
  119. package/es/components/TagList/style.less +28 -28
  120. package/es/components/Timeline/TimelineItem/style.css +1 -1
  121. package/es/components/Timeline/TimelineItem/style.less +49 -49
  122. package/es/components/Timeline/style.less +23 -23
  123. package/es/components/TopologyChart/index.d.ts +7 -0
  124. package/es/components/TopologyChart/index.js +19 -0
  125. package/es/components/TopologyChart/style.css +14 -0
  126. package/es/components/TopologyChart/style.less +14 -0
  127. package/es/components/Transfer/List/style.less +19 -19
  128. package/es/components/Transfer/ListBody/style.less +18 -18
  129. package/es/components/Transfer/style.less +14 -14
  130. package/es/components/TreeSelector/style.css +42 -30
  131. package/es/components/TreeSelector/style.less +56 -56
  132. package/es/constants/language/datetime/en.js +4 -2
  133. package/es/constants/language/datetime/type.d.ts +4 -2
  134. package/es/constants/language/datetime/zh.js +4 -2
  135. package/es/index.css +9067 -7963
  136. package/es/index.d.ts +2 -0
  137. package/es/index.js +2 -0
  138. package/es/index.less +56 -54
  139. package/es/style/mixin.less +45 -45
  140. package/es/style/theme.less +416 -416
  141. package/lib/components/AutoComplete/index.js +2 -2
  142. package/lib/components/AutoComplete/style.css +127 -39
  143. package/lib/components/AutoComplete/style.less +8 -8
  144. package/lib/components/Breadcrumb/style.css +13 -3
  145. package/lib/components/Breadcrumb/style.less +9 -9
  146. package/lib/components/Button/style.css +282 -176
  147. package/lib/components/Button/style.less +51 -51
  148. package/lib/components/Card/RowExtra/style.css +6 -0
  149. package/lib/components/Card/RowExtra/style.less +8 -8
  150. package/lib/components/Card/SearchInput/style.less +8 -8
  151. package/lib/components/Card/style.css +61 -66
  152. package/lib/components/Card/style.less +11 -11
  153. package/lib/components/CheckTransformList/style.css +345 -121
  154. package/lib/components/CheckTransformList/style.less +35 -35
  155. package/lib/components/Checkbox/index.js +9 -1
  156. package/lib/components/Checkbox/style.css +5 -0
  157. package/lib/components/Checkbox/style.less +5 -5
  158. package/lib/components/CheckboxList/style.css +10 -5
  159. package/lib/components/CheckboxList/style.less +11 -11
  160. package/lib/components/Collapse/style.css +35 -3
  161. package/lib/components/Collapse/style.less +58 -58
  162. package/lib/components/CollapsiblePanel/style.less +63 -63
  163. package/lib/components/DateTimePicker/Base/index.d.ts +3 -0
  164. package/lib/components/DateTimePicker/Base/index.js +51 -6
  165. package/lib/components/DateTimePicker/Base/style.css +508 -112
  166. package/lib/components/DateTimePicker/Base/style.less +167 -160
  167. package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  168. package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
  169. package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  170. package/lib/components/DateTimePicker/DisplayInput/index.js +3 -1
  171. package/lib/components/DateTimePicker/DisplayInput/style.css +231 -53
  172. package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
  173. package/lib/components/DateTimePicker/constants.d.ts +9 -3
  174. package/lib/components/DateTimePicker/constants.js +1 -0
  175. package/lib/components/DateTimePicker/index.js +1 -1
  176. package/lib/components/DateTimePicker/style.css +77 -46
  177. package/lib/components/DateTimePicker/style.less +19 -19
  178. package/lib/components/DateTimePicker/time.d.ts +1 -0
  179. package/lib/components/DateTimePicker/time.js +1 -0
  180. package/lib/components/DateTimePicker/transform.js +4 -2
  181. package/lib/components/Descriptions/style.css +77 -46
  182. package/lib/components/Descriptions/style.less +16 -16
  183. package/lib/components/Drawer/CloseIcon/style.less +8 -8
  184. package/lib/components/Drawer/index.d.ts +6 -6
  185. package/lib/components/Drawer/index.js +4 -4
  186. package/lib/components/Drawer/style.css +244 -169
  187. package/lib/components/Drawer/style.less +69 -61
  188. package/lib/components/FileResumable/index.js +2 -3
  189. package/lib/components/FileResumable/style.css +20 -50
  190. package/lib/components/FileResumable/style.less +94 -94
  191. package/lib/components/FlameGraph/customTooltip.d.ts +22 -0
  192. package/lib/components/FlameGraph/customTooltip.js +114 -0
  193. package/lib/components/FlameGraph/index.d.ts +16 -0
  194. package/lib/components/FlameGraph/index.js +117 -0
  195. package/lib/components/FlameGraph/style.css +8 -0
  196. package/lib/components/FlameGraph/style.less +14 -0
  197. package/lib/components/Input/index.d.ts +1 -1
  198. package/lib/components/Input/style.css +231 -53
  199. package/lib/components/Input/style.less +12 -12
  200. package/lib/components/KeyValuePair/style.less +25 -25
  201. package/lib/components/Menu/Option.d.ts +1 -1
  202. package/lib/components/Menu/Option.js +17 -25
  203. package/lib/components/Menu/style.css +31 -22
  204. package/lib/components/Menu/style.less +18 -18
  205. package/lib/components/Modal/style.css +11 -8
  206. package/lib/components/Modal/style.less +30 -30
  207. package/lib/components/NameExplainTooltip/style.css +1 -1
  208. package/lib/components/NameExplainTooltip/style.less +10 -10
  209. package/lib/components/NameLimiter/index.js +1 -1
  210. package/lib/components/NameLimiter/style.css +83 -55
  211. package/lib/components/NameLimiter/style.less +19 -19
  212. package/lib/components/OptionList/InlineOptionList/style.css +22 -9
  213. package/lib/components/OptionList/InlineOptionList/style.less +16 -16
  214. package/lib/components/OptionList/OptionItem/style.css +85 -57
  215. package/lib/components/OptionList/OptionItem/style.less +25 -25
  216. package/lib/components/OptionList/PopoverOptionList/index.js +1 -1
  217. package/lib/components/OptionList/PopoverOptionList/style.css +80 -49
  218. package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
  219. package/lib/components/OptionList/style.css +187 -115
  220. package/lib/components/OptionList/style.less +3 -3
  221. package/lib/components/RadioGroup/style.css +51 -40
  222. package/lib/components/RadioGroup/style.less +41 -41
  223. package/lib/components/RangeInput/style.css +604 -87
  224. package/lib/components/RangeInput/style.less +37 -37
  225. package/lib/components/RemarkName/style.css +83 -55
  226. package/lib/components/RemarkName/style.less +2 -2
  227. package/lib/components/Selector/style.css +127 -39
  228. package/lib/components/Selector/style.less +99 -99
  229. package/lib/components/Spin/style.css +10 -8
  230. package/lib/components/Spin/style.less +26 -26
  231. package/lib/components/Steps/ControlButton/style.less +5 -5
  232. package/lib/components/Steps/style.css +59 -21
  233. package/lib/components/Steps/style.less +48 -48
  234. package/lib/components/Table/ColumnSetting/index.d.ts +1 -0
  235. package/lib/components/Table/ColumnSetting/index.js +19 -14
  236. package/lib/components/Table/ColumnSetting/style.css +2 -5
  237. package/lib/components/Table/ColumnSetting/style.less +50 -51
  238. package/lib/components/Table/ColumnTag/style.css +4 -4
  239. package/lib/components/Table/ColumnTag/style.less +40 -40
  240. package/lib/components/Table/EmptyText.d.ts +7 -0
  241. package/lib/components/Table/EmptyText.js +27 -0
  242. package/lib/components/Table/ResizableTitle/style.less +25 -25
  243. package/lib/components/Table/index.d.ts +19 -88
  244. package/lib/components/Table/index.js +145 -327
  245. package/lib/components/Table/style.css +146 -98
  246. package/lib/components/Table/style.less +364 -345
  247. package/lib/components/Table/type.d.ts +63 -0
  248. package/lib/components/Table/type.js +8 -0
  249. package/lib/components/Table/util.d.ts +58 -0
  250. package/lib/components/Table/util.js +227 -0
  251. package/lib/components/Tabs/style.css +127 -78
  252. package/lib/components/Tabs/style.less +33 -33
  253. package/lib/components/TagList/Tag/style.css +5 -5
  254. package/lib/components/TagList/Tag/style.less +72 -72
  255. package/lib/components/TagList/TagSwitch/style.css +1 -1
  256. package/lib/components/TagList/TagSwitch/style.less +28 -28
  257. package/lib/components/TagList/style.css +6 -6
  258. package/lib/components/TagList/style.less +28 -28
  259. package/lib/components/Timeline/TimelineItem/style.css +1 -1
  260. package/lib/components/Timeline/TimelineItem/style.less +49 -49
  261. package/lib/components/Timeline/style.less +23 -23
  262. package/lib/components/TopologyChart/index.d.ts +7 -0
  263. package/lib/components/TopologyChart/index.js +28 -0
  264. package/lib/components/TopologyChart/style.css +14 -0
  265. package/lib/components/TopologyChart/style.less +14 -0
  266. package/lib/components/Transfer/List/style.less +19 -19
  267. package/lib/components/Transfer/ListBody/style.less +18 -18
  268. package/lib/components/Transfer/style.less +14 -14
  269. package/lib/components/TreeSelector/style.css +42 -30
  270. package/lib/components/TreeSelector/style.less +56 -56
  271. package/lib/constants/language/datetime/en.js +4 -2
  272. package/lib/constants/language/datetime/type.d.ts +4 -2
  273. package/lib/constants/language/datetime/zh.js +4 -2
  274. package/lib/index.css +4782 -3678
  275. package/lib/index.d.ts +2 -0
  276. package/lib/index.js +8 -1
  277. package/lib/index.less +56 -54
  278. package/lib/style/mixin.less +45 -45
  279. package/lib/style/theme.less +416 -416
  280. package/package.json +10 -6
@@ -33,7 +33,7 @@ export declare type IDrawerProps = Overwrite<DrawerProps, {
33
33
  /**
34
34
  * 是否可见
35
35
  */
36
- visible?: boolean;
36
+ open?: boolean;
37
37
  /**
38
38
  * 宽
39
39
  */
@@ -52,7 +52,7 @@ export declare type IDrawerProps = Overwrite<DrawerProps, {
52
52
  zIndex?: number;
53
53
  getContainer?: string | HTMLElement | getContainerFunc | false;
54
54
  onClose?: (e: EventType | null) => void;
55
- afterVisibleChange?: (visible: boolean) => void;
55
+ afterOpenChange?: (open: boolean) => void;
56
56
  /**
57
57
  * 是否允许拖拽
58
58
  */
@@ -126,7 +126,7 @@ declare const _default: (props: {
126
126
  /**
127
127
  * 是否可见
128
128
  */
129
- visible?: boolean | undefined;
129
+ open?: boolean | undefined;
130
130
  /**
131
131
  * 宽
132
132
  */
@@ -145,7 +145,7 @@ declare const _default: (props: {
145
145
  zIndex?: number | undefined;
146
146
  getContainer?: string | false | HTMLElement | getContainerFunc | undefined;
147
147
  onClose?: ((e: React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement | HTMLButtonElement, MouseEvent> | null) => void) | undefined;
148
- afterVisibleChange?: ((visible: boolean) => void) | undefined;
148
+ afterOpenChange?: ((open: boolean) => void) | undefined;
149
149
  /**
150
150
  * 是否允许拖拽
151
151
  */
@@ -153,7 +153,7 @@ declare const _default: (props: {
153
153
  /**
154
154
  * 关闭按钮显示的位置,默认left
155
155
  */
156
- closeIconPlacement?: import("antd/es/collapse/Collapse").ExpandIconPosition;
156
+ closeIconPlacement?: "left" | "right" | undefined;
157
157
  /**
158
158
  * 无遮罩时点击空白处中的哪些元素不关闭
159
159
  */
@@ -164,7 +164,7 @@ declare const _default: (props: {
164
164
  */
165
165
  showFullScreen?: boolean | undefined;
166
166
  onScreenFullChange?: ((showFullScreen: boolean) => void) | undefined;
167
- } & Pick<DrawerProps, "autoFocus" | "style" | "prefixCls" | "footer" | "extra" | "bodyStyle" | "forceRender" | "push" | "keyboard" | "destroyOnClose" | "closeIcon" | "drawerStyle" | "headerStyle" | "contentWrapperStyle" | "handler" | "footerStyle" | "level" | "levelMove"> & {
167
+ } & Pick<DrawerProps, "onClick" | "autoFocus" | "id" | "style" | "children" | "onKeyDown" | "onKeyUp" | "onMouseEnter" | "onMouseLeave" | "onMouseOver" | "prefixCls" | "footer" | "visible" | "afterVisibleChange" | "motion" | "extra" | "bodyStyle" | "forceRender" | "keyboard" | "rootClassName" | "destroyOnClose" | "closeIcon" | "push" | "rootStyle" | "contentWrapperStyle" | "maskClassName" | "maskMotion" | "drawerStyle" | "headerStyle" | "footerStyle"> & {
168
168
  children?: React.ReactNode;
169
169
  } & {
170
170
  bodyStyle?: React.CSSProperties | undefined;
@@ -136,10 +136,10 @@ var Drawer = /** @class */ (function (_super) {
136
136
  };
137
137
  Drawer.prototype.onMouseClick = function (e) {
138
138
  var _a;
139
- var _b = this.props, mask = _b.mask, maskClosable = _b.maskClosable, nonCloseSelector = _b.nonCloseSelector, visible = _b.visible;
139
+ var _b = this.props, mask = _b.mask, maskClosable = _b.maskClosable, nonCloseSelector = _b.nonCloseSelector, open = _b.open;
140
140
  if (this.isResizing)
141
141
  return;
142
- if (mask === false && maskClosable && visible) {
142
+ if (mask === false && maskClosable && open) {
143
143
  var currentEl = e.target;
144
144
  var shouldClose = true;
145
145
  while (currentEl) {
@@ -204,10 +204,10 @@ var Drawer = /** @class */ (function (_super) {
204
204
  };
205
205
  Drawer.prototype.render = function () {
206
206
  var _a;
207
- var _b = this.props, width = _b.width, className = _b.className, children = _b.children, canDrag = _b.canDrag, visible = _b.visible, closable = _b.closable, extra = _b.extra, size = _b.size, onClose = _b.onClose, other = __rest(_b, ["width", "className", "children", "canDrag", "visible", "closable", "extra", "size", "onClose"]);
207
+ var _b = this.props, width = _b.width, className = _b.className, children = _b.children, canDrag = _b.canDrag, open = _b.open, closable = _b.closable, extra = _b.extra, size = _b.size, onClose = _b.onClose, other = __rest(_b, ["width", "className", "children", "canDrag", "open", "closable", "extra", "size", "onClose"]);
208
208
  return (React.createElement(BaseDrawer, __assign({ className: classnames(this.drawerId, SDK_PREFIX + "-drawer", className, (_a = {},
209
209
  _a[SDK_PREFIX + "-drawer-no-mask"] = this.props.mask === false,
210
- _a)), width: this.isFullscreen ? '100%' : this.realWidth || 800, zIndex: 1200, visible: visible, closable: this.closable, extra: this.extra, closeIcon: React.createElement(CloseIcon, { className: SDK_PREFIX + "-drawer-close-icon", onClick: this.handleClose, getPopupContainer: this.getIconPopupContainer }), onClose: this.handleClose }, other),
210
+ _a)), width: this.isFullscreen ? '100%' : this.realWidth || 800, zIndex: 1200, open: open, closable: this.closable, extra: this.extra, closeIcon: React.createElement(CloseIcon, { className: SDK_PREFIX + "-drawer-close-icon", onClick: this.handleClose, getPopupContainer: this.getIconPopupContainer }), onClose: this.handleClose }, other),
211
211
  canDrag && (React.createElement("div", { className: SDK_PREFIX + "-scroll-handler", onMouseDown: this.onMouseDown })),
212
212
  children));
213
213
  };
@@ -4,131 +4,113 @@
4
4
  /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
5
  .ant-drawer {
6
6
  position: fixed;
7
+ top: 0;
8
+ right: 0;
9
+ bottom: 0;
10
+ left: 0;
7
11
  z-index: 1200;
8
- width: 0%;
9
- height: 100%;
10
- -webkit-transition: width 0s ease 0.3s, height 0s ease 0.3s;
11
- transition: width 0s ease 0.3s, height 0s ease 0.3s;
12
+ pointer-events: none;
12
13
  }
13
- .ant-drawer-content-wrapper {
14
+ .ant-drawer-inline {
14
15
  position: absolute;
15
- width: 100%;
16
- height: 100%;
17
- -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
18
- transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
19
- transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
20
- transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
21
16
  }
22
- .ant-drawer .ant-drawer-content {
23
- width: 100%;
24
- height: 100%;
25
- }
26
- .ant-drawer-left,
27
- .ant-drawer-right {
17
+ .ant-drawer-mask {
18
+ position: absolute;
28
19
  top: 0;
29
- width: 0%;
30
- height: 100%;
31
- }
32
- .ant-drawer-left .ant-drawer-content-wrapper,
33
- .ant-drawer-right .ant-drawer-content-wrapper {
34
- height: 100%;
20
+ right: 0;
21
+ bottom: 0;
22
+ left: 0;
23
+ z-index: 1200;
24
+ background: rgba(0, 0, 0, 0.45);
25
+ pointer-events: auto;
35
26
  }
36
- .ant-drawer-left.ant-drawer-open,
37
- .ant-drawer-right.ant-drawer-open {
38
- width: 100%;
39
- -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
40
- transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
41
- transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
42
- transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
27
+ .ant-drawer-content-wrapper {
28
+ position: absolute;
29
+ z-index: 1200;
30
+ -webkit-transition: all 0.3s;
31
+ transition: all 0.3s;
43
32
  }
44
- .ant-drawer-left {
45
- left: 0;
33
+ .ant-drawer-content-wrapper-hidden {
34
+ display: none;
46
35
  }
47
- .ant-drawer-left .ant-drawer-content-wrapper {
36
+ .ant-drawer-left > .ant-drawer-content-wrapper {
37
+ top: 0;
38
+ bottom: 0;
48
39
  left: 0;
49
- }
50
- .ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper {
51
40
  -webkit-box-shadow: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), 12px 0 48px 16px rgba(0, 0, 0, 0.03);
52
41
  box-shadow: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), 12px 0 48px 16px rgba(0, 0, 0, 0.03);
53
42
  }
54
- .ant-drawer-right {
55
- right: 0;
56
- }
57
- .ant-drawer-right .ant-drawer-content-wrapper {
43
+ .ant-drawer-right > .ant-drawer-content-wrapper {
44
+ top: 0;
58
45
  right: 0;
59
- }
60
- .ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper {
46
+ bottom: 0;
61
47
  -webkit-box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03);
62
48
  box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03);
63
49
  }
64
- .ant-drawer-right.ant-drawer-open.no-mask {
65
- right: 1px;
66
- -webkit-transform: translateX(1px);
67
- transform: translateX(1px);
68
- }
69
- .ant-drawer-top,
70
- .ant-drawer-bottom {
71
- left: 0;
72
- width: 100%;
73
- height: 0%;
74
- }
75
- .ant-drawer-top .ant-drawer-content-wrapper,
76
- .ant-drawer-bottom .ant-drawer-content-wrapper {
77
- width: 100%;
78
- }
79
- .ant-drawer-top.ant-drawer-open,
80
- .ant-drawer-bottom.ant-drawer-open {
81
- height: 100%;
82
- -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
83
- transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
84
- transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
85
- transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
86
- }
87
- .ant-drawer-top {
50
+ .ant-drawer-top > .ant-drawer-content-wrapper {
88
51
  top: 0;
89
- }
90
- .ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper {
52
+ right: 0;
53
+ left: 0;
91
54
  -webkit-box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);
92
55
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);
93
56
  }
94
- .ant-drawer-bottom {
95
- bottom: 0;
96
- }
97
- .ant-drawer-bottom .ant-drawer-content-wrapper {
57
+ .ant-drawer-bottom > .ant-drawer-content-wrapper {
58
+ right: 0;
98
59
  bottom: 0;
99
- }
100
- .ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper {
60
+ left: 0;
101
61
  -webkit-box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
102
62
  box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
103
63
  }
104
- .ant-drawer-bottom.ant-drawer-open.no-mask {
105
- bottom: 1px;
106
- -webkit-transform: translateY(1px);
107
- transform: translateY(1px);
108
- }
109
- .ant-drawer.ant-drawer-open .ant-drawer-mask {
64
+ .ant-drawer-content {
65
+ width: 100%;
110
66
  height: 100%;
111
- opacity: 1;
112
- -webkit-transition: none;
113
- transition: none;
114
- -webkit-animation: antdDrawerFadeIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
115
- animation: antdDrawerFadeIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
67
+ overflow: auto;
68
+ background: #ffffff;
116
69
  pointer-events: auto;
117
70
  }
118
- .ant-drawer-title {
119
- margin: 0;
120
- color: #333;
121
- font-weight: 500;
71
+ .ant-drawer-wrapper-body {
72
+ display: -webkit-box;
73
+ display: -ms-flexbox;
74
+ display: flex;
75
+ -webkit-box-orient: vertical;
76
+ -webkit-box-direction: normal;
77
+ -ms-flex-direction: column;
78
+ flex-direction: column;
79
+ width: 100%;
80
+ height: 100%;
81
+ }
82
+ .ant-drawer-header {
83
+ display: -webkit-box;
84
+ display: -ms-flexbox;
85
+ display: flex;
86
+ -webkit-box-flex: 0;
87
+ -ms-flex: 0;
88
+ flex: 0;
89
+ -webkit-box-align: center;
90
+ -ms-flex-align: center;
91
+ align-items: center;
92
+ padding: 16px 24px;
122
93
  font-size: 16px;
123
94
  line-height: 22px;
95
+ border-bottom: 1px solid #e5e5e5;
124
96
  }
125
- .ant-drawer-content {
126
- position: relative;
127
- z-index: 1;
128
- overflow: auto;
129
- background-color: #ffffff;
130
- background-clip: padding-box;
131
- border: 0;
97
+ .ant-drawer-header-title {
98
+ display: -webkit-box;
99
+ display: -ms-flexbox;
100
+ display: flex;
101
+ -webkit-box-flex: 1;
102
+ -ms-flex: 1;
103
+ flex: 1;
104
+ -webkit-box-align: center;
105
+ -ms-flex-align: center;
106
+ align-items: center;
107
+ min-width: 0;
108
+ min-height: 0;
109
+ }
110
+ .ant-drawer-extra {
111
+ -webkit-box-flex: 0;
112
+ -ms-flex: none;
113
+ flex: none;
132
114
  }
133
115
  .ant-drawer-close {
134
116
  display: inline-block;
@@ -154,58 +136,24 @@
154
136
  color: rgba(0, 0, 0, 0.75);
155
137
  text-decoration: none;
156
138
  }
157
- .ant-drawer-header {
158
- position: relative;
159
- display: -webkit-box;
160
- display: -ms-flexbox;
161
- display: flex;
162
- -webkit-box-align: center;
163
- -ms-flex-align: center;
164
- align-items: center;
165
- -webkit-box-pack: justify;
166
- -ms-flex-pack: justify;
167
- justify-content: space-between;
168
- padding: 16px 24px;
169
- color: rgba(0, 0, 0, 0.65);
170
- background: #ffffff;
171
- border-bottom: 1px solid #e5e5e5;
172
- border-radius: 2px 2px 0 0;
173
- }
174
- .ant-drawer-header-title {
175
- display: -webkit-box;
176
- display: -ms-flexbox;
177
- display: flex;
178
- -webkit-box-align: center;
179
- -ms-flex-align: center;
180
- align-items: center;
181
- -webkit-box-pack: justify;
182
- -ms-flex-pack: justify;
183
- justify-content: space-between;
184
- }
185
- .ant-drawer-header-close-only {
186
- padding-bottom: 0;
187
- border: none;
188
- }
189
- .ant-drawer-wrapper-body {
190
- display: -webkit-box;
191
- display: -ms-flexbox;
192
- display: flex;
193
- -webkit-box-orient: vertical;
194
- -webkit-box-direction: normal;
195
- -ms-flex-flow: column nowrap;
196
- flex-flow: column nowrap;
197
- width: 100%;
198
- height: 100%;
139
+ .ant-drawer-title {
140
+ -webkit-box-flex: 1;
141
+ -ms-flex: 1;
142
+ flex: 1;
143
+ margin: 0;
144
+ color: #333;
145
+ font-weight: 500;
146
+ font-size: 16px;
147
+ line-height: 22px;
199
148
  }
200
149
  .ant-drawer-body {
201
150
  -webkit-box-flex: 1;
202
- -ms-flex-positive: 1;
203
- flex-grow: 1;
151
+ -ms-flex: 1;
152
+ flex: 1;
153
+ min-width: 0;
154
+ min-height: 0;
204
155
  padding: 24px;
205
156
  overflow: auto;
206
- font-size: 14px;
207
- line-height: 1.5715;
208
- word-wrap: break-word;
209
157
  }
210
158
  .ant-drawer-footer {
211
159
  -ms-flex-negative: 0;
@@ -213,36 +161,157 @@
213
161
  padding: 10px 16px;
214
162
  border-top: 1px solid #e5e5e5;
215
163
  }
216
- .ant-drawer-mask {
217
- position: absolute;
218
- top: 0;
219
- left: 0;
220
- width: 100%;
221
- height: 0;
222
- background-color: rgba(0, 0, 0, 0.45);
164
+ .panel-motion-enter-start,
165
+ .panel-motion-appear-start,
166
+ .panel-motion-leave-start {
167
+ -webkit-transition: none;
168
+ transition: none;
169
+ }
170
+ .panel-motion-enter-active,
171
+ .panel-motion-appear-active,
172
+ .panel-motion-leave-active {
173
+ -webkit-transition: all 0.3s;
174
+ transition: all 0.3s;
175
+ }
176
+ .ant-drawer-mask-motion-enter-active,
177
+ .ant-drawer-mask-motion-appear-active,
178
+ .ant-drawer-mask-motion-leave-active {
179
+ -webkit-transition: all 0.3s;
180
+ transition: all 0.3s;
181
+ }
182
+ .ant-drawer-mask-motion-enter,
183
+ .ant-drawer-mask-motion-appear {
223
184
  opacity: 0;
224
- -webkit-transition: opacity 0.3s linear, height 0s ease 0.3s;
225
- transition: opacity 0.3s linear, height 0s ease 0.3s;
226
- pointer-events: none;
227
185
  }
228
- .ant-drawer .ant-picker-clear {
229
- background: #ffffff;
186
+ .ant-drawer-mask-motion-enter-active,
187
+ .ant-drawer-mask-motion-appear-active {
188
+ opacity: 1;
189
+ }
190
+ .ant-drawer-mask-motion-leave {
191
+ opacity: 1;
230
192
  }
231
- @-webkit-keyframes antdDrawerFadeIn {
232
- 0% {
233
- opacity: 0;
234
- }
235
- 100% {
236
- opacity: 1;
237
- }
238
- }
239
- @keyframes antdDrawerFadeIn {
240
- 0% {
241
- opacity: 0;
242
- }
243
- 100% {
244
- opacity: 1;
245
- }
193
+ .ant-drawer-mask-motion-leave-active {
194
+ opacity: 0;
195
+ }
196
+ .ant-drawer-panel-motion-left-enter-start,
197
+ .ant-drawer-panel-motion-left-appear-start,
198
+ .ant-drawer-panel-motion-left-leave-start {
199
+ -webkit-transition: none;
200
+ transition: none;
201
+ }
202
+ .ant-drawer-panel-motion-left-enter-active,
203
+ .ant-drawer-panel-motion-left-appear-active,
204
+ .ant-drawer-panel-motion-left-leave-active {
205
+ -webkit-transition: all 0.3s;
206
+ transition: all 0.3s;
207
+ }
208
+ .ant-drawer-panel-motion-left-enter-start,
209
+ .ant-drawer-panel-motion-left-appear-start {
210
+ -webkit-transform: translateX(-100%) !important;
211
+ transform: translateX(-100%) !important;
212
+ }
213
+ .ant-drawer-panel-motion-left-enter-active,
214
+ .ant-drawer-panel-motion-left-appear-active {
215
+ -webkit-transform: translateX(0);
216
+ transform: translateX(0);
217
+ }
218
+ .ant-drawer-panel-motion-left-leave {
219
+ -webkit-transform: translateX(0);
220
+ transform: translateX(0);
221
+ }
222
+ .ant-drawer-panel-motion-left-leave-active {
223
+ -webkit-transform: translateX(-100%);
224
+ transform: translateX(-100%);
225
+ }
226
+ .ant-drawer-panel-motion-right-enter-start,
227
+ .ant-drawer-panel-motion-right-appear-start,
228
+ .ant-drawer-panel-motion-right-leave-start {
229
+ -webkit-transition: none;
230
+ transition: none;
231
+ }
232
+ .ant-drawer-panel-motion-right-enter-active,
233
+ .ant-drawer-panel-motion-right-appear-active,
234
+ .ant-drawer-panel-motion-right-leave-active {
235
+ -webkit-transition: all 0.3s;
236
+ transition: all 0.3s;
237
+ }
238
+ .ant-drawer-panel-motion-right-enter-start,
239
+ .ant-drawer-panel-motion-right-appear-start {
240
+ -webkit-transform: translateX(100%) !important;
241
+ transform: translateX(100%) !important;
242
+ }
243
+ .ant-drawer-panel-motion-right-enter-active,
244
+ .ant-drawer-panel-motion-right-appear-active {
245
+ -webkit-transform: translateX(0);
246
+ transform: translateX(0);
247
+ }
248
+ .ant-drawer-panel-motion-right-leave {
249
+ -webkit-transform: translateX(0);
250
+ transform: translateX(0);
251
+ }
252
+ .ant-drawer-panel-motion-right-leave-active {
253
+ -webkit-transform: translateX(100%);
254
+ transform: translateX(100%);
255
+ }
256
+ .ant-drawer-panel-motion-top-enter-start,
257
+ .ant-drawer-panel-motion-top-appear-start,
258
+ .ant-drawer-panel-motion-top-leave-start {
259
+ -webkit-transition: none;
260
+ transition: none;
261
+ }
262
+ .ant-drawer-panel-motion-top-enter-active,
263
+ .ant-drawer-panel-motion-top-appear-active,
264
+ .ant-drawer-panel-motion-top-leave-active {
265
+ -webkit-transition: all 0.3s;
266
+ transition: all 0.3s;
267
+ }
268
+ .ant-drawer-panel-motion-top-enter-start,
269
+ .ant-drawer-panel-motion-top-appear-start {
270
+ -webkit-transform: translateY(-100%) !important;
271
+ transform: translateY(-100%) !important;
272
+ }
273
+ .ant-drawer-panel-motion-top-enter-active,
274
+ .ant-drawer-panel-motion-top-appear-active {
275
+ -webkit-transform: translateY(0);
276
+ transform: translateY(0);
277
+ }
278
+ .ant-drawer-panel-motion-top-leave {
279
+ -webkit-transform: translateY(0);
280
+ transform: translateY(0);
281
+ }
282
+ .ant-drawer-panel-motion-top-leave-active {
283
+ -webkit-transform: translateY(-100%);
284
+ transform: translateY(-100%);
285
+ }
286
+ .ant-drawer-panel-motion-bottom-enter-start,
287
+ .ant-drawer-panel-motion-bottom-appear-start,
288
+ .ant-drawer-panel-motion-bottom-leave-start {
289
+ -webkit-transition: none;
290
+ transition: none;
291
+ }
292
+ .ant-drawer-panel-motion-bottom-enter-active,
293
+ .ant-drawer-panel-motion-bottom-appear-active,
294
+ .ant-drawer-panel-motion-bottom-leave-active {
295
+ -webkit-transition: all 0.3s;
296
+ transition: all 0.3s;
297
+ }
298
+ .ant-drawer-panel-motion-bottom-enter-start,
299
+ .ant-drawer-panel-motion-bottom-appear-start {
300
+ -webkit-transform: translateY(100%) !important;
301
+ transform: translateY(100%) !important;
302
+ }
303
+ .ant-drawer-panel-motion-bottom-enter-active,
304
+ .ant-drawer-panel-motion-bottom-appear-active {
305
+ -webkit-transform: translateY(0);
306
+ transform: translateY(0);
307
+ }
308
+ .ant-drawer-panel-motion-bottom-leave {
309
+ -webkit-transform: translateY(0);
310
+ transform: translateY(0);
311
+ }
312
+ .ant-drawer-panel-motion-bottom-leave-active {
313
+ -webkit-transform: translateY(100%);
314
+ transform: translateY(100%);
246
315
  }
247
316
  .ant-drawer-rtl {
248
317
  direction: rtl;
@@ -251,6 +320,9 @@
251
320
  margin-right: 0;
252
321
  margin-left: 12px;
253
322
  }
323
+ .pandora-sdk-drawer.pandora-sdk-drawer-no-mask {
324
+ background-color: transparent;
325
+ }
254
326
  .pandora-sdk-drawer .ant-drawer-content-wrapper {
255
327
  width: 50%;
256
328
  min-width: 300px;
@@ -266,6 +338,9 @@
266
338
  .pandora-sdk-drawer .ant-drawer-header-title {
267
339
  overflow: hidden;
268
340
  }
341
+ .pandora-sdk-drawer .ant-drawer-body {
342
+ font-size: 14px;
343
+ }
269
344
  .pandora-sdk-drawer-size-small {
270
345
  max-width: 38%;
271
346
  }