dcp-design-react 1.11.9 → 1.11.10

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 (39) hide show
  1. package/lib/_utils/motion.d.ts +7 -0
  2. package/lib/collapse/style/index.less +24 -24
  3. package/lib/collapse/style/motion.less +11 -0
  4. package/lib/color-picker/index.d.ts +3 -0
  5. package/lib/color-picker/src/color-picker.d.ts +26 -0
  6. package/lib/color-picker/style/index.less +117 -0
  7. package/lib/guide-tracker/src/guideTracker.d.ts +1 -1
  8. package/lib/index.d.ts +4 -0
  9. package/lib/index.esm.js +1 -1
  10. package/lib/index.full.js +1 -1
  11. package/lib/index.js +1 -1
  12. package/lib/locale/lang/en.d.ts +1 -0
  13. package/lib/locale/lang/en.js +6 -5
  14. package/lib/locale/lang/zh-cn.d.ts +1 -0
  15. package/lib/locale/lang/zh-cn.js +6 -5
  16. package/lib/pivot-grid/src/grid-layout/Context.d.ts +3 -0
  17. package/lib/pivot-grid/src/hooks/use-export.d.ts +11 -0
  18. package/lib/pivot-grid/src/main/Context.d.ts +20 -2
  19. package/lib/pivot-grid/src/main/Main.d.ts +3 -0
  20. package/lib/pivot-grid/src/main/types.d.ts +19 -3
  21. package/lib/pivot-grid/src/top-bar/AlertInfo.d.ts +3 -0
  22. package/lib/pivot-grid/src/top-bar/ConfigInfo.d.ts +3 -0
  23. package/lib/pivot-grid/src/top-bar/FillColor.d.ts +3 -0
  24. package/lib/pivot-grid/src/utils/index.d.ts +3 -6
  25. package/lib/pivot-grid/style/grid-layout.less +2 -2
  26. package/lib/pivot-grid/style/main.less +33 -43
  27. package/lib/pivot-grid/style/top-bar.less +45 -1
  28. package/lib/style/index.css +174 -34
  29. package/lib/style/index.less +44 -43
  30. package/lib/style/index.min.css +1 -1
  31. package/lib/tour/src/Tour.d.ts +1 -1
  32. package/lib/tour/src/TourStep/index.d.ts +1 -1
  33. package/lib/tour/src/util.d.ts +1 -1
  34. package/lib/virtual-list/style/index.less +2 -1
  35. package/package.json +2 -1
  36. package/lib/collapse/src/_util/motion.less +0 -13
  37. package/lib/collapse/src/_util/motionUtil.d.ts +0 -3
  38. /package/lib/{tour/src → _utils}/placements.d.ts +0 -0
  39. /package/lib/pivot-grid/src/top-bar/{exportPanel.d.ts → ExportPanel.d.ts} +0 -0
@@ -0,0 +1,7 @@
1
+ import type { CSSMotionProps } from 'rc-motion';
2
+ declare const initCollapseMotion: (rootCls?: string) => CSSMotionProps;
3
+ declare const _SelectPlacements: readonly ["bottomLeft", "bottomRight", "topLeft", "topRight"];
4
+ export type SelectCommonPlacement = (typeof _SelectPlacements)[number];
5
+ declare const getTransitionName: (rootPrefixCls: string, motion: string, transitionName?: string) => string;
6
+ export { getTransitionName };
7
+ export default initCollapseMotion;
@@ -1,24 +1,24 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-06-01 20:04:55
6
- */
7
- @import '../../style/common';
8
- @import '../src/_util/motion.less';
9
-
10
- @prefix-collapse: ~'@{qm-prefix}-collapse';
11
-
12
- .@{prefix-collapse} {
13
- &-content {
14
- padding: 0 2px;
15
- overflow: hidden;
16
- background-color: #fff;
17
- & > &-box {
18
- margin-top: 8px;
19
- }
20
- &-hidden {
21
- display: none;
22
- }
23
- }
24
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-12-26 14:20:20
6
+ */
7
+ @import '../../style/common';
8
+ @import './motion';
9
+
10
+ @prefix-collapse: ~'@{qm-prefix}-collapse';
11
+
12
+ .@{prefix-collapse} {
13
+ &-content {
14
+ padding: 0 2px;
15
+ overflow: hidden;
16
+ background-color: #fff;
17
+ & > &-box {
18
+ margin-top: 8px;
19
+ }
20
+ &-hidden {
21
+ display: none;
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,11 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2022-06-01 20:17:51
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-12-26 14:19:50
6
+ */
7
+ @prefixCls: ~'@{qm-prefix}-motion-collapse';
8
+
9
+ .@{prefixCls} {
10
+ transition: height 0.3s, opacity 0.3s;
11
+ }
@@ -0,0 +1,3 @@
1
+ import ColorPicker from './src/color-picker';
2
+ export type { ColorPickerProps } from './src/color-picker';
3
+ export default ColorPicker;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { type HsbaColorType } from '@rc-component/color-picker';
3
+ type ColorValue = {
4
+ hex: string;
5
+ rgb: string;
6
+ hsb: string;
7
+ };
8
+ type IProps = {
9
+ value?: string;
10
+ defaultValue?: string;
11
+ disabled?: boolean;
12
+ disabledAlpha?: boolean;
13
+ className?: string;
14
+ style?: React.CSSProperties;
15
+ onChange?: (value: ColorValue, type?: {
16
+ type?: HsbaColorType;
17
+ value?: number;
18
+ }) => void;
19
+ onChangeComplete?: (value: ColorValue, type?: {
20
+ type?: HsbaColorType;
21
+ value?: number;
22
+ }) => void;
23
+ };
24
+ export type ColorPickerProps = IProps;
25
+ declare const ColorPicker: React.FC<IProps>;
26
+ export default ColorPicker;
@@ -0,0 +1,117 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2024-12-02 09:06:20
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-12-26 19:26:20
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-color-picker: ~'@{qm-prefix}-color-picker';
10
+
11
+ .@{prefix-color-picker} {
12
+ position: absolute;
13
+ z-index: 9999;
14
+ display: block;
15
+ width: max-content;
16
+ min-width: 258px;
17
+ visibility: visible;
18
+ &-btn {
19
+ display: inline-flex;
20
+ padding: 3px;
21
+ border: 1px solid @--border-color-base;
22
+ border-radius: 6px;
23
+ cursor: pointer;
24
+ transition: border-color .3s ease;
25
+ &:hover {
26
+ border-color: @--primary-color;
27
+ }
28
+ }
29
+ &-hidden {
30
+ display: none;
31
+ }
32
+ &-panel {
33
+ display: flex;
34
+ flex-direction: column;
35
+ width: 258px;
36
+ padding: 12px;
37
+ background-color: #fff;
38
+ border-radius: 8px;
39
+ box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12),0px 6px 16px 0px rgba(0, 0, 0, 0.08),0px 9px 28px 8px rgba(0, 0, 0, 0.05);
40
+ &-disabled {
41
+ cursor: not-allowed;
42
+ }
43
+ }
44
+ &-select {
45
+ .@{prefix-color-picker}-palette {
46
+ min-height: 160px;
47
+ overflow: hidden;
48
+ border-radius: 4px;
49
+ & > .@{prefix-color-picker}-gradient {
50
+ border-top-left-radius: 5px;
51
+ }
52
+ }
53
+ margin-bottom: 12px;
54
+ }
55
+
56
+ &-saturation {
57
+ position: absolute;
58
+ border-radius: inherit;
59
+ inset: 0px;
60
+ }
61
+
62
+ &-handler {
63
+ width: 16px;
64
+ height: 16px;
65
+ border: 2px solid #fff;
66
+ border-radius: 50%;
67
+ box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.06);
68
+ }
69
+ &-handler-sm {
70
+ width: 12px;
71
+ height: 12px;
72
+ }
73
+
74
+ &-slider {
75
+ width: 100%;
76
+ margin-bottom: 12px;
77
+ .@{prefix-color-picker}-palette {
78
+ height: 8px;
79
+ }
80
+ .@{prefix-color-picker}-gradient {
81
+ border-radius: 4px;
82
+ }
83
+ &-alpha {
84
+ background: url('./alpha.svg');
85
+ }
86
+ }
87
+
88
+ &-color-block {
89
+ position: relative;
90
+ width: 24px;
91
+ height: 24px;
92
+ overflow: hidden;
93
+ background-image: url('./alpha.svg');
94
+ border-radius: 4px;
95
+ &-inner {
96
+ width: 100%;
97
+ height: 100%;
98
+ border: 1px solid rgba(0, 0, 0, 0.06);
99
+ border-radius: 4px;
100
+ }
101
+ }
102
+
103
+ &-slider-container {
104
+ display: flex;
105
+ .@{prefix-color-picker}-slider-group {
106
+ flex: 1;
107
+ margin-right: 8px;
108
+ &-disabled-alpha {
109
+ display: flex;
110
+ align-items: center;
111
+ .@{prefix-color-picker}-slider{
112
+ margin-bottom: 0;
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { PlacementType } from '../../tour/src/placements';
2
+ import type { PlacementType } from '../../_utils/placements';
3
3
  type StepProps = {
4
4
  id: string;
5
5
  selector: string;
package/lib/index.d.ts CHANGED
@@ -70,6 +70,8 @@ export type { PivotGridRef as QmPivotGridRef, PivotGridProps as QmPivotGridProps
70
70
  export { default as QmPivotGrid } from './pivot-grid';
71
71
  export type { VirtualListRef as QmVirtualListRef, VirtualListProps as QmVirtualListProps } from './virtual-list';
72
72
  export { default as QmVirtualList } from './virtual-list';
73
+ export type { ColorPickerProps as QmColorPickerProps } from './color-picker';
74
+ export { default as QmColorPicker } from './color-picker';
73
75
  export type { ConfigProviderProps as DcpConfigProviderProps } from './config-provider';
74
76
  export { default as DcpConfigProvider } from './config-provider';
75
77
  export type { ButtonProps as DcpButtonProps } from './button';
@@ -142,6 +144,8 @@ export type { PivotGridRef as DcpPivotGridRef, PivotGridProps as DcpPivotGridPro
142
144
  export { default as DcpPivotGrid } from './pivot-grid';
143
145
  export type { VirtualListRef as DcpVirtualListRef, VirtualListProps as DcpVirtualListProps } from './virtual-list';
144
146
  export { default as DcpVirtualList } from './virtual-list';
147
+ export type { ColorPickerProps as DcpColorPickerProps } from './color-picker';
148
+ export { default as DcpColorPicker } from './color-picker';
145
149
  export { default as pinyin } from './pinyin';
146
150
  export { default as version } from './version';
147
151
  export * from './antd';