Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit cb7222a

Browse files
authored
feat(ccd): added new component (#2495)
1 parent 66e73f8 commit cb7222a

22 files changed

+1857
-1344
lines changed

.changeset/nervous-pianos-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/skin": minor
3+
---
4+
5+
feat(ccd): new component

dist/ccd/ccd.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.ccd {
2+
display: inline-flex;
3+
gap: 8px;
4+
}
5+
6+
.ccd__charger-icon {
7+
height: 78px;
8+
width: 58px;
9+
}
10+
11+
.ccd__description-figure {
12+
align-items: center;
13+
display: flex;
14+
flex-direction: column;
15+
justify-content: center;
16+
width: 55px;
17+
}
18+
19+
.ccd__top-icon {
20+
height: 24px;
21+
width: 35px;
22+
}
23+
24+
.ccd__body {
25+
align-items: center;
26+
border: 1px solid var(--color-foreground-primary);
27+
border-radius: 1.5px;
28+
display: flex;
29+
flex-direction: column;
30+
font-size: 0.4375rem;
31+
font-weight: var(--font-weight-bold);
32+
gap: 2px;
33+
height: 53px;
34+
justify-content: center;
35+
overflow: hidden;
36+
text-align: center;
37+
width: 53px;
38+
}
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading

dist/svg/icon/icon-ccd-top.svg

Lines changed: 5 additions & 0 deletions
Loading

dist/svg/icons.svg

Lines changed: 52 additions & 33 deletions
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"lint:css": "stylelint dist --config .stylelintrc",
4646
"lint:js": "eslint 'src/routes/main.js' > lint.log && eslint 'src/sass/**/stories/*.js' >> lint.log ",
4747
"format": "npx prettier --write .",
48-
"copy": "npm run copy:sassToDist && npm run copy:svgToDist && npm run copy:svgToDocs && npm run copy:tokensToDist",
48+
"copy": "npm run copy:sassToDist && npm run copy:svgToDist && npm run copy:svgToDocs && npm run copy:tokensToDist && npm run copy:assetsToStorybook",
4949
"copy:sassToDist": "mkdirp dist/variables && ncp src/sass/variables dist/variables && mkdirp dist/mixins && ncp src/sass/mixins/public dist/mixins && ncp src/sass/gh dist/gh",
5050
"copy:assetsToStorybook": "node scripts storybook-copy",
5151
"copy:svgToDist": "mkdirp dist/svg && ncp src/svg dist/svg",

src/components/master-icons.marko

Lines changed: 52 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<svg xmlns="http://www.w3.org/2000/svg">
33
<defs>
44
<linearGradient
5-
id="ref-ai-spectrum-20-colored"
6-
x1="26.984"
7-
y1="14.065"
8-
x2="14.21"
9-
y2="27.71"
5+
id="ref-ai-spectrum-16-colored"
6+
x1="21.21"
7+
y1="11.161"
8+
x2="11.274"
9+
y2="21.774"
1010
gradientUnits="userSpaceOnUse"
1111
>
1212
<stop offset=".098" stop-color="#FFD80E" />
@@ -16,7 +16,7 @@
1616
<stop offset=".785" stop-color="#4EE04B" />
1717
</linearGradient>
1818
<linearGradient
19-
id="ref-ai-spectrum-16-colored"
19+
id="ref-ai-spectrum-filled-16-colored"
2020
x1="21.21"
2121
y1="11.161"
2222
x2="11.274"
@@ -43,6 +43,20 @@
4343
<stop offset=".562" stop-color="#0968F6" />
4444
<stop offset=".785" stop-color="#4EE04B" />
4545
</linearGradient>
46+
<linearGradient
47+
id="ref-ai-spectrum-20-colored"
48+
x1="26.984"
49+
y1="14.065"
50+
x2="14.21"
51+
y2="27.71"
52+
gradientUnits="userSpaceOnUse"
53+
>
54+
<stop offset=".098" stop-color="#FFD80E" />
55+
<stop offset=".267" stop-color="#FF4242" />
56+
<stop offset=".418" stop-color="#993EE0" />
57+
<stop offset=".562" stop-color="#0968F6" />
58+
<stop offset=".785" stop-color="#4EE04B" />
59+
</linearGradient>
4660
<linearGradient
4761
id="ref-ai-spectrum-24-colored"
4862
x1="32.758"
@@ -58,7 +72,7 @@
5872
<stop offset=".785" stop-color="#4EE04B" />
5973
</linearGradient>
6074
<linearGradient
61-
id="ref-ai-spectrum-filled-16-colored"
75+
id="ref-ai-spectrum-thin-16-colored"
6276
x1="21.21"
6377
y1="11.161"
6478
x2="11.274"
@@ -86,25 +100,11 @@
86100
<stop offset=".785" stop-color="#4EE04B" />
87101
</linearGradient>
88102
<linearGradient
89-
id="ref-ai-spectrum-thin-16-colored"
90-
x1="21.21"
91-
y1="11.161"
92-
x2="11.274"
93-
y2="21.774"
94-
gradientUnits="userSpaceOnUse"
95-
>
96-
<stop offset=".098" stop-color="#FFD80E" />
97-
<stop offset=".267" stop-color="#FF4242" />
98-
<stop offset=".418" stop-color="#993EE0" />
99-
<stop offset=".562" stop-color="#0968F6" />
100-
<stop offset=".785" stop-color="#4EE04B" />
101-
</linearGradient>
102-
<linearGradient
103-
id="ref-cb-32-colored"
104-
x1="50"
103+
id="ref-cb-24-colored"
104+
x1="38"
105105
y1="0"
106-
x2="-.978"
107-
y2="32"
106+
x2="-.452"
107+
y2="24.459"
108108
gradientUnits="userSpaceOnUse"
109109
>
110110
<stop stop-color="#192660" />
@@ -130,11 +130,11 @@
130130
<stop offset="1" stop-color="#03944B" />
131131
</linearGradient>
132132
<linearGradient
133-
id="ref-cb-24-colored"
134-
x1="38"
133+
id="ref-cb-12-colored"
134+
x1="20"
135135
y1="0"
136-
x2="-.452"
137-
y2="24.459"
136+
x2=".373"
137+
y2="13.142"
138138
gradientUnits="userSpaceOnUse"
139139
>
140140
<stop stop-color="#192660" />
@@ -145,11 +145,11 @@
145145
<stop offset="1" stop-color="#03944B" />
146146
</linearGradient>
147147
<linearGradient
148-
id="ref-cb-12-colored"
149-
x1="20"
148+
id="ref-cb-32-colored"
149+
x1="50"
150150
y1="0"
151-
x2=".373"
152-
y2="13.142"
151+
x2="-.978"
152+
y2="32"
153153
gradientUnits="userSpaceOnUse"
154154
>
155155
<stop stop-color="#192660" />
@@ -1305,6 +1305,25 @@
13051305
fill="#fff"
13061306
/>
13071307
</symbol>
1308+
<symbol viewBox="0 0 58 78" id="icon-ccd-charger-included">
1309+
<path
1310+
fill-rule="evenodd"
1311+
clip-rule="evenodd"
1312+
d="M0 0h58v78H0V0Zm1 1v76h56V1H1Zm7 28.75c0-.966.784-1.75 1.75-1.75H15V18h5V8h4v10h10V8h4v10h5v10h5.25c.967 0 1.75.784 1.75 1.75v38.5A1.75 1.75 0 0 1 48.25 70H9.75A1.75 1.75 0 0 1 8 68.25v-38.5ZM23 18V9h-2v9h2Zm14 0h-2V9h2v9Zm5 10v-9H16v9h26ZM9.75 29a.75.75 0 0 0-.75.75v38.5c0 .414.336.75.75.75h38.5a.75.75 0 0 0 .75-.75v-38.5a.75.75 0 0 0-.75-.75H9.75Z"
1313+
/>
1314+
</symbol>
1315+
<symbol viewBox="0 0 58 78" id="icon-ccd-charger-not-included">
1316+
<path
1317+
fill-rule="evenodd"
1318+
clip-rule="evenodd"
1319+
d="M.5 0H0v78h58V0H.5ZM1 2.686V77h54.758l-5.914-8.026A1.75 1.75 0 0 1 48.25 70H9.75A1.75 1.75 0 0 1 8 68.25v-38.5c0-.966.784-1.75 1.75-1.75H15v-6.314l-14-19Zm15 20.357V28h3.653L16 23.043ZM22.137 28 16 19.671V19h26v9H22.137Zm-1.748 1H9.75a.75.75 0 0 0-.75.75v38.5c0 .414.336.75.75.75h38.5a.75.75 0 0 0 .75-.75v-.421L20.39 29ZM49 64.457 22.874 29H48.25a.75.75 0 0 1 .75.75v34.707Zm1 1.357V29.75A1.75 1.75 0 0 0 48.25 28H43V18h-5V8h-4v10H24V8h-4v10h-5v.314L2.242 1H57v74.314l-7-9.5ZM37 9v9h-2V9h2Zm-16 9h2V9h-2v9Z"
1320+
/>
1321+
</symbol>
1322+
<symbol viewBox="0 0 35 25" fill="none" id="icon-ccd-top">
1323+
<path d="M0.5 25V13.5H34.5V25" stroke-width="1" />
1324+
<path d="M6.5 13V0.5H10.5V13" stroke-width="1" />
1325+
<path d="M24.5 13V0.5H28.5V13" stroke-width="1" />
1326+
</symbol>
13081327
<symbol viewBox="0 0 16 16" id="icon-certified-recycled-16">
13091328
<path
13101329
d="M12.845 5.55a.989.989 0 0 0-.02-.036l-2.202-3.968C9.48-.513 6.52-.513 5.377 1.546L4.285 3.515a1 1 0 0 0 1.748.97l1.093-1.968a1 1 0 0 1 1.748 0l2.172 3.913a1 1 0 0 0-.365 1.958l2.04.572a1 1 0 0 0 1.226-.636l.73-1.978a1 1 0 0 0-1.832-.795ZM14.726 10a1 1 0 0 0-.874 1.485l.016.03A1 1 0 0 1 12.994 13H3.006a1 1 0 0 1-.874-1.485l1.134-2.043a1 1 0 0 0 1.833-.78l-.646-1.993a1 1 0 0 0-1.19-.671l-2.067.503a1 1 0 0 0 .322 1.968L.383 10.544C-.727 12.544.72 15 3.006 15h9.988c2.287 0 3.733-2.456 2.623-4.456l-.016-.03a1 1 0 0 0-.875-.514Z"

0 commit comments

Comments
 (0)