@conveyorhq/arrow-ds 1.193.0 → 1.194.0
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.
- package/package.json +1 -1
- package/public/components/LoadingDots/LoadingDots.d.ts +3 -0
- package/public/components/LoadingDots/LoadingDots.js +11 -7
- package/public/css/styles.css +66 -9
- package/public/css/styles.min.css +1 -1
- package/public/css/styles.min.css.map +1 -1
- package/src/components/LoadingDots/LoadingDots.stories.mdx +22 -0
- package/src/components/LoadingDots/LoadingDots.tsx +18 -7
- package/src/components/LoadingDots/index.css +41 -7
package/package.json
CHANGED
|
@@ -32,12 +32,16 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
32
32
|
const utilities_1 = require("../../utilities");
|
|
33
33
|
const Box_1 = require("../Box");
|
|
34
34
|
const cn = (0, utilities_1.bemHOF)("LoadingDots");
|
|
35
|
-
const LoadingDot = ({
|
|
36
|
-
|
|
35
|
+
const LoadingDot = ({ size = 4 }) => (react_1.default.createElement(Box_1.Box, { as: "span", className: cn({ e: "dot" }), style: {
|
|
36
|
+
height: `${size}px`,
|
|
37
|
+
width: `${size}px`,
|
|
37
38
|
} }));
|
|
38
|
-
exports.LoadingDots = (0, react_1.forwardRef)(({ className, style }, ref) => {
|
|
39
|
-
return (react_1.default.createElement(Box_1.Box, { ref: ref, className: (0, classnames_1.default)(cn(), className), style:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
exports.LoadingDots = (0, react_1.forwardRef)(({ size = 4, spacing = 2, bounce = false, className, style }, ref) => {
|
|
40
|
+
return (react_1.default.createElement(Box_1.Box, { ref: ref, className: (0, classnames_1.default)(cn(), bounce && cn({ m: "bounce" }), className), style: {
|
|
41
|
+
...style,
|
|
42
|
+
gap: `${spacing}px`,
|
|
43
|
+
} },
|
|
44
|
+
react_1.default.createElement(LoadingDot, { size: size }),
|
|
45
|
+
react_1.default.createElement(LoadingDot, { size: size }),
|
|
46
|
+
react_1.default.createElement(LoadingDot, { size: size })));
|
|
43
47
|
});
|
package/public/css/styles.css
CHANGED
|
@@ -4483,12 +4483,46 @@ button.ads-DateRangePicker-preset--isSelected:hover {
|
|
|
4483
4483
|
}
|
|
4484
4484
|
}
|
|
4485
4485
|
|
|
4486
|
+
@-webkit-keyframes loadingDotBounce {
|
|
4487
|
+
0%,
|
|
4488
|
+
80%,
|
|
4489
|
+
100% {
|
|
4490
|
+
-webkit-transform: translateY(0);
|
|
4491
|
+
transform: translateY(0);
|
|
4492
|
+
opacity: 1;
|
|
4493
|
+
}
|
|
4494
|
+
40% {
|
|
4495
|
+
-webkit-transform: translateY(-4px);
|
|
4496
|
+
transform: translateY(-4px);
|
|
4497
|
+
opacity: 0.4;
|
|
4498
|
+
}
|
|
4499
|
+
60% {
|
|
4500
|
+
opacity: 0.6;
|
|
4501
|
+
}
|
|
4502
|
+
}
|
|
4503
|
+
|
|
4504
|
+
@keyframes loadingDotBounce {
|
|
4505
|
+
0%,
|
|
4506
|
+
80%,
|
|
4507
|
+
100% {
|
|
4508
|
+
-webkit-transform: translateY(0);
|
|
4509
|
+
transform: translateY(0);
|
|
4510
|
+
opacity: 1;
|
|
4511
|
+
}
|
|
4512
|
+
40% {
|
|
4513
|
+
-webkit-transform: translateY(-4px);
|
|
4514
|
+
transform: translateY(-4px);
|
|
4515
|
+
opacity: 0.4;
|
|
4516
|
+
}
|
|
4517
|
+
60% {
|
|
4518
|
+
opacity: 0.6;
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4521
|
+
|
|
4486
4522
|
.ads-LoadingDots {
|
|
4487
4523
|
display: inline-flex;
|
|
4488
|
-
width: 24px;
|
|
4489
4524
|
justify-content: space-between;
|
|
4490
4525
|
align-self: center;
|
|
4491
|
-
padding: 4px;
|
|
4492
4526
|
text-align: center;
|
|
4493
4527
|
vertical-align: middle;
|
|
4494
4528
|
|
|
@@ -4497,12 +4531,39 @@ button.ads-DateRangePicker-preset--isSelected:hover {
|
|
|
4497
4531
|
|
|
4498
4532
|
.ads-LoadingDots-dot {
|
|
4499
4533
|
display: inline-block;
|
|
4500
|
-
height: 4px;
|
|
4501
|
-
width: 4px;
|
|
4502
4534
|
border-radius: 9999px;
|
|
4503
4535
|
--tw-bg-opacity: 1;
|
|
4504
|
-
background-color: rgb(
|
|
4536
|
+
background-color: rgb(185 200 210 / var(--tw-bg-opacity));
|
|
4505
4537
|
vertical-align: top;
|
|
4538
|
+
|
|
4539
|
+
-webkit-animation: loadingDot 1.2s infinite ease-in-out;
|
|
4540
|
+
|
|
4541
|
+
animation: loadingDot 1.2s infinite ease-in-out;
|
|
4542
|
+
}
|
|
4543
|
+
|
|
4544
|
+
.ads-LoadingDots-dot:nth-child(2) {
|
|
4545
|
+
-webkit-animation-delay: 160ms;
|
|
4546
|
+
animation-delay: 160ms;
|
|
4547
|
+
}
|
|
4548
|
+
|
|
4549
|
+
.ads-LoadingDots-dot:nth-child(3) {
|
|
4550
|
+
-webkit-animation-delay: 320ms;
|
|
4551
|
+
animation-delay: 320ms;
|
|
4552
|
+
}
|
|
4553
|
+
|
|
4554
|
+
.ads-LoadingDots--bounce .ads-LoadingDots-dot {
|
|
4555
|
+
-webkit-animation-name: loadingDotBounce;
|
|
4556
|
+
animation-name: loadingDotBounce;
|
|
4557
|
+
}
|
|
4558
|
+
|
|
4559
|
+
.ads-LoadingDots--bounce .ads-LoadingDots-dot:nth-child(1) {
|
|
4560
|
+
-webkit-animation-delay: -320ms;
|
|
4561
|
+
animation-delay: -320ms;
|
|
4562
|
+
}
|
|
4563
|
+
|
|
4564
|
+
.ads-LoadingDots--bounce .ads-LoadingDots-dot:nth-child(2) {
|
|
4565
|
+
-webkit-animation-delay: -160ms;
|
|
4566
|
+
animation-delay: -160ms;
|
|
4506
4567
|
}
|
|
4507
4568
|
|
|
4508
4569
|
.ads-Markdown {
|
|
@@ -8992,10 +9053,6 @@ button.ads-DateRangePicker-preset--isSelected:hover {
|
|
|
8992
9053
|
transition-duration: 150ms;
|
|
8993
9054
|
}
|
|
8994
9055
|
|
|
8995
|
-
.ease-in-out {
|
|
8996
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8997
|
-
}
|
|
8998
|
-
|
|
8999
9056
|
@-webkit-keyframes fadeIn {
|
|
9000
9057
|
from {
|
|
9001
9058
|
opacity: 0;
|