@autobest-ui/components 1.1.2 → 1.2.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 (106) hide show
  1. package/README.md +10 -10
  2. package/esm/accordion/__stories__/style.scss +58 -58
  3. package/esm/affix/__stories__/style.scss +13 -13
  4. package/esm/affix/style/index.scss +34 -34
  5. package/esm/base.scss +42 -42
  6. package/esm/carousel/__stories__/style.scss +41 -41
  7. package/esm/carousel/index.d.ts +21 -13
  8. package/esm/carousel/index.js +77 -44
  9. package/esm/carousel/style/index.css +1 -1
  10. package/esm/carousel/style/index.scss +43 -37
  11. package/esm/checkbox/style/index.scss +117 -117
  12. package/esm/collapse/__stories__/style.scss +18 -18
  13. package/esm/collapse/style/index.scss +42 -42
  14. package/esm/confirm/style/index.scss +44 -44
  15. package/esm/date-picker/calendar/grid/index.scss +85 -85
  16. package/esm/date-picker/calendar/index.scss +57 -57
  17. package/esm/date-picker/style/index.scss +18 -18
  18. package/esm/drawer/style/index.scss +44 -44
  19. package/esm/ellipsis/style/index.scss +35 -35
  20. package/esm/guide/__stories__/style.scss +13 -13
  21. package/esm/guide/style/index.scss +17 -17
  22. package/esm/icon/__stories__/style.scss +39 -39
  23. package/esm/icon/style/index.scss +6 -6
  24. package/esm/index.d.ts +1 -1
  25. package/esm/index.js +1 -1
  26. package/esm/input-number/style/index.scss +86 -86
  27. package/esm/lazy-image/__stories__/style.scss +9 -9
  28. package/esm/lazy-image/style/index.scss +24 -24
  29. package/esm/link-list/style/index.scss +125 -125
  30. package/esm/loading/style/index.scss +30 -30
  31. package/esm/loading-bar/style/index.scss +62 -62
  32. package/esm/loading-container/__stories__/style.scss +5 -5
  33. package/esm/loading-container/style/index.scss +27 -27
  34. package/esm/loading-icon/style/index.scss +23 -23
  35. package/esm/mask/style/index.scss +34 -34
  36. package/esm/message/style/index.scss +70 -70
  37. package/esm/modal/style/index.scss +112 -112
  38. package/esm/move/__stories__/style.scss +6 -6
  39. package/esm/move/style/index.scss +7 -7
  40. package/esm/popover/__stories__/style.scss +15 -15
  41. package/esm/popover/style/index.scss +59 -59
  42. package/esm/select/__stories__/style.scss +8 -8
  43. package/esm/select/style/index.scss +126 -126
  44. package/esm/show-more/style/index.scss +22 -22
  45. package/esm/skeleton/__stories__/style.scss +2 -2
  46. package/esm/skeleton/style/index.scss +26 -26
  47. package/esm/style.css +16 -16
  48. package/esm/table/__stories__/style.scss +33 -33
  49. package/esm/table/style/index.scss +51 -51
  50. package/esm/tabs/__stories__/style.scss +8 -8
  51. package/esm/tabs/style/index.scss +62 -62
  52. package/esm/tooltip/style/index.scss +61 -61
  53. package/esm/trigger/style/index.scss +79 -79
  54. package/lib/accordion/__stories__/style.scss +58 -58
  55. package/lib/affix/__stories__/style.scss +13 -13
  56. package/lib/affix/style/index.scss +34 -34
  57. package/lib/base.scss +42 -42
  58. package/lib/carousel/__stories__/style.scss +41 -41
  59. package/lib/carousel/index.d.ts +21 -13
  60. package/lib/carousel/index.js +80 -45
  61. package/lib/carousel/style/index.css +1 -1
  62. package/lib/carousel/style/index.scss +43 -37
  63. package/lib/checkbox/style/index.scss +117 -117
  64. package/lib/collapse/__stories__/style.scss +18 -18
  65. package/lib/collapse/style/index.scss +42 -42
  66. package/lib/confirm/style/index.scss +44 -44
  67. package/lib/date-picker/calendar/grid/index.scss +85 -85
  68. package/lib/date-picker/calendar/index.scss +57 -57
  69. package/lib/date-picker/style/index.scss +18 -18
  70. package/lib/drawer/style/index.scss +44 -44
  71. package/lib/ellipsis/style/index.scss +35 -35
  72. package/lib/guide/__stories__/style.scss +13 -13
  73. package/lib/guide/style/index.scss +17 -17
  74. package/lib/icon/__stories__/style.scss +39 -39
  75. package/lib/icon/style/index.scss +6 -6
  76. package/lib/index.d.ts +1 -1
  77. package/lib/index.js +14 -2
  78. package/lib/input-number/style/index.scss +86 -86
  79. package/lib/lazy-image/__stories__/style.scss +9 -9
  80. package/lib/lazy-image/style/index.scss +24 -24
  81. package/lib/link-list/style/index.scss +125 -125
  82. package/lib/loading/style/index.scss +30 -30
  83. package/lib/loading-bar/style/index.scss +62 -62
  84. package/lib/loading-container/__stories__/style.scss +5 -5
  85. package/lib/loading-container/style/index.scss +27 -27
  86. package/lib/loading-icon/style/index.scss +23 -23
  87. package/lib/mask/style/index.scss +34 -34
  88. package/lib/message/style/index.scss +70 -70
  89. package/lib/modal/style/index.scss +112 -112
  90. package/lib/move/__stories__/style.scss +6 -6
  91. package/lib/move/style/index.scss +7 -7
  92. package/lib/popover/__stories__/style.scss +15 -15
  93. package/lib/popover/style/index.scss +59 -59
  94. package/lib/select/__stories__/style.scss +8 -8
  95. package/lib/select/style/index.scss +126 -126
  96. package/lib/show-more/style/index.scss +22 -22
  97. package/lib/skeleton/__stories__/style.scss +2 -2
  98. package/lib/skeleton/style/index.scss +26 -26
  99. package/lib/style.css +16 -16
  100. package/lib/table/__stories__/style.scss +33 -33
  101. package/lib/table/style/index.scss +51 -51
  102. package/lib/tabs/__stories__/style.scss +8 -8
  103. package/lib/tabs/style/index.scss +62 -62
  104. package/lib/tooltip/style/index.scss +61 -61
  105. package/lib/trigger/style/index.scss +79 -79
  106. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
- .guide-demo {
2
- .input {
3
- width: 3rem;
4
- }
5
-
6
- .btn {
7
- display: block;
8
- margin-top: .2rem;
9
- width: .8rem;
10
- height: .3rem;
11
- font-size: .16rem;
12
- text-align: center;
13
- }
1
+ .guide-demo {
2
+ .input {
3
+ width: 3rem;
4
+ }
5
+
6
+ .btn {
7
+ display: block;
8
+ margin-top: .2rem;
9
+ width: .8rem;
10
+ height: .3rem;
11
+ font-size: .16rem;
12
+ text-align: center;
13
+ }
14
14
  }
@@ -1,18 +1,18 @@
1
- $namespace: ab-guide;
2
-
3
- .#{$namespace} {
4
- &-mask.ab-mask {
5
- background-color: rgba(0, 0, 0, .7);
6
- z-index: 4;
7
- }
8
-
9
- &-icon {
10
- position: absolute;
11
- z-index: 5;
12
- }
13
-
14
- &-content {
15
- position: relative;
16
- z-index: 6;
17
- }
1
+ $namespace: ab-guide;
2
+
3
+ .#{$namespace} {
4
+ &-mask.ab-mask {
5
+ background-color: rgba(0, 0, 0, .7);
6
+ z-index: 4;
7
+ }
8
+
9
+ &-icon {
10
+ position: absolute;
11
+ z-index: 5;
12
+ }
13
+
14
+ &-content {
15
+ position: relative;
16
+ z-index: 6;
17
+ }
18
18
  }
@@ -1,40 +1,40 @@
1
- .demo-icon-list{
2
- padding: .2rem .1rem;
3
- font-size: .12rem;
4
- display: flex;
5
- width: 100%;
6
- flex-wrap: wrap;
7
-
8
- & > li {
9
- padding: .1rem;
10
- border: 1px solid #E0E0E0;
11
- margin: .05rem;
12
- display: flex;
13
- flex-direction: column;
14
- justify-content: center;
15
- align-items: center;
16
- background-color: #F3F4F6;
17
- min-width: 1.2rem;
18
- min-height: 1.5rem;
19
-
20
- svg {
21
- max-width: .5rem;
22
- height: .5rem;
23
- }
24
-
25
- p {
26
- padding: 0 5px;
27
- text-align: center;
28
- width: 1rem;
29
- word-break: break-all;
30
- }
31
-
32
- &:hover{
33
- background-color: #E5E7EB;
34
- }
35
- }
36
-
37
- .demo-icon-name{
38
- padding-top: .15rem;
39
- }
1
+ .demo-icon-list{
2
+ padding: .2rem .1rem;
3
+ font-size: .12rem;
4
+ display: flex;
5
+ width: 100%;
6
+ flex-wrap: wrap;
7
+
8
+ & > li {
9
+ padding: .1rem;
10
+ border: 1px solid #E0E0E0;
11
+ margin: .05rem;
12
+ display: flex;
13
+ flex-direction: column;
14
+ justify-content: center;
15
+ align-items: center;
16
+ background-color: #F3F4F6;
17
+ min-width: 1.2rem;
18
+ min-height: 1.5rem;
19
+
20
+ svg {
21
+ max-width: .5rem;
22
+ height: .5rem;
23
+ }
24
+
25
+ p {
26
+ padding: 0 5px;
27
+ text-align: center;
28
+ width: 1rem;
29
+ word-break: break-all;
30
+ }
31
+
32
+ &:hover{
33
+ background-color: #E5E7EB;
34
+ }
35
+ }
36
+
37
+ .demo-icon-name{
38
+ padding-top: .15rem;
39
+ }
40
40
  }
@@ -1,7 +1,7 @@
1
- $namespace: ab-icon;
2
-
3
- .#{$namespace}{
4
- &, span, div, svg{
5
- display: block;
6
- }
1
+ $namespace: ab-icon;
2
+
3
+ .#{$namespace}{
4
+ &, span, div, svg{
5
+ display: block;
6
+ }
7
7
  }
package/lib/index.d.ts CHANGED
@@ -26,7 +26,7 @@ export { default as Confirm } from './confirm';
26
26
  export type { CollapseProps } from './collapse';
27
27
  export { default as Collapse } from './collapse';
28
28
  export type { CarouselProps } from './carousel';
29
- export { default as Carousel } from './carousel';
29
+ export { default as Carousel, CarouselDirection } from './carousel';
30
30
  export type { GuideProps } from './guide';
31
31
  export { default as Guide } from './guide';
32
32
  export type { DrawerProps } from './drawer';
package/lib/index.js CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
@@ -95,6 +97,12 @@ Object.defineProperty(exports, "Carousel", {
95
97
  return _carousel.default;
96
98
  }
97
99
  });
100
+ Object.defineProperty(exports, "CarouselDirection", {
101
+ enumerable: true,
102
+ get: function get() {
103
+ return _carousel.CarouselDirection;
104
+ }
105
+ });
98
106
  Object.defineProperty(exports, "Guide", {
99
107
  enumerable: true,
100
108
  get: function get() {
@@ -214,7 +222,7 @@ var _confirm = _interopRequireDefault(require("./confirm"));
214
222
 
215
223
  var _collapse = _interopRequireDefault(require("./collapse"));
216
224
 
217
- var _carousel = _interopRequireDefault(require("./carousel"));
225
+ var _carousel = _interopRequireWildcard(require("./carousel"));
218
226
 
219
227
  var _guide = _interopRequireDefault(require("./guide"));
220
228
 
@@ -244,4 +252,8 @@ var _loadingContainer = _interopRequireDefault(require("./loading-container"));
244
252
 
245
253
  var _loadingBar = _interopRequireDefault(require("./loading-bar"));
246
254
 
247
- var _loadingIcon = _interopRequireDefault(require("./loading-icon"));
255
+ var _loadingIcon = _interopRequireDefault(require("./loading-icon"));
256
+
257
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
258
+
259
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1,87 +1,87 @@
1
- $namespace: ab-input-number;
2
-
3
- .#{$namespace} {
4
- padding: .06rem .07rem;
5
- -webkit-appearance: none;
6
- outline: none;
7
- width: 100%;
8
- border: 1px solid #ccc;
9
- border-radius: 2px;
10
- resize: none;
11
- font-size: .12rem;
12
- transition: all .3s;
13
- position: relative;
14
- background-color: transparent;
15
- z-index: 2;
16
-
17
- &:focus {
18
- box-shadow: 0 0 4px rgba(#348FEE, 0.8);
19
- border-color: rgba(#348FEE, 0.8);
20
- }
21
-
22
- &-wrap {
23
- position: relative;
24
- background-color: #fff;
25
- display: inline-block;
26
- }
27
-
28
- &-button-wrap {
29
- position: absolute;
30
- user-select: none;
31
- top: 50%;
32
- transform: translateY(-50%);
33
- right: .02rem;
34
- }
35
-
36
- &-button {
37
- position: relative;
38
- width: .16rem;
39
- height: .1rem;
40
- overflow: hidden;
41
- background-color: #f1f1f1;
42
- &.#{$namespace}-hover {
43
- background-color: #d0d0d0;
44
- }
45
- &.#{$namespace}-active {
46
- background-color: #787878;
47
- .#{$namespace}-add {
48
- border-bottom-color: #fff;
49
- }
50
- .#{$namespace}-sub {
51
- border-top-color: #fff;
52
- }
53
- }
54
-
55
- &:first-child {
56
- margin-bottom: .02rem;
57
- }
58
- }
59
-
60
- &-add {
61
- position: absolute;
62
- top: -.01rem;
63
- left: .04rem;
64
- display: block;
65
- border-top-color: transparent;
66
- border-right-color: transparent;
67
- border-bottom-color: #505050;
68
- border-left-color: transparent;
69
- border-width: .04rem;
70
- border-style: solid;
71
- width: 0;
72
- height: 0;
73
- }
74
-
75
- &-sub {
76
- display: block;
77
- margin: .03rem 0 0 .04rem;
78
- border-top-color: #505050;
79
- border-right-color: transparent;
80
- border-bottom-color: transparent;
81
- border-left-color: transparent;
82
- border-width: .04rem;
83
- border-style: solid;
84
- width: 0;
85
- height: 0;
86
- }
1
+ $namespace: ab-input-number;
2
+
3
+ .#{$namespace} {
4
+ padding: .06rem .07rem;
5
+ -webkit-appearance: none;
6
+ outline: none;
7
+ width: 100%;
8
+ border: 1px solid #ccc;
9
+ border-radius: 2px;
10
+ resize: none;
11
+ font-size: .12rem;
12
+ transition: all .3s;
13
+ position: relative;
14
+ background-color: transparent;
15
+ z-index: 2;
16
+
17
+ &:focus {
18
+ box-shadow: 0 0 4px rgba(#348FEE, 0.8);
19
+ border-color: rgba(#348FEE, 0.8);
20
+ }
21
+
22
+ &-wrap {
23
+ position: relative;
24
+ background-color: #fff;
25
+ display: inline-block;
26
+ }
27
+
28
+ &-button-wrap {
29
+ position: absolute;
30
+ user-select: none;
31
+ top: 50%;
32
+ transform: translateY(-50%);
33
+ right: .02rem;
34
+ }
35
+
36
+ &-button {
37
+ position: relative;
38
+ width: .16rem;
39
+ height: .1rem;
40
+ overflow: hidden;
41
+ background-color: #f1f1f1;
42
+ &.#{$namespace}-hover {
43
+ background-color: #d0d0d0;
44
+ }
45
+ &.#{$namespace}-active {
46
+ background-color: #787878;
47
+ .#{$namespace}-add {
48
+ border-bottom-color: #fff;
49
+ }
50
+ .#{$namespace}-sub {
51
+ border-top-color: #fff;
52
+ }
53
+ }
54
+
55
+ &:first-child {
56
+ margin-bottom: .02rem;
57
+ }
58
+ }
59
+
60
+ &-add {
61
+ position: absolute;
62
+ top: -.01rem;
63
+ left: .04rem;
64
+ display: block;
65
+ border-top-color: transparent;
66
+ border-right-color: transparent;
67
+ border-bottom-color: #505050;
68
+ border-left-color: transparent;
69
+ border-width: .04rem;
70
+ border-style: solid;
71
+ width: 0;
72
+ height: 0;
73
+ }
74
+
75
+ &-sub {
76
+ display: block;
77
+ margin: .03rem 0 0 .04rem;
78
+ border-top-color: #505050;
79
+ border-right-color: transparent;
80
+ border-bottom-color: transparent;
81
+ border-left-color: transparent;
82
+ border-width: .04rem;
83
+ border-style: solid;
84
+ width: 0;
85
+ height: 0;
86
+ }
87
87
  }
@@ -1,9 +1,9 @@
1
- .lazy-image-demo {
2
- margin-top: 200vh;
3
-
4
- img {
5
- display: block;
6
- width: 400px;
7
- margin: .2rem;
8
- }
9
- }
1
+ .lazy-image-demo {
2
+ margin-top: 200vh;
3
+
4
+ img {
5
+ display: block;
6
+ width: 400px;
7
+ margin: .2rem;
8
+ }
9
+ }
@@ -1,25 +1,25 @@
1
- $namespace: ab-lazy-image;
2
-
3
- .#{$namespace} {
4
- transition: opacity 500ms;
5
-
6
- &-loading {
7
- background: #f2f2f2;
8
- overflow: hidden;
9
- }
10
-
11
- &-loading.#{$namespace}-active {
12
- background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
13
- background-size: 400% 100%;
14
- animation: ab-skeleton-loading 1.4s ease infinite;
15
- }
16
-
17
- @keyframes ab-skeleton-loading {
18
- 0% {
19
- background-position: 100% 50%;
20
- }
21
- 100% {
22
- background-position: 0 50%;
23
- }
24
- }
1
+ $namespace: ab-lazy-image;
2
+
3
+ .#{$namespace} {
4
+ transition: opacity 500ms;
5
+
6
+ &-loading {
7
+ background: #f2f2f2;
8
+ overflow: hidden;
9
+ }
10
+
11
+ &-loading.#{$namespace}-active {
12
+ background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
13
+ background-size: 400% 100%;
14
+ animation: ab-skeleton-loading 1.4s ease infinite;
15
+ }
16
+
17
+ @keyframes ab-skeleton-loading {
18
+ 0% {
19
+ background-position: 100% 50%;
20
+ }
21
+ 100% {
22
+ background-position: 0 50%;
23
+ }
24
+ }
25
25
  }