persagy-vant 0.0.40 → 0.0.41

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 (85) hide show
  1. package/es/checkbox-panel/CheckboxPanel.d.ts +46 -1
  2. package/es/checkbox-panel/CheckboxPanel.mjs +121 -35
  3. package/es/checkbox-panel/index.css +1 -1
  4. package/es/checkbox-panel/index.d.ts +35 -1
  5. package/es/checkbox-panel/index.less +8 -2
  6. package/es/checkbox-panel/style/index.mjs +5 -0
  7. package/es/checkbox-panel/style/less.mjs +5 -0
  8. package/es/index.d.ts +1 -1
  9. package/es/index.mjs +1 -1
  10. package/es/label/Label.d.ts +13 -0
  11. package/es/label/Label.mjs +11 -4
  12. package/es/label/index.css +1 -1
  13. package/es/label/index.d.ts +9 -0
  14. package/es/label/index.less +5 -0
  15. package/es/location-select/style/index.mjs +1 -1
  16. package/es/location-select/style/less.mjs +1 -1
  17. package/es/material-action-bar/MaterialActionBar.d.ts +19 -0
  18. package/es/material-action-bar/MaterialActionBar.mjs +9 -5
  19. package/es/material-action-bar/index.css +1 -1
  20. package/es/material-action-bar/index.d.ts +36 -0
  21. package/es/material-action-bar/index.less +4 -2
  22. package/es/material-add/index.css +1 -1
  23. package/es/material-add/style/index.mjs +1 -1
  24. package/es/material-add/style/less.mjs +1 -1
  25. package/es/material-display-bar/MaterialDisplayBar.mjs +0 -1
  26. package/es/material-display-bar/index.css +1 -1
  27. package/es/material-display-bar/index.less +2 -1
  28. package/es/material-display-bar/var.less +3 -2
  29. package/es/stepper/Stepper.d.ts +1 -1
  30. package/es/stepper/index.css +1 -1
  31. package/es/stepper/index.less +19 -0
  32. package/es/title-bar/TitleBar.d.ts +30 -0
  33. package/es/title-bar/TitleBar.mjs +7 -1
  34. package/es/title-bar/index.css +1 -1
  35. package/es/title-bar/index.d.ts +21 -0
  36. package/es/title-bar/index.less +4 -2
  37. package/lib/checkbox-panel/CheckboxPanel.d.ts +46 -1
  38. package/lib/checkbox-panel/CheckboxPanel.js +120 -34
  39. package/lib/checkbox-panel/index.css +1 -1
  40. package/lib/checkbox-panel/index.d.ts +35 -1
  41. package/lib/checkbox-panel/index.less +8 -2
  42. package/lib/checkbox-panel/style/index.js +5 -0
  43. package/lib/checkbox-panel/style/less.js +5 -0
  44. package/lib/index.css +1 -1
  45. package/lib/index.d.ts +1 -1
  46. package/lib/index.js +1 -1
  47. package/lib/index.less +5 -5
  48. package/lib/label/Label.d.ts +13 -0
  49. package/lib/label/Label.js +11 -4
  50. package/lib/label/index.css +1 -1
  51. package/lib/label/index.d.ts +9 -0
  52. package/lib/label/index.less +5 -0
  53. package/lib/location-select/style/index.js +1 -1
  54. package/lib/location-select/style/less.js +1 -1
  55. package/lib/material-action-bar/MaterialActionBar.d.ts +19 -0
  56. package/lib/material-action-bar/MaterialActionBar.js +8 -4
  57. package/lib/material-action-bar/index.css +1 -1
  58. package/lib/material-action-bar/index.d.ts +36 -0
  59. package/lib/material-action-bar/index.less +4 -2
  60. package/lib/material-add/index.css +1 -1
  61. package/lib/material-add/style/index.js +1 -1
  62. package/lib/material-add/style/less.js +1 -1
  63. package/lib/material-display-bar/MaterialDisplayBar.js +0 -1
  64. package/lib/material-display-bar/index.css +1 -1
  65. package/lib/material-display-bar/index.less +2 -1
  66. package/lib/material-display-bar/var.less +3 -2
  67. package/lib/stepper/Stepper.d.ts +1 -1
  68. package/lib/stepper/index.css +1 -1
  69. package/lib/stepper/index.less +19 -0
  70. package/lib/title-bar/TitleBar.d.ts +30 -0
  71. package/lib/title-bar/TitleBar.js +7 -1
  72. package/lib/title-bar/index.css +1 -1
  73. package/lib/title-bar/index.d.ts +21 -0
  74. package/lib/title-bar/index.less +4 -2
  75. package/lib/vant.cjs.js +753 -655
  76. package/lib/vant.es.js +754 -656
  77. package/lib/vant.js +753 -655
  78. package/lib/vant.min.js +1 -1
  79. package/lib/web-types.json +1 -1
  80. package/package.json +1 -1
  81. package/skills/use-persagy-vant/references/component-catalog.md +1 -1
  82. package/skills/use-persagy-vant/references/design-interaction-baseline.md +1 -0
  83. package/skills/use-persagy-vant/references/element-component-matching.md +1 -0
  84. package/skills/use-persagy-vant/references/page-recipes.md +1 -0
  85. package/skills/use-persagy-vant/references/public-style-system.md +6 -0
@@ -11,8 +11,17 @@ declare const titleBarProps: {
11
11
  };
12
12
  icon: StringConstructor;
13
13
  showIcon: BooleanConstructor;
14
+ rightIcon: {
15
+ type: import("vue").PropType<string>;
16
+ default: string;
17
+ };
18
+ showRightIcon: BooleanConstructor;
14
19
  showDescription: BooleanConstructor;
15
20
  showArrow: BooleanConstructor;
21
+ showExpandIcon: {
22
+ type: BooleanConstructor;
23
+ default: true;
24
+ };
16
25
  actionText: {
17
26
  type: import("vue").PropType<string>;
18
27
  default: string;
@@ -41,8 +50,17 @@ declare const _default: import("vue").DefineComponent<{
41
50
  };
42
51
  icon: StringConstructor;
43
52
  showIcon: BooleanConstructor;
53
+ rightIcon: {
54
+ type: import("vue").PropType<string>;
55
+ default: string;
56
+ };
57
+ showRightIcon: BooleanConstructor;
44
58
  showDescription: BooleanConstructor;
45
59
  showArrow: BooleanConstructor;
60
+ showExpandIcon: {
61
+ type: BooleanConstructor;
62
+ default: true;
63
+ };
46
64
  actionText: {
47
65
  type: import("vue").PropType<string>;
48
66
  default: string;
@@ -69,8 +87,17 @@ declare const _default: import("vue").DefineComponent<{
69
87
  };
70
88
  icon: StringConstructor;
71
89
  showIcon: BooleanConstructor;
90
+ rightIcon: {
91
+ type: import("vue").PropType<string>;
92
+ default: string;
93
+ };
94
+ showRightIcon: BooleanConstructor;
72
95
  showDescription: BooleanConstructor;
73
96
  showArrow: BooleanConstructor;
97
+ showExpandIcon: {
98
+ type: BooleanConstructor;
99
+ default: true;
100
+ };
74
101
  actionText: {
75
102
  type: import("vue").PropType<string>;
76
103
  default: string;
@@ -96,12 +123,15 @@ declare const _default: import("vue").DefineComponent<{
96
123
  title: string;
97
124
  size: TitleBarSize;
98
125
  description: string;
126
+ rightIcon: string;
99
127
  showIcon: boolean;
128
+ showRightIcon: boolean;
100
129
  modelValue: boolean;
101
130
  showArrow: boolean;
102
131
  actionText: string;
103
132
  expandable: boolean;
104
133
  showAction: boolean;
105
134
  showDescription: boolean;
135
+ showExpandIcon: boolean;
106
136
  }>;
107
137
  export default _default;
@@ -30,8 +30,11 @@ const titleBarProps = {
30
30
  description: (0, import_utils.makeStringProp)(""),
31
31
  icon: String,
32
32
  showIcon: Boolean,
33
+ rightIcon: (0, import_utils.makeStringProp)("cross"),
34
+ showRightIcon: Boolean,
33
35
  showDescription: Boolean,
34
36
  showArrow: Boolean,
37
+ showExpandIcon: import_utils.truthProp,
35
38
  actionText: (0, import_utils.makeStringProp)("\u64CD\u4F5C"),
36
39
  showAction: Boolean,
37
40
  size: (0, import_utils.makeStringProp)("default"),
@@ -102,11 +105,14 @@ var stdin_default = (0, import_vue.defineComponent)({
102
105
  "onClick": onActionClick
103
106
  }, null)])]), props.size !== "mini" && props.showDescription && props.description && (0, import_vue.createVNode)("span", {
104
107
  "class": bem("description")
105
- }, [((_b = slots.description) == null ? void 0 : _b.call(slots)) || props.description])]), (props.showArrow || props.expandable) && (0, import_vue.createVNode)(import_icon.Icon, {
108
+ }, [((_b = slots.description) == null ? void 0 : _b.call(slots)) || props.description])]), (props.showArrow || props.expandable && props.showExpandIcon) && (0, import_vue.createVNode)(import_icon.Icon, {
106
109
  "name": "arrow-up",
107
110
  "class": bem("arrow", {
108
111
  expanded: props.expandable && props.modelValue
109
112
  })
113
+ }, null), props.showRightIcon && (0, import_vue.createVNode)(import_icon.Icon, {
114
+ "name": props.rightIcon,
115
+ "class": bem("right-icon")
110
116
  }, null)]), (!props.expandable || props.modelValue) && ((_c = slots.default) == null ? void 0 : _c.call(slots))]);
111
117
  };
112
118
  }
@@ -1 +1 @@
1
- :root{--van-title-bar-padding: 12px var(--van-padding-md) 4px;--van-title-bar-gap: 4px;--van-title-bar-title-color: var(--van-gray-8);--van-title-bar-description-color: var(--van-gray-6);--van-title-bar-required-color: var(--van-danger-color);--van-title-bar-action-divider-before-gap: 8px;--van-title-bar-action-divider-after-gap: 2px;--van-title-bar-action-divider-color: var(--van-gray-4);--van-title-bar-action-divider-height: 12px;--van-title-bar-action-padding: 0 8px}.van-title-bar{color:var(--van-title-bar-title-color)}.van-title-bar__header{display:flex;align-items:flex-start;width:100%;padding:var(--van-title-bar-padding);color:inherit;font:inherit;text-align:left;background:transparent;border:0}.van-title-bar--required .van-title-bar__header{position:relative;overflow:visible}.van-title-bar--required .van-title-bar__header:before{position:absolute;top:12px;left:var(--van-padding-xs);color:var(--van-title-bar-required-color);font-size:var(--van-font-size-md);line-height:var(--van-line-height-lg);content:"*"}.van-title-bar--expandable .van-title-bar__header{cursor:pointer}.van-title-bar--expandable .van-title-bar__header:active{background:var(--van-active-color)}.van-title-bar__icon{flex:none;margin:3px 4px 0 0;font-size:16px}.van-title-bar__text{display:flex;flex:1;flex-direction:column;min-width:0}.van-title-bar__title-row{display:flex;align-items:center;min-width:0}.van-title-bar__text strong{flex:0 1 auto;min-width:0;overflow:hidden;font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__description{overflow:hidden;color:var(--van-title-bar-description-color);font-size:var(--van-font-size-sm);font-weight:400;line-height:var(--van-line-height-md);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__action{display:flex;flex:none;align-items:center;margin-left:var(--van-title-bar-action-divider-before-gap)}.van-title-bar__action-divider{width:1px;height:var(--van-title-bar-action-divider-height);margin-right:var(--van-title-bar-action-divider-after-gap);background:var(--van-title-bar-action-divider-color)}.van-title-bar__action .van-button{flex:none;height:var(--van-line-height-lg);padding:var(--van-title-bar-action-padding);font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg)}.van-title-bar__arrow{flex:none;margin:4px 0 0 8px;color:var(--van-gray-6);font-size:14px;transition:transform var(--van-animation-duration-fast);transform:rotate(180deg)}.van-title-bar__arrow--expanded{transform:rotate(0)}.van-title-bar--mini .van-title-bar__header{padding-top:12px;padding-bottom:4px}.van-title-bar--mini .van-title-bar__text strong{font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}.van-title-bar--mini .van-title-bar__icon{margin-top:3px;font-size:14px}.van-title-bar--mini .van-title-bar__arrow{margin-top:3px}.van-title-bar--mini .van-title-bar__action .van-button{height:var(--van-line-height-md);font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}
1
+ :root{--van-title-bar-padding: 12px var(--van-padding-md) 4px;--van-title-bar-gap: 4px;--van-title-bar-title-color: var(--van-gray-8);--van-title-bar-description-color: var(--van-gray-6);--van-title-bar-required-color: var(--van-danger-color);--van-title-bar-action-divider-before-gap: 8px;--van-title-bar-action-divider-after-gap: 2px;--van-title-bar-action-divider-color: var(--van-gray-4);--van-title-bar-action-divider-height: 12px;--van-title-bar-action-padding: 0 8px}.van-title-bar{color:var(--van-title-bar-title-color)}.van-title-bar__header{display:flex;box-sizing:border-box;align-items:flex-start;width:100%;padding:var(--van-title-bar-padding);color:inherit;font:inherit;text-align:left;background:transparent;border:0}.van-title-bar--required .van-title-bar__header{position:relative;overflow:visible}.van-title-bar--required .van-title-bar__header:before{position:absolute;top:12px;left:var(--van-padding-xs);color:var(--van-title-bar-required-color);font-size:var(--van-font-size-md);line-height:var(--van-line-height-lg);content:"*"}.van-title-bar--expandable .van-title-bar__header{cursor:pointer}.van-title-bar--expandable .van-title-bar__header:active{background:var(--van-active-color)}.van-title-bar__icon{flex:none;margin:3px 4px 0 0;font-size:16px}.van-title-bar__text{display:flex;flex:1;flex-direction:column;min-width:0}.van-title-bar__title-row{display:flex;align-items:center;min-width:0}.van-title-bar__text strong{flex:0 1 auto;min-width:0;overflow:hidden;font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__description{overflow:hidden;color:var(--van-title-bar-description-color);font-size:var(--van-font-size-sm);font-weight:400;line-height:var(--van-line-height-md);text-overflow:ellipsis;white-space:nowrap}.van-title-bar__action{display:flex;flex:none;align-items:center;margin-left:var(--van-title-bar-action-divider-before-gap)}.van-title-bar__action-divider{width:1px;height:var(--van-title-bar-action-divider-height);margin-right:var(--van-title-bar-action-divider-after-gap);background:var(--van-title-bar-action-divider-color)}.van-title-bar__action .van-button{flex:none;height:var(--van-line-height-lg);padding:var(--van-title-bar-action-padding);font-size:var(--van-font-size-md);font-weight:var(--van-font-weight-bold);line-height:var(--van-line-height-lg)}.van-title-bar__arrow{flex:none;margin:4px 8px 0 0;color:var(--van-gray-6);font-size:14px;transition:transform var(--van-animation-duration-fast);transform:rotate(180deg)}.van-title-bar__arrow--expanded{transform:rotate(0)}.van-title-bar__right-icon{flex:none;width:16px;height:16px;margin:3px 0 0 8px;color:var(--van-gray-7);font-size:16px;line-height:16px}.van-title-bar--mini .van-title-bar__header{padding-top:12px;padding-bottom:4px}.van-title-bar--mini .van-title-bar__text strong{font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}.van-title-bar--mini .van-title-bar__icon{margin-top:3px;font-size:14px}.van-title-bar--mini .van-title-bar__arrow{margin-top:3px}.van-title-bar--mini .van-title-bar__right-icon{width:12px;height:12px;margin-top:3px;font-size:12px;line-height:12px}.van-title-bar--mini .van-title-bar__action .van-button{height:var(--van-line-height-md);font-size:var(--van-font-size-sm);line-height:var(--van-line-height-md)}
@@ -9,8 +9,17 @@ export declare const TitleBar: import("../utils").WithInstall<import("vue").Defi
9
9
  };
10
10
  icon: StringConstructor;
11
11
  showIcon: BooleanConstructor;
12
+ rightIcon: {
13
+ type: import("vue").PropType<string>;
14
+ default: string;
15
+ };
16
+ showRightIcon: BooleanConstructor;
12
17
  showDescription: BooleanConstructor;
13
18
  showArrow: BooleanConstructor;
19
+ showExpandIcon: {
20
+ type: BooleanConstructor;
21
+ default: true;
22
+ };
14
23
  actionText: {
15
24
  type: import("vue").PropType<string>;
16
25
  default: string;
@@ -37,8 +46,17 @@ export declare const TitleBar: import("../utils").WithInstall<import("vue").Defi
37
46
  };
38
47
  icon: StringConstructor;
39
48
  showIcon: BooleanConstructor;
49
+ rightIcon: {
50
+ type: import("vue").PropType<string>;
51
+ default: string;
52
+ };
53
+ showRightIcon: BooleanConstructor;
40
54
  showDescription: BooleanConstructor;
41
55
  showArrow: BooleanConstructor;
56
+ showExpandIcon: {
57
+ type: BooleanConstructor;
58
+ default: true;
59
+ };
42
60
  actionText: {
43
61
  type: import("vue").PropType<string>;
44
62
  default: string;
@@ -64,13 +82,16 @@ export declare const TitleBar: import("../utils").WithInstall<import("vue").Defi
64
82
  title: string;
65
83
  size: import("./TitleBar").TitleBarSize;
66
84
  description: string;
85
+ rightIcon: string;
67
86
  showIcon: boolean;
87
+ showRightIcon: boolean;
68
88
  modelValue: boolean;
69
89
  showArrow: boolean;
70
90
  actionText: string;
71
91
  expandable: boolean;
72
92
  showAction: boolean;
73
93
  showDescription: boolean;
94
+ showExpandIcon: boolean;
74
95
  }>>;
75
96
  export default TitleBar;
76
97
  export type { TitleBarProps, TitleBarSize } from './TitleBar';
@@ -16,7 +16,7 @@
16
16
  .van-title-bar {
17
17
  color: var(--van-title-bar-title-color);
18
18
 
19
- &__header { display: flex; align-items: flex-start; width: 100%; padding: var(--van-title-bar-padding); color: inherit; font: inherit; text-align: left; background: transparent; border: 0; }
19
+ &__header { display: flex; box-sizing: border-box; align-items: flex-start; width: 100%; padding: var(--van-title-bar-padding); color: inherit; font: inherit; text-align: left; background: transparent; border: 0; }
20
20
  &--required &__header { position: relative; overflow: visible; }
21
21
  &--required &__header::before { position: absolute; top: 12px; left: var(--van-padding-xs); color: var(--van-title-bar-required-color); font-size: var(--van-font-size-md); line-height: var(--van-line-height-lg); content: '*'; }
22
22
  &--expandable &__header { cursor: pointer; &:active { background: var(--van-active-color); } }
@@ -28,11 +28,13 @@
28
28
  &__action { display: flex; flex: none; align-items: center; margin-left: var(--van-title-bar-action-divider-before-gap); }
29
29
  &__action-divider { width: 1px; height: var(--van-title-bar-action-divider-height); margin-right: var(--van-title-bar-action-divider-after-gap); background: var(--van-title-bar-action-divider-color); }
30
30
  &__action .van-button { flex: none; height: var(--van-line-height-lg); padding: var(--van-title-bar-action-padding); font-size: var(--van-font-size-md); font-weight: var(--van-font-weight-bold); line-height: var(--van-line-height-lg); }
31
- &__arrow { flex: none; margin: 4px 0 0 8px; color: var(--van-gray-6); font-size: 14px; transition: transform var(--van-animation-duration-fast); transform: rotate(180deg); }
31
+ &__arrow { flex: none; margin: 4px 8px 0 0; color: var(--van-gray-6); font-size: 14px; transition: transform var(--van-animation-duration-fast); transform: rotate(180deg); }
32
32
  &__arrow--expanded { transform: rotate(0); }
33
+ &__right-icon { flex: none; width: 16px; height: 16px; margin: 3px 0 0 8px; color: var(--van-gray-7); font-size: 16px; line-height: 16px; }
33
34
  &--mini &__header { padding-top: 12px; padding-bottom: 4px; }
34
35
  &--mini &__text strong { font-size: var(--van-font-size-sm); line-height: var(--van-line-height-md); }
35
36
  &--mini &__icon { margin-top: 3px; font-size: 14px; }
36
37
  &--mini &__arrow { margin-top: 3px; }
38
+ &--mini &__right-icon { width: 12px; height: 12px; margin-top: 3px; font-size: 12px; line-height: 12px; }
37
39
  &--mini &__action .van-button { height: var(--van-line-height-md); font-size: var(--van-font-size-sm); line-height: var(--van-line-height-md); }
38
40
  }