@dust-tt/sparkle 0.2.469 → 0.2.471
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/dist/cjs/index.js +1 -1
- package/dist/esm/components/Button.js +1 -1
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/Chip.d.ts.map +1 -1
- package/dist/esm/components/Chip.js +16 -5
- package/dist/esm/components/Chip.js.map +1 -1
- package/dist/esm/components/ContentMessage.js +25 -25
- package/dist/esm/components/ContentMessage.js.map +1 -1
- package/dist/esm/components/Dropdown.d.ts +2 -0
- package/dist/esm/components/Dropdown.d.ts.map +1 -1
- package/dist/esm/components/Dropdown.js +15 -3
- package/dist/esm/components/Dropdown.js.map +1 -1
- package/dist/esm/components/Input.d.ts.map +1 -1
- package/dist/esm/components/Input.js +3 -3
- package/dist/esm/components/Input.js.map +1 -1
- package/dist/esm/icons/actions/Calculator.js +1 -1
- package/dist/esm/icons/actions/Calculator.js.map +1 -1
- package/dist/esm/icons/actions/Camera.js +1 -1
- package/dist/esm/icons/actions/Camera.js.map +1 -1
- package/dist/esm/icons/actions/Film.js +1 -1
- package/dist/esm/icons/actions/Film.js.map +1 -1
- package/dist/esm/icons/actions/HandHeart.js +1 -1
- package/dist/esm/icons/actions/HandHeart.js.map +1 -1
- package/dist/esm/icons/actions/HandThumbDown.js +1 -1
- package/dist/esm/icons/actions/HandThumbDown.js.map +1 -1
- package/dist/esm/icons/actions/HandThumbUp.js +1 -1
- package/dist/esm/icons/actions/HandThumbUp.js.map +1 -1
- package/dist/esm/icons/actions/Home.js +1 -1
- package/dist/esm/icons/actions/Home.js.map +1 -1
- package/dist/esm/icons/actions/Movie.d.ts.map +1 -1
- package/dist/esm/icons/actions/Movie.js +2 -1
- package/dist/esm/icons/actions/Movie.js.map +1 -1
- package/dist/esm/icons/actions/ShakeHands.js +1 -1
- package/dist/esm/icons/actions/ShakeHands.js.map +1 -1
- package/dist/esm/icons/actions/Ship.js +1 -1
- package/dist/esm/icons/actions/Ship.js.map +1 -1
- package/dist/esm/icons/actions/Shirt.js +1 -1
- package/dist/esm/icons/actions/Shirt.js.map +1 -1
- package/dist/esm/icons/actions/TShirt.js +1 -1
- package/dist/esm/icons/actions/TShirt.js.map +1 -1
- package/dist/esm/icons/actions/Vidicon.js +1 -1
- package/dist/esm/icons/actions/Vidicon.js.map +1 -1
- package/dist/esm/icons/actions/VolumeUp.js +1 -1
- package/dist/esm/icons/actions/VolumeUp.js.map +1 -1
- package/dist/esm/icons/src/actions/calculator.svg +1 -1
- package/dist/esm/icons/src/actions/camera.svg +1 -1
- package/dist/esm/icons/src/actions/film.svg +1 -1
- package/dist/esm/icons/src/actions/hand-heart.svg +1 -1
- package/dist/esm/icons/src/actions/hand-thumb-down.svg +1 -1
- package/dist/esm/icons/src/actions/hand-thumb-up.svg +1 -1
- package/dist/esm/icons/src/actions/home.svg +1 -1
- package/dist/esm/icons/src/actions/megaphone.svg +1 -1
- package/dist/esm/icons/src/actions/movie.svg +2 -1
- package/dist/esm/icons/src/actions/shake-hands.svg +1 -1
- package/dist/esm/icons/src/actions/ship.svg +1 -1
- package/dist/esm/icons/src/actions/shirt.svg +1 -1
- package/dist/esm/icons/src/actions/t-shirt.svg +1 -1
- package/dist/esm/icons/src/actions/vidicon.svg +1 -1
- package/dist/esm/icons/src/actions/volume-up.svg +1 -1
- package/dist/esm/logo/platforms/Figma.d.ts +5 -0
- package/dist/esm/logo/platforms/Figma.d.ts.map +1 -0
- package/dist/esm/logo/platforms/Figma.js +10 -0
- package/dist/esm/logo/platforms/Figma.js.map +1 -0
- package/dist/esm/logo/platforms/Linear.d.ts.map +1 -1
- package/dist/esm/logo/platforms/Linear.js +2 -5
- package/dist/esm/logo/platforms/Linear.js.map +1 -1
- package/dist/esm/logo/platforms/LinearWhite.d.ts +5 -0
- package/dist/esm/logo/platforms/LinearWhite.d.ts.map +1 -0
- package/dist/esm/logo/platforms/LinearWhite.js +6 -0
- package/dist/esm/logo/platforms/LinearWhite.js.map +1 -0
- package/dist/esm/logo/platforms/index.d.ts +2 -0
- package/dist/esm/logo/platforms/index.d.ts.map +1 -1
- package/dist/esm/logo/platforms/index.js +2 -0
- package/dist/esm/logo/platforms/index.js.map +1 -1
- package/dist/esm/logo/src/platforms/Figma.svg +7 -0
- package/dist/esm/logo/src/platforms/Linear.svg +3 -0
- package/dist/esm/logo/src/platforms/LinearWhite.svg +3 -0
- package/dist/esm/stories/Chip.stories.d.ts +1 -0
- package/dist/esm/stories/Chip.stories.d.ts.map +1 -1
- package/dist/esm/stories/Chip.stories.js +24 -1
- package/dist/esm/stories/Chip.stories.js.map +1 -1
- package/dist/esm/stories/ContentMessage.stories.d.ts +1 -0
- package/dist/esm/stories/ContentMessage.stories.d.ts.map +1 -1
- package/dist/esm/stories/ContentMessage.stories.js +16 -0
- package/dist/esm/stories/ContentMessage.stories.js.map +1 -1
- package/dist/esm/stories/Dropdown.stories.js +1 -1
- package/dist/esm/stories/Dropdown.stories.js.map +1 -1
- package/dist/esm/stories/Playground.stories.d.ts.map +1 -1
- package/dist/esm/stories/Playground.stories.js +9 -2
- package/dist/esm/stories/Playground.stories.js.map +1 -1
- package/dist/sparkle.css +242 -31
- package/package.json +1 -1
- package/src/components/Button.tsx +2 -2
- package/src/components/Chip.tsx +48 -6
- package/src/components/ContentMessage.tsx +25 -25
- package/src/components/Dropdown.tsx +24 -3
- package/src/components/Input.tsx +7 -3
- package/src/icons/actions/Calculator.tsx +1 -1
- package/src/icons/actions/Camera.tsx +1 -1
- package/src/icons/actions/Film.tsx +1 -1
- package/src/icons/actions/HandHeart.tsx +1 -1
- package/src/icons/actions/HandThumbDown.tsx +1 -1
- package/src/icons/actions/HandThumbUp.tsx +1 -1
- package/src/icons/actions/Home.tsx +1 -1
- package/src/icons/actions/Movie.tsx +2 -4
- package/src/icons/actions/ShakeHands.tsx +1 -1
- package/src/icons/actions/Ship.tsx +1 -1
- package/src/icons/actions/Shirt.tsx +1 -1
- package/src/icons/actions/TShirt.tsx +1 -1
- package/src/icons/actions/Vidicon.tsx +1 -1
- package/src/icons/actions/VolumeUp.tsx +1 -1
- package/src/icons/src/actions/calculator.svg +1 -1
- package/src/icons/src/actions/camera.svg +1 -1
- package/src/icons/src/actions/film.svg +1 -1
- package/src/icons/src/actions/hand-heart.svg +1 -1
- package/src/icons/src/actions/hand-thumb-down.svg +1 -1
- package/src/icons/src/actions/hand-thumb-up.svg +1 -1
- package/src/icons/src/actions/home.svg +1 -1
- package/src/icons/src/actions/megaphone.svg +1 -1
- package/src/icons/src/actions/movie.svg +2 -1
- package/src/icons/src/actions/shake-hands.svg +1 -1
- package/src/icons/src/actions/ship.svg +1 -1
- package/src/icons/src/actions/shirt.svg +1 -1
- package/src/icons/src/actions/t-shirt.svg +1 -1
- package/src/icons/src/actions/vidicon.svg +1 -1
- package/src/icons/src/actions/volume-up.svg +1 -1
- package/src/logo/platforms/Figma.tsx +19 -0
- package/src/logo/platforms/Linear.tsx +4 -16
- package/src/logo/platforms/LinearWhite.tsx +18 -0
- package/src/logo/platforms/index.ts +2 -0
- package/src/logo/src/platforms/Figma.svg +7 -0
- package/src/logo/src/platforms/Linear.svg +3 -0
- package/src/logo/src/platforms/LinearWhite.svg +3 -0
- package/src/stories/Chip.stories.tsx +86 -1
- package/src/stories/ContentMessage.stories.tsx +39 -0
- package/src/stories/Dropdown.stories.tsx +1 -1
- package/src/stories/Playground.stories.tsx +27 -2
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Button, FlexSplitButton } from "../components";
|
|
2
|
+
import { Avatar, Button, FlexSplitButton, Icon } from "../components";
|
|
3
3
|
import { ArrowUpIcon, ChevronDownIcon } from "../icons/app";
|
|
4
|
+
import { cn } from "../lib";
|
|
4
5
|
export default {
|
|
5
6
|
title: "Playground/Demo",
|
|
6
7
|
};
|
|
7
8
|
export var Demo = function () {
|
|
8
|
-
return (React.createElement("div", { className: "s-flex s-h-full s-w-full s-flex-col s-gap-2" },
|
|
9
|
+
return (React.createElement("div", { className: "s-flex s-h-full s-w-full s-cursor-pointer s-flex-col s-gap-2" },
|
|
10
|
+
React.createElement("div", { className: "s-group s-flex s-max-w-[200px] s-items-center s-gap-2 s-bg-muted-background s-p-4" },
|
|
11
|
+
React.createElement(Avatar, { size: "sm", visual: "https://lh3.googleusercontent.com/a/ACg8ocItxZ3wFv94own6Sh86W9zOFy4RA_L9A0NtNz2sM0uftazvbhU=s96-c", clickable: true }),
|
|
12
|
+
React.createElement("div", { className: "s-flex s-flex-col s-items-start" },
|
|
13
|
+
React.createElement("span", { className: cn("s-heading-sm s-transition-colors s-duration-200", "s-text-foreground group-hover:s-text-primary-600 group-active:s-text-primary-950 dark:s-text-foreground-night dark:group-hover:s-text-muted-foreground-night dark:group-active:s-text-primary-950-night") }, "Edouard"),
|
|
14
|
+
React.createElement("span", { className: "-s-mt-1 s-text-sm s-text-muted-foreground dark:s-text-muted-foreground-night" }, "Dust")),
|
|
15
|
+
React.createElement(Icon, { visual: ChevronDownIcon, className: "s-text-muted-foreground group-hover:s-text-primary-400 group-active:s-text-primary-950 dark:s-text-foreground-night dark:group-hover:s-text-muted-foreground-night dark:group-active:s-text-primary-950-night" })),
|
|
9
16
|
React.createElement("div", { className: "s-flex s-gap-3" },
|
|
10
17
|
React.createElement(FlexSplitButton, { label: "Send", variant: "highlight", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "highlight", icon: ChevronDownIcon }) }),
|
|
11
18
|
React.createElement(FlexSplitButton, { label: "Send", variant: "primary", icon: ArrowUpIcon, splitAction: React.createElement(Button, { size: "mini", variant: "primary", icon: ChevronDownIcon }) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Playground.stories.js","sourceRoot":"","sources":["../../../src/stories/Playground.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Playground.stories.js","sourceRoot":"","sources":["../../../src/stories/Playground.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,eAAe;IACb,KAAK,EAAE,iBAAiB;CACzB,CAAC;AAEF,MAAM,CAAC,IAAM,IAAI,GAAG;IAClB,OAAO,CACL,6BAAK,SAAS,EAAC,8DAA8D;QAC3E,6BAAK,SAAS,EAAC,mFAAmF;YAChG,oBAAC,MAAM,IACL,IAAI,EAAC,IAAI,EACT,MAAM,EAAC,mGAAmG,EAC1G,SAAS,SACT;YACF,6BAAK,SAAS,EAAC,iCAAiC;gBAC9C,8BACE,SAAS,EAAE,EAAE,CACX,iDAAiD,EACjD,yMAAyM,CAC1M,cAGI;gBACP,8BAAM,SAAS,EAAC,8EAA8E,WAEvF,CACH;YACN,oBAAC,IAAI,IACH,MAAM,EAAE,eAAe,EACvB,SAAS,EAAC,+MAA+M,GACzN,CACE;QACN,6BAAK,SAAS,EAAC,gBAAgB;YAC7B,oBAAC,eAAe,IACd,KAAK,EAAC,MAAM,EACZ,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,WAAW,EACjB,WAAW,EACT,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,eAAe,GAAI,GAErE;YACF,oBAAC,eAAe,IACd,KAAK,EAAC,MAAM,EACZ,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,WAAW,EACjB,WAAW,EACT,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,GAAI,GAEnE;YACF,oBAAC,eAAe,IACd,KAAK,EAAC,MAAM,EACZ,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,WAAW,EACjB,WAAW,EACT,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,GAAI,GAEnE;YACF,oBAAC,eAAe,IACd,KAAK,EAAC,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,WAAW,EACjB,WAAW,EACT,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,GAAI,GAEjE,CACE,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/sparkle.css
CHANGED
|
@@ -609,8 +609,15 @@ select {
|
|
|
609
609
|
font-weight: 600;
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
-
.s-heading-
|
|
612
|
+
.s-heading-xs {
|
|
613
613
|
font-size: 12px;
|
|
614
|
+
line-height: 16px;
|
|
615
|
+
letter-spacing: normal;
|
|
616
|
+
font-weight: 600;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.s-heading-sm {
|
|
620
|
+
font-size: 14px;
|
|
614
621
|
line-height: 20px;
|
|
615
622
|
letter-spacing: -0.28px;
|
|
616
623
|
font-weight: 600;
|
|
@@ -1719,6 +1726,10 @@ select {
|
|
|
1719
1726
|
max-width: 56rem;
|
|
1720
1727
|
}
|
|
1721
1728
|
|
|
1729
|
+
.s-max-w-\[200px\] {
|
|
1730
|
+
max-width: 200px;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1722
1733
|
.s-max-w-\[380px\] {
|
|
1723
1734
|
max-width: 380px;
|
|
1724
1735
|
}
|
|
@@ -2374,6 +2385,10 @@ select {
|
|
|
2374
2385
|
border-color: rgb(255 195 223 / 0.3);
|
|
2375
2386
|
}
|
|
2376
2387
|
|
|
2388
|
+
.s-border-border-warning\/40 {
|
|
2389
|
+
border-color: rgb(255 195 223 / 0.4);
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2377
2392
|
.s-border-border\/0 {
|
|
2378
2393
|
border-color: rgb(238 238 239 / 0);
|
|
2379
2394
|
}
|
|
@@ -2581,11 +2596,6 @@ select {
|
|
|
2581
2596
|
border-color: rgb(238 238 239 / var(--tw-border-opacity));
|
|
2582
2597
|
}
|
|
2583
2598
|
|
|
2584
|
-
.s-border-sky-200 {
|
|
2585
|
-
--tw-border-opacity: 1;
|
|
2586
|
-
border-color: rgb(159 219 255 / var(--tw-border-opacity));
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
2599
|
.s-border-success-100 {
|
|
2590
2600
|
--tw-border-opacity: 1;
|
|
2591
2601
|
border-color: rgb(240 251 189 / var(--tw-border-opacity));
|
|
@@ -3484,11 +3494,6 @@ select {
|
|
|
3484
3494
|
background-color: rgb(238 238 239 / var(--tw-bg-opacity));
|
|
3485
3495
|
}
|
|
3486
3496
|
|
|
3487
|
-
.s-bg-sky-100 {
|
|
3488
|
-
--tw-bg-opacity: 1;
|
|
3489
|
-
background-color: rgb(202 235 255 / var(--tw-bg-opacity));
|
|
3490
|
-
}
|
|
3491
|
-
|
|
3492
3497
|
.s-bg-success-100 {
|
|
3493
3498
|
--tw-bg-opacity: 1;
|
|
3494
3499
|
background-color: rgb(240 251 189 / var(--tw-bg-opacity));
|
|
@@ -4740,11 +4745,6 @@ select {
|
|
|
4740
4745
|
color: rgb(8 80 146 / var(--tw-text-opacity));
|
|
4741
4746
|
}
|
|
4742
4747
|
|
|
4743
|
-
.s-text-sky-900 {
|
|
4744
|
-
--tw-text-opacity: 1;
|
|
4745
|
-
color: rgb(7 53 95 / var(--tw-text-opacity));
|
|
4746
|
-
}
|
|
4747
|
-
|
|
4748
4748
|
.s-text-success-500 {
|
|
4749
4749
|
--tw-text-opacity: 1;
|
|
4750
4750
|
color: rgb(106 166 104 / var(--tw-text-opacity));
|
|
@@ -4896,6 +4896,10 @@ select {
|
|
|
4896
4896
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
4897
4897
|
}
|
|
4898
4898
|
|
|
4899
|
+
.s-ring-inset {
|
|
4900
|
+
--tw-ring-inset: inset;
|
|
4901
|
+
}
|
|
4902
|
+
|
|
4899
4903
|
.s-ring-highlight-300 {
|
|
4900
4904
|
--tw-ring-opacity: 1;
|
|
4901
4905
|
--tw-ring-color: rgb(122 198 255 / var(--tw-ring-opacity));
|
|
@@ -5176,6 +5180,14 @@ select {
|
|
|
5176
5180
|
color: rgb(17 20 24 / var(--tw-text-opacity));
|
|
5177
5181
|
}
|
|
5178
5182
|
|
|
5183
|
+
.placeholder\:s-italic::-moz-placeholder {
|
|
5184
|
+
font-style: italic;
|
|
5185
|
+
}
|
|
5186
|
+
|
|
5187
|
+
.placeholder\:s-italic::placeholder {
|
|
5188
|
+
font-style: italic;
|
|
5189
|
+
}
|
|
5190
|
+
|
|
5179
5191
|
.placeholder\:s-text-muted-foreground::-moz-placeholder {
|
|
5180
5192
|
--tw-text-opacity: 1;
|
|
5181
5193
|
color: rgb(84 93 108 / var(--tw-text-opacity));
|
|
@@ -5359,21 +5371,46 @@ select {
|
|
|
5359
5371
|
padding-left: 0.5rem;
|
|
5360
5372
|
}
|
|
5361
5373
|
|
|
5374
|
+
.hover\:s-text-blue-700:hover {
|
|
5375
|
+
--tw-text-opacity: 1;
|
|
5376
|
+
color: rgb(10 108 198 / var(--tw-text-opacity));
|
|
5377
|
+
}
|
|
5378
|
+
|
|
5362
5379
|
.hover\:s-text-foreground:hover {
|
|
5363
5380
|
--tw-text-opacity: 1;
|
|
5364
5381
|
color: rgb(17 20 24 / var(--tw-text-opacity));
|
|
5365
5382
|
}
|
|
5366
5383
|
|
|
5384
|
+
.hover\:s-text-golden-700:hover {
|
|
5385
|
+
--tw-text-opacity: 1;
|
|
5386
|
+
color: rgb(226 119 22 / var(--tw-text-opacity));
|
|
5387
|
+
}
|
|
5388
|
+
|
|
5389
|
+
.hover\:s-text-green-700:hover {
|
|
5390
|
+
--tw-text-opacity: 1;
|
|
5391
|
+
color: rgb(39 118 68 / var(--tw-text-opacity));
|
|
5392
|
+
}
|
|
5393
|
+
|
|
5367
5394
|
.hover\:s-text-highlight-400:hover {
|
|
5368
5395
|
--tw-text-opacity: 1;
|
|
5369
5396
|
color: rgb(75 171 255 / var(--tw-text-opacity));
|
|
5370
5397
|
}
|
|
5371
5398
|
|
|
5399
|
+
.hover\:s-text-highlight-700:hover {
|
|
5400
|
+
--tw-text-opacity: 1;
|
|
5401
|
+
color: rgb(10 108 198 / var(--tw-text-opacity));
|
|
5402
|
+
}
|
|
5403
|
+
|
|
5372
5404
|
.hover\:s-text-highlight-light:hover {
|
|
5373
5405
|
--tw-text-opacity: 1;
|
|
5374
5406
|
color: rgb(75 171 255 / var(--tw-text-opacity));
|
|
5375
5407
|
}
|
|
5376
5408
|
|
|
5409
|
+
.hover\:s-text-info-700:hover {
|
|
5410
|
+
--tw-text-opacity: 1;
|
|
5411
|
+
color: rgb(226 119 22 / var(--tw-text-opacity));
|
|
5412
|
+
}
|
|
5413
|
+
|
|
5377
5414
|
.hover\:s-text-primary:hover {
|
|
5378
5415
|
--tw-text-opacity: 1;
|
|
5379
5416
|
color: rgb(42 50 65 / var(--tw-text-opacity));
|
|
@@ -5399,11 +5436,26 @@ select {
|
|
|
5399
5436
|
color: rgb(28 34 45 / var(--tw-text-opacity));
|
|
5400
5437
|
}
|
|
5401
5438
|
|
|
5439
|
+
.hover\:s-text-rose-700:hover {
|
|
5440
|
+
--tw-text-opacity: 1;
|
|
5441
|
+
color: rgb(178 46 19 / var(--tw-text-opacity));
|
|
5442
|
+
}
|
|
5443
|
+
|
|
5444
|
+
.hover\:s-text-success-700:hover {
|
|
5445
|
+
--tw-text-opacity: 1;
|
|
5446
|
+
color: rgb(39 118 68 / var(--tw-text-opacity));
|
|
5447
|
+
}
|
|
5448
|
+
|
|
5402
5449
|
.hover\:s-text-warning-400:hover {
|
|
5403
5450
|
--tw-text-opacity: 1;
|
|
5404
5451
|
color: rgb(237 117 108 / var(--tw-text-opacity));
|
|
5405
5452
|
}
|
|
5406
5453
|
|
|
5454
|
+
.hover\:s-text-warning-700:hover {
|
|
5455
|
+
--tw-text-opacity: 1;
|
|
5456
|
+
color: rgb(178 46 19 / var(--tw-text-opacity));
|
|
5457
|
+
}
|
|
5458
|
+
|
|
5407
5459
|
.hover\:s-underline:hover {
|
|
5408
5460
|
text-decoration-line: underline;
|
|
5409
5461
|
}
|
|
@@ -5498,6 +5550,10 @@ select {
|
|
|
5498
5550
|
--tw-ring-color: rgb(225 67 34 / 0.1);
|
|
5499
5551
|
}
|
|
5500
5552
|
|
|
5553
|
+
.focus-visible\:s-ring-offset-0:focus-visible {
|
|
5554
|
+
--tw-ring-offset-width: 0px;
|
|
5555
|
+
}
|
|
5556
|
+
|
|
5501
5557
|
.focus-visible\:s-ring-offset-1:focus-visible {
|
|
5502
5558
|
--tw-ring-offset-width: 1px;
|
|
5503
5559
|
}
|
|
@@ -5541,6 +5597,21 @@ select {
|
|
|
5541
5597
|
background-color: rgb(201 57 19 / var(--tw-bg-opacity));
|
|
5542
5598
|
}
|
|
5543
5599
|
|
|
5600
|
+
.active\:s-text-blue-950:active {
|
|
5601
|
+
--tw-text-opacity: 1;
|
|
5602
|
+
color: rgb(4 23 40 / var(--tw-text-opacity));
|
|
5603
|
+
}
|
|
5604
|
+
|
|
5605
|
+
.active\:s-text-golden-950:active {
|
|
5606
|
+
--tw-text-opacity: 1;
|
|
5607
|
+
color: rgb(51 22 6 / var(--tw-text-opacity));
|
|
5608
|
+
}
|
|
5609
|
+
|
|
5610
|
+
.active\:s-text-green-950:active {
|
|
5611
|
+
--tw-text-opacity: 1;
|
|
5612
|
+
color: rgb(4 20 10 / var(--tw-text-opacity));
|
|
5613
|
+
}
|
|
5614
|
+
|
|
5544
5615
|
.active\:s-text-highlight-600:active {
|
|
5545
5616
|
--tw-text-opacity: 1;
|
|
5546
5617
|
color: rgb(19 127 227 / var(--tw-text-opacity));
|
|
@@ -5551,21 +5622,51 @@ select {
|
|
|
5551
5622
|
color: rgb(10 108 198 / var(--tw-text-opacity));
|
|
5552
5623
|
}
|
|
5553
5624
|
|
|
5625
|
+
.active\:s-text-highlight-950:active {
|
|
5626
|
+
--tw-text-opacity: 1;
|
|
5627
|
+
color: rgb(4 23 40 / var(--tw-text-opacity));
|
|
5628
|
+
}
|
|
5629
|
+
|
|
5554
5630
|
.active\:s-text-highlight-dark:active {
|
|
5555
5631
|
--tw-text-opacity: 1;
|
|
5556
5632
|
color: rgb(19 127 227 / var(--tw-text-opacity));
|
|
5557
5633
|
}
|
|
5558
5634
|
|
|
5635
|
+
.active\:s-text-info-950:active {
|
|
5636
|
+
--tw-text-opacity: 1;
|
|
5637
|
+
color: rgb(51 22 6 / var(--tw-text-opacity));
|
|
5638
|
+
}
|
|
5639
|
+
|
|
5559
5640
|
.active\:s-text-primary-200:active {
|
|
5560
5641
|
--tw-text-opacity: 1;
|
|
5561
5642
|
color: rgb(211 213 217 / var(--tw-text-opacity));
|
|
5562
5643
|
}
|
|
5563
5644
|
|
|
5645
|
+
.active\:s-text-primary-950:active {
|
|
5646
|
+
--tw-text-opacity: 1;
|
|
5647
|
+
color: rgb(17 20 24 / var(--tw-text-opacity));
|
|
5648
|
+
}
|
|
5649
|
+
|
|
5650
|
+
.active\:s-text-rose-950:active {
|
|
5651
|
+
--tw-text-opacity: 1;
|
|
5652
|
+
color: rgb(34 10 4 / var(--tw-text-opacity));
|
|
5653
|
+
}
|
|
5654
|
+
|
|
5655
|
+
.active\:s-text-success-950:active {
|
|
5656
|
+
--tw-text-opacity: 1;
|
|
5657
|
+
color: rgb(4 20 10 / var(--tw-text-opacity));
|
|
5658
|
+
}
|
|
5659
|
+
|
|
5564
5660
|
.active\:s-text-warning-600:active {
|
|
5565
5661
|
--tw-text-opacity: 1;
|
|
5566
5662
|
color: rgb(201 57 19 / var(--tw-text-opacity));
|
|
5567
5663
|
}
|
|
5568
5664
|
|
|
5665
|
+
.active\:s-text-warning-950:active {
|
|
5666
|
+
--tw-text-opacity: 1;
|
|
5667
|
+
color: rgb(34 10 4 / var(--tw-text-opacity));
|
|
5668
|
+
}
|
|
5669
|
+
|
|
5569
5670
|
.active\:s-brightness-90:active {
|
|
5570
5671
|
--tw-brightness: brightness(.9);
|
|
5571
5672
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
@@ -5656,6 +5757,16 @@ select {
|
|
|
5656
5757
|
color: rgb(28 145 255 / var(--tw-text-opacity));
|
|
5657
5758
|
}
|
|
5658
5759
|
|
|
5760
|
+
.s-group:hover .group-hover\:s-text-primary-400 {
|
|
5761
|
+
--tw-text-opacity: 1;
|
|
5762
|
+
color: rgb(150 156 165 / var(--tw-text-opacity));
|
|
5763
|
+
}
|
|
5764
|
+
|
|
5765
|
+
.s-group:hover .group-hover\:s-text-primary-600 {
|
|
5766
|
+
--tw-text-opacity: 1;
|
|
5767
|
+
color: rgb(84 93 108 / var(--tw-text-opacity));
|
|
5768
|
+
}
|
|
5769
|
+
|
|
5659
5770
|
.s-group\/card:hover .group-hover\/card\:s-opacity-100 {
|
|
5660
5771
|
opacity: 1;
|
|
5661
5772
|
}
|
|
@@ -5687,6 +5798,11 @@ select {
|
|
|
5687
5798
|
background-color: rgb(238 238 239 / 0.6);
|
|
5688
5799
|
}
|
|
5689
5800
|
|
|
5801
|
+
.s-group:active .group-active\:s-text-primary-950 {
|
|
5802
|
+
--tw-text-opacity: 1;
|
|
5803
|
+
color: rgb(17 20 24 / var(--tw-text-opacity));
|
|
5804
|
+
}
|
|
5805
|
+
|
|
5690
5806
|
.s-group:active .group-active\:s-brightness-90 {
|
|
5691
5807
|
--tw-brightness: brightness(.9);
|
|
5692
5808
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
@@ -6328,11 +6444,6 @@ select {
|
|
|
6328
6444
|
border-color: rgb(42 50 65 / var(--tw-border-opacity));
|
|
6329
6445
|
}
|
|
6330
6446
|
|
|
6331
|
-
:is(.s-dark .dark\:s-border-sky-200-night) {
|
|
6332
|
-
--tw-border-opacity: 1;
|
|
6333
|
-
border-color: rgb(8 80 146 / var(--tw-border-opacity));
|
|
6334
|
-
}
|
|
6335
|
-
|
|
6336
6447
|
:is(.s-dark .dark\:s-border-success-100-night) {
|
|
6337
6448
|
--tw-border-opacity: 1;
|
|
6338
6449
|
border-color: rgb(10 54 26 / var(--tw-border-opacity));
|
|
@@ -7181,11 +7292,6 @@ select {
|
|
|
7181
7292
|
background-color: rgb(42 50 65 / var(--tw-bg-opacity));
|
|
7182
7293
|
}
|
|
7183
7294
|
|
|
7184
|
-
:is(.s-dark .dark\:s-bg-sky-100-night) {
|
|
7185
|
-
--tw-bg-opacity: 1;
|
|
7186
|
-
background-color: rgb(7 53 95 / var(--tw-bg-opacity));
|
|
7187
|
-
}
|
|
7188
|
-
|
|
7189
7295
|
:is(.s-dark .dark\:s-bg-success-100-night) {
|
|
7190
7296
|
--tw-bg-opacity: 1;
|
|
7191
7297
|
background-color: rgb(10 54 26 / var(--tw-bg-opacity));
|
|
@@ -7897,11 +8003,6 @@ select {
|
|
|
7897
8003
|
color: rgb(159 219 255 / var(--tw-text-opacity));
|
|
7898
8004
|
}
|
|
7899
8005
|
|
|
7900
|
-
:is(.s-dark .dark\:s-text-sky-900-night) {
|
|
7901
|
-
--tw-text-opacity: 1;
|
|
7902
|
-
color: rgb(202 235 255 / var(--tw-text-opacity));
|
|
7903
|
-
}
|
|
7904
|
-
|
|
7905
8006
|
:is(.s-dark .dark\:s-text-success-400-night) {
|
|
7906
8007
|
--tw-text-opacity: 1;
|
|
7907
8008
|
color: rgb(65 139 92 / var(--tw-text-opacity));
|
|
@@ -8055,11 +8156,26 @@ select {
|
|
|
8055
8156
|
background-color: rgb(34 10 4 / var(--tw-bg-opacity));
|
|
8056
8157
|
}
|
|
8057
8158
|
|
|
8159
|
+
:is(.s-dark .dark\:hover\:s-text-blue-700-night:hover) {
|
|
8160
|
+
--tw-text-opacity: 1;
|
|
8161
|
+
color: rgb(122 198 255 / var(--tw-text-opacity));
|
|
8162
|
+
}
|
|
8163
|
+
|
|
8058
8164
|
:is(.s-dark .dark\:hover\:s-text-foreground-night:hover) {
|
|
8059
8165
|
--tw-text-opacity: 1;
|
|
8060
8166
|
color: rgb(247 247 247 / var(--tw-text-opacity));
|
|
8061
8167
|
}
|
|
8062
8168
|
|
|
8169
|
+
:is(.s-dark .dark\:hover\:s-text-golden-700-night:hover) {
|
|
8170
|
+
--tw-text-opacity: 1;
|
|
8171
|
+
color: rgb(255 208 70 / var(--tw-text-opacity));
|
|
8172
|
+
}
|
|
8173
|
+
|
|
8174
|
+
:is(.s-dark .dark\:hover\:s-text-green-700-night:hover) {
|
|
8175
|
+
--tw-text-opacity: 1;
|
|
8176
|
+
color: rgb(188 222 129 / var(--tw-text-opacity));
|
|
8177
|
+
}
|
|
8178
|
+
|
|
8063
8179
|
:is(.s-dark .dark\:hover\:s-text-highlight-400-night:hover) {
|
|
8064
8180
|
--tw-text-opacity: 1;
|
|
8065
8181
|
color: rgb(19 127 227 / var(--tw-text-opacity));
|
|
@@ -8070,11 +8186,21 @@ select {
|
|
|
8070
8186
|
color: rgb(28 145 255 / var(--tw-text-opacity));
|
|
8071
8187
|
}
|
|
8072
8188
|
|
|
8189
|
+
:is(.s-dark .dark\:hover\:s-text-highlight-700-night:hover) {
|
|
8190
|
+
--tw-text-opacity: 1;
|
|
8191
|
+
color: rgb(122 198 255 / var(--tw-text-opacity));
|
|
8192
|
+
}
|
|
8193
|
+
|
|
8073
8194
|
:is(.s-dark .dark\:hover\:s-text-highlight-light-night:hover) {
|
|
8074
8195
|
--tw-text-opacity: 1;
|
|
8075
8196
|
color: rgb(19 127 227 / var(--tw-text-opacity));
|
|
8076
8197
|
}
|
|
8077
8198
|
|
|
8199
|
+
:is(.s-dark .dark\:hover\:s-text-info-700-night:hover) {
|
|
8200
|
+
--tw-text-opacity: 1;
|
|
8201
|
+
color: rgb(255 208 70 / var(--tw-text-opacity));
|
|
8202
|
+
}
|
|
8203
|
+
|
|
8078
8204
|
:is(.s-dark .dark\:hover\:s-text-primary-100-night:hover) {
|
|
8079
8205
|
--tw-text-opacity: 1;
|
|
8080
8206
|
color: rgb(28 34 45 / var(--tw-text-opacity));
|
|
@@ -8085,6 +8211,11 @@ select {
|
|
|
8085
8211
|
color: rgb(84 93 108 / var(--tw-text-opacity));
|
|
8086
8212
|
}
|
|
8087
8213
|
|
|
8214
|
+
:is(.s-dark .dark\:hover\:s-text-primary-500-night:hover) {
|
|
8215
|
+
--tw-text-opacity: 1;
|
|
8216
|
+
color: rgb(123 129 141 / var(--tw-text-opacity));
|
|
8217
|
+
}
|
|
8218
|
+
|
|
8088
8219
|
:is(.s-dark .dark\:hover\:s-text-primary-900-night:hover) {
|
|
8089
8220
|
--tw-text-opacity: 1;
|
|
8090
8221
|
color: rgb(238 238 239 / var(--tw-text-opacity));
|
|
@@ -8095,11 +8226,26 @@ select {
|
|
|
8095
8226
|
color: rgb(211 213 217 / var(--tw-text-opacity));
|
|
8096
8227
|
}
|
|
8097
8228
|
|
|
8229
|
+
:is(.s-dark .dark\:hover\:s-text-rose-700-night:hover) {
|
|
8230
|
+
--tw-text-opacity: 1;
|
|
8231
|
+
color: rgb(248 166 180 / var(--tw-text-opacity));
|
|
8232
|
+
}
|
|
8233
|
+
|
|
8234
|
+
:is(.s-dark .dark\:hover\:s-text-success-700-night:hover) {
|
|
8235
|
+
--tw-text-opacity: 1;
|
|
8236
|
+
color: rgb(188 222 129 / var(--tw-text-opacity));
|
|
8237
|
+
}
|
|
8238
|
+
|
|
8098
8239
|
:is(.s-dark .dark\:hover\:s-text-warning-500-night:hover) {
|
|
8099
8240
|
--tw-text-opacity: 1;
|
|
8100
8241
|
color: rgb(225 67 34 / var(--tw-text-opacity));
|
|
8101
8242
|
}
|
|
8102
8243
|
|
|
8244
|
+
:is(.s-dark .dark\:hover\:s-text-warning-700-night:hover) {
|
|
8245
|
+
--tw-text-opacity: 1;
|
|
8246
|
+
color: rgb(248 166 180 / var(--tw-text-opacity));
|
|
8247
|
+
}
|
|
8248
|
+
|
|
8103
8249
|
:is(.s-dark .dark\:hover\:s-text-white:hover) {
|
|
8104
8250
|
--tw-text-opacity: 1;
|
|
8105
8251
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
@@ -8183,6 +8329,21 @@ select {
|
|
|
8183
8329
|
background-color: rgb(87 22 9 / var(--tw-bg-opacity));
|
|
8184
8330
|
}
|
|
8185
8331
|
|
|
8332
|
+
:is(.s-dark .dark\:active\:s-text-blue-950-night:active) {
|
|
8333
|
+
--tw-text-opacity: 1;
|
|
8334
|
+
color: rgb(233 247 255 / var(--tw-text-opacity));
|
|
8335
|
+
}
|
|
8336
|
+
|
|
8337
|
+
:is(.s-dark .dark\:active\:s-text-golden-950-night:active) {
|
|
8338
|
+
--tw-text-opacity: 1;
|
|
8339
|
+
color: rgb(255 250 224 / var(--tw-text-opacity));
|
|
8340
|
+
}
|
|
8341
|
+
|
|
8342
|
+
:is(.s-dark .dark\:active\:s-text-green-950-night:active) {
|
|
8343
|
+
--tw-text-opacity: 1;
|
|
8344
|
+
color: rgb(254 255 240 / var(--tw-text-opacity));
|
|
8345
|
+
}
|
|
8346
|
+
|
|
8186
8347
|
:is(.s-dark .dark\:active\:s-text-highlight-600-night:active) {
|
|
8187
8348
|
--tw-text-opacity: 1;
|
|
8188
8349
|
color: rgb(75 171 255 / var(--tw-text-opacity));
|
|
@@ -8193,21 +8354,51 @@ select {
|
|
|
8193
8354
|
color: rgb(122 198 255 / var(--tw-text-opacity));
|
|
8194
8355
|
}
|
|
8195
8356
|
|
|
8357
|
+
:is(.s-dark .dark\:active\:s-text-highlight-950-night:active) {
|
|
8358
|
+
--tw-text-opacity: 1;
|
|
8359
|
+
color: rgb(233 247 255 / var(--tw-text-opacity));
|
|
8360
|
+
}
|
|
8361
|
+
|
|
8196
8362
|
:is(.s-dark .dark\:active\:s-text-highlight-dark-night:active) {
|
|
8197
8363
|
--tw-text-opacity: 1;
|
|
8198
8364
|
color: rgb(75 171 255 / var(--tw-text-opacity));
|
|
8199
8365
|
}
|
|
8200
8366
|
|
|
8367
|
+
:is(.s-dark .dark\:active\:s-text-info-950-night:active) {
|
|
8368
|
+
--tw-text-opacity: 1;
|
|
8369
|
+
color: rgb(255 250 224 / var(--tw-text-opacity));
|
|
8370
|
+
}
|
|
8371
|
+
|
|
8201
8372
|
:is(.s-dark .dark\:active\:s-text-primary-200-night:active) {
|
|
8202
8373
|
--tw-text-opacity: 1;
|
|
8203
8374
|
color: rgb(42 50 65 / var(--tw-text-opacity));
|
|
8204
8375
|
}
|
|
8205
8376
|
|
|
8377
|
+
:is(.s-dark .dark\:active\:s-text-primary-950-night:active) {
|
|
8378
|
+
--tw-text-opacity: 1;
|
|
8379
|
+
color: rgb(238 238 239 / var(--tw-text-opacity));
|
|
8380
|
+
}
|
|
8381
|
+
|
|
8382
|
+
:is(.s-dark .dark\:active\:s-text-rose-950-night:active) {
|
|
8383
|
+
--tw-text-opacity: 1;
|
|
8384
|
+
color: rgb(255 241 247 / var(--tw-text-opacity));
|
|
8385
|
+
}
|
|
8386
|
+
|
|
8387
|
+
:is(.s-dark .dark\:active\:s-text-success-950-night:active) {
|
|
8388
|
+
--tw-text-opacity: 1;
|
|
8389
|
+
color: rgb(254 255 240 / var(--tw-text-opacity));
|
|
8390
|
+
}
|
|
8391
|
+
|
|
8206
8392
|
:is(.s-dark .dark\:active\:s-text-warning-600-night:active) {
|
|
8207
8393
|
--tw-text-opacity: 1;
|
|
8208
8394
|
color: rgb(237 117 108 / var(--tw-text-opacity));
|
|
8209
8395
|
}
|
|
8210
8396
|
|
|
8397
|
+
:is(.s-dark .dark\:active\:s-text-warning-950-night:active) {
|
|
8398
|
+
--tw-text-opacity: 1;
|
|
8399
|
+
color: rgb(255 241 247 / var(--tw-text-opacity));
|
|
8400
|
+
}
|
|
8401
|
+
|
|
8211
8402
|
:is(.s-dark .dark\:disabled\:s-border-border-night:disabled) {
|
|
8212
8403
|
--tw-border-opacity: 1;
|
|
8213
8404
|
border-color: rgb(42 50 65 / var(--tw-border-opacity));
|
|
@@ -8257,10 +8448,20 @@ select {
|
|
|
8257
8448
|
color: rgb(28 145 255 / var(--tw-text-opacity));
|
|
8258
8449
|
}
|
|
8259
8450
|
|
|
8451
|
+
:is(.s-dark .s-group:hover .dark\:group-hover\:s-text-muted-foreground-night) {
|
|
8452
|
+
--tw-text-opacity: 1;
|
|
8453
|
+
color: rgb(150 156 165 / var(--tw-text-opacity));
|
|
8454
|
+
}
|
|
8455
|
+
|
|
8260
8456
|
:is(.s-dark .s-group:active .dark\:group-active\:s-bg-primary-100-night\/60) {
|
|
8261
8457
|
background-color: rgb(28 34 45 / 0.6);
|
|
8262
8458
|
}
|
|
8263
8459
|
|
|
8460
|
+
:is(.s-dark .s-group:active .dark\:group-active\:s-text-primary-950-night) {
|
|
8461
|
+
--tw-text-opacity: 1;
|
|
8462
|
+
color: rgb(238 238 239 / var(--tw-text-opacity));
|
|
8463
|
+
}
|
|
8464
|
+
|
|
8264
8465
|
:is(.s-dark .dark\:data-\[state\=checked\]\:s-bg-primary-night[data-state=checked]) {
|
|
8265
8466
|
--tw-bg-opacity: 1;
|
|
8266
8467
|
background-color: rgb(211 213 217 / var(--tw-bg-opacity));
|
|
@@ -8294,6 +8495,10 @@ select {
|
|
|
8294
8495
|
max-width: 36rem;
|
|
8295
8496
|
}
|
|
8296
8497
|
|
|
8498
|
+
.sm\:s-grid-cols-2 {
|
|
8499
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
8500
|
+
}
|
|
8501
|
+
|
|
8297
8502
|
.sm\:s-flex-row {
|
|
8298
8503
|
flex-direction: row;
|
|
8299
8504
|
}
|
|
@@ -8309,6 +8514,12 @@ select {
|
|
|
8309
8514
|
}
|
|
8310
8515
|
}
|
|
8311
8516
|
|
|
8517
|
+
@media (min-width: 1024px) {
|
|
8518
|
+
.lg\:s-grid-cols-3 {
|
|
8519
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
8520
|
+
}
|
|
8521
|
+
}
|
|
8522
|
+
|
|
8312
8523
|
.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:s-rotate-90[data-panel-group-direction=vertical]>div {
|
|
8313
8524
|
--tw-rotate: 90deg;
|
|
8314
8525
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
package/package.json
CHANGED
|
@@ -35,8 +35,8 @@ export type ButtonSizeType = (typeof BUTTON_SIZES)[number];
|
|
|
35
35
|
// Define button styling with cva
|
|
36
36
|
const buttonVariants = cva(
|
|
37
37
|
cn(
|
|
38
|
-
"s-inline-flex s-items-center s-justify-center s-whitespace-nowrap s-ring-offset-background s-transition-colors",
|
|
39
|
-
"focus-visible:s-outline-none focus-visible:s-ring-2 focus-visible:s-ring-ring focus-visible:s-ring-offset-
|
|
38
|
+
"s-inline-flex s-items-center s-justify-center s-whitespace-nowrap s-ring-offset-background s-transition-colors s-ring-inset",
|
|
39
|
+
"focus-visible:s-outline-none focus-visible:s-ring-2 focus-visible:s-ring-ring focus-visible:s-ring-offset-0",
|
|
40
40
|
"dark:focus-visible:s-ring-0 dark:focus-visible:s-ring-offset-1"
|
|
41
41
|
),
|
|
42
42
|
{
|
package/src/components/Chip.tsx
CHANGED
|
@@ -30,8 +30,8 @@ export const CHIP_COLORS = [
|
|
|
30
30
|
type ChipColorType = (typeof CHIP_COLORS)[number];
|
|
31
31
|
|
|
32
32
|
const sizeVariants: Record<ChipSizeType, string> = {
|
|
33
|
-
xs: "s-rounded-lg s-min-h-7 s-
|
|
34
|
-
sm: "s-rounded-xl s-min-h-9 s-
|
|
33
|
+
xs: "s-rounded-lg s-min-h-7 s-heading-xs s-px-3 s-gap-1",
|
|
34
|
+
sm: "s-rounded-xl s-min-h-9 s-heading-sm s-px-4 s-gap-1.5",
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
const backgroundVariants: Record<ChipColorType, string> = {
|
|
@@ -60,8 +60,8 @@ const backgroundVariants: Record<ChipColorType, string> = {
|
|
|
60
60
|
"dark:s-bg-green-100-night dark:s-border-green-200-night"
|
|
61
61
|
),
|
|
62
62
|
blue: cn(
|
|
63
|
-
"s-bg-
|
|
64
|
-
"dark:s-bg-
|
|
63
|
+
"s-bg-blue-100 s-border-blue-200",
|
|
64
|
+
"dark:s-bg-blue-100-night dark:s-border-blue-200-night"
|
|
65
65
|
),
|
|
66
66
|
rose: cn(
|
|
67
67
|
"s-bg-rose-100 s-border-rose-200",
|
|
@@ -80,11 +80,50 @@ const textVariants: Record<ChipColorType, string> = {
|
|
|
80
80
|
warning: "s-text-warning-900 dark:s-text-warning-900-night",
|
|
81
81
|
info: "s-text-info-900 dark:s-text-info-900-night",
|
|
82
82
|
green: "s-text-green-900 dark:s-text-green-900-night",
|
|
83
|
-
blue: "s-text-
|
|
83
|
+
blue: "s-text-blue-900 dark:s-text-blue-900-night",
|
|
84
84
|
rose: "s-text-rose-900 dark:s-text-rose-900-night",
|
|
85
85
|
golden: "s-text-golden-900 dark:s-text-golden-900-night",
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
+
const closeIconVariants: Record<ChipColorType, string> = {
|
|
89
|
+
primary: cn(
|
|
90
|
+
"s-text-primary-700 hover:s-text-primary-500 active:s-text-primary-950",
|
|
91
|
+
"dark:s-text-primary-700-night dark:hover:s-text-primary-500-night dark:active:s-text-primary-950-night"
|
|
92
|
+
),
|
|
93
|
+
highlight: cn(
|
|
94
|
+
"s-text-highlight-900 hover:s-text-highlight-700 active:s-text-highlight-950",
|
|
95
|
+
"dark:s-text-highlight-900-night dark:hover:s-text-highlight-700-night dark:active:s-text-highlight-950-night"
|
|
96
|
+
),
|
|
97
|
+
success: cn(
|
|
98
|
+
"s-text-success-900 hover:s-text-success-700 active:s-text-success-950",
|
|
99
|
+
"dark:s-text-success-900-night dark:hover:s-text-success-700-night dark:active:s-text-success-950-night"
|
|
100
|
+
),
|
|
101
|
+
warning: cn(
|
|
102
|
+
"s-text-warning-900 hover:s-text-warning-700 active:s-text-warning-950",
|
|
103
|
+
"dark:s-text-warning-900-night dark:hover:s-text-warning-700-night dark:active:s-text-warning-950-night"
|
|
104
|
+
),
|
|
105
|
+
info: cn(
|
|
106
|
+
"s-text-info-900 hover:s-text-info-700 active:s-text-info-950",
|
|
107
|
+
"dark:s-text-info-900-night dark:hover:s-text-info-700-night dark:active:s-text-info-950-night"
|
|
108
|
+
),
|
|
109
|
+
green: cn(
|
|
110
|
+
"s-text-green-900 hover:s-text-green-700 active:s-text-green-950",
|
|
111
|
+
"dark:s-text-green-900-night dark:hover:s-text-green-700-night dark:active:s-text-green-950-night"
|
|
112
|
+
),
|
|
113
|
+
blue: cn(
|
|
114
|
+
"s-text-blue-900 hover:s-text-blue-700 active:s-text-blue-950",
|
|
115
|
+
"dark:s-text-blue-900-night dark:hover:s-text-blue-700-night dark:active:s-text-blue-950-night"
|
|
116
|
+
),
|
|
117
|
+
rose: cn(
|
|
118
|
+
"s-text-rose-900 hover:s-text-rose-700 active:s-text-rose-950",
|
|
119
|
+
"dark:s-text-rose-900-night dark:hover:s-text-rose-700-night dark:active:s-text-rose-950-night"
|
|
120
|
+
),
|
|
121
|
+
golden: cn(
|
|
122
|
+
"s-text-golden-900 hover:s-text-golden-700 active:s-text-golden-950",
|
|
123
|
+
"dark:s-text-golden-900-night dark:hover:s-text-golden-700-night dark:active:s-text-golden-950-night"
|
|
124
|
+
),
|
|
125
|
+
};
|
|
126
|
+
|
|
88
127
|
const chipVariants = cva("s-inline-flex s-box-border s-items-center", {
|
|
89
128
|
variants: {
|
|
90
129
|
size: sizeVariants,
|
|
@@ -171,7 +210,10 @@ const Chip = React.forwardRef<HTMLDivElement, ChipProps>(
|
|
|
171
210
|
<Icon
|
|
172
211
|
visual={XMarkIcon}
|
|
173
212
|
size={size}
|
|
174
|
-
className=
|
|
213
|
+
className={cn(
|
|
214
|
+
"s-transition-color -s-mr-1 s-duration-200",
|
|
215
|
+
closeIconVariants[color || "primary"]
|
|
216
|
+
)}
|
|
175
217
|
/>
|
|
176
218
|
</div>
|
|
177
219
|
)}
|