@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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@conveyorhq/arrow-ds",
3
3
  "author": "Conveyor",
4
4
  "license": "MIT",
5
- "version": "1.193.0",
5
+ "version": "1.194.0",
6
6
  "description": "Arrow Design System",
7
7
  "repository": "https://github.com/conveyor/arrow-ds",
8
8
  "publishConfig": {
@@ -1,5 +1,8 @@
1
1
  import React from "react";
2
2
  export interface LoadingDotsProps {
3
+ size?: number;
4
+ spacing?: number;
5
+ bounce?: boolean;
3
6
  className?: string;
4
7
  style?: React.CSSProperties;
5
8
  }
@@ -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 = ({ delay }) => (react_1.default.createElement(Box_1.Box, { as: "span", className: cn({ e: "dot" }), style: {
36
- animation: `loadingDot 1s ease-in-out ${delay}ms infinite`,
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: style },
40
- react_1.default.createElement(LoadingDot, { delay: 0 }),
41
- react_1.default.createElement(LoadingDot, { delay: 160 }),
42
- react_1.default.createElement(LoadingDot, { delay: 320 })));
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
  });
@@ -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(134 163 181 / var(--tw-bg-opacity));
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;