@cregis/ui 1.0.15 → 1.0.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.
@@ -565,7 +565,7 @@ declare type Size = 'large' | 'medium' | 'small' | 'extraSmall';
565
565
 
566
566
  declare type Size_2 = 'large' | 'medium' | 'small' | 'extraSmall';
567
567
 
568
- export declare type SortValue = 'asc' | 'desc' | '';
568
+ export declare type SortValue = 1 | 2 | '';
569
569
 
570
570
  export { StringOrNumber }
571
571
 
@@ -704,29 +704,36 @@ declare type TagType = 'subtle' | 'solid' | 'gray' | 'strokeSubtle' | 'strokeSol
704
704
 
705
705
  export declare const Timeline: DefineComponent<TimelineProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineProps> & Readonly<{}>, {
706
706
  dotSize: number | string;
707
- dotColor: string;
708
- lineColor: string;
707
+ activeColor: string;
709
708
  lineWidth: number | string;
710
709
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
711
710
 
711
+ /** 未激活节点圆点颜色,固定不可自定义 */
712
+ export declare const TIMELINE_INACTIVE_DOT_COLOR = "var(--material-card-deep)";
713
+
712
714
  export declare const TIMELINE_KEY: InjectionKey<TimelineContext>;
713
715
 
716
+ /** 节点连线颜色,固定不可自定义 */
717
+ export declare const TIMELINE_LINE_COLOR = "var(--stroke-outline-subtle)";
718
+
714
719
  export declare interface TimelineContext {
715
720
  dotSize: Ref<number | string>;
716
- dotColor: Ref<string>;
717
- lineColor: Ref<string>;
721
+ activeColor: Ref<string>;
718
722
  lineWidth: Ref<number | string>;
719
723
  }
720
724
 
721
725
  export declare const TimelineItem: DefineComponent<TimelineItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
726
+ active: boolean;
722
727
  contentHoverable: boolean;
723
728
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
724
729
 
725
730
  export declare interface TimelineItemProps {
731
+ /** 是否为激活节点,默认 true */
732
+ active?: boolean;
726
733
  /** 节点圆点直径,可覆盖 Timeline 默认值 */
727
734
  dotSize?: number | string;
728
- /** 节点圆点颜色,可覆盖 Timeline 默认值 */
729
- dotColor?: string;
735
+ /** 激活节点圆点颜色,可覆盖 Timeline 默认值 */
736
+ activeColor?: string;
730
737
  /** 连接线宽度,可覆盖 Timeline 默认值 */
731
738
  lineWidth?: number | string;
732
739
  /** content 区域是否启用 hover 背景,默认 true */
@@ -736,10 +743,8 @@ export declare interface TimelineItemProps {
736
743
  export declare interface TimelineProps {
737
744
  /** 节点圆点直径,默认 8 */
738
745
  dotSize?: number | string;
739
- /** 节点圆点颜色,默认绿色 */
740
- dotColor?: string;
741
- /** 连接线颜色 */
742
- lineColor?: string;
746
+ /** 激活节点圆点颜色,默认 var(--text-brand-primary) */
747
+ activeColor?: string;
743
748
  /** 连接线宽度,默认 2 */
744
749
  lineWidth?: number | string;
745
750
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cregis/ui",
3
3
  "private": false,
4
- "version": "1.0.15",
4
+ "version": "1.0.17",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"