@autobest-ui/components 1.1.4 → 1.1.10

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 (162) hide show
  1. package/README.md +10 -10
  2. package/esm/affix/style/index.scss +34 -34
  3. package/esm/base.scss +42 -42
  4. package/esm/carousel/style/index.scss +37 -37
  5. package/esm/checkbox/style/index.scss +117 -117
  6. package/esm/collapse/style/index.scss +42 -42
  7. package/esm/confirm/style/index.scss +44 -44
  8. package/esm/date-picker/calendar/grid/index.scss +85 -85
  9. package/esm/date-picker/calendar/index.d.ts +4 -0
  10. package/esm/date-picker/calendar/index.js +1 -1
  11. package/esm/date-picker/calendar/index.scss +57 -57
  12. package/esm/date-picker/index.d.ts +17 -6
  13. package/esm/date-picker/index.js +49 -8
  14. package/esm/date-picker/style/index.css +1 -1
  15. package/esm/date-picker/style/index.scss +23 -19
  16. package/esm/drawer/style/index.scss +44 -44
  17. package/esm/ellipsis/style/index.scss +35 -35
  18. package/esm/guide/style/index.scss +17 -17
  19. package/esm/icon/style/index.scss +6 -6
  20. package/esm/index.d.ts +2 -1
  21. package/esm/input-number/index.d.ts +30 -17
  22. package/esm/input-number/index.js +116 -36
  23. package/esm/input-number/style/index.scss +86 -86
  24. package/esm/lazy-image/style/index.scss +24 -24
  25. package/esm/link-list/style/index.scss +125 -125
  26. package/esm/loading/style/index.scss +30 -30
  27. package/esm/loading-bar/style/index.scss +62 -62
  28. package/esm/loading-container/style/index.scss +27 -27
  29. package/esm/loading-icon/style/index.scss +23 -23
  30. package/esm/mask/style/index.scss +34 -34
  31. package/esm/message/style/index.scss +70 -70
  32. package/esm/modal/style/index.scss +112 -112
  33. package/esm/move/style/index.scss +7 -7
  34. package/esm/popover/style/index.scss +59 -59
  35. package/esm/select/style/index.scss +126 -126
  36. package/esm/show-more/style/index.scss +22 -22
  37. package/esm/skeleton/style/index.scss +26 -26
  38. package/esm/style.css +5 -19
  39. package/esm/table/body/BodyRow.d.ts +9 -3
  40. package/esm/table/body/BodyRow.js +6 -2
  41. package/esm/table/body/index.d.ts +2 -2
  42. package/esm/table/body/index.js +8 -7
  43. package/esm/table/header/HeaderCell.d.ts +2 -2
  44. package/esm/table/header/HeaderRow.d.ts +2 -2
  45. package/esm/table/index.d.ts +4 -4
  46. package/esm/table/index.js +3 -3
  47. package/esm/table/interface.d.ts +9 -3
  48. package/esm/table/style/index.scss +51 -51
  49. package/esm/tabs/style/index.scss +62 -62
  50. package/esm/tooltip/style/index.scss +61 -61
  51. package/esm/trigger/style/index.scss +79 -79
  52. package/lib/affix/style/index.scss +34 -34
  53. package/lib/base.scss +42 -42
  54. package/lib/carousel/style/index.scss +37 -37
  55. package/lib/checkbox/style/index.scss +117 -117
  56. package/lib/collapse/style/index.scss +42 -42
  57. package/lib/confirm/style/index.scss +44 -44
  58. package/lib/date-picker/calendar/grid/index.scss +85 -85
  59. package/lib/date-picker/calendar/index.d.ts +4 -0
  60. package/lib/date-picker/calendar/index.js +1 -1
  61. package/lib/date-picker/calendar/index.scss +57 -57
  62. package/lib/date-picker/index.d.ts +17 -6
  63. package/lib/date-picker/index.js +49 -8
  64. package/lib/date-picker/style/index.css +1 -1
  65. package/lib/date-picker/style/index.scss +23 -19
  66. package/lib/drawer/style/index.scss +44 -44
  67. package/lib/ellipsis/style/index.scss +35 -35
  68. package/lib/guide/style/index.scss +17 -17
  69. package/lib/icon/style/index.scss +6 -6
  70. package/lib/index.d.ts +2 -1
  71. package/lib/input-number/index.d.ts +30 -17
  72. package/lib/input-number/index.js +116 -36
  73. package/lib/input-number/style/index.scss +86 -86
  74. package/lib/lazy-image/style/index.scss +24 -24
  75. package/lib/link-list/style/index.scss +125 -125
  76. package/lib/loading/style/index.scss +30 -30
  77. package/lib/loading-bar/style/index.scss +62 -62
  78. package/lib/loading-container/style/index.scss +27 -27
  79. package/lib/loading-icon/style/index.scss +23 -23
  80. package/lib/mask/style/index.scss +34 -34
  81. package/lib/message/style/index.scss +70 -70
  82. package/lib/modal/style/index.scss +112 -112
  83. package/lib/move/style/index.scss +7 -7
  84. package/lib/popover/style/index.scss +59 -59
  85. package/lib/select/style/index.scss +126 -126
  86. package/lib/show-more/style/index.scss +22 -22
  87. package/lib/skeleton/style/index.scss +26 -26
  88. package/lib/style.css +5 -19
  89. package/lib/table/body/BodyRow.d.ts +9 -3
  90. package/lib/table/body/BodyRow.js +6 -2
  91. package/lib/table/body/index.d.ts +2 -2
  92. package/lib/table/body/index.js +8 -7
  93. package/lib/table/header/HeaderCell.d.ts +2 -2
  94. package/lib/table/header/HeaderRow.d.ts +2 -2
  95. package/lib/table/index.d.ts +4 -4
  96. package/lib/table/index.js +3 -3
  97. package/lib/table/interface.d.ts +9 -3
  98. package/lib/table/style/index.scss +51 -51
  99. package/lib/tabs/style/index.scss +62 -62
  100. package/lib/tooltip/style/index.scss +61 -61
  101. package/lib/trigger/style/index.scss +79 -79
  102. package/package.json +2 -2
  103. package/esm/accordion/__stories__/style.css +0 -1
  104. package/esm/accordion/__stories__/style.scss +0 -59
  105. package/esm/affix/__stories__/style.css +0 -1
  106. package/esm/affix/__stories__/style.scss +0 -13
  107. package/esm/carousel/__stories__/style.css +0 -1
  108. package/esm/carousel/__stories__/style.scss +0 -41
  109. package/esm/collapse/__stories__/style.css +0 -1
  110. package/esm/collapse/__stories__/style.scss +0 -19
  111. package/esm/guide/__stories__/style.css +0 -1
  112. package/esm/guide/__stories__/style.scss +0 -14
  113. package/esm/icon/__stories__/iconNames.d.ts +0 -2
  114. package/esm/icon/__stories__/iconNames.js +0 -1
  115. package/esm/icon/__stories__/style.css +0 -1
  116. package/esm/icon/__stories__/style.scss +0 -40
  117. package/esm/lazy-image/__stories__/style.css +0 -1
  118. package/esm/lazy-image/__stories__/style.scss +0 -9
  119. package/esm/loading-container/__stories__/style.css +0 -1
  120. package/esm/loading-container/__stories__/style.scss +0 -6
  121. package/esm/move/__stories__/style.css +0 -1
  122. package/esm/move/__stories__/style.scss +0 -6
  123. package/esm/popover/__stories__/style.css +0 -1
  124. package/esm/popover/__stories__/style.scss +0 -16
  125. package/esm/select/__stories__/style.css +0 -1
  126. package/esm/select/__stories__/style.scss +0 -8
  127. package/esm/skeleton/__stories__/style.css +0 -1
  128. package/esm/skeleton/__stories__/style.scss +0 -3
  129. package/esm/table/__stories__/style.css +0 -1
  130. package/esm/table/__stories__/style.scss +0 -34
  131. package/esm/tabs/__stories__/style.css +0 -1
  132. package/esm/tabs/__stories__/style.scss +0 -8
  133. package/lib/accordion/__stories__/style.css +0 -1
  134. package/lib/accordion/__stories__/style.scss +0 -59
  135. package/lib/affix/__stories__/style.css +0 -1
  136. package/lib/affix/__stories__/style.scss +0 -13
  137. package/lib/carousel/__stories__/style.css +0 -1
  138. package/lib/carousel/__stories__/style.scss +0 -41
  139. package/lib/collapse/__stories__/style.css +0 -1
  140. package/lib/collapse/__stories__/style.scss +0 -19
  141. package/lib/guide/__stories__/style.css +0 -1
  142. package/lib/guide/__stories__/style.scss +0 -14
  143. package/lib/icon/__stories__/iconNames.d.ts +0 -2
  144. package/lib/icon/__stories__/iconNames.js +0 -8
  145. package/lib/icon/__stories__/style.css +0 -1
  146. package/lib/icon/__stories__/style.scss +0 -40
  147. package/lib/lazy-image/__stories__/style.css +0 -1
  148. package/lib/lazy-image/__stories__/style.scss +0 -9
  149. package/lib/loading-container/__stories__/style.css +0 -1
  150. package/lib/loading-container/__stories__/style.scss +0 -6
  151. package/lib/move/__stories__/style.css +0 -1
  152. package/lib/move/__stories__/style.scss +0 -6
  153. package/lib/popover/__stories__/style.css +0 -1
  154. package/lib/popover/__stories__/style.scss +0 -16
  155. package/lib/select/__stories__/style.css +0 -1
  156. package/lib/select/__stories__/style.scss +0 -8
  157. package/lib/skeleton/__stories__/style.css +0 -1
  158. package/lib/skeleton/__stories__/style.scss +0 -3
  159. package/lib/table/__stories__/style.css +0 -1
  160. package/lib/table/__stories__/style.scss +0 -34
  161. package/lib/tabs/__stories__/style.css +0 -1
  162. package/lib/tabs/__stories__/style.scss +0 -8
@@ -1,71 +1,71 @@
1
- $namespace: ab-message;
2
- $contentFade: #{$namespace}-fade;
3
-
4
- .#{$namespace} {
5
- &-container {
6
- position: fixed;
7
- left: 0;
8
- bottom: 0;
9
- }
10
-
11
- &-content {
12
- display: flex;
13
- align-items: center;
14
- justify-content: space-between;
15
- max-width: calc(100vw - .3rem);
16
- border-radius: .02rem;
17
- margin: .08rem .15rem;
18
- padding: .08rem;
19
- background-color: #333;
20
- color: #fff;
21
- box-shadow: 0 .04rem .08rem #00000059;
22
- transition: opacity 300ms;
23
- }
24
-
25
- &-close {
26
- display: flex;
27
- align-items: center;
28
- justify-content: center;
29
- cursor: pointer;
30
- width: .2rem;
31
- height: .2rem;
32
- font-size: .2rem;
33
- margin-left: .08rem;
34
- color: #b0b0b0;
35
-
36
- &:hover {
37
- color: #fff;
38
- }
39
- }
40
- }
41
-
42
- .#{$contentFade} {
43
- &-enter, &-appear {
44
- opacity: 0;
45
- }
46
-
47
- &-enter-active, &-appear-active, &-enter-done {
48
- opacity: 1;
49
- }
50
-
51
- &-exit {
52
- opacity: 1;
53
- }
54
-
55
- &-exit-active {
56
- opacity: 0;
57
- }
58
-
59
- &-exit-done {
60
- display: none;
61
- }
62
- }
63
-
64
- @media only screen and (max-width: 767px) {
65
- .#{$namespace} {
66
- &-content {
67
- width: calc(100vw - .3rem);
68
- margin: .08rem .15rem;
69
- }
70
- }
1
+ $namespace: ab-message;
2
+ $contentFade: #{$namespace}-fade;
3
+
4
+ .#{$namespace} {
5
+ &-container {
6
+ position: fixed;
7
+ left: 0;
8
+ bottom: 0;
9
+ }
10
+
11
+ &-content {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ max-width: calc(100vw - .3rem);
16
+ border-radius: .02rem;
17
+ margin: .08rem .15rem;
18
+ padding: .08rem;
19
+ background-color: #333;
20
+ color: #fff;
21
+ box-shadow: 0 .04rem .08rem #00000059;
22
+ transition: opacity 300ms;
23
+ }
24
+
25
+ &-close {
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ cursor: pointer;
30
+ width: .2rem;
31
+ height: .2rem;
32
+ font-size: .2rem;
33
+ margin-left: .08rem;
34
+ color: #b0b0b0;
35
+
36
+ &:hover {
37
+ color: #fff;
38
+ }
39
+ }
40
+ }
41
+
42
+ .#{$contentFade} {
43
+ &-enter, &-appear {
44
+ opacity: 0;
45
+ }
46
+
47
+ &-enter-active, &-appear-active, &-enter-done {
48
+ opacity: 1;
49
+ }
50
+
51
+ &-exit {
52
+ opacity: 1;
53
+ }
54
+
55
+ &-exit-active {
56
+ opacity: 0;
57
+ }
58
+
59
+ &-exit-done {
60
+ display: none;
61
+ }
62
+ }
63
+
64
+ @media only screen and (max-width: 767px) {
65
+ .#{$namespace} {
66
+ &-content {
67
+ width: calc(100vw - .3rem);
68
+ margin: .08rem .15rem;
69
+ }
70
+ }
71
71
  }
@@ -1,112 +1,112 @@
1
- $namespace: ab-modal;
2
- $modalFade: #{$namespace}-fade;
3
-
4
- .#{$namespace} {
5
- position: fixed;
6
- top: 0;
7
- right: 0;
8
- bottom: 0;
9
- left: 0;
10
- z-index: 101;
11
- overflow: auto;
12
- outline: 0;
13
-
14
- &.#{$namespace}-center {
15
- text-align: center;
16
-
17
- &:before {
18
- display: inline-block;
19
- width: 0;
20
- height: 100%;
21
- vertical-align: middle;
22
- content: '';
23
- }
24
-
25
- .#{$namespace}-content {
26
- top: 0;
27
- text-align: left;
28
- display: inline-block;
29
- vertical-align: middle;
30
- }
31
- }
32
-
33
- &-content {
34
- position: relative;
35
- background-color: #fff;
36
- max-width: calc(100vw - .3rem);
37
- margin-left: auto;
38
- margin-right: auto;
39
- overflow: auto;
40
- -webkit-overflow-scrolling: touch;
41
- transition: transform 300ms, opacity 300ms cubic-bezier(.7, .3, .1, 1);
42
- z-index: 101;
43
- }
44
-
45
- &-title {
46
- position: relative;
47
- width: 100%;
48
-
49
- .#{$namespace}-times {
50
- top: 50%;
51
- transform: translateY(-50%);
52
- }
53
- }
54
-
55
- &-times {
56
- position: absolute;
57
- top: .12rem;
58
- right: .12rem;
59
- font-size: .15rem;
60
- color: #b0b0b0;
61
- cursor: pointer;
62
-
63
- svg {
64
- display: block;
65
- }
66
-
67
- &:hover {
68
- color: #333;
69
- }
70
- }
71
- &-hidden {
72
- display: none;
73
- }
74
- }
75
-
76
- @media only screen and (max-width: 767px) {
77
- .#{$namespace}-content {
78
- width: calc(100vw - .3rem);
79
- }
80
- }
81
-
82
-
83
- .#{$modalFade} {
84
- &-enter, &-appear {
85
- transform: translate3d(0, -30px, 0);
86
- opacity: 0
87
- }
88
-
89
- &-enter-active, &-appear-active {
90
- transform: translateZ(0);
91
- opacity: 1
92
- }
93
-
94
- &-enter-done {
95
- transform: translateZ(0);
96
- opacity: 1
97
- }
98
-
99
- &-exit {
100
- transform: translateZ(0);
101
- opacity: 1
102
- }
103
-
104
- &-exit-active {
105
- transform: translate3d(0, -30px, 0);
106
- opacity: 0
107
- }
108
-
109
- &-exit-done {
110
- display: none;
111
- }
112
- }
1
+ $namespace: ab-modal;
2
+ $modalFade: #{$namespace}-fade;
3
+
4
+ .#{$namespace} {
5
+ position: fixed;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ left: 0;
10
+ z-index: 101;
11
+ overflow: auto;
12
+ outline: 0;
13
+
14
+ &.#{$namespace}-center {
15
+ text-align: center;
16
+
17
+ &:before {
18
+ display: inline-block;
19
+ width: 0;
20
+ height: 100%;
21
+ vertical-align: middle;
22
+ content: '';
23
+ }
24
+
25
+ .#{$namespace}-content {
26
+ top: 0;
27
+ text-align: left;
28
+ display: inline-block;
29
+ vertical-align: middle;
30
+ }
31
+ }
32
+
33
+ &-content {
34
+ position: relative;
35
+ background-color: #fff;
36
+ max-width: calc(100vw - .3rem);
37
+ margin-left: auto;
38
+ margin-right: auto;
39
+ overflow: auto;
40
+ -webkit-overflow-scrolling: touch;
41
+ transition: transform 300ms, opacity 300ms cubic-bezier(.7, .3, .1, 1);
42
+ z-index: 101;
43
+ }
44
+
45
+ &-title {
46
+ position: relative;
47
+ width: 100%;
48
+
49
+ .#{$namespace}-times {
50
+ top: 50%;
51
+ transform: translateY(-50%);
52
+ }
53
+ }
54
+
55
+ &-times {
56
+ position: absolute;
57
+ top: .12rem;
58
+ right: .12rem;
59
+ font-size: .15rem;
60
+ color: #b0b0b0;
61
+ cursor: pointer;
62
+
63
+ svg {
64
+ display: block;
65
+ }
66
+
67
+ &:hover {
68
+ color: #333;
69
+ }
70
+ }
71
+ &-hidden {
72
+ display: none;
73
+ }
74
+ }
75
+
76
+ @media only screen and (max-width: 767px) {
77
+ .#{$namespace}-content {
78
+ width: calc(100vw - .3rem);
79
+ }
80
+ }
81
+
82
+
83
+ .#{$modalFade} {
84
+ &-enter, &-appear {
85
+ transform: translate3d(0, -30px, 0);
86
+ opacity: 0
87
+ }
88
+
89
+ &-enter-active, &-appear-active {
90
+ transform: translateZ(0);
91
+ opacity: 1
92
+ }
93
+
94
+ &-enter-done {
95
+ transform: translateZ(0);
96
+ opacity: 1
97
+ }
98
+
99
+ &-exit {
100
+ transform: translateZ(0);
101
+ opacity: 1
102
+ }
103
+
104
+ &-exit-active {
105
+ transform: translate3d(0, -30px, 0);
106
+ opacity: 0
107
+ }
108
+
109
+ &-exit-done {
110
+ display: none;
111
+ }
112
+ }
@@ -1,7 +1,7 @@
1
- $namespace: ab-move;
2
-
3
- .#{$namespace} {
4
- cursor: move;
5
- visibility: hidden;
6
- transform-origin: center center;
7
- }
1
+ $namespace: ab-move;
2
+
3
+ .#{$namespace} {
4
+ cursor: move;
5
+ visibility: hidden;
6
+ transform-origin: center center;
7
+ }
@@ -1,60 +1,60 @@
1
- $namespace: ab-popover;
2
-
3
- .#{$namespace} {
4
- &-wrap {
5
- background-color: #fff;
6
- background-clip: padding-box;
7
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
8
- padding: .08rem .11rem .05rem;
9
- min-width: 210px;
10
- border-radius: 4px;
11
- }
12
-
13
- &-inner {
14
- position: relative;
15
- width: 100%;
16
- overflow: hidden;
17
- font-size: .12rem;
18
-
19
- &-expand {
20
- padding-right: .1rem;
21
- }
22
- }
23
-
24
- &-arrow {
25
- position: absolute;
26
- display: block;
27
- width: 8px;
28
- height: 8px;
29
- border-top-color: transparent;
30
- border-left-color: transparent;
31
- border-style: solid;
32
- background-color: #fff;
33
- border-right-color: #fff;
34
- border-bottom-color: #fff;
35
- border-width: 4px;
36
- box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
37
- }
38
-
39
- &-close {
40
- position: absolute;
41
- right: .02rem;
42
- top: .05rem;
43
- cursor: pointer;
44
- padding: 0 .05rem;
45
- color: #bfbfbf;
46
- font-size: 0.2rem;
47
- line-height: 1;
48
- z-index: 2;
49
-
50
- &:hover {
51
- color: #4A4A4A;
52
- }
53
- }
54
- }
55
-
56
- @media only screen and (max-width: 767px) {
57
- .#{$namespace}-wrap {
58
- width: calc(100% - .3rem);
59
- }
1
+ $namespace: ab-popover;
2
+
3
+ .#{$namespace} {
4
+ &-wrap {
5
+ background-color: #fff;
6
+ background-clip: padding-box;
7
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
8
+ padding: .08rem .11rem .05rem;
9
+ min-width: 210px;
10
+ border-radius: 4px;
11
+ }
12
+
13
+ &-inner {
14
+ position: relative;
15
+ width: 100%;
16
+ overflow: hidden;
17
+ font-size: .12rem;
18
+
19
+ &-expand {
20
+ padding-right: .1rem;
21
+ }
22
+ }
23
+
24
+ &-arrow {
25
+ position: absolute;
26
+ display: block;
27
+ width: 8px;
28
+ height: 8px;
29
+ border-top-color: transparent;
30
+ border-left-color: transparent;
31
+ border-style: solid;
32
+ background-color: #fff;
33
+ border-right-color: #fff;
34
+ border-bottom-color: #fff;
35
+ border-width: 4px;
36
+ box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
37
+ }
38
+
39
+ &-close {
40
+ position: absolute;
41
+ right: .02rem;
42
+ top: .05rem;
43
+ cursor: pointer;
44
+ padding: 0 .05rem;
45
+ color: #bfbfbf;
46
+ font-size: 0.2rem;
47
+ line-height: 1;
48
+ z-index: 2;
49
+
50
+ &:hover {
51
+ color: #4A4A4A;
52
+ }
53
+ }
54
+ }
55
+
56
+ @media only screen and (max-width: 767px) {
57
+ .#{$namespace}-wrap {
58
+ width: calc(100% - .3rem);
59
+ }
60
60
  }