@douyinfe/semi-foundation 2.30.0-alpha.1 → 2.30.0-alpha.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.
@@ -145,6 +145,9 @@
145
145
  margin: 0;
146
146
  text-align: right;
147
147
  }
148
+ .semi-timeline-item-alternate.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail, .semi-timeline-item-mode-right.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail, .semi-timeline-item-center.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail, .semi-timeline-item-left.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail {
149
+ border-left: 1px solid var(--semi-color-text-3);
150
+ }
148
151
  .semi-timeline-item-center .semi-timeline-item-content-time {
149
152
  position: absolute;
150
153
  top: -2px;
@@ -235,6 +235,19 @@ $module: #{$prefix}-timeline;
235
235
  }
236
236
  }
237
237
 
238
+ &-alternate,
239
+ &-mode-right,
240
+ &-center,
241
+ &-left {
242
+ &.#{$module}-item {
243
+ &.#{$module}-item-not-last-child {
244
+ & > .#{$module}-item-tail {
245
+ border-left: $width-timeline_tail-border solid $color-timeline_tail-border;
246
+ }
247
+ }
248
+ }
249
+ }
250
+
238
251
  @include item-center;
239
252
 
240
253
  &-mode-right {
@@ -75,6 +75,6 @@ export declare function getValueOrKey(data: any): any;
75
75
  export declare function normalizeValue(value: any, withObject: boolean): any;
76
76
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
77
77
  export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
78
- export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
78
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
79
79
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
80
80
  export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
@@ -18,7 +18,7 @@ declare const strings: {
18
18
  DRAG_AREA_ILLEGAL: string;
19
19
  TRIGGER_AUTO: "auto";
20
20
  TRIGGER_CUSTOM: "custom";
21
- UPLOAD_TRIGGER: ("custom" | "auto")[];
21
+ UPLOAD_TRIGGER: ("auto" | "custom")[];
22
22
  VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
23
23
  PROMPT_POSITION: readonly ["left", "right", "bottom"];
24
24
  };
@@ -145,6 +145,9 @@
145
145
  margin: 0;
146
146
  text-align: right;
147
147
  }
148
+ .semi-timeline-item-alternate.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail, .semi-timeline-item-mode-right.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail, .semi-timeline-item-center.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail, .semi-timeline-item-left.semi-timeline-item.semi-timeline-item-not-last-child > .semi-timeline-item-tail {
149
+ border-left: 1px solid var(--semi-color-text-3);
150
+ }
148
151
  .semi-timeline-item-center .semi-timeline-item-content-time {
149
152
  position: absolute;
150
153
  top: -2px;
@@ -235,6 +235,19 @@ $module: #{$prefix}-timeline;
235
235
  }
236
236
  }
237
237
 
238
+ &-alternate,
239
+ &-mode-right,
240
+ &-center,
241
+ &-left {
242
+ &.#{$module}-item {
243
+ &.#{$module}-item-not-last-child {
244
+ & > .#{$module}-item-tail {
245
+ border-left: $width-timeline_tail-border solid $color-timeline_tail-border;
246
+ }
247
+ }
248
+ }
249
+ }
250
+
238
251
  @include item-center;
239
252
 
240
253
  &-mode-right {
@@ -75,6 +75,6 @@ export declare function getValueOrKey(data: any): any;
75
75
  export declare function normalizeValue(value: any, withObject: boolean): any;
76
76
  export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
77
77
  export declare function calcDisabledKeys(keyEntities: KeyEntities): Set<string>;
78
- export declare function calcDropRelativePosition(event: any, treeNode: any): 0 | 1 | -1;
78
+ export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
79
79
  export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
80
80
  export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
@@ -18,7 +18,7 @@ declare const strings: {
18
18
  DRAG_AREA_ILLEGAL: string;
19
19
  TRIGGER_AUTO: "auto";
20
20
  TRIGGER_CUSTOM: "custom";
21
- UPLOAD_TRIGGER: ("custom" | "auto")[];
21
+ UPLOAD_TRIGGER: ("auto" | "custom")[];
22
22
  VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
23
23
  PROMPT_POSITION: readonly ["left", "right", "bottom"];
24
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.30.0-alpha.1",
3
+ "version": "2.30.0-alpha.2",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
@@ -23,7 +23,7 @@
23
23
  "*.scss",
24
24
  "*.css"
25
25
  ],
26
- "gitHead": "8bb24709d0cd0a406d93f3c61e73774a02ea1af3",
26
+ "gitHead": "22568ce0c431646136c6823016342214cac447ca",
27
27
  "devDependencies": {
28
28
  "@babel/plugin-transform-runtime": "^7.15.8",
29
29
  "@babel/preset-env": "^7.15.8",
@@ -235,6 +235,19 @@ $module: #{$prefix}-timeline;
235
235
  }
236
236
  }
237
237
 
238
+ &-alternate,
239
+ &-mode-right,
240
+ &-center,
241
+ &-left {
242
+ &.#{$module}-item {
243
+ &.#{$module}-item-not-last-child {
244
+ & > .#{$module}-item-tail {
245
+ border-left: $width-timeline_tail-border solid $color-timeline_tail-border;
246
+ }
247
+ }
248
+ }
249
+ }
250
+
238
251
  @include item-center;
239
252
 
240
253
  &-mode-right {