yc-design-vue 2.1.9 → 2.2.0

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 (130) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/dist/style.css +1 -1
  3. package/es/Avatar/Avatar.vue.d.ts +1 -1
  4. package/es/Avatar/index.d.ts +3 -3
  5. package/es/Badge/index.d.ts +3 -3
  6. package/es/Badge/index.vue.d.ts +1 -1
  7. package/es/Button/Button.vue.d.ts +2 -2
  8. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  9. package/es/Button/index.d.ts +9 -9
  10. package/es/Card/Card.vue.d.ts +1 -1
  11. package/es/Card/index.d.ts +3 -3
  12. package/es/Cascader/Cascader.vue.d.ts +12 -44
  13. package/es/Cascader/index.d.ts +6 -22
  14. package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
  15. package/es/Dropdown/index.d.ts +3 -3
  16. package/es/Image/ImagePreviewToolbar.vue.js +6 -6
  17. package/es/Input/Input.vue.d.ts +2 -8
  18. package/es/Input/Input.vue.js +24 -46
  19. package/es/Input/InputPassword.vue.d.ts +309 -0
  20. package/es/Input/InputPassword.vue.js +122 -0
  21. package/es/Input/InputPassword.vue2.js +4 -0
  22. package/es/Input/InputSearch.vue.d.ts +310 -0
  23. package/es/Input/InputSearch.vue.js +133 -0
  24. package/es/Input/InputSearch.vue2.js +4 -0
  25. package/es/Input/hooks/useLimitedInput.d.ts +2 -0
  26. package/es/Input/hooks/useLimitedInput.js +2 -0
  27. package/es/Input/index.css +1 -1
  28. package/es/Input/index.d.ts +420 -23
  29. package/es/Input/index.js +11 -3
  30. package/es/Input/type.d.ts +24 -6
  31. package/es/InputNumber/InputNumber.vue.d.ts +12 -44
  32. package/es/InputNumber/index.d.ts +6 -22
  33. package/es/Link/index.d.ts +3 -3
  34. package/es/Link/index.vue.d.ts +1 -1
  35. package/es/Statistic/Statistic.vue.d.ts +1 -1
  36. package/es/Statistic/index.d.ts +3 -3
  37. package/es/Steps/Step.vue.d.ts +1 -1
  38. package/es/Steps/Steps.vue.d.ts +1 -1
  39. package/es/Steps/index.d.ts +6 -6
  40. package/es/Transfer/TransferPanel.vue.js +1 -1
  41. package/es/Typography/TypographyBase.vue.d.ts +12 -44
  42. package/es/Upload/UploadPictureCard.vue2.js +1 -1
  43. package/es/_shared/icons/IconEyeClose.vue.js +32 -1
  44. package/es/_shared/icons/IconEyeClose.vue2.js +1 -32
  45. package/es/_shared/icons/IconEyeOpen.vue.js +29 -1
  46. package/es/_shared/icons/IconEyeOpen.vue2.js +1 -29
  47. package/es/_shared/icons/IconFullScreen.vue.js +1 -28
  48. package/es/_shared/icons/IconFullScreen.vue2.js +28 -1
  49. package/es/_shared/icons/IconOriginSize.vue.js +1 -34
  50. package/es/_shared/icons/IconOriginSize.vue2.js +34 -1
  51. package/es/_shared/icons/IconRotateLeft.vue.js +1 -28
  52. package/es/_shared/icons/IconRotateLeft.vue2.js +28 -1
  53. package/es/_shared/icons/IconRotateRight.vue.js +1 -28
  54. package/es/_shared/icons/IconRotateRight.vue2.js +28 -1
  55. package/es/_shared/icons/IconSearch.vue.js +28 -1
  56. package/es/_shared/icons/IconSearch.vue2.js +1 -28
  57. package/es/_shared/icons/IconZoomIn.vue.js +1 -28
  58. package/es/_shared/icons/IconZoomIn.vue2.js +28 -1
  59. package/es/_shared/icons/IconZoomOut.vue.js +1 -28
  60. package/es/_shared/icons/IconZoomOut.vue2.js +28 -1
  61. package/es/index.d.ts +9 -9
  62. package/es/index.js +4 -0
  63. package/es/style.css +1 -1
  64. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  65. package/lib/Avatar/index.d.ts +3 -3
  66. package/lib/Badge/index.d.ts +3 -3
  67. package/lib/Badge/index.vue.d.ts +1 -1
  68. package/lib/Button/Button.vue.d.ts +2 -2
  69. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  70. package/lib/Button/index.d.ts +9 -9
  71. package/lib/Card/Card.vue.d.ts +1 -1
  72. package/lib/Card/index.d.ts +3 -3
  73. package/lib/Cascader/Cascader.vue.d.ts +12 -44
  74. package/lib/Cascader/index.d.ts +6 -22
  75. package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
  76. package/lib/Dropdown/index.d.ts +3 -3
  77. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  78. package/lib/Input/Input.vue.d.ts +2 -8
  79. package/lib/Input/Input.vue.js +1 -1
  80. package/lib/Input/InputPassword.vue.d.ts +309 -0
  81. package/lib/Input/InputPassword.vue.js +1 -0
  82. package/lib/Input/{InputSuffix.vue3.js → InputPassword.vue2.js} +1 -1
  83. package/lib/Input/InputSearch.vue.d.ts +310 -0
  84. package/lib/Input/InputSearch.vue.js +1 -0
  85. package/lib/Input/InputSearch.vue2.js +1 -0
  86. package/lib/Input/hooks/useLimitedInput.d.ts +2 -0
  87. package/lib/Input/hooks/useLimitedInput.js +1 -1
  88. package/lib/Input/index.css +1 -1
  89. package/lib/Input/index.d.ts +420 -23
  90. package/lib/Input/index.js +1 -1
  91. package/lib/Input/type.d.ts +24 -6
  92. package/lib/InputNumber/InputNumber.vue.d.ts +12 -44
  93. package/lib/InputNumber/index.d.ts +6 -22
  94. package/lib/Link/index.d.ts +3 -3
  95. package/lib/Link/index.vue.d.ts +1 -1
  96. package/lib/Statistic/Statistic.vue.d.ts +1 -1
  97. package/lib/Statistic/index.d.ts +3 -3
  98. package/lib/Steps/Step.vue.d.ts +1 -1
  99. package/lib/Steps/Steps.vue.d.ts +1 -1
  100. package/lib/Steps/index.d.ts +6 -6
  101. package/lib/Transfer/TransferPanel.vue.js +1 -1
  102. package/lib/Typography/TypographyBase.vue.d.ts +12 -44
  103. package/lib/Upload/UploadPictureCard.vue2.js +1 -1
  104. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  105. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  106. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  107. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  108. package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
  109. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  110. package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
  111. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  112. package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
  113. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  114. package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
  115. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  116. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  117. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  118. package/lib/_shared/icons/IconZoomIn.vue.js +1 -1
  119. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  120. package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
  121. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  122. package/lib/index.d.ts +9 -9
  123. package/lib/index.js +1 -1
  124. package/lib/style.css +1 -1
  125. package/package.json +1 -1
  126. package/es/Input/InputSuffix.vue.d.ts +0 -31
  127. package/es/Input/InputSuffix.vue.js +0 -58
  128. package/es/Input/InputSuffix.vue3.js +0 -5
  129. package/lib/Input/InputSuffix.vue.d.ts +0 -31
  130. package/lib/Input/InputSuffix.vue.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yc-design-vue",
3
3
  "private": false,
4
- "version": "2.1.9",
4
+ "version": "2.2.0",
5
5
  "type": "module",
6
6
  "description": "A Vue 3 component library.",
7
7
  "keywords": [
@@ -1,31 +0,0 @@
1
- type __VLS_Props = {
2
- curLength: number;
3
- maxLength?: number;
4
- showWordLimit: boolean;
5
- computedVisibility: boolean;
6
- isPassword: boolean;
7
- invisibleButton: boolean;
8
- };
9
- declare function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
12
- suffix?(_: {}): any;
13
- };
14
- refs: {};
15
- rootEl: any;
16
- };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
- clear: (ev: MouseEvent) => any;
20
- visibilityChange: (value: boolean) => any;
21
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
- onClear?: ((ev: MouseEvent) => any) | undefined;
23
- onVisibilityChange?: ((value: boolean) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
- export default _default;
27
- type __VLS_WithTemplateSlots<T, S> = T & {
28
- new (): {
29
- $slots: S;
30
- };
31
- };
@@ -1,58 +0,0 @@
1
- import { defineComponent, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, renderSlot, toDisplayString } from "vue";
2
- import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
3
- /* empty css */
4
- import _sfc_main$1 from "../_shared/components/PreventFocus/index.vue.js";
5
- import "../node_modules/b-tween/dist/b-tween.es.js";
6
- import "../node_modules/dayjs/dayjs.min.js";
7
- import "../node_modules/tinycolor2/esm/tinycolor.js";
8
- import "../node_modules/dayjs/plugin/duration.js";
9
- import "../node_modules/dayjs/plugin/toObject.js";
10
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
11
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
12
- import "../_shared/utils/dom.js";
13
- import "../_shared/utils/locale.js";
14
- import "../_shared/utils/time.js";
15
- /* empty css */
16
- /* empty css */
17
- import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue2.js";
18
- import _sfc_main$3 from "../_shared/icons/IconEyeOpen.vue2.js";
19
- const _hoisted_1 = {
20
- key: 0,
21
- class: "yc-input-word-limit"
22
- };
23
- const _sfc_main = /* @__PURE__ */ defineComponent({
24
- __name: "InputSuffix",
25
- props: {
26
- curLength: {},
27
- maxLength: {},
28
- showWordLimit: { type: Boolean },
29
- computedVisibility: { type: Boolean },
30
- isPassword: { type: Boolean },
31
- invisibleButton: { type: Boolean }
32
- },
33
- emits: ["clear", "visibilityChange"],
34
- setup(__props) {
35
- return (_ctx, _cache) => {
36
- return openBlock(), createBlock(unref(_sfc_main$1), { class: "yc-input-suffix" }, {
37
- default: withCtx(() => [
38
- _ctx.showWordLimit ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(_ctx.curLength) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true),
39
- _ctx.isPassword && _ctx.invisibleButton ? (openBlock(), createBlock(unref(_sfc_main$2), {
40
- key: 1,
41
- size: 14,
42
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("visibilityChange", !_ctx.computedVisibility))
43
- }, {
44
- default: withCtx(() => [
45
- _ctx.computedVisibility ? (openBlock(), createBlock(unref(_sfc_main$3), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$4), { key: 1 }))
46
- ]),
47
- _: 1
48
- })) : createCommentVNode("", true),
49
- _ctx.$slots.suffix ? renderSlot(_ctx.$slots, "suffix", { key: 2 }) : createCommentVNode("", true)
50
- ]),
51
- _: 3
52
- });
53
- };
54
- }
55
- });
56
- export {
57
- _sfc_main as default
58
- };
@@ -1,5 +0,0 @@
1
- import _sfc_main from "./InputSuffix.vue.js";
2
- /* empty css */
3
- export {
4
- _sfc_main as default
5
- };
@@ -1,31 +0,0 @@
1
- type __VLS_Props = {
2
- curLength: number;
3
- maxLength?: number;
4
- showWordLimit: boolean;
5
- computedVisibility: boolean;
6
- isPassword: boolean;
7
- invisibleButton: boolean;
8
- };
9
- declare function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
12
- suffix?(_: {}): any;
13
- };
14
- refs: {};
15
- rootEl: any;
16
- };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
- clear: (ev: MouseEvent) => any;
20
- visibilityChange: (value: boolean) => any;
21
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
- onClear?: ((ev: MouseEvent) => any) | undefined;
23
- onVisibilityChange?: ((value: boolean) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
- export default _default;
27
- type __VLS_WithTemplateSlots<T, S> = T & {
28
- new (): {
29
- $slots: S;
30
- };
31
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=;/* empty css */;/* empty css */const s=;/* empty css */require("../node_modules/b-tween/dist/b-tween.es.js"),require("../node_modules/dayjs/dayjs.min.js"),require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../node_modules/dayjs/plugin/duration.js"),require("../node_modules/dayjs/plugin/toObject.js"),require("../node_modules/dayjs/plugin/isSameOrAfter.js"),require("../node_modules/dayjs/plugin/isSameOrBefore.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/locale.js"),require("../_shared/utils/time.js"),/* empty css */;/* empty css */const i=require("../_shared/icons/IconEyeClose.vue2.js"),t=require("../_shared/icons/IconEyeOpen.vue2.js"),n={key:0,class:"yc-input-word-limit"},r=e.defineComponent({__name:"InputSuffix",props:{curLength:{},maxLength:{},showWordLimit:{type:Boolean},computedVisibility:{type:Boolean},isPassword:{type:Boolean},invisibleButton:{type:Boolean}},emits:["clear","visibilityChange"],setup:r=>(r,u)=>(e.openBlock(),e.createBlock(e.unref(s.default),{class:"yc-input-suffix"},{default:e.withCtx(()=>[r.showWordLimit?(e.openBlock(),e.createElementBlock("div",n,e.toDisplayString(r.curLength)+"/"+e.toDisplayString(r.maxLength),1)):e.createCommentVNode("",!0),r.isPassword&&r.invisibleButton?(e.openBlock(),e.createBlock(e.unref(o.default),{key:1,size:14,onClick:u[0]||(u[0]=e=>r.$emit("visibilityChange",!r.computedVisibility))},{default:e.withCtx(()=>[r.computedVisibility?(e.openBlock(),e.createBlock(e.unref(t.default),{key:0})):(e.openBlock(),e.createBlock(e.unref(i.default),{key:1}))]),_:1})):e.createCommentVNode("",!0),r.$slots.suffix?e.renderSlot(r.$slots,"suffix",{key:2}):e.createCommentVNode("",!0)]),_:3}))});exports.default=r;