dcp-design-react 1.8.16 → 1.8.17

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.
@@ -9,6 +9,7 @@ export interface TourStepInfo {
9
9
  title: React.ReactNode;
10
10
  description?: React.ReactNode;
11
11
  placement?: PlacementType;
12
+ type?: 'default' | 'primary';
12
13
  trigger?: 'click' | 'focus' | 'hover';
13
14
  delay?: number;
14
15
  helper?: {
@@ -157,4 +157,27 @@
157
157
  top: 50%;
158
158
  transform: translateY(-50%) translateX(100%) rotate(90deg);
159
159
  }
160
+ // =======================================
161
+ &-primary {
162
+ .@{prefix-tour}-inner {
163
+ background-color: @--primary-color;
164
+ .@{prefix-tour}-close {
165
+ color: #fff;
166
+ }
167
+ .@{prefix-tour}-title {
168
+ color: #fff;
169
+ }
170
+ .@{prefix-tour}-indicator {
171
+ &-active {
172
+ background-color: #fff;
173
+ }
174
+ }
175
+ }
176
+ .@{prefix-tour}-arrow {
177
+ &::before,
178
+ &::after {
179
+ background-color: @--primary-color;
180
+ }
181
+ }
182
+ }
160
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcp-design-react",
3
- "version": "1.8.16",
3
+ "version": "1.8.17",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",