Skip to content

Commit 812c821

Browse files
authored
Sparkle: Changes for new Homepage (#2379)
1 parent 7a86e41 commit 812c821

32 files changed

+262
-18
lines changed

sparkle/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sparkle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dust-tt/sparkle",
3-
"version": "0.2.31",
3+
"version": "0.2.32",
44
"scripts": {
55
"build": "rm -rf dist && rollup -c",
66
"build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true",

sparkle/src/_index.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ import {
165165
ChevronRight as ChevronRightIcon,
166166
ChevronUp as ChevronUpIcon,
167167
ChevronUpDown as ChevronUpDownIcon,
168+
Circle as CircleIcon,
168169
Clipboard as ClipboardIcon,
169170
ClipboardCheck as ClipboardCheckIcon,
170171
Clock as ClockIcon,
@@ -190,6 +191,7 @@ import {
190191
GlobeAlt as GlobeAltIcon,
191192
HandThumbDown as HandThumbDownIcon,
192193
HandThumbUp as HandThumbUpIcon,
194+
Hexagon as HexagonIcon,
193195
Image as ImageIcon,
194196
InformationCircle as InformationCircleIcon,
195197
Key as KeyIcon,
@@ -212,16 +214,19 @@ import {
212214
PlusCircle as PlusCircleIcon,
213215
QuestionMarkCircle as QuestionMarkCircleIcon,
214216
Reaction as ReactionIcon,
217+
Rectangle as RectangleIcon,
215218
Robot as RobotIcon,
216219
Rocket as RocketIcon,
217220
Server as ServerIcon,
218221
ShakeHands as ShakeHandsIcon,
219222
Shapes as ShapesIcon,
220223
Sparkles as SparklesIcon,
224+
Square as SquareIcon,
221225
Square3Stack3D as Square3Stack3DIcon,
222226
Stop as StopIcon,
223227
TestTube as TestTubeIcon,
224228
Trash as TrashIcon,
229+
Triangle as TriangleIcon,
225230
User as UserIcon,
226231
UserArrow as UserArrowIcon,
227232
UserGroup as UserGroupIcon,
@@ -252,6 +257,7 @@ export {
252257
ChevronRightIcon,
253258
ChevronUpDownIcon,
254259
ChevronUpIcon,
260+
CircleIcon,
255261
ClipboardCheckIcon,
256262
ClipboardIcon,
257263
ClockIcon,
@@ -277,6 +283,7 @@ export {
277283
GlobeAltIcon,
278284
HandThumbDownIcon,
279285
HandThumbUpIcon,
286+
HexagonIcon,
280287
ImageIcon,
281288
InformationCircleIcon,
282289
KeyIcon,
@@ -299,16 +306,19 @@ export {
299306
PlusIcon,
300307
QuestionMarkCircleIcon,
301308
ReactionIcon,
309+
RectangleIcon,
302310
RobotIcon,
303311
RocketIcon,
304312
ServerIcon,
305313
ShakeHandsIcon,
306314
ShapesIcon,
307315
SparklesIcon,
308316
Square3Stack3DIcon,
317+
SquareIcon,
309318
StopIcon,
310319
TestTubeIcon,
311320
TrashIcon,
321+
TriangleIcon,
312322
UserArrowIcon,
313323
UserGroupIcon,
314324
UserIcon,
@@ -339,6 +349,7 @@ import {
339349
ChevronRight as ChevronRightStrokeIcon,
340350
ChevronUp as ChevronUpStrokeIcon,
341351
ChevronUpDown as ChevronUpDownStrokeIcon,
352+
Circle as CircleStrokeIcon,
342353
Clipboard as ClipboardStrokeIcon,
343354
ClipboardCheck as ClipboardCheckStrokeIcon,
344355
Clock as ClockStrokeIcon,
@@ -364,6 +375,7 @@ import {
364375
GlobeAlt as GlobeAltStrokeIcon,
365376
HandThumbDown as HandThumbDownStrokeIcon,
366377
HandThumbUp as HandThumbUpStrokeIcon,
378+
Hexagon as HexagonStrokeIcon,
367379
Image as ImageStrokeIcon,
368380
InformationCircle as InformationCircleStrokeIcon,
369381
Key as KeyStrokeIcon,
@@ -386,16 +398,19 @@ import {
386398
PlusCircle as PlusCircleStrokeIcon,
387399
QuestionMarkCircle as QuestionMarkCircleStrokeIcon,
388400
Reaction as ReactionStrokeIcon,
401+
Rectangle as RectangleStrokeIcon,
389402
Robot as RobotStrokeIcon,
390403
Rocket as RocketStrokeIcon,
391404
Server as ServerStrokeIcon,
392405
ShakeHands as ShakeHandsStrokeIcon,
393406
Shapes as ShapesStrokeIcon,
394407
Sparkles as SparklesStrokeIcon,
408+
Square as SquareStrokeIcon,
395409
Square3Stack3D as Square3Stack3DStrokeIcon,
396410
Stop as StopStrokeIcon,
397411
TestTube as TestTubeStrokeIcon,
398412
Trash as TrashStrokeIcon,
413+
Triangle as TriangleStrokeIcon,
399414
User as UserStrokeIcon,
400415
UserArrow as UserArrowStrokeIcon,
401416
UserGroup as UserGroupStrokeIcon,
@@ -426,6 +441,7 @@ export {
426441
ChevronRightStrokeIcon,
427442
ChevronUpDownStrokeIcon,
428443
ChevronUpStrokeIcon,
444+
CircleStrokeIcon,
429445
ClipboardCheckStrokeIcon,
430446
ClipboardStrokeIcon,
431447
ClockStrokeIcon,
@@ -451,6 +467,7 @@ export {
451467
GlobeAltStrokeIcon,
452468
HandThumbDownStrokeIcon,
453469
HandThumbUpStrokeIcon,
470+
HexagonStrokeIcon,
454471
ImageStrokeIcon,
455472
InformationCircleStrokeIcon,
456473
KeyStrokeIcon,
@@ -473,16 +490,19 @@ export {
473490
PlusStrokeIcon,
474491
QuestionMarkCircleStrokeIcon,
475492
ReactionStrokeIcon,
493+
RectangleStrokeIcon,
476494
RobotStrokeIcon,
477495
RocketStrokeIcon,
478496
ServerStrokeIcon,
479497
ShakeHandsStrokeIcon,
480498
ShapesStrokeIcon,
481499
SparklesStrokeIcon,
482500
Square3Stack3DStrokeIcon,
501+
SquareStrokeIcon,
483502
StopStrokeIcon,
484503
TestTubeStrokeIcon,
485504
TrashStrokeIcon,
505+
TriangleStrokeIcon,
486506
UserArrowStrokeIcon,
487507
UserGroupStrokeIcon,
488508
UserPlusStrokeIcon,

sparkle/src/components/PriceTable.tsx

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ interface PriceTableProps {
1717
}
1818

1919
const colorTable = {
20-
pink: "s-bg-pink-400 dark:s-bg-pink-500",
21-
amber: "s-bg-amber-400 dark:s-bg-amber-500",
22-
sky: "s-bg-sky-400 dark:s-bg-sky-500",
23-
blue: "s-bg-blue-400 dark:s-bg-blue-500",
24-
emerald: "s-bg-emerald-400 dark:s-bg-emerald-500",
20+
pink: "s-bg-gradient-to-r s-from-pink-400 s-to-red-300 dark:s-bg-pink-500",
21+
amber:
22+
"s-bg-gradient-to-r s-from-amber-400 s-to-yellow-300 s-bg-amber-400 dark:s-bg-amber-500",
23+
sky: "s-bg-gradient-to-r s-from-sky-400 s-to-blue-400 s-bg-sky-400 dark:s-bg-sky-500",
24+
blue: "s-bg-gradient-to-r s-from-blue-400 s-to-indigo-300 s-bg-blue-400 dark:s-bg-blue-500",
25+
emerald:
26+
"s-bg-gradient-to-r s-from-emerald-400 s-to-green-400 s-bg-emerald-400 dark:s-bg-emerald-500",
2527
};
2628

2729
const textColorTable = {
@@ -33,8 +35,8 @@ const textColorTable = {
3335
};
3436

3537
const sizeTable = {
36-
sm: "s-rounded-2xl s-p-1.5 s-shadow-2xl",
37-
xs: "s-rounded-xl s-p-1 s-shadow-xl",
38+
sm: "s-rounded-2xl s-p-px s-shadow-2xl",
39+
xs: "s-rounded-2xl s-p-px s-shadow-xl",
3840
};
3941

4042
export function PriceTable({
@@ -77,7 +79,7 @@ export function PriceTable({
7779
<div
7880
className={classNames(
7981
"s-flex s-flex-col",
80-
size === "xs" ? "s-px-3 s-py-2" : "s-px-4 s-py-3"
82+
size === "xs" ? "s-px-4 s-py-3" : "s-px-5 s-py-4"
8183
)}
8284
>
8385
<div
@@ -110,8 +112,13 @@ export function PriceTable({
110112
</div>
111113
</div>
112114
<div
115+
style={{
116+
borderBottomRightRadius: "15px",
117+
borderBottomLeftRadius: "15px",
118+
borderTopRightRadius: "4px",
119+
borderTopLeftRadius: "4px",
120+
}}
113121
className={classNames(
114-
size === "xs" ? "s-rounded-lg" : "s-rounded-xl",
115122
"s-flex s-h-full s-flex-col s-overflow-hidden s-shadow-md",
116123
"s-bg-white dark:s-bg-structure-100-dark"
117124
)}

sparkle/src/icons/solid/Circle.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { SVGProps } from "react";
2+
import * as React from "react";
3+
const SvgCircle = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width="1em"
7+
height="1em"
8+
fill="none"
9+
viewBox="0 0 24 24"
10+
{...props}
11+
>
12+
<path fill="currentColor" d="M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z" />
13+
</svg>
14+
);
15+
export default SvgCircle;

sparkle/src/icons/solid/Hexagon.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { SVGProps } from "react";
2+
import * as React from "react";
3+
const SvgHexagon = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width="1em"
7+
height="1em"
8+
fill="none"
9+
viewBox="0 0 24 24"
10+
{...props}
11+
>
12+
<path fill="currentColor" d="m17 3 5 9-5 9H7l-5-9 5-9h10Z" />
13+
</svg>
14+
);
15+
export default SvgHexagon;

sparkle/src/icons/solid/Rectangle.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { SVGProps } from "react";
2+
import * as React from "react";
3+
const SvgRectangle = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width="1em"
7+
height="1em"
8+
fill="none"
9+
viewBox="0 0 24 24"
10+
{...props}
11+
>
12+
<path fill="currentColor" d="M7 2h10v20H7z" />
13+
</svg>
14+
);
15+
export default SvgRectangle;

sparkle/src/icons/solid/Robot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const SvgRobot = (props: SVGProps<SVGSVGElement>) => (
1313
<path
1414
fill="currentColor"
1515
fillRule="evenodd"
16-
d="M18 5a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h12Zm-9 7.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm7.5-1.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 16c1.03 0 2.034-.111 3-.322V14H9v1.678c.966.21 1.97.322 3 .322Z"
16+
d="M18 5a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h12Zm-9 7.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm7.5-1.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 16c1.03 0 2 0 3-1v-1H9v1c1 1 1.97 1 3 1Z"
1717
clipRule="evenodd"
1818
/>
1919
<path fill="currentColor" d="M2 10H0v6h2v-6ZM24 10h-2v6h2v-6Z" />

sparkle/src/icons/solid/Square.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { SVGProps } from "react";
2+
import * as React from "react";
3+
const SvgSquare = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width="1em"
7+
height="1em"
8+
fill="none"
9+
viewBox="0 0 24 24"
10+
{...props}
11+
>
12+
<path fill="currentColor" d="M4 4h16v16H4z" />
13+
</svg>
14+
);
15+
export default SvgSquare;

sparkle/src/icons/solid/Triangle.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import type { SVGProps } from "react";
2+
import * as React from "react";
3+
const SvgTriangle = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width="1em"
7+
height="1em"
8+
fill="none"
9+
viewBox="0 0 24 24"
10+
{...props}
11+
>
12+
<path fill="currentColor" d="m12 3 10.392 18H1.608L12 3Z" />
13+
</svg>
14+
);
15+
export default SvgTriangle;

sparkle/src/icons/solid/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export { default as ChevronLeft } from "./ChevronLeft";
1818
export { default as ChevronRight } from "./ChevronRight";
1919
export { default as ChevronUp } from "./ChevronUp";
2020
export { default as ChevronUpDown } from "./ChevronUpDown";
21+
export { default as Circle } from "./Circle";
2122
export { default as Clipboard } from "./Clipboard";
2223
export { default as ClipboardCheck } from "./ClipboardCheck";
2324
export { default as Clock } from "./Clock";
@@ -43,6 +44,7 @@ export { default as Fullscreen } from "./Fullscreen";
4344
export { default as GlobeAlt } from "./GlobeAlt";
4445
export { default as HandThumbDown } from "./HandThumbDown";
4546
export { default as HandThumbUp } from "./HandThumbUp";
47+
export { default as Hexagon } from "./Hexagon";
4648
export { default as Image } from "./Image";
4749
export { default as InformationCircle } from "./InformationCircle";
4850
export { default as Key } from "./Key";
@@ -65,16 +67,19 @@ export { default as Plus } from "./Plus";
6567
export { default as PlusCircle } from "./PlusCircle";
6668
export { default as QuestionMarkCircle } from "./QuestionMarkCircle";
6769
export { default as Reaction } from "./Reaction";
70+
export { default as Rectangle } from "./Rectangle";
6871
export { default as Robot } from "./Robot";
6972
export { default as Rocket } from "./Rocket";
7073
export { default as Server } from "./Server";
7174
export { default as ShakeHands } from "./ShakeHands";
7275
export { default as Shapes } from "./Shapes";
7376
export { default as Sparkles } from "./Sparkles";
77+
export { default as Square } from "./Square";
7478
export { default as Square3Stack3D } from "./Square3Stack3D";
7579
export { default as Stop } from "./Stop";
7680
export { default as TestTube } from "./TestTube";
7781
export { default as Trash } from "./Trash";
82+
export { default as Triangle } from "./Triangle";
7883
export { default as User } from "./User";
7984
export { default as UserArrow } from "./UserArrow";
8085
export { default as UserGroup } from "./UserGroup";
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

sparkle/src/icons/src/solid/robot.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 2 additions & 1 deletion
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)