@squirrel-cloud/ui-vue 0.2.4 → 0.2.6

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 (57) hide show
  1. package/dist/components/button/button-group.d.ts +20 -0
  2. package/dist/components/button/index.d.ts +3 -0
  3. package/dist/components/button/injection-keys.d.ts +6 -0
  4. package/dist/components/card/{SqCard.d.ts → card.d.ts} +2 -2
  5. package/dist/components/card/index.d.ts +2 -0
  6. package/dist/components/index.d.ts +8 -9
  7. package/dist/components/input/index.d.ts +2 -0
  8. package/dist/components/input/{SqInput.d.ts → input.d.ts} +2 -2
  9. package/dist/components/popover/index.d.ts +2 -0
  10. package/dist/components/popover/{SqPopover.d.ts → popover.d.ts} +5 -4
  11. package/dist/components/progress/index.d.ts +2 -0
  12. package/dist/components/progress/{SqProgress.d.ts → progress.d.ts} +1 -1
  13. package/dist/components/tag/{SqCheckTag.d.ts → check-tag.d.ts} +2 -1
  14. package/dist/components/tag/index.d.ts +3 -0
  15. package/dist/components/tag/{SqTag.d.ts → tag.d.ts} +1 -1
  16. package/dist/components/text/index.d.ts +2 -0
  17. package/dist/components/timeline/index.d.ts +3 -0
  18. package/dist/components/timeline/timeline-item.d.ts +20 -0
  19. package/dist/components/timeline/timeline.d.ts +20 -0
  20. package/dist/props/button/button-group.d.ts +8 -0
  21. package/dist/props/button/{SqButton.d.ts → button.d.ts} +2 -2
  22. package/dist/props/button/index.d.ts +2 -0
  23. package/dist/props/card/index.d.ts +1 -0
  24. package/dist/props/index.d.ts +8 -9
  25. package/dist/props/input/index.d.ts +1 -0
  26. package/dist/props/input/{SqInput.d.ts → input.d.ts} +2 -2
  27. package/dist/props/popover/index.d.ts +1 -0
  28. package/dist/props/popover/{SqPopover.d.ts → popover.d.ts} +8 -3
  29. package/dist/props/progress/index.d.ts +1 -0
  30. package/dist/props/progress/{SqProgress.d.ts → progress.d.ts} +2 -2
  31. package/dist/props/tag/{SqCheckTag.d.ts → check-tag.d.ts} +5 -0
  32. package/dist/props/tag/index.d.ts +2 -0
  33. package/dist/props/tag/{SqTag.d.ts → tag.d.ts} +3 -3
  34. package/dist/props/text/index.d.ts +1 -0
  35. package/dist/props/text/{SqText.d.ts → text.d.ts} +1 -1
  36. package/dist/props/timeline/index.d.ts +2 -0
  37. package/dist/props/timeline/timeline-item.d.ts +35 -0
  38. package/dist/props/timeline/timeline.d.ts +10 -0
  39. package/dist/squirrel-cloud-ui-vue.js +617 -522
  40. package/dist/squirrel-cloud-ui-vue.umd.cjs +1 -1
  41. package/dist/style.css +1 -1
  42. package/package.json +1 -1
  43. package/typings/Alignment.d.ts +4 -0
  44. package/typings/ButtonGroupContext.d.ts +21 -0
  45. package/typings/ComponentType.d.ts +3 -1
  46. package/typings/ComponentTypeBase.d.ts +4 -0
  47. package/typings/LineType.d.ts +4 -0
  48. package/typings/PopoverPlacement.d.ts +16 -0
  49. package/typings/PopoverTrigger.d.ts +4 -0
  50. package/typings/TagTheme.d.ts +6 -0
  51. package/typings/TagThemeBase.d.ts +4 -0
  52. package/typings/TimelineTheme.d.ts +4 -0
  53. package/typings/index.d.ts +11 -5
  54. package/typings/ComponentTypeExtend.d.ts +0 -6
  55. /package/dist/components/button/{SqButton.d.ts → button.d.ts} +0 -0
  56. /package/dist/components/text/{SqText.d.ts → text.d.ts} +0 -0
  57. /package/dist/props/card/{SqCard.d.ts → card.d.ts} +0 -0
@@ -0,0 +1,20 @@
1
+ import { ButtonGroupProps } from '../../props';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
12
+ size: import('../..').ComponentSize;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,3 @@
1
+ import { default as SqButton } from './button';
2
+ import { default as SqButtonGroup } from './button-group';
3
+ export { SqButton, SqButtonGroup };
@@ -0,0 +1,6 @@
1
+ import { Ref, InjectionKey } from 'vue';
2
+ import { ButtonGroupContext } from '../../../typings';
3
+ /**
4
+ * 按钮组注入键
5
+ */
6
+ export declare const ButtonGroupContextKeys: InjectionKey<Ref<ButtonGroupContext>>;
@@ -7,12 +7,12 @@ declare function __VLS_template(): {
7
7
  footer?(_: {}): any;
8
8
  };
9
9
  refs: {};
10
- rootEl: HTMLDivElement;
10
+ rootEl: HTMLElement;
11
11
  };
12
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
13
  declare const __VLS_component: import('vue').DefineComponent<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
14
14
  decorative: boolean;
15
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
16
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
17
  export default _default;
18
18
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,2 @@
1
+ import { default as SqCard } from './card';
2
+ export { SqCard };
@@ -1,9 +1,8 @@
1
- import { default as SqButton } from './button/SqButton';
2
- import { default as SqCard } from './card/SqCard';
3
- import { default as SqInput } from './input/SqInput';
4
- import { default as SqPopover } from './popover/SqPopover';
5
- import { default as SqProgress } from './progress/SqProgress';
6
- import { default as SqTag } from './tag/SqTag';
7
- import { default as SqCheckTag } from './tag/SqCheckTag';
8
- import { default as SqText } from './text/SqText';
9
- export { SqButton, SqCard, SqInput, SqPopover, SqProgress, SqTag, SqCheckTag, SqText, };
1
+ export { SqButton, SqButtonGroup } from './button';
2
+ export { SqCard } from './card';
3
+ export { SqInput } from './input';
4
+ export { SqPopover } from './popover';
5
+ export { SqProgress } from './progress';
6
+ export { SqTag, SqCheckTag } from './tag';
7
+ export { SqText } from './text';
8
+ export { SqTimeline, SqTimelineItem } from './timeline';
@@ -0,0 +1,2 @@
1
+ import { default as SqInput } from './input';
2
+ export { SqInput };
@@ -15,7 +15,7 @@ declare function __VLS_template(): {
15
15
  refs: {
16
16
  inputRef: HTMLInputElement;
17
17
  };
18
- rootEl: HTMLElement;
18
+ rootEl: HTMLDivElement;
19
19
  };
20
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
21
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
@@ -37,7 +37,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
37
37
  size: import('../..').ComponentSize;
38
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
39
39
  inputRef: HTMLInputElement;
40
- }, HTMLElement>;
40
+ }, HTMLDivElement>;
41
41
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
42
  export default _default;
43
43
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,2 @@
1
+ import { default as SqPopover } from './popover';
2
+ export { SqPopover };
@@ -1,5 +1,5 @@
1
- import { PopperProps } from '../../props';
2
- type __VLS_Props = PopperProps;
1
+ import { PopoverProps } from '../../props';
2
+ type __VLS_Props = PopoverProps;
3
3
  type __VLS_PublicProps = {
4
4
  'visible'?: boolean;
5
5
  } & __VLS_Props;
@@ -21,10 +21,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
21
21
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
22
22
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
23
23
  }>, {
24
- placement: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
24
+ transition: string;
25
+ placement: import('../..').PopoverPlacement;
25
26
  offset: number;
26
27
  teleported: boolean;
27
- trigger: "hover" | "click" | "manual";
28
+ trigger: import('../..').PopoverTrigger;
28
29
  showAfter: number;
29
30
  hideAfter: number;
30
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -0,0 +1,2 @@
1
+ import { default as SqProgress } from './progress';
2
+ export { SqProgress };
@@ -1,6 +1,6 @@
1
1
  import { ProgressProps } from '../../props';
2
2
  declare const _default: import('vue').DefineComponent<ProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
3
- type: import('../..').ComponentTypeExtend;
3
+ type: import('../..').ComponentType;
4
4
  min: number;
5
5
  max: number;
6
6
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -13,8 +13,9 @@ declare const __VLS_component: import('vue').DefineComponent<CheckTagProps, {},
13
13
  }, string, import('vue').PublicProps, Readonly<CheckTagProps> & Readonly<{
14
14
  onChange?: ((...args: any[]) => any) | undefined;
15
15
  }>, {
16
- type: import('../..').ComponentTypeExtend;
17
16
  size: import('../..').ComponentSize;
17
+ type: import('../..').ComponentType;
18
+ theme: import('../..').TagThemeBase;
18
19
  checked: boolean;
19
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
20
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -0,0 +1,3 @@
1
+ import { default as SqTag } from './tag';
2
+ import { default as SqCheckTag } from './check-tag';
3
+ export { SqTag, SqCheckTag };
@@ -9,8 +9,8 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<TagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TagProps> & Readonly<{}>, {
12
- theme: "solid" | "tint" | "materialize";
13
12
  size: import('../..').ComponentSize;
13
+ theme: import('../..').TagTheme;
14
14
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
15
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
16
  export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as SqText } from './text';
2
+ export { SqText };
@@ -0,0 +1,3 @@
1
+ import { default as SqTimeline } from './timeline';
2
+ import { default as SqTimelineItem } from './timeline-item';
3
+ export { SqTimeline, SqTimelineItem };
@@ -0,0 +1,20 @@
1
+ import { TimelineItemProps } from '../../props';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<TimelineItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
12
+ theme: import('../..').TimelineTheme;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,20 @@
1
+ import { TimelineProps } from '../../props';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<TimelineProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TimelineProps> & Readonly<{}>, {
12
+ align: import('../..').Alignment;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,8 @@
1
+ import { ButtonProps } from './button';
2
+ type PickKeys = 'size' | 'type' | 'round';
3
+ /**
4
+ * 按钮组属性
5
+ */
6
+ export interface ButtonGroupProps extends Pick<ButtonProps, PickKeys> {
7
+ }
8
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ComponentSize, ComponentTypeExtend } from '../../../typings';
2
+ import { ComponentSize, ComponentType } from '../../../typings';
3
3
  /**
4
4
  * 按钮属性
5
5
  */
@@ -7,7 +7,7 @@ export interface ButtonProps {
7
7
  /**
8
8
  * 按钮类型
9
9
  */
10
- type?: ComponentTypeExtend;
10
+ type?: ComponentType;
11
11
  /**
12
12
  * 是否圆角按钮
13
13
  */
@@ -0,0 +1,2 @@
1
+ export type { ButtonProps } from './button';
2
+ export type { ButtonGroupProps } from './button-group';
@@ -0,0 +1 @@
1
+ export type { CardProps } from './card';
@@ -1,9 +1,8 @@
1
- import { ButtonProps } from './button/SqButton';
2
- import { CardProps } from './card/SqCard';
3
- import { InputProps } from './input/SqInput';
4
- import { PopperProps } from './popover/SqPopover';
5
- import { ProgressProps } from './progress/SqProgress';
6
- import { TagProps } from './tag/SqTag';
7
- import { CheckTagProps } from './tag/SqCheckTag';
8
- import { TextProps } from './text/SqText';
9
- export type { ButtonProps, CardProps, InputProps, PopperProps, ProgressProps, TagProps, CheckTagProps, TextProps, };
1
+ export type { ButtonProps, ButtonGroupProps } from './button';
2
+ export type { CardProps } from './card';
3
+ export type { InputProps } from './input/input';
4
+ export type { PopoverProps } from './popover';
5
+ export type { ProgressProps } from './progress';
6
+ export type { TagProps, CheckTagProps } from './tag';
7
+ export type { TextProps } from './text';
8
+ export type { TimelineProps, TimelineItemProps } from './timeline';
@@ -0,0 +1 @@
1
+ export type { InputProps } from './input';
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ComponentSize, ComponentType } from '../../../typings';
2
+ import { ComponentSize, ComponentTypeBase } from '../../../typings';
3
3
  /**
4
4
  * 输入框属性
5
5
  */
@@ -7,7 +7,7 @@ export interface InputProps {
7
7
  /**
8
8
  * 输入框状态
9
9
  */
10
- status?: ComponentType;
10
+ status?: ComponentTypeBase;
11
11
  /**
12
12
  * 是否圆角输入框
13
13
  */
@@ -0,0 +1 @@
1
+ export type { PopoverProps } from './popover';
@@ -1,11 +1,12 @@
1
+ import { PopoverTrigger, PopoverPlacement } from '../../../typings';
1
2
  /**
2
3
  * 气泡框属性
3
4
  */
4
- export interface PopperProps {
5
+ export interface PopoverProps {
5
6
  /**
6
7
  * 气泡框位置
7
8
  */
8
- placement?: 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
9
+ placement?: PopoverPlacement;
9
10
  /**
10
11
  * 气泡框间距
11
12
  */
@@ -17,7 +18,7 @@ export interface PopperProps {
17
18
  /**
18
19
  * 触发方式
19
20
  */
20
- trigger?: 'hover' | 'click' | 'manual';
21
+ trigger?: PopoverTrigger;
21
22
  /**
22
23
  * 显示时间延迟
23
24
  */
@@ -30,6 +31,10 @@ export interface PopperProps {
30
31
  * 是否禁用
31
32
  */
32
33
  disabled?: boolean;
34
+ /**
35
+ * 过渡动画
36
+ */
37
+ transition?: string;
33
38
  /**
34
39
  * 气泡框类名
35
40
  */
@@ -0,0 +1 @@
1
+ export type { ProgressProps } from './progress';
@@ -1,4 +1,4 @@
1
- import { ComponentTypeExtend } from '../../../typings';
1
+ import { ComponentType } from '../../../typings';
2
2
  /**
3
3
  * 进度条属性
4
4
  */
@@ -22,5 +22,5 @@ export interface ProgressProps {
22
22
  /**
23
23
  * 类型
24
24
  */
25
- type?: ComponentTypeExtend;
25
+ type?: ComponentType;
26
26
  }
@@ -1,4 +1,5 @@
1
1
  import { TagProps } from '../';
2
+ import { TagThemeBase } from '../../../typings';
2
3
  /**
3
4
  * 可选中标签属性
4
5
  */
@@ -7,4 +8,8 @@ export interface CheckTagProps extends Omit<TagProps, 'theme'> {
7
8
  * 是否选中状态
8
9
  */
9
10
  checked?: boolean;
11
+ /**
12
+ * 可选中标签主题
13
+ */
14
+ theme?: TagThemeBase;
10
15
  }
@@ -0,0 +1,2 @@
1
+ export type { TagProps } from './tag';
2
+ export type { CheckTagProps } from './check-tag';
@@ -1,4 +1,4 @@
1
- import { ComponentSize, ComponentTypeExtend } from '../../../typings';
1
+ import { TagTheme, ComponentSize, ComponentType } from '../../../typings';
2
2
  /**
3
3
  * 标签属性
4
4
  */
@@ -6,11 +6,11 @@ export interface TagProps {
6
6
  /**
7
7
  * 标签类型
8
8
  */
9
- type?: ComponentTypeExtend;
9
+ type?: ComponentType;
10
10
  /**
11
11
  * 标签主题
12
12
  */
13
- theme?: 'solid' | 'tint' | 'materialize';
13
+ theme?: TagTheme;
14
14
  /**
15
15
  * 是否圆角标签
16
16
  */
@@ -0,0 +1 @@
1
+ export type { TextProps } from './text';
@@ -8,7 +8,7 @@ export interface TextProps {
8
8
  */
9
9
  rowNum?: number;
10
10
  /**
11
- * 是否省略
11
+ * 移除是否省略
12
12
  */
13
13
  ellipsis?: boolean;
14
14
  /**
@@ -0,0 +1,2 @@
1
+ export type { TimelineProps } from './timeline';
2
+ export type { TimelineItemProps } from './timeline-item';
@@ -0,0 +1,35 @@
1
+ import { Component } from 'vue';
2
+ import { ComponentType, TimelineTheme } from '../../../typings';
3
+ /**
4
+ * 时间线项目属性
5
+ */
6
+ export interface TimelineItemProps {
7
+ /**
8
+ * 节点颜色
9
+ */
10
+ color?: string;
11
+ /**
12
+ * 节点类型
13
+ */
14
+ type?: ComponentType;
15
+ /**
16
+ * 节点图标
17
+ */
18
+ icon?: Component;
19
+ /**
20
+ * 是否空心
21
+ */
22
+ hollow?: boolean;
23
+ /**
24
+ * 时间戳
25
+ */
26
+ timestamp?: string;
27
+ /**
28
+ * 时间线主题
29
+ */
30
+ theme?: TimelineTheme;
31
+ /**
32
+ * 标题
33
+ */
34
+ title?: string;
35
+ }
@@ -0,0 +1,10 @@
1
+ import { Alignment } from '../../../typings';
2
+ /**
3
+ * 时间线属性
4
+ */
5
+ export interface TimelineProps {
6
+ /**
7
+ * 对齐方式
8
+ */
9
+ align?: Alignment;
10
+ }