Skip to content

Commit 0870794

Browse files
authored
Merge branch 'main' into add-open-change-to-select
2 parents 3ef3487 + 7952128 commit 0870794

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed

src/components/Icon/IconCommon.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import FolderOpen from "../icons/FolderOpen";
5656
import FolderClosed from "../icons/FolderClosed";
5757
import Gift from "@/components/icons/Gift";
5858
import Home from "@/components/icons/Home";
59+
import HorizontalLoading from "@/components/icons/HorizontalLoading";
5960
import Http from "@/components/icons/Http";
6061
import Integrations from "@/components/icons/Integrations";
6162
import LightBulb from "@/components/icons/LightBulb";
@@ -155,6 +156,7 @@ export const ICONS_MAP = {
155156
gift: Gift,
156157
history: HistoryIcon,
157158
home: Home,
159+
"horizontal-loading": HorizontalLoading,
158160
http: Http,
159161
"info-in-circle": InfoInCircleIcon,
160162
information: InformationIcon,

src/components/Icon/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export type IconName =
5959
| "folder-open"
6060
| "gift"
6161
| "history"
62+
| "horizontal-loading"
6263
| "home"
6364
| "http"
6465
| "info-in-circle"
+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
import DotsHorizontal from "./DotsHorizontal";
2+
import styled, { keyframes } from "styled-components";
3+
4+
const animationCircle1 = keyframes`
5+
0 {
6+
r: 0;
7+
}
8+
30% {
9+
r: 1.5;
10+
}
11+
60% {
12+
r: 0;
13+
}
14+
100% {
15+
r: 0;
16+
}
17+
`;
18+
const animationCircle2 = keyframes`
19+
0 {
20+
r: 0;
21+
}
22+
20% {
23+
r: 0;
24+
}
25+
40% {
26+
r: 1.5;
27+
}
28+
80% {
29+
r: 0;
30+
}
31+
100% {
32+
r: 0
33+
}
34+
`;
35+
const animationCircle3 = keyframes`
36+
0 {
37+
r: 0;
38+
}
39+
40% {
40+
r: 0;
41+
}
42+
80% {
43+
r: 1.5;
44+
}
45+
100% {
46+
r: 0
47+
}
48+
`;
49+
50+
const HorizontalLoading = styled(DotsHorizontal)`
51+
circle {
52+
r: 0;
53+
animation-name: example;
54+
animation-duration: 1.5s;
55+
animation-iteration-count: infinite;
56+
animation-timing-function: linear;
57+
&:nth-child(1) {
58+
animation-name: ${animationCircle1};
59+
}
60+
&:nth-child(2) {
61+
animation-name: ${animationCircle2};
62+
}
63+
&:nth-child(3) {
64+
animation-name: ${animationCircle3};
65+
}
66+
}
67+
`;
68+
69+
export default HorizontalLoading;

tokens/themes/primitives.json

+9
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,15 @@
697697
}
698698
},
699699
"mono": {
700+
"xs": {
701+
"value": {
702+
"fontFamily": "{typography.font.families.mono}",
703+
"fontWeight": "{typography.font.weights.2}",
704+
"lineHeight": "{typography.font.line-height.2}",
705+
"fontSize": "{typography.font.sizes.0}"
706+
},
707+
"type": "typography"
708+
},
700709
"sm": {
701710
"value": {
702711
"fontFamily": "{typography.font.families.mono}",

0 commit comments

Comments
 (0)