@tendaui/components 1.3.0 → 1.3.1

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 (142) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +176 -176
  3. package/button/_example/ghost.tsx +2 -5
  4. package/color-picker/utils/color-picker/cmyk.ts +89 -89
  5. package/color-picker/utils/color-picker/color.ts +467 -467
  6. package/color-picker/utils/color-picker/constants.ts +187 -187
  7. package/color-picker/utils/color-picker/draggable.ts +99 -99
  8. package/color-picker/utils/color-picker/format.ts +90 -90
  9. package/color-picker/utils/color-picker/gradient.ts +237 -237
  10. package/color-picker/utils/color-picker/index.ts +7 -7
  11. package/color-picker/utils/color-picker/types.ts +33 -33
  12. package/dialog/hooks/useDialogPosition.ts +35 -35
  13. package/form/type.ts +519 -519
  14. package/global-config/default-config.ts +95 -95
  15. package/global-config/locale/ar_KW.ts +259 -259
  16. package/global-config/locale/en_US.ts +265 -265
  17. package/global-config/locale/it_IT.ts +264 -264
  18. package/global-config/locale/ja_JP.ts +264 -264
  19. package/global-config/locale/ko_KR.ts +264 -264
  20. package/global-config/locale/ru_RU.ts +277 -277
  21. package/global-config/locale/zh_CN.ts +265 -265
  22. package/global-config/locale/zh_TW.ts +265 -265
  23. package/global-config/mobile/default-config.ts +6 -6
  24. package/global-config/mobile/locale/ar_KW.ts +112 -112
  25. package/global-config/mobile/locale/en_US.ts +113 -113
  26. package/global-config/mobile/locale/it_IT.ts +113 -113
  27. package/global-config/mobile/locale/ja_JP.ts +100 -100
  28. package/global-config/mobile/locale/ko_KR.ts +100 -100
  29. package/global-config/mobile/locale/ru_RU.ts +112 -112
  30. package/global-config/mobile/locale/zh_CN.ts +100 -100
  31. package/global-config/mobile/locale/zh_TW.ts +100 -100
  32. package/global-config/t.ts +111 -111
  33. package/input-number/InputNumber.tsx +124 -124
  34. package/input-number/defaultProps.ts +17 -17
  35. package/input-number/index.ts +9 -9
  36. package/input-number/style/css.js +1 -1
  37. package/input-number/style/index.js +1 -1
  38. package/input-number/useInputNumber.tsx +270 -270
  39. package/list/ListItem.tsx +36 -36
  40. package/list/ListItemMeta.tsx +40 -40
  41. package/list/defaultProps.ts +11 -11
  42. package/list/hooks/useListVirtualScroll.ts +82 -82
  43. package/list/style/css.js +1 -1
  44. package/list/style/index.js +1 -1
  45. package/locale/LocalReceiver.ts +55 -55
  46. package/locale/ar_KW.ts +7 -7
  47. package/locale/en_US.ts +7 -7
  48. package/locale/it_IT.ts +6 -6
  49. package/locale/ja_JP.ts +6 -6
  50. package/locale/ko_KR.ts +6 -6
  51. package/locale/ru_RU.ts +6 -6
  52. package/locale/zh_CN.ts +5 -5
  53. package/locale/zh_TW.ts +7 -7
  54. package/package.json +2 -2
  55. package/radio/_example/default.tsx +2 -2
  56. package/select/type.ts +382 -382
  57. package/select-input/type.ts +280 -280
  58. package/slider/SliderHandleButton.tsx +50 -50
  59. package/slider/defaultProps.ts +15 -15
  60. package/slider/style/css.js +1 -1
  61. package/slider/style/index.js +1 -1
  62. package/styles/_global.scss +40 -40
  63. package/styles/_vars.scss +374 -374
  64. package/styles/components/alert/_index.scss +175 -175
  65. package/styles/components/alert/_vars.scss +41 -41
  66. package/styles/components/badge/_index.scss +71 -71
  67. package/styles/components/badge/_vars.scss +26 -26
  68. package/styles/components/button/_index.scss +499 -499
  69. package/styles/components/button/_mixins.scss +40 -40
  70. package/styles/components/button/_vars.scss +121 -121
  71. package/styles/components/checkbox/_index.scss +158 -158
  72. package/styles/components/checkbox/_var.scss +59 -59
  73. package/styles/components/color-picker/_index.scss +586 -586
  74. package/styles/components/color-picker/_vars.scss +79 -79
  75. package/styles/components/dialog/_animate.scss +133 -133
  76. package/styles/components/dialog/_index.scss +310 -310
  77. package/styles/components/dialog/_vars.scss +60 -60
  78. package/styles/components/drawer/_index.scss +206 -206
  79. package/styles/components/drawer/_var.scss +55 -55
  80. package/styles/components/fireworks/_index.scss +86 -86
  81. package/styles/components/fireworks/_vars.scss +5 -5
  82. package/styles/components/form/_index.scss +175 -175
  83. package/styles/components/form/_mixins.scss +74 -74
  84. package/styles/components/form/_vars.scss +101 -101
  85. package/styles/components/input/_index.scss +350 -350
  86. package/styles/components/input/_mixins.scss +120 -120
  87. package/styles/components/input/_vars.scss +130 -130
  88. package/styles/components/input-number/_index.scss +327 -327
  89. package/styles/components/input-number/_vars.scss +56 -56
  90. package/styles/components/ip-input/_index.scss +277 -277
  91. package/styles/components/layout/_index.scss +47 -47
  92. package/styles/components/layout/_vars.scss +19 -19
  93. package/styles/components/layout/doc.scss +74 -74
  94. package/styles/components/list/_index.scss +172 -172
  95. package/styles/components/list/_vars.scss +42 -42
  96. package/styles/components/loading/_index.scss +113 -113
  97. package/styles/components/loading/_vars.scss +40 -40
  98. package/styles/components/notification/_index.scss +140 -140
  99. package/styles/components/notification/_mixins.scss +13 -13
  100. package/styles/components/notification/_vars.scss +60 -60
  101. package/styles/components/popup/_index.scss +78 -78
  102. package/styles/components/popup/_mixin.scss +149 -149
  103. package/styles/components/popup/_vars.scss +33 -33
  104. package/styles/components/radio/_index.scss +376 -376
  105. package/styles/components/radio/_vars.scss +89 -89
  106. package/styles/components/select/_index.scss +291 -291
  107. package/styles/components/select/_var.scss +64 -64
  108. package/styles/components/select-input/_index.scss +5 -5
  109. package/styles/components/select-input/_var.scss +4 -4
  110. package/styles/components/slider/_index.scss +241 -241
  111. package/styles/components/slider/_vars.scss +51 -51
  112. package/styles/components/switch/_index.scss +175 -175
  113. package/styles/components/switch/_vars.scss +63 -63
  114. package/styles/components/table/_index.scss +194 -194
  115. package/styles/components/table/_var.scss +52 -52
  116. package/styles/components/tabs/_index.scss +165 -165
  117. package/styles/components/tabs/_mixins.scss +11 -11
  118. package/styles/components/tabs/_vars.scss +72 -72
  119. package/styles/components/tag/_index.scss +317 -317
  120. package/styles/components/tag/_var.scss +86 -86
  121. package/styles/components/tag-input/_index.scss +164 -164
  122. package/styles/components/tag-input/_vars.scss +17 -17
  123. package/styles/mixins/_focus.scss +8 -8
  124. package/styles/mixins/_layout.scss +32 -32
  125. package/styles/mixins/_reset.scss +11 -11
  126. package/styles/mixins/_scrollbar.scss +32 -32
  127. package/styles/mixins/_text.scss +50 -50
  128. package/styles/themes/_dark.scss +169 -169
  129. package/styles/themes/_font.scss +69 -69
  130. package/styles/themes/_index.scss +5 -5
  131. package/styles/themes/_light.scss +170 -170
  132. package/styles/themes/_radius.scss +9 -9
  133. package/styles/themes/_size.scss +68 -68
  134. package/styles/utilities/_animation.scss +58 -58
  135. package/styles/utilities/_tips.scss +10 -10
  136. package/switch/_example/with-label.tsx +1 -1
  137. package/utils/input-number/large-number.ts +423 -423
  138. package/utils/input-number/number.ts +257 -257
  139. package/utils/log/index.ts +3 -3
  140. package/utils/log/log.ts +29 -29
  141. package/utils/log/types.ts +9 -9
  142. package/utils/style.ts +58 -58
@@ -1,120 +1,120 @@
1
- @use "../../_vars.scss" as *;
2
- @use "./_vars.scss" as *;
3
- @use "./_map.scss" as *;
4
-
5
- @mixin input-base() {
6
- border-width: 1px;
7
- border-style: solid;
8
- border-radius: $input-border-radius;
9
- border-color: $input-border-color-default;
10
- padding: $input-padding-default;
11
- background-color: $input-bg-color-default;
12
- outline: none;
13
- color: $input-text-color-default;
14
- font: $input-font;
15
- width: 100%;
16
- box-sizing: border-box;
17
- transition: $input-inner-transition;
18
- display: flex;
19
- align-items: center;
20
- overflow: hidden;
21
-
22
- &:hover {
23
- border-color: $input-border-color-default-hover;
24
- }
25
-
26
- &:focus {
27
- z-index: 1;
28
- border-color: $input-border-color-default-focus;
29
- box-shadow: $input-box-shadow-focus;
30
- }
31
- }
32
-
33
- @mixin input-readonly {
34
- &.#{$prefix}-is-readonly {
35
- color: $input-text-color-readonly;
36
- background-color: $input-bg-color-readonly;
37
-
38
- .#{$prefix}-input__inner {
39
- cursor: $input-cursor-readonly;
40
- }
41
- }
42
- }
43
-
44
- @mixin input-disabled {
45
- &.#{$prefix}-is-disabled {
46
- color: $input-text-color-disabled;
47
- background-color: $input-bg-color-disabled;
48
-
49
- &:hover {
50
- border-color: $input-border-color-default;
51
- }
52
-
53
- .#{$prefix}-input__inner {
54
- cursor: not-allowed;
55
- color: $input-text-color-disabled;
56
- text-overflow: initial;
57
-
58
- &::placeholder {
59
- color: $input-text-color-disabled;
60
- }
61
- }
62
-
63
- & > .#{$prefix}-input__prefix,
64
- & > .#{$prefix}-input__suffix {
65
- .t-icon {
66
- color: $input-text-color-disabled;
67
-
68
- &:hover {
69
- color: $input-text-color-disabled;
70
- }
71
- }
72
- }
73
- }
74
- }
75
-
76
- // 状态样式:使用 map-get 从映射中获取颜色值
77
- @mixin input-status($status) {
78
- &.#{$prefix}-is-#{$status} {
79
- border-color: map-get(map-get($input-color, border), $status);
80
- &:hover {
81
- border-color: map-get(map-get($input-color, border), $status);
82
- }
83
- &:focus,
84
- &.#{$prefix}-input--focused {
85
- box-shadow: 0 0 0 2px map-get(map-get($input-color, box-shadow), $status);
86
- }
87
-
88
- & > .#{$prefix}-input__extra {
89
- color: map-get(map-get($input-color, extra), $status);
90
- }
91
- }
92
- }
93
-
94
- @mixin input-fix-position($position) {
95
- &.#{$prefix}-input--#{$position} {
96
- & > .#{$prefix}-input__#{$position} {
97
- z-index: 2;
98
- height: 100%;
99
- text-align: center;
100
- display: flex;
101
- align-items: center;
102
- }
103
-
104
- & > .#{$prefix}-input__#{$position}-icon {
105
- font-size: $font-size-l;
106
- }
107
-
108
- &.#{$prefix}-size-s {
109
- .#{$prefix}-input__#{$position}-icon {
110
- font-size: $font-size-base;
111
- }
112
- }
113
-
114
- &.#{$prefix}-size-l {
115
- .#{$prefix}-input__#{$position}-icon {
116
- font-size: $font-size-xl;
117
- }
118
- }
119
- }
120
- }
1
+ @use "../../_vars.scss" as *;
2
+ @use "./_vars.scss" as *;
3
+ @use "./_map.scss" as *;
4
+
5
+ @mixin input-base() {
6
+ border-width: 1px;
7
+ border-style: solid;
8
+ border-radius: $input-border-radius;
9
+ border-color: $input-border-color-default;
10
+ padding: $input-padding-default;
11
+ background-color: $input-bg-color-default;
12
+ outline: none;
13
+ color: $input-text-color-default;
14
+ font: $input-font;
15
+ width: 100%;
16
+ box-sizing: border-box;
17
+ transition: $input-inner-transition;
18
+ display: flex;
19
+ align-items: center;
20
+ overflow: hidden;
21
+
22
+ &:hover {
23
+ border-color: $input-border-color-default-hover;
24
+ }
25
+
26
+ &:focus {
27
+ z-index: 1;
28
+ border-color: $input-border-color-default-focus;
29
+ box-shadow: $input-box-shadow-focus;
30
+ }
31
+ }
32
+
33
+ @mixin input-readonly {
34
+ &.#{$prefix}-is-readonly {
35
+ color: $input-text-color-readonly;
36
+ background-color: $input-bg-color-readonly;
37
+
38
+ .#{$prefix}-input__inner {
39
+ cursor: $input-cursor-readonly;
40
+ }
41
+ }
42
+ }
43
+
44
+ @mixin input-disabled {
45
+ &.#{$prefix}-is-disabled {
46
+ color: $input-text-color-disabled;
47
+ background-color: $input-bg-color-disabled;
48
+
49
+ &:hover {
50
+ border-color: $input-border-color-default;
51
+ }
52
+
53
+ .#{$prefix}-input__inner {
54
+ cursor: not-allowed;
55
+ color: $input-text-color-disabled;
56
+ text-overflow: initial;
57
+
58
+ &::placeholder {
59
+ color: $input-text-color-disabled;
60
+ }
61
+ }
62
+
63
+ & > .#{$prefix}-input__prefix,
64
+ & > .#{$prefix}-input__suffix {
65
+ .t-icon {
66
+ color: $input-text-color-disabled;
67
+
68
+ &:hover {
69
+ color: $input-text-color-disabled;
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ // 状态样式:使用 map-get 从映射中获取颜色值
77
+ @mixin input-status($status) {
78
+ &.#{$prefix}-is-#{$status} {
79
+ border-color: map-get(map-get($input-color, border), $status);
80
+ &:hover {
81
+ border-color: map-get(map-get($input-color, border), $status);
82
+ }
83
+ &:focus,
84
+ &.#{$prefix}-input--focused {
85
+ box-shadow: 0 0 0 2px map-get(map-get($input-color, box-shadow), $status);
86
+ }
87
+
88
+ & > .#{$prefix}-input__extra {
89
+ color: map-get(map-get($input-color, extra), $status);
90
+ }
91
+ }
92
+ }
93
+
94
+ @mixin input-fix-position($position) {
95
+ &.#{$prefix}-input--#{$position} {
96
+ & > .#{$prefix}-input__#{$position} {
97
+ z-index: 2;
98
+ height: 100%;
99
+ text-align: center;
100
+ display: flex;
101
+ align-items: center;
102
+ }
103
+
104
+ & > .#{$prefix}-input__#{$position}-icon {
105
+ font-size: $font-size-l;
106
+ }
107
+
108
+ &.#{$prefix}-size-s {
109
+ .#{$prefix}-input__#{$position}-icon {
110
+ font-size: $font-size-base;
111
+ }
112
+ }
113
+
114
+ &.#{$prefix}-size-l {
115
+ .#{$prefix}-input__#{$position}-icon {
116
+ font-size: $font-size-xl;
117
+ }
118
+ }
119
+ }
120
+ }
@@ -1,130 +1,130 @@
1
- @use "../../_vars.scss" as *;
2
- // 组件变量
3
- // 名称可按如下规则定义//
4
- // <component>-[type]-[attrtype]-<attr>-[status]
5
-
6
- // component:组件名,如button// type: 组件类型,如 button 的次要按钮(line// attrtype: 属性的具体应用场景。如颜色,用于背景(bg)、文本(text)、边框(border)等
7
- // attr: 属性名称,如color、height、radius// status: 表示组件状态或尺寸,如 hover、disabled、s、l
8
-
9
- // 如:$button-line-bg-color-hover
10
- // 如:$button-line-height-s
11
-
12
- // 颜色
13
- $input-border-color-default: $border-level-2-color;
14
- $input-border-color-default-hover: $brand-color;
15
- $input-border-color-default-focus: $brand-color;
16
- $input-border-color-success: $success-color;
17
- $input-border-color-warning: $warning-color;
18
- $input-border-color-error: $error-color;
19
-
20
- $input-color: (
21
- border: (
22
- default: (
23
- hover: $brand-color,
24
- focus: $brand-color
25
- ),
26
- success: $success-color,
27
- warning: $warning-color,
28
- error: $error-color
29
- ),
30
- text: (
31
- default: $text-color-primary,
32
- success: $success-color,
33
- warning: $warning-color,
34
- error: $error-color,
35
- readonly: $text-color-primary,
36
- tips: $text-color-placeholder,
37
- disabled: $text-color-disabled
38
- ),
39
- bg-color: (
40
- default: $text-color-placeholder,
41
- readonly: $bg-color-specialcomponent,
42
- disabled: $bg-color-component-disabled
43
- ),
44
- extra: (
45
- default: $text-color-placeholder,
46
- success: $success-color,
47
- warning: $warning-color,
48
- error: $error-color
49
- ),
50
- append: $bg-color-secondarycontainer-hover,
51
- limit: $text-color-placeholder,
52
- box-shadow: (
53
- default: $brand-color-focus,
54
- success: $success-color-focus,
55
- warning: $warning-color-focus,
56
- error: $error-color-focus
57
- )
58
- );
59
-
60
- $input-text-color-success: $success-color;
61
- $input-text-color-warning: $warning-color;
62
- $input-text-color-error: $error-color;
63
-
64
- $input-text-color-default: $text-color-primary;
65
- $input-text-color-readonly: $text-color-primary;
66
- $input-text-color-disabled: $text-color-disabled;
67
- $input-text-color-tips: $text-color-placeholder;
68
- $input-placeholder-color: $text-color-placeholder;
69
-
70
- // input 输入框需要在浅色主题下有默认白色背景,而在暗色等其他主题下 transparent 适配背景色,因此不使用通用背景 token
71
- $input-bg-color-default: $bg-color-specialcomponent;
72
- $input-bg-color-readonly: $bg-color-specialcomponent;
73
- $input-bg-color-disabled: $bg-color-component-disabled;
74
-
75
- $input-extra-color-default: $text-color-placeholder;
76
- $input-extra-color-success: $success-color;
77
- $input-extra-color-warning: $warning-color;
78
- $input-extra-color-error: $error-color;
79
-
80
- $input-append-color: $bg-color-secondarycontainer-hover;
81
-
82
- $input-limit-color: $text-color-placeholder;
83
-
84
- // 位置
85
- $input-fix-position: $spacer;
86
-
87
- // 间距
88
- $input-padding-l: $comp-paddingTB-m $comp-paddingLR-m;
89
- $input-padding-default: 0 $comp-paddingLR-s;
90
- $input-margin-distance-default: $comp-margin-xxxl;
91
- $input-status-position-right: -24px;
92
- $input-group-first-child-margin-left: -1px;
93
-
94
- // 尺寸
95
- $input-height-s: $comp-size-xs;
96
- $input-height-default: $comp-size-m;
97
- $input-height-l: $comp-size-xl;
98
- $input-inner-icon-font-size: inherit;
99
- $input-tips-min-height: $text-line-height-s;
100
-
101
- // 图标
102
- $input-inner-prefix-icon-color: $text-color-placeholder;
103
- $input-inner-suffix-icon-color: $text-color-placeholder;
104
- $input-inner-suffix-icon-color-hover: $text-color-secondary;
105
-
106
- // 字号
107
- $input-font-l: $font-body-large;
108
- $input-font: $font-body-medium;
109
- $input-font-s: $font-body-small;
110
- $input-extra-font: $font-body-small;
111
- $input-tips-font: $font-body-small;
112
-
113
- // 边框
114
- $input-border-radius: $border-radius-default;
115
-
116
- // box
117
- $input-box-shadow-color-default-focus: $brand-color-focus;
118
- $input-box-shadow-color-success-focus: $success-color-focus;
119
- $input-box-shadow-color-warning-focus: $warning-color-focus;
120
- $input-box-shadow-color-error-focus: $error-color-focus;
121
- $input-box-shadow-focus: 0 0 0 2px $input-box-shadow-color-default-focus;
122
-
123
- // 动画
124
- $input-inner-transition:
125
- border $anim-time-fn-easing $anim-duration-base,
126
- box-shadow $anim-time-fn-easing $anim-duration-base,
127
- background-color $anim-time-fn-easing $anim-duration-base;
128
-
129
- // 交互
130
- $input-cursor-readonly: pointer;
1
+ @use "../../_vars.scss" as *;
2
+ // 组件变量
3
+ // 名称可按如下规则定义//
4
+ // <component>-[type]-[attrtype]-<attr>-[status]
5
+
6
+ // component:组件名,如button// type: 组件类型,如 button 的次要按钮(line// attrtype: 属性的具体应用场景。如颜色,用于背景(bg)、文本(text)、边框(border)等
7
+ // attr: 属性名称,如color、height、radius// status: 表示组件状态或尺寸,如 hover、disabled、s、l
8
+
9
+ // 如:$button-line-bg-color-hover
10
+ // 如:$button-line-height-s
11
+
12
+ // 颜色
13
+ $input-border-color-default: $border-level-2-color;
14
+ $input-border-color-default-hover: $brand-color;
15
+ $input-border-color-default-focus: $brand-color;
16
+ $input-border-color-success: $success-color;
17
+ $input-border-color-warning: $warning-color;
18
+ $input-border-color-error: $error-color;
19
+
20
+ $input-color: (
21
+ border: (
22
+ default: (
23
+ hover: $brand-color,
24
+ focus: $brand-color
25
+ ),
26
+ success: $success-color,
27
+ warning: $warning-color,
28
+ error: $error-color
29
+ ),
30
+ text: (
31
+ default: $text-color-primary,
32
+ success: $success-color,
33
+ warning: $warning-color,
34
+ error: $error-color,
35
+ readonly: $text-color-primary,
36
+ tips: $text-color-placeholder,
37
+ disabled: $text-color-disabled
38
+ ),
39
+ bg-color: (
40
+ default: $text-color-placeholder,
41
+ readonly: $bg-color-specialcomponent,
42
+ disabled: $bg-color-component-disabled
43
+ ),
44
+ extra: (
45
+ default: $text-color-placeholder,
46
+ success: $success-color,
47
+ warning: $warning-color,
48
+ error: $error-color
49
+ ),
50
+ append: $bg-color-secondarycontainer-hover,
51
+ limit: $text-color-placeholder,
52
+ box-shadow: (
53
+ default: $brand-color-focus,
54
+ success: $success-color-focus,
55
+ warning: $warning-color-focus,
56
+ error: $error-color-focus
57
+ )
58
+ );
59
+
60
+ $input-text-color-success: $success-color;
61
+ $input-text-color-warning: $warning-color;
62
+ $input-text-color-error: $error-color;
63
+
64
+ $input-text-color-default: $text-color-primary;
65
+ $input-text-color-readonly: $text-color-primary;
66
+ $input-text-color-disabled: $text-color-disabled;
67
+ $input-text-color-tips: $text-color-placeholder;
68
+ $input-placeholder-color: $text-color-placeholder;
69
+
70
+ // input 输入框需要在浅色主题下有默认白色背景,而在暗色等其他主题下 transparent 适配背景色,因此不使用通用背景 token
71
+ $input-bg-color-default: $bg-color-specialcomponent;
72
+ $input-bg-color-readonly: $bg-color-specialcomponent;
73
+ $input-bg-color-disabled: $bg-color-component-disabled;
74
+
75
+ $input-extra-color-default: $text-color-placeholder;
76
+ $input-extra-color-success: $success-color;
77
+ $input-extra-color-warning: $warning-color;
78
+ $input-extra-color-error: $error-color;
79
+
80
+ $input-append-color: $bg-color-secondarycontainer-hover;
81
+
82
+ $input-limit-color: $text-color-placeholder;
83
+
84
+ // 位置
85
+ $input-fix-position: $spacer;
86
+
87
+ // 间距
88
+ $input-padding-l: $comp-paddingTB-m $comp-paddingLR-m;
89
+ $input-padding-default: 0 $comp-paddingLR-s;
90
+ $input-margin-distance-default: $comp-margin-xxxl;
91
+ $input-status-position-right: -24px;
92
+ $input-group-first-child-margin-left: -1px;
93
+
94
+ // 尺寸
95
+ $input-height-s: $comp-size-xs;
96
+ $input-height-default: $comp-size-m;
97
+ $input-height-l: $comp-size-xl;
98
+ $input-inner-icon-font-size: inherit;
99
+ $input-tips-min-height: $text-line-height-s;
100
+
101
+ // 图标
102
+ $input-inner-prefix-icon-color: $text-color-placeholder;
103
+ $input-inner-suffix-icon-color: $text-color-placeholder;
104
+ $input-inner-suffix-icon-color-hover: $text-color-secondary;
105
+
106
+ // 字号
107
+ $input-font-l: $font-body-large;
108
+ $input-font: $font-body-medium;
109
+ $input-font-s: $font-body-small;
110
+ $input-extra-font: $font-body-small;
111
+ $input-tips-font: $font-body-small;
112
+
113
+ // 边框
114
+ $input-border-radius: $border-radius-default;
115
+
116
+ // box
117
+ $input-box-shadow-color-default-focus: $brand-color-focus;
118
+ $input-box-shadow-color-success-focus: $success-color-focus;
119
+ $input-box-shadow-color-warning-focus: $warning-color-focus;
120
+ $input-box-shadow-color-error-focus: $error-color-focus;
121
+ $input-box-shadow-focus: 0 0 0 2px $input-box-shadow-color-default-focus;
122
+
123
+ // 动画
124
+ $input-inner-transition:
125
+ border $anim-time-fn-easing $anim-duration-base,
126
+ box-shadow $anim-time-fn-easing $anim-duration-base,
127
+ background-color $anim-time-fn-easing $anim-duration-base;
128
+
129
+ // 交互
130
+ $input-cursor-readonly: pointer;