persagy-vant 0.0.32 → 0.0.34

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 (72) hide show
  1. package/README.md +1 -1
  2. package/es/badge/Badge.d.ts +14 -0
  3. package/es/badge/Badge.mjs +2 -0
  4. package/es/badge/index.css +1 -1
  5. package/es/badge/index.d.ts +10 -1
  6. package/es/badge/index.less +6 -0
  7. package/es/badge/var.less +1 -0
  8. package/es/button/Button.d.ts +1 -1
  9. package/es/button/index.d.ts +1 -1
  10. package/es/field/Field.d.ts +5 -18
  11. package/es/field/Field.mjs +3 -2
  12. package/es/field/index.d.ts +3 -10
  13. package/es/index.d.ts +1 -1
  14. package/es/index.mjs +1 -1
  15. package/es/loading/Loading.mjs +16 -19
  16. package/es/rate/RateCell.d.ts +1 -1
  17. package/es/rate/index.d.ts +1 -1
  18. package/es/search/Search.d.ts +17 -13
  19. package/es/search/Search.mjs +1 -0
  20. package/es/search/index.d.ts +10 -8
  21. package/es/sidebar/index.css +1 -1
  22. package/es/sidebar/index.less +1 -0
  23. package/es/sidebar-item/index.css +1 -1
  24. package/es/sidebar-item/index.less +37 -11
  25. package/es/sidebar-item/var.less +7 -7
  26. package/es/space/Space.d.ts +1 -1
  27. package/es/space/index.d.ts +1 -1
  28. package/es/tag/Tag.d.ts +1 -1
  29. package/es/tag/index.d.ts +1 -1
  30. package/lib/badge/Badge.d.ts +14 -0
  31. package/lib/badge/Badge.js +2 -0
  32. package/lib/badge/index.css +1 -1
  33. package/lib/badge/index.d.ts +10 -1
  34. package/lib/badge/index.less +6 -0
  35. package/lib/badge/var.less +1 -0
  36. package/lib/button/Button.d.ts +1 -1
  37. package/lib/button/index.d.ts +1 -1
  38. package/lib/field/Field.d.ts +5 -18
  39. package/lib/field/Field.js +3 -2
  40. package/lib/field/index.d.ts +3 -10
  41. package/lib/index.css +1 -1
  42. package/lib/index.d.ts +1 -1
  43. package/lib/index.js +1 -1
  44. package/lib/loading/Loading.js +16 -19
  45. package/lib/rate/RateCell.d.ts +1 -1
  46. package/lib/rate/index.d.ts +1 -1
  47. package/lib/search/Search.d.ts +17 -13
  48. package/lib/search/Search.js +1 -0
  49. package/lib/search/index.d.ts +10 -8
  50. package/lib/sidebar/index.css +1 -1
  51. package/lib/sidebar/index.less +1 -0
  52. package/lib/sidebar-item/index.css +1 -1
  53. package/lib/sidebar-item/index.less +37 -11
  54. package/lib/sidebar-item/var.less +7 -7
  55. package/lib/space/Space.d.ts +1 -1
  56. package/lib/space/index.d.ts +1 -1
  57. package/lib/tag/Tag.d.ts +1 -1
  58. package/lib/tag/index.d.ts +1 -1
  59. package/lib/vant.cjs.js +23 -22
  60. package/lib/vant.es.js +23 -22
  61. package/lib/vant.js +23 -22
  62. package/lib/vant.min.js +1 -1
  63. package/lib/web-types.json +1 -1
  64. package/package.json +1 -1
  65. package/skills/use-persagy-vant/SKILL.md +2 -2
  66. package/skills/use-persagy-vant/references/business-component-catalog.md +1 -1
  67. package/skills/use-persagy-vant/references/component-catalog.md +14 -8
  68. package/skills/use-persagy-vant/references/component-documentation.md +19 -0
  69. package/skills/use-persagy-vant/references/design-interaction-baseline.md +9 -4
  70. package/skills/use-persagy-vant/references/page-recipes.md +17 -14
  71. package/skills/use-persagy-vant/references/reuse-policy.md +20 -2
  72. package/skills/use-persagy-vant/references/usage-patterns.md +5 -3
package/lib/vant.js CHANGED
@@ -867,6 +867,7 @@
867
867
  offset: Array,
868
868
  content: numericProp,
869
869
  showZero: truthProp,
870
+ size: makeStringProp("default"),
870
871
  position: makeStringProp("top-right")
871
872
  };
872
873
  var stdin_default$25 = vue.defineComponent({
@@ -926,6 +927,7 @@
926
927
  return vue.createVNode("div", {
927
928
  "class": bem$1S([props2.position, {
928
929
  dot: props2.dot,
930
+ mini: props2.size === "mini",
929
931
  fixed: !!slots.default
930
932
  }]),
931
933
  "style": style.value
@@ -1065,30 +1067,27 @@
1065
1067
  }, null)]);
1066
1068
  const IllustrationIcon = vue.createVNode("svg", {
1067
1069
  "class": bem$1P("illustration"),
1068
- "viewBox": "0 0 120 120",
1069
- "role": "img",
1070
- "aria-label": "Loading"
1070
+ "viewBox": "0 0 100 100",
1071
+ "fill": "none",
1072
+ "aria-hidden": "true"
1071
1073
  }, [vue.createVNode("rect", {
1072
- "x": "16",
1073
- "y": "42",
1074
- "width": "88",
1075
- "height": "62",
1076
- "rx": "8",
1074
+ "x": "18",
1075
+ "y": "36",
1076
+ "width": "64",
1077
+ "height": "48",
1078
+ "rx": "6",
1077
1079
  "fill": "currentColor",
1078
- "opacity": "0.12"
1080
+ "opacity": "0.14"
1079
1081
  }, null), vue.createVNode("path", {
1080
- "d": "M28 42h64v62H28z",
1081
- "fill": "currentColor",
1082
- "opacity": "0.24"
1083
- }, null), vue.createVNode("path", {
1084
- "d": "M38 54h12v12H38zm18 0h12v12H56zm18 0h12v12H74zM38 74h12v18H38zm18 0h12v18H56zm18 0h12v18H74z",
1085
- "fill": "currentColor",
1086
- "opacity": "0.78"
1082
+ "d": "M28 84V46h44v38M39 84V62h22v22M38 51h4m16 0h4M38 57h4m16 0h4",
1083
+ "stroke": "currentColor",
1084
+ "stroke-width": "4",
1085
+ "stroke-linecap": "round",
1086
+ "stroke-linejoin": "round"
1087
1087
  }, null), vue.createVNode("path", {
1088
- "d": "M48 42V27c0-7 5-12 12-12s12 5 12 12v15",
1089
- "fill": "none",
1088
+ "d": "M50 18v12m-16-4 8 8m24-8-8 8",
1090
1089
  "stroke": "currentColor",
1091
- "stroke-width": "8",
1090
+ "stroke-width": "4",
1092
1091
  "stroke-linecap": "round"
1093
1092
  }, null)]);
1094
1093
  const loadingProps = {
@@ -3652,7 +3651,7 @@
3652
3651
  formatter: Function,
3653
3652
  clearIcon: makeStringProp("clear"),
3654
3653
  modelValue: makeNumericProp(""),
3655
- inputAlign: makeStringProp("left"),
3654
+ inputAlign: String,
3656
3655
  placeholder: String,
3657
3656
  autocomplete: String,
3658
3657
  errorMessage: String,
@@ -3725,6 +3724,7 @@
3725
3724
  return form.props[key];
3726
3725
  }
3727
3726
  };
3727
+ const inputAlign = vue.computed(() => getProp("inputAlign") || (props2.labelPosition === "top" ? "left" : "right"));
3728
3728
  const showClear = vue.computed(() => {
3729
3729
  const readonly = getProp("readonly");
3730
3730
  if (props2.clearable && !readonly) {
@@ -3966,7 +3966,7 @@
3966
3966
  const getInputId = () => props2.id || `${id}-input`;
3967
3967
  const getValidationStatus = () => state.status;
3968
3968
  const renderInput = () => {
3969
- const controlClass = bem$1z("control", [getProp("inputAlign"), {
3969
+ const controlClass = bem$1z("control", [inputAlign.value, {
3970
3970
  error: showError.value,
3971
3971
  custom: !!slots.input,
3972
3972
  "min-height": props2.type === "textarea" && !props2.autosize
@@ -13572,6 +13572,7 @@
13572
13572
  label: String,
13573
13573
  shape: makeStringProp("round"),
13574
13574
  variant: makeStringProp("default"),
13575
+ inputAlign: makeStringProp("left"),
13575
13576
  leftIcon: makeStringProp("search"),
13576
13577
  clearable: truthProp,
13577
13578
  actionText: String,
@@ -23801,7 +23802,7 @@
23801
23802
  });
23802
23803
  }
23803
23804
  };
23804
- const version = "0.0.32";
23805
+ const version = "0.0.34";
23805
23806
  function install(app) {
23806
23807
  const components = [
23807
23808
  ActionBar,