sard-uniapp 1.8.1 → 1.8.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.
Files changed (161) hide show
  1. package/changelog.md +9 -0
  2. package/components/_template/_template.d.ts +7 -22
  3. package/components/accordion/accordion.d.ts +6 -21
  4. package/components/accordion-item/accordion-item.d.ts +6 -21
  5. package/components/action-sheet/action-sheet.d.ts +10 -33
  6. package/components/alert/alert.d.ts +8 -27
  7. package/components/alert/common.d.ts +1 -1
  8. package/components/alert/index.scss +6 -2
  9. package/components/avatar/avatar.d.ts +4 -23
  10. package/components/avatar/common.d.ts +1 -1
  11. package/components/back-top/back-top.d.ts +7 -28
  12. package/components/back-top/usePageBackTop.d.ts +1 -1
  13. package/components/back-top/useScrollViewBackTop.d.ts +1 -1
  14. package/components/badge/badge.d.ts +5 -26
  15. package/components/button/button.d.ts +13 -66
  16. package/components/button/common.d.ts +3 -3
  17. package/components/button/index.scss +3 -2
  18. package/components/calendar/calendar.d.ts +5 -30
  19. package/components/calendar/common.d.ts +1 -1
  20. package/components/calendar-input/calendar-input.d.ts +6 -35
  21. package/components/calendar-input/common.d.ts +1 -1
  22. package/components/calendar-month/calendar-month.d.ts +4 -21
  23. package/components/card/card.d.ts +6 -21
  24. package/components/cascader/cascader.d.ts +8 -27
  25. package/components/cascader-input/cascader-input.d.ts +9 -30
  26. package/components/check-icon/check-icon.d.ts +3 -26
  27. package/components/checkbox/checkbox.d.ts +10 -29
  28. package/components/checkbox/common.d.ts +1 -1
  29. package/components/checkbox-group/checkbox-group.d.ts +11 -32
  30. package/components/checkbox-input/checkbox-input.d.ts +6 -29
  31. package/components/col/col.d.ts +3 -18
  32. package/components/collapse/collapse.d.ts +3 -18
  33. package/components/config/index.d.ts +87 -52
  34. package/components/count-down/count-down.d.ts +9 -32
  35. package/components/count-to/count-to.d.ts +2 -29
  36. package/components/datetime-picker/datetime-picker.d.ts +5 -26
  37. package/components/datetime-picker-input/datetime-picker-input.d.ts +6 -29
  38. package/components/dialog/common.d.ts +1 -1
  39. package/components/dialog/dialog.d.ts +15 -44
  40. package/components/dialog-agent/common.d.ts +1 -1
  41. package/components/dialog-agent/dialog-agent.d.ts +3 -36
  42. package/components/dropdown/common.d.ts +1 -1
  43. package/components/dropdown/dropdown.d.ts +4 -31
  44. package/components/dropdown-item/dropdown-item.d.ts +8 -27
  45. package/components/empty/empty.d.ts +4 -23
  46. package/components/fab/fab.d.ts +6 -33
  47. package/components/floating-bubble/common.d.ts +1 -1
  48. package/components/floating-bubble/floating-bubble.d.ts +9 -32
  49. package/components/form/Validator.d.ts +3 -3
  50. package/components/form/common.d.ts +2 -10
  51. package/components/form/form.d.ts +9 -42
  52. package/components/form-item/form-item.d.ts +6 -27
  53. package/components/grid/common.d.ts +1 -1
  54. package/components/grid/grid.d.ts +5 -26
  55. package/components/grid-item/grid-item.d.ts +6 -21
  56. package/components/icon/icon.d.ts +2 -25
  57. package/components/indexes/indexes.d.ts +7 -22
  58. package/components/indexes-anchor/indexes-anchor.d.ts +3 -18
  59. package/components/indexes-nav/indexes-nav.d.ts +6 -21
  60. package/components/input/common.d.ts +2 -2
  61. package/components/input/input.d.ts +17 -60
  62. package/components/keyboard/common.d.ts +1 -1
  63. package/components/keyboard/keyboard.d.ts +9 -28
  64. package/components/list/common.d.ts +1 -1
  65. package/components/list/list.d.ts +3 -18
  66. package/components/list-item/list-item.d.ts +8 -27
  67. package/components/load-more/load-more.d.ts +8 -27
  68. package/components/loading/common.d.ts +1 -1
  69. package/components/loading/loading.d.ts +5 -28
  70. package/components/locale/index.d.ts +1 -1
  71. package/components/marquee/common.d.ts +1 -1
  72. package/components/marquee/marquee.d.ts +5 -28
  73. package/components/menu/menu.d.ts +5 -26
  74. package/components/menu-item/menu-item.d.ts +4 -21
  75. package/components/navbar/navbar.d.ts +3 -18
  76. package/components/navbar-item/navbar-item.d.ts +6 -21
  77. package/components/notice-bar/common.d.ts +1 -1
  78. package/components/notice-bar/notice-bar.d.ts +9 -34
  79. package/components/notify/common.d.ts +2 -2
  80. package/components/notify/notify.d.ts +8 -35
  81. package/components/notify-agent/common.d.ts +2 -2
  82. package/components/notify-agent/notify-agent.d.ts +3 -32
  83. package/components/overlay/overlay.d.ts +7 -26
  84. package/components/pagination/common.d.ts +1 -1
  85. package/components/pagination/pagination.d.ts +8 -37
  86. package/components/password-input/common.d.ts +1 -1
  87. package/components/password-input/password-input.d.ts +6 -31
  88. package/components/picker/picker.d.ts +5 -28
  89. package/components/picker-input/picker-input.d.ts +6 -31
  90. package/components/popout/common.d.ts +1 -1
  91. package/components/popout/popout.d.ts +15 -44
  92. package/components/popout-input/popout-input.d.ts +6 -23
  93. package/components/popout-input/popout-input.vue +1 -1
  94. package/components/popover/common.d.ts +3 -3
  95. package/components/popover/popover.d.ts +9 -40
  96. package/components/popover-reference/popover-reference.d.ts +6 -21
  97. package/components/popup/common.d.ts +1 -1
  98. package/components/popup/popup.d.ts +11 -50
  99. package/components/progress-bar/progress-bar.d.ts +4 -25
  100. package/components/progress-circle/progress-circle.d.ts +4 -25
  101. package/components/pull-down-refresh/pull-down-refresh.d.ts +10 -39
  102. package/components/qrcode/common.d.ts +2 -2
  103. package/components/qrcode/qrcode.d.ts +3 -38
  104. package/components/radio/common.d.ts +1 -1
  105. package/components/radio/radio.d.ts +6 -21
  106. package/components/radio-group/radio-group.d.ts +9 -30
  107. package/components/radio-input/common.d.ts +1 -1
  108. package/components/radio-input/radio-input.d.ts +6 -31
  109. package/components/rate/rate.d.ts +5 -32
  110. package/components/result/common.d.ts +1 -1
  111. package/components/result/result.d.ts +5 -24
  112. package/components/row/row.d.ts +3 -18
  113. package/components/sard-uniapp/sard-uniapp.d.ts +1 -1
  114. package/components/search/common.d.ts +1 -1
  115. package/components/search/search.d.ts +17 -38
  116. package/components/share-sheet/share-sheet.d.ts +10 -33
  117. package/components/skeleton/skeleton.d.ts +4 -25
  118. package/components/skeleton-avatar/skeleton-avatar.d.ts +1 -18
  119. package/components/skeleton-block/skeleton-block.d.ts +1 -18
  120. package/components/skeleton-paragraph/skeleton-paragraph.d.ts +1 -18
  121. package/components/skeleton-title/skeleton-title.d.ts +1 -18
  122. package/components/slider/slider.d.ts +10 -35
  123. package/components/stepper/common.d.ts +2 -2
  124. package/components/stepper/stepper.d.ts +9 -46
  125. package/components/steps/common.d.ts +1 -1
  126. package/components/steps/steps.d.ts +2 -35
  127. package/components/style/functions.scss +22 -0
  128. package/components/style/mixins/bem.scss +3 -2
  129. package/components/style/variables.scss +6 -6
  130. package/components/swiper-dot/common.d.ts +1 -1
  131. package/components/swiper-dot/swiper-dot.d.ts +3 -30
  132. package/components/switch/switch.d.ts +7 -32
  133. package/components/tab/tab.d.ts +6 -21
  134. package/components/tabbar/tabbar.d.ts +7 -26
  135. package/components/tabbar-item/tabbar-item.d.ts +6 -21
  136. package/components/tabs/common.d.ts +1 -1
  137. package/components/tabs/tabs.d.ts +7 -26
  138. package/components/tag/common.d.ts +2 -2
  139. package/components/tag/index.scss +2 -1
  140. package/components/tag/tag.d.ts +9 -30
  141. package/components/timeline/timeline.d.ts +3 -18
  142. package/components/timeline-item/timeline-item.d.ts +3 -18
  143. package/components/toast/common.d.ts +2 -2
  144. package/components/toast/toast.d.ts +8 -37
  145. package/components/toast-agent/common.d.ts +2 -2
  146. package/components/toast-agent/toast-agent.d.ts +4 -35
  147. package/components/tree/common.d.ts +1 -1
  148. package/components/tree/tree.d.ts +3 -30
  149. package/components/tree-branch/tree-branch.d.ts +1 -18
  150. package/components/tree-node/tree-node.d.ts +1 -18
  151. package/components/upload/common.d.ts +3 -11
  152. package/components/upload/upload.d.ts +9 -42
  153. package/components/upload/upload.vue +0 -1
  154. package/components/upload-preview/upload-preview.d.ts +6 -27
  155. package/components/upload-preview/upload-preview.vue +0 -1
  156. package/package.json +118 -17
  157. package/use/useLuckyGrid.d.ts +1 -1
  158. package/use/useLuckyWheel.d.ts +1 -1
  159. package/use/useTransition.d.ts +2 -2
  160. package/use/useZIndex.d.ts +1 -1
  161. package/utils/utils.js +0 -1
@@ -1,50 +1,29 @@
1
1
  import { type SearchProps, type SearchSlots } from './common';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SearchProps>, {
3
- shape: "square" | "round" | undefined;
4
- focus: boolean;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- "update:model-value": (value: string) => void;
7
- cancel: () => void;
8
- search: (value: string) => void;
9
- click: (event: any) => void;
10
- clear: () => void;
11
- focus: (event: any) => void;
12
- blur: (event: any) => void;
13
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SearchProps>, {
14
- shape: "square" | "round" | undefined;
15
- focus: boolean;
16
- }>>> & {
2
+ declare function __VLS_template(): Readonly<SearchSlots> & SearchSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<SearchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
+ "update:model-value": (value: string) => any;
5
+ click: (event: any) => any;
6
+ blur: (event: any) => any;
7
+ cancel: () => any;
8
+ focus: (event: any) => any;
9
+ search: (value: string) => any;
10
+ clear: () => any;
11
+ }, string, import("vue").PublicProps, Readonly<SearchProps> & Readonly<{
17
12
  "onUpdate:model-value"?: ((value: string) => any) | undefined;
18
- onFocus?: ((event: any) => any) | undefined;
19
- onBlur?: ((event: any) => any) | undefined;
20
13
  onClick?: ((event: any) => any) | undefined;
14
+ onBlur?: ((event: any) => any) | undefined;
21
15
  onCancel?: (() => any) | undefined;
22
- onClear?: (() => any) | undefined;
16
+ onFocus?: ((event: any) => any) | undefined;
23
17
  onSearch?: ((value: string) => any) | undefined;
24
- }, {
25
- shape: "square" | "round";
18
+ onClear?: (() => any) | undefined;
19
+ }>, {
26
20
  focus: boolean;
27
- }, {}>, Readonly<SearchSlots> & SearchSlots>;
21
+ shape: "round" | "square";
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
24
  export default _default;
29
- type __VLS_WithDefaults<P, D> = {
30
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
31
- default: D[K];
32
- }> : P[K];
33
- };
34
- type __VLS_Prettify<T> = {
35
- [K in keyof T]: T[K];
36
- } & {};
37
25
  type __VLS_WithTemplateSlots<T, S> = T & {
38
26
  new (): {
39
27
  $slots: S;
40
28
  };
41
29
  };
42
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
- type __VLS_TypePropsToOption<T> = {
44
- [K in keyof T]-?: {} extends Pick<T, K> ? {
45
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
- } : {
47
- type: import('vue').PropType<T[K]>;
48
- required: true;
49
- };
50
- };
@@ -1,39 +1,16 @@
1
1
  import { type ShareSheetProps, type ShareSheetItem } from './common';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ShareSheetProps>, {
3
- overlayClosable: boolean;
4
- duration: number;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- "update:visible": (visible: boolean) => void;
7
- close: () => void;
8
- cancel: () => void;
9
- select: (item: ShareSheetItem) => void;
10
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ShareSheetProps>, {
11
- overlayClosable: boolean;
12
- duration: number;
13
- }>>> & {
14
- onSelect?: ((item: ShareSheetItem) => any) | undefined;
15
- onClose?: (() => any) | undefined;
2
+ declare const _default: import("vue").DefineComponent<ShareSheetProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ cancel: () => any;
4
+ close: () => any;
5
+ select: (item: ShareSheetItem) => any;
6
+ "update:visible": (visible: boolean) => any;
7
+ }, string, import("vue").PublicProps, Readonly<ShareSheetProps> & Readonly<{
16
8
  onCancel?: (() => any) | undefined;
9
+ onClose?: (() => any) | undefined;
10
+ onSelect?: ((item: ShareSheetItem) => any) | undefined;
17
11
  "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
18
- }, {
12
+ }>, {
19
13
  duration: number;
20
14
  overlayClosable: boolean;
21
- }, {}>;
15
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
16
  export default _default;
23
- type __VLS_WithDefaults<P, D> = {
24
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
- default: D[K];
26
- }> : P[K];
27
- };
28
- type __VLS_Prettify<T> = {
29
- [K in keyof T]: T[K];
30
- } & {};
31
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
- type __VLS_TypePropsToOption<T> = {
33
- [K in keyof T]-?: {} extends Pick<T, K> ? {
34
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
- } : {
36
- type: import('vue').PropType<T[K]>;
37
- required: true;
38
- };
39
- };
@@ -1,34 +1,13 @@
1
1
  import { type SkeletonProps, type SkeletonSlots } from './common';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonProps>, {
3
- rows: number;
4
- loading: boolean;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonProps>, {
6
- rows: number;
7
- loading: boolean;
8
- }>>>, {
2
+ declare function __VLS_template(): Readonly<SkeletonSlots> & SkeletonSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<SkeletonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
9
4
  loading: boolean;
10
5
  rows: number;
11
- }, {}>, Readonly<SkeletonSlots> & SkeletonSlots>;
6
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
12
8
  export default _default;
13
- type __VLS_WithDefaults<P, D> = {
14
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
15
- default: D[K];
16
- }> : P[K];
17
- };
18
- type __VLS_Prettify<T> = {
19
- [K in keyof T]: T[K];
20
- } & {};
21
9
  type __VLS_WithTemplateSlots<T, S> = T & {
22
10
  new (): {
23
11
  $slots: S;
24
12
  };
25
13
  };
26
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
- type __VLS_TypePropsToOption<T> = {
28
- [K in keyof T]-?: {} extends Pick<T, K> ? {
29
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
- } : {
31
- type: import('vue').PropType<T[K]>;
32
- required: true;
33
- };
34
- };
@@ -1,20 +1,3 @@
1
1
  import { type SkeletonAvatarProps } from '../skeleton/common';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonAvatarProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonAvatarProps>, {}>>>, {}, {}>;
2
+ declare const _default: import("vue").DefineComponent<SkeletonAvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonAvatarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  export default _default;
4
- type __VLS_WithDefaults<P, D> = {
5
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
6
- default: D[K];
7
- }> : P[K];
8
- };
9
- type __VLS_Prettify<T> = {
10
- [K in keyof T]: T[K];
11
- } & {};
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToOption<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,20 +1,3 @@
1
1
  import { type SkeletonBlockProps } from '../skeleton/common';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonBlockProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonBlockProps>, {}>>>, {}, {}>;
2
+ declare const _default: import("vue").DefineComponent<SkeletonBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  export default _default;
4
- type __VLS_WithDefaults<P, D> = {
5
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
6
- default: D[K];
7
- }> : P[K];
8
- };
9
- type __VLS_Prettify<T> = {
10
- [K in keyof T]: T[K];
11
- } & {};
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToOption<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,20 +1,3 @@
1
1
  import { type SkeletonParagraphProps } from '../skeleton/common';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonParagraphProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonParagraphProps>, {}>>>, {}, {}>;
2
+ declare const _default: import("vue").DefineComponent<SkeletonParagraphProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonParagraphProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  export default _default;
4
- type __VLS_WithDefaults<P, D> = {
5
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
6
- default: D[K];
7
- }> : P[K];
8
- };
9
- type __VLS_Prettify<T> = {
10
- [K in keyof T]: T[K];
11
- } & {};
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToOption<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,20 +1,3 @@
1
1
  import { type SkeletonTitleProps } from '../skeleton/common';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonTitleProps>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SkeletonTitleProps>, {}>>>, {}, {}>;
2
+ declare const _default: import("vue").DefineComponent<SkeletonTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SkeletonTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
3
  export default _default;
4
- type __VLS_WithDefaults<P, D> = {
5
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
6
- default: D[K];
7
- }> : P[K];
8
- };
9
- type __VLS_Prettify<T> = {
10
- [K in keyof T]: T[K];
11
- } & {};
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToOption<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,50 +1,25 @@
1
1
  import { type SliderProps, type SliderSlots } from './common';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SliderProps>, {
3
- min: number;
4
- max: number;
5
- step: number;
6
- validateEvent: boolean;
7
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- "update:model-value": (value: number | number[]) => void;
9
- change: (value: number | number[]) => void;
10
- "drag-start": (event: TouchEvent) => void;
11
- "drag-end": (event: TouchEvent) => void;
12
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SliderProps>, {
13
- min: number;
14
- max: number;
15
- step: number;
16
- validateEvent: boolean;
17
- }>>> & {
2
+ declare function __VLS_template(): Readonly<SliderSlots> & SliderSlots;
3
+ declare const __VLS_component: import("vue").DefineComponent<SliderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
+ "update:model-value": (value: number | number[]) => any;
5
+ change: (value: number | number[]) => any;
6
+ "drag-start": (event: TouchEvent) => any;
7
+ "drag-end": (event: TouchEvent) => any;
8
+ }, string, import("vue").PublicProps, Readonly<SliderProps> & Readonly<{
18
9
  "onUpdate:model-value"?: ((value: number | number[]) => any) | undefined;
19
10
  onChange?: ((value: number | number[]) => any) | undefined;
20
11
  "onDrag-start"?: ((event: TouchEvent) => any) | undefined;
21
12
  "onDrag-end"?: ((event: TouchEvent) => any) | undefined;
22
- }, {
13
+ }>, {
23
14
  min: number;
24
15
  max: number;
25
16
  validateEvent: boolean;
26
17
  step: number;
27
- }, {}>, Readonly<SliderSlots> & SliderSlots>;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
28
20
  export default _default;
29
- type __VLS_WithDefaults<P, D> = {
30
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
31
- default: D[K];
32
- }> : P[K];
33
- };
34
- type __VLS_Prettify<T> = {
35
- [K in keyof T]: T[K];
36
- } & {};
37
21
  type __VLS_WithTemplateSlots<T, S> = T & {
38
22
  new (): {
39
23
  $slots: S;
40
24
  };
41
25
  };
42
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
- type __VLS_TypePropsToOption<T> = {
44
- [K in keyof T]-?: {} extends Pick<T, K> ? {
45
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
- } : {
47
- type: import('vue').PropType<T[K]>;
48
- required: true;
49
- };
50
- };
@@ -23,12 +23,12 @@ export declare const defaultStepperProps: {
23
23
  min: number;
24
24
  max: number;
25
25
  step: number;
26
- inputType: "number" | "text" | "digit" | undefined;
26
+ inputType: StepperProps["inputType"];
27
27
  press: boolean;
28
28
  pressTime: number;
29
29
  interval: number;
30
30
  validateEvent: boolean;
31
- size: "small" | "medium" | undefined;
31
+ size: StepperProps["size"];
32
32
  };
33
33
  export interface StepperEmits {
34
34
  (e: 'update:model-value', value: number | string | undefined): void;
@@ -1,58 +1,21 @@
1
1
  import { type StepperProps } from './common';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<StepperProps>, {
3
- min: number;
4
- max: number;
5
- step: number;
6
- inputType: "number" | "text" | "digit" | undefined;
7
- press: boolean;
8
- pressTime: number;
9
- interval: number;
10
- validateEvent: boolean;
11
- size: "small" | "medium" | undefined;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- "update:model-value": (value: string | number | undefined) => void;
14
- focus: (event: any) => void;
15
- blur: (event: any) => void;
16
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<StepperProps>, {
17
- min: number;
18
- max: number;
19
- step: number;
20
- inputType: "number" | "text" | "digit" | undefined;
21
- press: boolean;
22
- pressTime: number;
23
- interval: number;
24
- validateEvent: boolean;
25
- size: "small" | "medium" | undefined;
26
- }>>> & {
2
+ declare const _default: import("vue").DefineComponent<StepperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "update:model-value": (value: string | number | undefined) => any;
4
+ blur: (event: any) => any;
5
+ focus: (event: any) => any;
6
+ }, string, import("vue").PublicProps, Readonly<StepperProps> & Readonly<{
27
7
  "onUpdate:model-value"?: ((value: string | number | undefined) => any) | undefined;
28
- onFocus?: ((event: any) => any) | undefined;
29
8
  onBlur?: ((event: any) => any) | undefined;
30
- }, {
9
+ onFocus?: ((event: any) => any) | undefined;
10
+ }>, {
31
11
  min: number;
32
12
  max: number;
33
13
  size: "small" | "medium";
34
- inputType: "number" | "text" | "digit";
14
+ inputType: "number" | "digit" | "text";
35
15
  validateEvent: boolean;
36
16
  step: number;
37
17
  press: boolean;
38
18
  pressTime: number;
39
19
  interval: number;
40
- }, {}>;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
21
  export default _default;
42
- type __VLS_WithDefaults<P, D> = {
43
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
- default: D[K];
45
- }> : P[K];
46
- };
47
- type __VLS_Prettify<T> = {
48
- [K in keyof T]: T[K];
49
- } & {};
50
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
- type __VLS_TypePropsToOption<T> = {
52
- [K in keyof T]-?: {} extends Pick<T, K> ? {
53
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
- } : {
55
- type: import('vue').PropType<T[K]>;
56
- required: true;
57
- };
58
- };
@@ -23,7 +23,7 @@ export interface StepsProps {
23
23
  export declare const defaultStepsProps: {
24
24
  current: number;
25
25
  center: boolean;
26
- direction: "vertical" | "horizontal" | undefined;
26
+ direction: StepsProps["direction"];
27
27
  finishIcon: string;
28
28
  processIcon: string;
29
29
  waitIcon: string;
@@ -1,21 +1,5 @@
1
1
  import { type StepsProps } from './common';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<StepsProps>, {
3
- current: number;
4
- center: boolean;
5
- direction: "vertical" | "horizontal" | undefined;
6
- finishIcon: string;
7
- processIcon: string;
8
- waitIcon: string;
9
- errorIcon: string;
10
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<StepsProps>, {
11
- current: number;
12
- center: boolean;
13
- direction: "vertical" | "horizontal" | undefined;
14
- finishIcon: string;
15
- processIcon: string;
16
- waitIcon: string;
17
- errorIcon: string;
18
- }>>>, {
2
+ declare const _default: import("vue").DefineComponent<StepsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepsProps> & Readonly<{}>, {
19
3
  center: boolean;
20
4
  direction: "vertical" | "horizontal";
21
5
  current: number;
@@ -23,22 +7,5 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
23
7
  processIcon: string;
24
8
  waitIcon: string;
25
9
  errorIcon: string;
26
- }, {}>;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
11
  export default _default;
28
- type __VLS_WithDefaults<P, D> = {
29
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
- default: D[K];
31
- }> : P[K];
32
- };
33
- type __VLS_Prettify<T> = {
34
- [K in keyof T]: T[K];
35
- } & {};
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToOption<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: import('vue').PropType<T[K]>;
42
- required: true;
43
- };
44
- };
@@ -48,3 +48,25 @@
48
48
  }
49
49
  @return $result;
50
50
  }
51
+
52
+ @function str-split($string, $separator) {
53
+ // empty array/list
54
+ $split-arr: ();
55
+ // first index of separator in string
56
+ $index: str-index($string, $separator);
57
+ // loop through string
58
+ @while $index != null {
59
+ // get the substring from the first character to the separator
60
+ $item: str-slice($string, 1, $index - 1);
61
+ // push item to array
62
+ $split-arr: append($split-arr, $item);
63
+ // remove item and separator from string
64
+ $string: str-slice($string, $index + 1);
65
+ // find new index of separator
66
+ $index: str-index($string, $separator);
67
+ }
68
+ // add the remaining string to list (the last item)
69
+ $split-arr: append($split-arr, $string);
70
+
71
+ @return $split-arr;
72
+ }
@@ -3,6 +3,7 @@
3
3
  @use 'sass:selector';
4
4
  @use 'sass:meta';
5
5
  @use '../configuration' as *;
6
+ @use '../functions' as *;
6
7
 
7
8
  $namespace: $sar-namespace !default;
8
9
  $block-separator: $sar-block-separator !default;
@@ -13,10 +14,10 @@ $current-block: '';
13
14
 
14
15
  @function get-selector-last($selector) {
15
16
  $str: $selector + '';
16
- $list: string.split($str, ',');
17
+ $list: str-split($str, ',');
17
18
  $result: ();
18
19
  @each $item in $list {
19
- $sub-list: string.split($item, ' ');
20
+ $sub-list: str-split($item, ' ');
20
21
  $last: list.nth($sub-list, list.length($sub-list));
21
22
  $result: list.append($result, $last, $separator: comma);
22
23
  }
@@ -73,12 +73,12 @@ page {
73
73
  --sar-neutral-rgb: var(--sar-gray-700-rgb);
74
74
 
75
75
  // # 主题色 深文本
76
- --sar-primary-text: #{darken($sar-blue, 20%)};
77
- --sar-secondary-text: #{darken($sar-gray-600, 20%)};
78
- --sar-success-text: #{darken($sar-green, 10%)};
79
- --sar-info-text: #{darken($sar-cyan, 20%)};
80
- --sar-warning-text: #{darken($sar-yellow, 20%)};
81
- --sar-danger-text: #{darken($sar-red, 20%)};
76
+ --sar-primary-text: #{color.scale($sar-blue, $blackness: 20%)};
77
+ --sar-secondary-text: #{color.scale($sar-gray-600, $blackness: 20%)};
78
+ --sar-success-text: #{color.scale($sar-green, $blackness: 10%)};
79
+ --sar-info-text: #{color.scale($sar-cyan, $blackness: 20%)};
80
+ --sar-warning-text: #{color.scale($sar-yellow, $blackness: 20%)};
81
+ --sar-danger-text: #{color.scale($sar-red, $blackness: 20%)};
82
82
 
83
83
  // # 灰度场景色
84
84
  --sar-body-color: var(--sar-gray-900);
@@ -9,7 +9,7 @@ export interface SwiperDotProps {
9
9
  field?: string;
10
10
  }
11
11
  export declare const defaultSwiperDotProps: {
12
- type: "title" | "dot" | "dot-bar" | "index" | "fraction" | undefined;
12
+ type: SwiperDotProps["type"];
13
13
  current: number;
14
14
  total: number;
15
15
  field: string;
@@ -1,35 +1,8 @@
1
1
  import { type SwiperDotProps } from './common';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SwiperDotProps>, {
3
- type: "title" | "dot" | "dot-bar" | "index" | "fraction" | undefined;
4
- current: number;
5
- total: number;
6
- field: string;
7
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SwiperDotProps>, {
8
- type: "title" | "dot" | "dot-bar" | "index" | "fraction" | undefined;
9
- current: number;
10
- total: number;
11
- field: string;
12
- }>>>, {
13
- type: "title" | "dot" | "dot-bar" | "index" | "fraction";
2
+ declare const _default: import("vue").DefineComponent<SwiperDotProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SwiperDotProps> & Readonly<{}>, {
3
+ type: "dot" | "dot-bar" | "index" | "title" | "fraction";
14
4
  total: number;
15
5
  current: number;
16
6
  field: string;
17
- }, {}>;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
8
  export default _default;
19
- type __VLS_WithDefaults<P, D> = {
20
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
21
- default: D[K];
22
- }> : P[K];
23
- };
24
- type __VLS_Prettify<T> = {
25
- [K in keyof T]: T[K];
26
- } & {};
27
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
- type __VLS_TypePropsToOption<T> = {
29
- [K in keyof T]-?: {} extends Pick<T, K> ? {
30
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
31
- } : {
32
- type: import('vue').PropType<T[K]>;
33
- required: true;
34
- };
35
- };
@@ -1,40 +1,15 @@
1
1
  import { type SwitchProps } from './common';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SwitchProps>, {
3
- checkedValue: boolean;
4
- uncheckedValue: boolean;
5
- validateEvent: boolean;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- click: (event: any) => void;
8
- "update:model-value": (value: any) => void;
9
- "update:loading": (loading: boolean) => void;
10
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SwitchProps>, {
11
- checkedValue: boolean;
12
- uncheckedValue: boolean;
13
- validateEvent: boolean;
14
- }>>> & {
2
+ declare const _default: import("vue").DefineComponent<SwitchProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ "update:model-value": (value: any) => any;
4
+ click: (event: any) => any;
5
+ "update:loading": (loading: boolean) => any;
6
+ }, string, import("vue").PublicProps, Readonly<SwitchProps> & Readonly<{
15
7
  "onUpdate:model-value"?: ((value: any) => any) | undefined;
16
8
  onClick?: ((event: any) => any) | undefined;
17
9
  "onUpdate:loading"?: ((loading: boolean) => any) | undefined;
18
- }, {
10
+ }>, {
19
11
  validateEvent: boolean;
20
12
  checkedValue: any;
21
13
  uncheckedValue: any;
22
- }, {}>;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
15
  export default _default;
24
- type __VLS_WithDefaults<P, D> = {
25
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
26
- default: D[K];
27
- }> : P[K];
28
- };
29
- type __VLS_Prettify<T> = {
30
- [K in keyof T]: T[K];
31
- } & {};
32
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
- type __VLS_TypePropsToOption<T> = {
34
- [K in keyof T]-?: {} extends Pick<T, K> ? {
35
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
36
- } : {
37
- type: import('vue').PropType<T[K]>;
38
- required: true;
39
- };
40
- };