hy-app 0.6.7 → 0.6.9

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 (39) hide show
  1. package/attributes.json +1 -1
  2. package/components/hy-action-sheet/index.scss +2 -2
  3. package/components/hy-avatar/index.scss +2 -2
  4. package/components/hy-card/hy-card.vue +2 -1
  5. package/components/hy-card/index.scss +0 -1
  6. package/components/hy-cell-item/index.scss +8 -9
  7. package/components/hy-code-input/index.scss +2 -2
  8. package/components/hy-config-provider/hy-config-provider.vue +3 -3
  9. package/components/hy-config-provider/props.ts +1 -1
  10. package/components/hy-float-button/index.scss +1 -1
  11. package/components/hy-index-bar/index.scss +1 -1
  12. package/components/hy-line-progress/index.scss +3 -3
  13. package/components/hy-menu/index.scss +1 -1
  14. package/components/hy-modal/index.scss +2 -2
  15. package/components/hy-notice-bar/index.scss +1 -1
  16. package/components/hy-popover/index.scss +6 -6
  17. package/components/hy-popup/index.scss +5 -5
  18. package/components/hy-read-more/props.ts +1 -1
  19. package/components/hy-scroll-list/index.scss +2 -2
  20. package/components/hy-search/index.scss +1 -1
  21. package/components/hy-signature/index.scss +1 -1
  22. package/components/hy-skeleton/index.scss +4 -4
  23. package/components/hy-slider/index.scss +3 -3
  24. package/components/hy-steps/index.scss +3 -3
  25. package/components/hy-subsection/index.scss +8 -8
  26. package/components/hy-swiper/index.scss +2 -2
  27. package/components/hy-switch/index.scss +3 -3
  28. package/components/hy-tabbar-group/index.scss +2 -2
  29. package/components/hy-tabs/index.scss +1 -1
  30. package/components/hy-tag/index.scss +1 -1
  31. package/components/hy-textarea/index.scss +4 -4
  32. package/components/hy-toast/index.scss +1 -1
  33. package/components/hy-tooltip/index.scss +6 -6
  34. package/components/hy-warn/index.scss +1 -1
  35. package/libs/css/_mixin.scss +3 -3
  36. package/libs/css/common.scss +1 -1
  37. package/libs/css/theme.scss +53 -24
  38. package/package.json +1 -1
  39. package/web-types.json +1 -1
@@ -151,13 +151,13 @@
151
151
  @mixin borderRadio($shape) {
152
152
  @include m($shape) {
153
153
  @if $shape == circle {
154
- border-radius: theme.$hy-border-radius-semicircle;
154
+ border-radius: theme.$hy-radius-semicircle;
155
155
  }
156
156
  @else if($shape == square) {
157
- border-radius: theme.$hy-border-radius-sm;
157
+ border-radius: theme.$hy-radius-sm;
158
158
  }
159
159
  @else {
160
- border-radius: 28rpx theme.$hy-border-radius-sm;
160
+ border-radius: 28rpx theme.$hy-radius-sm;
161
161
  }
162
162
  }
163
163
  }
@@ -38,7 +38,7 @@
38
38
  width: 4px;
39
39
  height: 18px;
40
40
  background: $hy-primary;
41
- border-radius: $hy-border-radius-semicircle;
41
+ border-radius: $hy-radius-semicircle;
42
42
  }
43
43
  }
44
44
 
@@ -34,9 +34,27 @@ $hy-icon-color: var(--hy-icon-color, #606266) !default; // 一般用于icon
34
34
  $hy-text-color--grey: var(--hy-text-color--grey, #999) !default; // 辅助灰色,如加载更多的提示信息
35
35
  $hy-text-color--placeholder: var(--hy-text-color--placeholder, #909399) !default; // 输入框提示颜色
36
36
  $hy-text-color--disabled: var(--hy-text-color--disabled, #FFFFFF3F) !default; // 禁用文字颜色
37
- $hy-border-color: var(--hy-border-color, #c0c0c0) !default; // 边框颜色
38
37
  $hy-text-color--hover: var(--hy-text-color--hover, #58595b)!default; // 点击状态文字颜色
39
38
 
39
+ /* 文字大小 */
40
+ $hy-font-size-xs: var(--hy-font-size-xs, 20rpx)!default; // 超小字体
41
+ $hy-font-size-sm: var(--hy-font-size-sm, 24rpx)!default; // 小号字体
42
+ $hy-font-size-base: var(--hy-font-size-base, 28rpx)!default; // 基础字体
43
+ $hy-font-size-md: var(--hy-font-size-md, 32rpx)!default; // 中等字体
44
+ $hy-font-size-lg: var(--hy-font-size-lg, 36rpx)!default; // 大号字体
45
+ $hy-font-size-xl: var(--hy-font-size-xl, 40rpx)!default; // 超大字体
46
+ $hy-font-size-xxl: var(--hy-font-size-xxl, 48rpx)!default; // 特大字体
47
+
48
+ /* 字体样式 */
49
+ $hy-font-weight-normal: var(--hy-font-weight-normal, 400)!default; // 正常字重
50
+ $hy-font-weight-medium: var(--hy-font-weight-medium, 500)!default; // 中等字重
51
+ $hy-font-weight-bold: var(--hy-font-weight-bold, 600)!default; // 粗体
52
+
53
+ /* 字体行高 */
54
+ $hy-line-height-sm: var(--hy-line-height-sm, 1.4)!default; // 小行高
55
+ $hy-line-height-base: var(--hy-line-height-base, 1.5)!default; // 基础行高
56
+ $hy-line-height-lg: var(--hy-line-height-lg, 1.8)!default; // 大行高
57
+
40
58
 
41
59
  /* 背景色 */
42
60
  $hy-background: var(--hy-background, #f8f8f8) !default; // 页面背景色
@@ -45,7 +63,7 @@ $hy-background--3: var(--hy-background--3, rgb(238, 238, 239)) !default; // 弹
45
63
  $hy-background--container: var(--hy-background--container, #ffffff) !default; // 容器背景色
46
64
  $hy-background--disabled: var(--hy-background--disabled, rgba(0, 0, 0, 0.04)); // 禁用背景色
47
65
  $hy-background--track: var(--hy-background--track, #F6F6F6) !default; // 轨道背景色
48
- $hy-background--empty: var(--hy-background--empty, #F3F3F3) !default; // 搜索背景色
66
+ $hy-background--empty: var(--hy-background--empty, #F3F3F3) !default; // 空状态、搜索背景色
49
67
  $hy-background--skeleton: var(--hy-background--skeleton, #eee) !default; // 骨架屏背景色
50
68
  $hy-background--hover: var(--hy-background--hover, rgba(0,0,0,0.05)) !default; // 点击状态
51
69
  $hy-background-mask: var(--hy-background-mask, rgba(0, 0, 0, 0.5)) !default; //遮罩颜色
@@ -57,17 +75,6 @@ $hy-background--table-header: var(--hy-background--table-header, #FAFAFA) !defau
57
75
  $hy-background-image--mask--two-flanks: var(--hy-background-image--mask--two-flanks, linear-gradient(180deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6)),
58
76
  linear-gradient(0deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6))) !default; // 向两边形成雾霾形状
59
77
 
60
- /* 文字尺寸 */
61
- $hy-font-size-sm: 24rpx; // 提示文字大小
62
- $hy-font-size-base: 32rpx; // 基本文字大小
63
- $hy-font-size-lg: 40rpx; // 标题文字大小
64
-
65
-
66
- /* 边框颜色 */
67
- $hy-border-color-light: var(--hy-border-color-light, #c8c7cc) !default;
68
- $hy-border-color: var(--hy-border-color, #c2c2c4) !default;
69
- $hy-border-color--2: var(--hy-border-color--2, #c9cacc) !default;
70
-
71
78
  /* 图片尺寸 */
72
79
  $hy-img-size-sm: var(--hy-img-size-sm, 45rpx) !default;
73
80
  $hy-img-size-base: var(--hy-img-size-base, 80rpx) !default;
@@ -78,18 +85,13 @@ $hy-avatar-size-sm: var(--hy-avatar-size-sm, 80rpx) !default;
78
85
  $hy-avatar-size-base: var(--hy-avatar-size-base, 100rpx) !default;
79
86
  $hy-avatar-size-lg: var(--hy-avatar-size-lg, 120rpx) !default;
80
87
 
81
- /* 透明度 */
82
- $hy-opacity-disabled: var(--hy-opacity-disabled, 0.3) !default; // 组件禁用态的透明度
83
-
84
88
  /* 盒子的圆角 */
85
- $hy-border-radius-no: var(--hy-border-radius-no, 0) !default;
86
- $hy-border-radius-sm: var(--hy-border-radius-sm, 8rpx) !default;
87
- $hy-border-radius-base: var(--hy-border-radius-base, 20rpx) !default;
88
- $hy-border-radius-lg: var(--hy-border-radius-lg, 32rpx) !default;
89
- $hy-border-radius-circle: var(--hy-border-radius-circle, 50%) !default;
90
- $hy-border-radius-semicircle: var(--hy-border-radius-semicircle, 100px) !default;
91
- /* 盒子阴影 */
92
- $hy-box-shadow: var(--hy-box-shadow, 0 0 10rpx 4rpx rgba(0, 0, 0, 0.16)) !default;
89
+ $hy-radius-no: var(--hy-radius-no, 0) !default;
90
+ $hy-radius-sm: var(--hy-radius-sm, 8rpx) !default;
91
+ $hy-radius-base: var(--hy-radius-base, 20rpx) !default;
92
+ $hy-radius-lg: var(--hy-radius-lg, 32rpx) !default;
93
+ $hy-radius-circle: var(--hy-radius-circle, 50%) !default;
94
+ $hy-radius-semicircle: var(--hy-radius-semicircle, 100px) !default;
93
95
  /* 盒内盒外间距 */
94
96
  $hy-border-margin-padding-sm: var(--hy-border-margin-padding-sm, 10rpx) !default;
95
97
  $hy-border-margin-padding-base: var(--hy-border-margin-padding-base, 20rpx) !default;
@@ -97,3 +99,30 @@ $hy-border-margin-padding-lg: var(--hy-border-margin-padding-lg, 30rpx) !default
97
99
  /* 底部线条 */
98
100
  /* TODO: 边框不能写1rpx否则在某些机型无法显示 */
99
101
  $hy-border-line: var(--hy-border-line, 1px solid #e8e8e8) !default;
102
+ /* 边框颜色 */
103
+ $hy-border-color: var(--hy-border-color, #c2c2c4) !default;
104
+ $hy-border-color-light: var(--hy-border-color-light, #c8c7cc) !default;
105
+ $hy-border-color--2: var(--hy-border-color--2, #c9cacc) !default;
106
+ /* 边框宽度 */
107
+ $hy-border-width-xs: var(--hy-border-width-xs, 1rpx) !default;
108
+ $hy-border-width-sm: var(--hy-border-width-sm, 2rpx) !default;
109
+ $hy-border-width-base: var(--hy-border-width-base, 4rpx) !default;
110
+ $hy-border-width-lg: var(--hy-border-width-lg, 8rpx) !default;
111
+
112
+ /* 盒子阴影 */
113
+ $hy-border-shadow-base: var(--hy-border-box-shadow, 0 0 10rpx 4rpx rgba(0, 0, 0, 0.16)) !default;
114
+ $hy-shadow-sm: var(--hy-shadow-sm, 0 2rpx 8rpx rgba(0, 0, 0, 0.06)) !default; // 轻微阴影
115
+ $hy-shadow-base: var(--hy-shadow-base, 0 4rpx 16rpx rgba(0, 0, 0, 0.08)) !default; // 基础阴影
116
+ $hy-shadow-lg: var(--hy-shadow-lg, 0 8rpx 24rpx rgba(0, 0, 0, 0.12)) !default; // 强烈阴影
117
+ $hy-shadow-xl: var(--hy-shadow-xl, 0 12rpx 40rpx rgba(0, 0, 0, 0.16)) !default; // 极强烈阴影
118
+
119
+ /* 透明度 */
120
+ $hy-opacity-xs: var(--hy-opacity-xs, 0.1) !default; // 极低透明度
121
+ $hy-opacity-sm: var(--hy-opacity-sm, 0.3) !default; // 低透明度
122
+ $hy-opacity-base: var(--hy-opacity-base, 0.5) !default; // 中等透明度
123
+ $hy-opacity-lg: var(--hy-opacity-lg, 0.7) !default; // 高透明度
124
+ $hy-opacity-disabled: var(--hy-opacity-disabled, 0.4) !default; // 禁用态透明度
125
+
126
+ /* 过渡曲线 */
127
+ $hy-transition-ease: var(--hy-transition-ease, cubic-bezier(0.4, 0, 0.2, 1)) !default; // 标准曲线
128
+ $hy-transition-bounce: var(--hy-transition-bounce, cubic-bezier(0.34, 1.56, 0.64, 1)) !default; // 弹跳曲线
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-app",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "description": "📱一个基于vue3+ts构建的uni-app组件库,拥有八十多个精美组件,适配多端,支持自定义主题",
5
5
  "main": "./index.ts",
6
6
  "private": false,