@dust-tt/sparkle 0.2.451 → 0.2.453

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.
Files changed (51) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/esm/components/AnimatedText.js +2 -2
  3. package/dist/esm/components/AnimatedText.js.map +1 -1
  4. package/dist/esm/components/AttachmentChip.d.ts +10 -2
  5. package/dist/esm/components/AttachmentChip.d.ts.map +1 -1
  6. package/dist/esm/components/AttachmentChip.js +7 -2
  7. package/dist/esm/components/AttachmentChip.js.map +1 -1
  8. package/dist/esm/components/DropzoneOverlay.js +1 -1
  9. package/dist/esm/components/DropzoneOverlay.js.map +1 -1
  10. package/dist/esm/components/Hoverable.js +2 -2
  11. package/dist/esm/components/Hoverable.js.map +1 -1
  12. package/dist/esm/components/Input.js +1 -1
  13. package/dist/esm/components/Input.js.map +1 -1
  14. package/dist/esm/components/Notification.d.ts.map +1 -1
  15. package/dist/esm/components/Notification.js +1 -3
  16. package/dist/esm/components/Notification.js.map +1 -1
  17. package/dist/esm/components/SplitButton.js +3 -3
  18. package/dist/esm/components/SplitButton.js.map +1 -1
  19. package/dist/esm/logo/platforms/Hubspot.d.ts.map +1 -1
  20. package/dist/esm/logo/platforms/Hubspot.js +2 -3
  21. package/dist/esm/logo/platforms/Hubspot.js.map +1 -1
  22. package/dist/esm/logo/src/platforms/Hubspot.svg +10 -1
  23. package/dist/esm/stories/Avatar.stories.js +2 -2
  24. package/dist/esm/stories/Avatar.stories.js.map +1 -1
  25. package/dist/esm/stories/Button.stories.js +1 -1
  26. package/dist/esm/stories/Button.stories.js.map +1 -1
  27. package/dist/esm/stories/Collapsible.stories.js +5 -5
  28. package/dist/esm/stories/Collapsible.stories.js.map +1 -1
  29. package/dist/esm/stories/Hover3D.stories.js +4 -4
  30. package/dist/esm/stories/Hover3D.stories.js.map +1 -1
  31. package/dist/esm/stories/Logo.stories.js +2 -2
  32. package/dist/esm/stories/Logo.stories.js.map +1 -1
  33. package/dist/esm/stories/Resizable.stories.js +2 -2
  34. package/dist/esm/stories/Resizable.stories.js.map +1 -1
  35. package/dist/sparkle.css +43 -48
  36. package/package.json +1 -1
  37. package/src/components/AnimatedText.tsx +4 -4
  38. package/src/components/AttachmentChip.tsx +33 -12
  39. package/src/components/DropzoneOverlay.tsx +1 -1
  40. package/src/components/Hoverable.tsx +2 -2
  41. package/src/components/Input.tsx +1 -1
  42. package/src/components/Notification.tsx +1 -3
  43. package/src/components/SplitButton.tsx +3 -3
  44. package/src/logo/platforms/Hubspot.tsx +5 -7
  45. package/src/logo/src/platforms/Hubspot.svg +10 -1
  46. package/src/stories/Avatar.stories.tsx +2 -2
  47. package/src/stories/Button.stories.tsx +1 -1
  48. package/src/stories/Collapsible.stories.tsx +5 -5
  49. package/src/stories/Hover3D.stories.tsx +4 -4
  50. package/src/stories/Logo.stories.tsx +2 -2
  51. package/src/stories/Resizable.stories.tsx +2 -2
package/dist/sparkle.css CHANGED
@@ -2785,6 +2785,10 @@ select {
2785
2785
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
2786
2786
  }
2787
2787
 
2788
+ .s-bg-background\/50 {
2789
+ background-color: rgb(255 255 255 / 0.5);
2790
+ }
2791
+
2788
2792
  .s-bg-background\/80 {
2789
2793
  background-color: rgb(255 255 255 / 0.8);
2790
2794
  }
@@ -4078,10 +4082,6 @@ select {
4078
4082
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
4079
4083
  }
4080
4084
 
4081
- .s-bg-white\/50 {
4082
- background-color: rgb(255 255 255 / 0.5);
4083
- }
4084
-
4085
4085
  .s-bg-white\/80 {
4086
4086
  background-color: rgb(255 255 255 / 0.8);
4087
4087
  }
@@ -4183,6 +4183,12 @@ select {
4183
4183
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
4184
4184
  }
4185
4185
 
4186
+ .s-from-primary-600 {
4187
+ --tw-gradient-from: #545D6C var(--tw-gradient-from-position);
4188
+ --tw-gradient-to: rgb(84 93 108 / 0) var(--tw-gradient-to-position);
4189
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
4190
+ }
4191
+
4186
4192
  .s-from-purple-800 {
4187
4193
  --tw-gradient-from: #6b21a8 var(--tw-gradient-from-position);
4188
4194
  --tw-gradient-to: rgb(107 33 168 / 0) var(--tw-gradient-to-position);
@@ -4201,12 +4207,6 @@ select {
4201
4207
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
4202
4208
  }
4203
4209
 
4204
- .s-from-slate-600 {
4205
- --tw-gradient-from: #545D6C var(--tw-gradient-from-position);
4206
- --tw-gradient-to: rgb(84 93 108 / 0) var(--tw-gradient-to-position);
4207
- --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
4208
- }
4209
-
4210
4210
  .s-from-stone-400 {
4211
4211
  --tw-gradient-from: #a8a29e var(--tw-gradient-from-position);
4212
4212
  --tw-gradient-to: rgb(168 162 158 / 0) var(--tw-gradient-to-position);
@@ -4245,6 +4245,11 @@ select {
4245
4245
  --tw-gradient-stops: var(--tw-gradient-from), #220A04 var(--tw-gradient-via-position), var(--tw-gradient-to);
4246
4246
  }
4247
4247
 
4248
+ .s-via-primary-950 {
4249
+ --tw-gradient-to: rgb(17 20 24 / 0) var(--tw-gradient-to-position);
4250
+ --tw-gradient-stops: var(--tw-gradient-from), #111418 var(--tw-gradient-via-position), var(--tw-gradient-to);
4251
+ }
4252
+
4248
4253
  .s-via-primary-950\/80 {
4249
4254
  --tw-gradient-to: rgb(17 20 24 / 0) var(--tw-gradient-to-position);
4250
4255
  --tw-gradient-stops: var(--tw-gradient-from), rgb(17 20 24 / 0.8) var(--tw-gradient-via-position), var(--tw-gradient-to);
@@ -4265,11 +4270,6 @@ select {
4265
4270
  --tw-gradient-stops: var(--tw-gradient-from), #041728 var(--tw-gradient-via-position), var(--tw-gradient-to);
4266
4271
  }
4267
4272
 
4268
- .s-via-slate-950 {
4269
- --tw-gradient-to: rgb(17 20 24 / 0) var(--tw-gradient-to-position);
4270
- --tw-gradient-stops: var(--tw-gradient-from), #111418 var(--tw-gradient-via-position), var(--tw-gradient-to);
4271
- }
4272
-
4273
4273
  .s-via-warning-950 {
4274
4274
  --tw-gradient-to: rgb(34 10 4 / 0) var(--tw-gradient-to-position);
4275
4275
  --tw-gradient-stops: var(--tw-gradient-from), #220A04 var(--tw-gradient-via-position), var(--tw-gradient-to);
@@ -4299,6 +4299,10 @@ select {
4299
4299
  --tw-gradient-to: #8C230D var(--tw-gradient-to-position);
4300
4300
  }
4301
4301
 
4302
+ .s-to-primary-600 {
4303
+ --tw-gradient-to: #545D6C var(--tw-gradient-to-position);
4304
+ }
4305
+
4302
4306
  .s-to-purple-800 {
4303
4307
  --tw-gradient-to: #6b21a8 var(--tw-gradient-to-position);
4304
4308
  }
@@ -4311,10 +4315,6 @@ select {
4311
4315
  --tw-gradient-to: #085092 var(--tw-gradient-to-position);
4312
4316
  }
4313
4317
 
4314
- .s-to-slate-600 {
4315
- --tw-gradient-to: #545D6C var(--tw-gradient-to-position);
4316
- }
4317
-
4318
4318
  .s-to-stone-300 {
4319
4319
  --tw-gradient-to: #d6d3d1 var(--tw-gradient-to-position);
4320
4320
  }
@@ -8183,10 +8183,6 @@ select {
8183
8183
  background-color: rgb(247 247 247 / var(--tw-bg-opacity));
8184
8184
  }
8185
8185
 
8186
- :is(.s-dark .dark\:s-bg-slate-950\/50) {
8187
- background-color: rgb(17 20 24 / 0.5);
8188
- }
8189
-
8190
8186
  :is(.s-dark .dark\:s-bg-success-100-night) {
8191
8187
  --tw-bg-opacity: 1;
8192
8188
  background-color: rgb(10 54 26 / var(--tw-bg-opacity));
@@ -8486,6 +8482,12 @@ select {
8486
8482
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
8487
8483
  }
8488
8484
 
8485
+ :is(.s-dark .dark\:s-from-primary-600-night) {
8486
+ --tw-gradient-from: #969CA5 var(--tw-gradient-from-position);
8487
+ --tw-gradient-to: rgb(150 156 165 / 0) var(--tw-gradient-to-position);
8488
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
8489
+ }
8490
+
8489
8491
  :is(.s-dark .dark\:s-from-purple-800-night) {
8490
8492
  --tw-gradient-from: #e9d5ff var(--tw-gradient-from-position);
8491
8493
  --tw-gradient-to: rgb(233 213 255 / 0) var(--tw-gradient-to-position);
@@ -8504,12 +8506,6 @@ select {
8504
8506
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
8505
8507
  }
8506
8508
 
8507
- :is(.s-dark .dark\:s-from-slate-600-night) {
8508
- --tw-gradient-from: #969CA5 var(--tw-gradient-from-position);
8509
- --tw-gradient-to: rgb(150 156 165 / 0) var(--tw-gradient-to-position);
8510
- --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
8511
- }
8512
-
8513
8509
  :is(.s-dark .dark\:s-from-transparent) {
8514
8510
  --tw-gradient-from: transparent var(--tw-gradient-from-position);
8515
8511
  --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
@@ -8547,6 +8543,11 @@ select {
8547
8543
  --tw-gradient-stops: var(--tw-gradient-from), rgb(247 247 247 / 0.8) var(--tw-gradient-via-position), var(--tw-gradient-to);
8548
8544
  }
8549
8545
 
8546
+ :is(.s-dark .dark\:s-via-primary-950-night) {
8547
+ --tw-gradient-to: rgb(238 238 239 / 0) var(--tw-gradient-to-position);
8548
+ --tw-gradient-stops: var(--tw-gradient-from), #EEEEEF var(--tw-gradient-via-position), var(--tw-gradient-to);
8549
+ }
8550
+
8550
8551
  :is(.s-dark .dark\:s-via-purple-950-night) {
8551
8552
  --tw-gradient-to: rgb(250 245 255 / 0) var(--tw-gradient-to-position);
8552
8553
  --tw-gradient-stops: var(--tw-gradient-from), #faf5ff var(--tw-gradient-via-position), var(--tw-gradient-to);
@@ -8562,11 +8563,6 @@ select {
8562
8563
  --tw-gradient-stops: var(--tw-gradient-from), #E9F7FF var(--tw-gradient-via-position), var(--tw-gradient-to);
8563
8564
  }
8564
8565
 
8565
- :is(.s-dark .dark\:s-via-slate-950-night) {
8566
- --tw-gradient-to: rgb(247 247 247 / 0) var(--tw-gradient-to-position);
8567
- --tw-gradient-stops: var(--tw-gradient-from), #F7F7F7 var(--tw-gradient-via-position), var(--tw-gradient-to);
8568
- }
8569
-
8570
8566
  :is(.s-dark .dark\:s-via-warning-950-night) {
8571
8567
  --tw-gradient-to: rgb(255 241 247 / 0) var(--tw-gradient-to-position);
8572
8568
  --tw-gradient-stops: var(--tw-gradient-from), #FFF1F7 var(--tw-gradient-via-position), var(--tw-gradient-to);
@@ -8592,6 +8588,10 @@ select {
8592
8588
  --tw-gradient-to: #FFC3DF var(--tw-gradient-to-position);
8593
8589
  }
8594
8590
 
8591
+ :is(.s-dark .dark\:s-to-primary-600-night) {
8592
+ --tw-gradient-to: #969CA5 var(--tw-gradient-to-position);
8593
+ }
8594
+
8595
8595
  :is(.s-dark .dark\:s-to-purple-800-night) {
8596
8596
  --tw-gradient-to: #e9d5ff var(--tw-gradient-to-position);
8597
8597
  }
@@ -8604,10 +8604,6 @@ select {
8604
8604
  --tw-gradient-to: #9FDBFF var(--tw-gradient-to-position);
8605
8605
  }
8606
8606
 
8607
- :is(.s-dark .dark\:s-to-slate-600-night) {
8608
- --tw-gradient-to: #969CA5 var(--tw-gradient-to-position);
8609
- }
8610
-
8611
8607
  :is(.s-dark .dark\:s-to-transparent) {
8612
8608
  --tw-gradient-to: transparent var(--tw-gradient-to-position);
8613
8609
  }
@@ -8641,6 +8637,10 @@ select {
8641
8637
  color: rgb(0 0 0 / var(--tw-text-opacity));
8642
8638
  }
8643
8639
 
8640
+ :is(.s-dark .dark\:s-text-background-night\/50) {
8641
+ color: rgb(0 0 0 / 0.5);
8642
+ }
8643
+
8644
8644
  :is(.s-dark .dark\:s-text-blue-500-night) {
8645
8645
  --tw-text-opacity: 1;
8646
8646
  color: rgb(28 145 255 / var(--tw-text-opacity));
@@ -8951,6 +8951,11 @@ select {
8951
8951
  color: rgb(84 93 108 / var(--tw-text-opacity));
8952
8952
  }
8953
8953
 
8954
+ :is(.s-dark .dark\:s-text-primary-50) {
8955
+ --tw-text-opacity: 1;
8956
+ color: rgb(247 247 247 / var(--tw-text-opacity));
8957
+ }
8958
+
8954
8959
  :is(.s-dark .dark\:s-text-primary-50-night) {
8955
8960
  --tw-text-opacity: 1;
8956
8961
  color: rgb(17 20 24 / var(--tw-text-opacity));
@@ -9095,11 +9100,6 @@ select {
9095
9100
  color: rgb(233 247 255 / var(--tw-text-opacity));
9096
9101
  }
9097
9102
 
9098
- :is(.s-dark .dark\:s-text-slate-50) {
9099
- --tw-text-opacity: 1;
9100
- color: rgb(247 247 247 / var(--tw-text-opacity));
9101
- }
9102
-
9103
9103
  :is(.s-dark .dark\:s-text-slate-500-night) {
9104
9104
  --tw-text-opacity: 1;
9105
9105
  color: rgb(123 129 141 / var(--tw-text-opacity));
@@ -9115,11 +9115,6 @@ select {
9115
9115
  color: rgb(238 238 239 / var(--tw-text-opacity));
9116
9116
  }
9117
9117
 
9118
- :is(.s-dark .dark\:s-text-slate-950) {
9119
- --tw-text-opacity: 1;
9120
- color: rgb(17 20 24 / var(--tw-text-opacity));
9121
- }
9122
-
9123
9118
  :is(.s-dark .dark\:s-text-slate-950-night) {
9124
9119
  --tw-text-opacity: 1;
9125
9120
  color: rgb(247 247 247 / var(--tw-text-opacity));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dust-tt/sparkle",
3
- "version": "0.2.451",
3
+ "version": "0.2.453",
4
4
  "scripts": {
5
5
  "build": "rm -rf dist && npm run tailwind && npm run build:esm && npm run build:cjs",
6
6
  "tailwind": "tailwindcss -i ./src/styles/tailwind.css -o dist/sparkle.css",
@@ -37,12 +37,12 @@ const animatedVariants: Record<AnimatedTextVariantType, string> = {
37
37
  "dark:s-from-amber-800-night dark:s-via-amber-950-night dark:s-via-50% dark:s-to-amber-800-night"
38
38
  ),
39
39
  white: cn(
40
- "s-from-slate-600 s-via-slate-950 s-via-50% s-to-slate-600",
41
- "dark:s-from-slate-600-night dark:s-via-slate-950-night dark:s-via-50% dark:s-to-slate-600-night"
40
+ "s-from-primary-600 s-via-primary-950 s-via-50% s-to-primary-600",
41
+ "dark:s-from-primary-600-night dark:s-via-primary-950-night dark:s-via-50% dark:s-to-primary-600-night"
42
42
  ),
43
43
  slate: cn(
44
- "s-from-slate-600 s-via-slate-950 s-via-50% s-to-slate-600",
45
- "dark:s-from-slate-600-night dark:s-via-slate-950-night dark:s-via-50% dark:s-to-slate-600-night"
44
+ "s-from-primary-600 s-via-primary-950 s-via-50% s-to-primary-600",
45
+ "dark:s-from-primary-600-night dark:s-via-primary-950-night dark:s-via-50% dark:s-to-primary-600-night"
46
46
  ),
47
47
  purple: cn(
48
48
  "s-from-purple-800 s-via-purple-950 s-via-50% s-to-purple-800",
@@ -1,33 +1,54 @@
1
+ import { cva } from "class-variance-authority";
1
2
  import React from "react";
2
3
 
3
4
  import { cn } from "@sparkle/lib/utils";
4
5
 
5
6
  import { Icon } from "./Icon";
7
+ import { LinkWrapper, LinkWrapperProps } from "./LinkWrapper";
6
8
 
7
- interface AttachmentChipProps {
9
+ const attachmentChipVariants = cva(
10
+ cn(
11
+ "s-box-border s-inline-flex s-items-center s-gap-1.5 s-rounded-lg s-px-2 s-py-1 s-text-sm s-font-semibold",
12
+ "s-border-border s-bg-background",
13
+ "dark:s-border-border-night dark:s-bg-background-night",
14
+ "s-text-foreground dark:s-text-foreground-night",
15
+ "s-max-w-44"
16
+ )
17
+ );
18
+
19
+ interface AttachmentChipBaseProps {
8
20
  label: string;
9
21
  icon?: React.ComponentType;
10
22
  className?: string;
11
23
  }
12
24
 
25
+ type AttachmentChipButtonProps = AttachmentChipBaseProps & {
26
+ href?: never;
27
+ } & {
28
+ [K in keyof Omit<LinkWrapperProps, "children">]?: never;
29
+ };
30
+
31
+ type AttachmentChipLinkProps = AttachmentChipBaseProps &
32
+ Omit<LinkWrapperProps, "children">;
33
+
34
+ type AttachmentChipProps = AttachmentChipButtonProps | AttachmentChipLinkProps;
35
+
13
36
  export function AttachmentChip({
14
37
  label,
15
38
  icon,
16
39
  className,
40
+ ...props
17
41
  }: AttachmentChipProps) {
18
- return (
19
- <div
20
- className={cn(
21
- "s-box-border s-inline-flex s-items-center s-gap-1.5 s-rounded-lg s-px-2 s-py-1 s-text-sm s-font-semibold",
22
- "s-border-border s-bg-background",
23
- "dark:s-border-border-night dark:s-bg-background-night",
24
- "s-text-foreground dark:s-text-foreground-night",
25
- "s-max-w-44",
26
- className
27
- )}
28
- >
42
+ const chipContent = (
43
+ <div className={cn(attachmentChipVariants({}), className)}>
29
44
  <Icon visual={icon} size="xs" className="s-shrink-0" />
30
45
  <span className="s-pointer s-grow s-truncate">{label}</span>
31
46
  </div>
32
47
  );
48
+
49
+ return "href" in props && props.href ? (
50
+ <LinkWrapper {...props}>{chipContent}</LinkWrapper>
51
+ ) : (
52
+ chipContent
53
+ );
33
54
  }
@@ -21,7 +21,7 @@ export default function DropzoneOverlay({
21
21
  <Icon
22
22
  visual={ArrowUpOnSquareIcon}
23
23
  size="lg"
24
- className="s-text-white dark:s-text-slate-950"
24
+ className="s-text-white dark:s-text-primary-950"
25
25
  />
26
26
  ),
27
27
  }: DropzoneOverlayProps) {
@@ -16,13 +16,13 @@ export type HoverableVariantType = (typeof HOVERABLE_VARIANTS)[number];
16
16
  const hoverableVariants: Record<HoverableVariantType, string> = {
17
17
  invisible: cn("hover:s-text-highlight-light", "active:s-text-highlight-dark"),
18
18
  primary: cn(
19
- "s-font-medium",
19
+ "s-font-semibold",
20
20
  "s-text-foreground dark:s-text-foreground-night",
21
21
  "hover:s-text-highlight-light dark:hover:s-text-highlight-light-night",
22
22
  "active:s-text-highlight-dark dark:active:s-text-highlight-dark-night"
23
23
  ),
24
24
  highlight: cn(
25
- "s-font-medium",
25
+ "s-font-semibold",
26
26
  "s-text-highlight dark:s-text-highlight-night",
27
27
  "hover:s-text-highlight-light dark:hover:s-text-highlight-light-night",
28
28
  "active:s-text-highlight-dark dark:active:s-text-highlight-dark-night"
@@ -64,7 +64,7 @@ const messageVariant = cva("", {
64
64
 
65
65
  const inputStyleClasses = cva(
66
66
  cn(
67
- "dark:s-text-slate-50",
67
+ "dark:s-text-primary-50",
68
68
  "s-text-sm s-rounded-xl s-flex s-h-9 s-w-full s-px-3 s-py-1.5 ",
69
69
  "s-bg-muted-background dark:s-bg-muted-background-night",
70
70
  "s-border focus-visible:s-ring",
@@ -73,9 +73,7 @@ function NotificationContent({ type, title, description }: NotificationType) {
73
73
  <div
74
74
  className={cn(
75
75
  "s-text-md s-line-clamp-1 s-h-6 s-grow s-font-semibold",
76
- type === "success"
77
- ? "s-text-success-600 dark:s-text-success-400-night"
78
- : "s-text-warning-500 dark:s-text-warning-500-night"
76
+ variantClassName({ type })
79
77
  )}
80
78
  >
81
79
  {title || type}
@@ -139,9 +139,9 @@ const SplitButton = React.forwardRef<HTMLButtonElement, SplitButtonProps>(
139
139
  );
140
140
 
141
141
  const flexSeparatorVariants: Record<ButtonVariantType, string> = {
142
- primary: "s-bg-white/50 dark:s-bg-slate-950/50",
143
- highlight: "s-bg-white/50 dark:s-bg-slate-950/50",
144
- warning: "s-bg-white/50 dark:s-bg-slate-950/50",
142
+ primary: "s-bg-background/50 dark:s-text-background-night/50",
143
+ highlight: "s-bg-background/50 dark:s-text-background-night/50",
144
+ warning: "s-bg-background/50 dark:s-text-background-night/50",
145
145
  outline: "s-bg-separator dark:s-bg-separator-night",
146
146
  ghost: "s-bg-separator dark:s-bg-separator-night",
147
147
  "ghost-secondary": "s-bg-separator dark:s-bg-separator-night",
@@ -2,17 +2,15 @@ import type { SVGProps } from "react";
2
2
  import * as React from "react";
3
3
  const SvgHubspot = (props: SVGProps<SVGSVGElement>) => (
4
4
  <svg
5
- xmlns="http://www.w3.org/2000/svg"
6
- width="1em"
7
5
  height="1em"
8
- fill="none"
9
- viewBox="0 0 24 24"
6
+ viewBox="6.20856283 .64498824 244.26943717 251.24701176"
7
+ width="1em"
8
+ xmlns="http://www.w3.org/2000/svg"
10
9
  {...props}
11
10
  >
12
- <path fill="none" d="M0 0h150v150H0z" />
13
11
  <path
14
- d="M109.46 49.94V32.18a13.69 13.69 0 0 0 7.89-12.33v-.41a13.69 13.69 0 0 0-13.68-13.68h-.41a13.68 13.68 0 0 0-13.68 13.68v.41a13.66 13.66 0 0 0 7.89 12.33v17.76a38.75 38.75 0 0 0-18.42 8.11L30.33 20.11a15.09 15.09 0 0 0 .55-3.84 15.41 15.41 0 1 0-15.44 15.38A15.25 15.25 0 0 0 23 29.59l48 37.33a38.86 38.86 0 0 0 .59 43.77L57 125.28a12.21 12.21 0 0 0-3.64-.59A12.66 12.66 0 1 0 66 137.35a12.23 12.23 0 0 0-.59-3.65l14.44-14.43a38.92 38.92 0 1 0 29.58-69.33m-6 58.42a20 20 0 1 1 20-20 20 20 0 0 1-20 20"
15
- fill="#f4795b"
12
+ d="m191.385 85.694v-29.506a22.722 22.722 0 0 0 13.101-20.48v-.677c0-12.549-10.173-22.722-22.721-22.722h-.678c-12.549 0-22.722 10.173-22.722 22.722v.677a22.722 22.722 0 0 0 13.101 20.48v29.506a64.342 64.342 0 0 0 -30.594 13.47l-80.922-63.03c.577-2.083.878-4.225.912-6.375a25.6 25.6 0 1 0 -25.633 25.55 25.323 25.323 0 0 0 12.607-3.43l79.685 62.007c-14.65 22.131-14.258 50.974.987 72.7l-24.236 24.243c-1.96-.626-4-.959-6.057-.987-11.607.01-21.01 9.423-21.007 21.03.003 11.606 9.412 21.014 21.018 21.017 11.607.003 21.02-9.4 21.03-21.007a20.747 20.747 0 0 0 -.988-6.056l23.976-23.985c21.423 16.492 50.846 17.913 73.759 3.562 22.912-14.352 34.475-41.446 28.985-67.918-5.49-26.473-26.873-46.734-53.603-50.792m-9.938 97.044a33.17 33.17 0 1 1 0-66.316c17.85.625 32 15.272 32.01 33.134.008 17.86-14.127 32.522-31.977 33.165"
13
+ fill="#ff7a59"
16
14
  />
17
15
  </svg>
18
16
  );
@@ -1 +1,10 @@
1
- <svg id="dust_hubspot" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><path fill="none" d="M0 0h150v150H0z"/><path d="M109.46 49.94V32.18a13.69 13.69 0 0 0 7.89-12.33v-.41a13.69 13.69 0 0 0-13.68-13.68h-.41a13.68 13.68 0 0 0-13.68 13.68v.41a13.66 13.66 0 0 0 7.89 12.33v17.76a38.75 38.75 0 0 0-18.42 8.11L30.33 20.11a15.09 15.09 0 0 0 .55-3.84 15.41 15.41 0 1 0-15.44 15.38A15.25 15.25 0 0 0 23 29.59l48 37.33a38.86 38.86 0 0 0 .59 43.77L57 125.28a12.21 12.21 0 0 0-3.64-.59A12.66 12.66 0 1 0 66 137.35a12.23 12.23 0 0 0-.59-3.65l14.44-14.43a38.92 38.92 0 1 0 29.58-69.33m-6 58.42a20 20 0 1 1 20-20 20 20 0 0 1-20 20" fill="#f4795b"/></svg>
1
+ <svg
2
+ height="1em"
3
+ viewBox="6.20856283 .64498824 244.26943717 251.24701176"
4
+ width="1em"
5
+ xmlns="http://www.w3.org/2000/svg">
6
+ <path
7
+ d="m191.385 85.694v-29.506a22.722 22.722 0 0 0 13.101-20.48v-.677c0-12.549-10.173-22.722-22.721-22.722h-.678c-12.549 0-22.722 10.173-22.722 22.722v.677a22.722 22.722 0 0 0 13.101 20.48v29.506a64.342 64.342 0 0 0 -30.594 13.47l-80.922-63.03c.577-2.083.878-4.225.912-6.375a25.6 25.6 0 1 0 -25.633 25.55 25.323 25.323 0 0 0 12.607-3.43l79.685 62.007c-14.65 22.131-14.258 50.974.987 72.7l-24.236 24.243c-1.96-.626-4-.959-6.057-.987-11.607.01-21.01 9.423-21.007 21.03.003 11.606 9.412 21.014 21.018 21.017 11.607.003 21.02-9.4 21.03-21.007a20.747 20.747 0 0 0 -.988-6.056l23.976-23.985c21.423 16.492 50.846 17.913 73.759 3.562 22.912-14.352 34.475-41.446 28.985-67.918-5.49-26.473-26.873-46.734-53.603-50.792m-9.938 97.044a33.17 33.17 0 1 1 0-66.316c17.85.625 32 15.272 32.01 33.134.008 17.86-14.127 32.522-31.977 33.165"
8
+ fill="#ff7a59"
9
+ />
10
+ </svg>
@@ -47,9 +47,9 @@ export const AvatarExample = () => (
47
47
  <div>With emoji</div>
48
48
  <div className="s-flex s-gap-4">
49
49
  <Avatar size="xs" emoji="❤️" backgroundColor="s-bg-red-100" />
50
- <Avatar size="sm" emoji="💀" backgroundColor="s-bg-slate-800" />
50
+ <Avatar size="sm" emoji="💀" backgroundColor="s-bg-gray-800" />
51
51
  <Avatar size="md" emoji="😂" backgroundColor="s-bg-amber-200" />
52
- <Avatar size="lg" emoji="🧑‍🚀" backgroundColor="s-bg-slate-200" />
52
+ <Avatar size="lg" emoji="🧑‍🚀" backgroundColor="s-bg-gray-200" />
53
53
  <Avatar size="xl" emoji="👕" backgroundColor="s-bg-sky-200" />
54
54
  <Avatar size="xxl" emoji="👕" backgroundColor="s-bg-sky-200" />
55
55
  </div>
@@ -105,7 +105,7 @@ const ButtonBySize = ({
105
105
  }) => (
106
106
  <>
107
107
  <Separator />
108
- <h3 className="s-text-primary dark:s-text-slate-50">
108
+ <h3 className="s-text-primary dark:s-text-primary-50">
109
109
  {size?.toUpperCase()}
110
110
  </h3>
111
111
  <div className="s-flex s-items-center s-gap-4">
@@ -21,7 +21,7 @@ export const CollapsibleExample = () => (
21
21
  <Collapsible>
22
22
  <CollapsibleTrigger label="Click me" />
23
23
  <CollapsibleContent>
24
- <div className="s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-slate-200">
24
+ <div className="s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-muted-background">
25
25
  Hello
26
26
  </div>
27
27
  </CollapsibleContent>
@@ -30,7 +30,7 @@ export const CollapsibleExample = () => (
30
30
  <Collapsible>
31
31
  <CollapsibleTrigger label="Click me" />
32
32
  <CollapsibleContent>
33
- <div className="s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-slate-200">
33
+ <div className="s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-muted-background">
34
34
  Hello
35
35
  </div>
36
36
  </CollapsibleContent>
@@ -38,7 +38,7 @@ export const CollapsibleExample = () => (
38
38
  <Collapsible>
39
39
  <CollapsibleTrigger label="Click me" />
40
40
  <CollapsibleContent>
41
- <div className="s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-slate-200">
41
+ <div className="s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-muted-background">
42
42
  Hello
43
43
  </div>
44
44
  </CollapsibleContent>
@@ -48,7 +48,7 @@ export const CollapsibleExample = () => (
48
48
  <Chip>Click me custom</Chip>
49
49
  </CollapsibleTrigger>
50
50
  <CollapsibleContent>
51
- <div className="mt-1 s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-slate-200">
51
+ <div className="mt-1 s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-muted-background">
52
52
  Anything goes for the Collapsible button
53
53
  </div>
54
54
  </CollapsibleContent>
@@ -59,7 +59,7 @@ export const CollapsibleExample = () => (
59
59
  rootProps={{ defaultOpen: true }}
60
60
  triggerProps={{ label: "Open by default" }}
61
61
  contentChildren={
62
- <div className="s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-slate-200">
62
+ <div className="s-flex s-h-16 s-w-full s-items-center s-justify-center s-bg-muted-background">
63
63
  This collapsible is open by default
64
64
  </div>
65
65
  }
@@ -27,7 +27,7 @@ export const Hover3DExample = () => (
27
27
  </div>
28
28
  <div>
29
29
  <Hover3D
30
- className="s-rounded-2xl s-bg-slate-200 s-p-3 s-shadow-xl"
30
+ className="s-rounded-2xl s-bg-muted-background s-p-3 s-shadow-xl"
31
31
  depth={-20}
32
32
  >
33
33
  <Div3D depth={50}>
@@ -36,7 +36,7 @@ export const Hover3DExample = () => (
36
36
  </Hover3D>
37
37
  </div>
38
38
  <div>
39
- <Hover3D className="s-rounded-[24px] s-bg-slate-800 s-p-8">
39
+ <Hover3D className="s-rounded-[24px] s-bg-primary-800 s-p-8">
40
40
  <Div3D depth={60}>
41
41
  <Icon visual={DustLogoSquare} size="2xl" />
42
42
  </Div3D>
@@ -71,7 +71,7 @@ export const Hover3DExample = () => (
71
71
  </div>
72
72
  <div>
73
73
  <Hover3D
74
- className="s-rounded-2xl s-bg-slate-200 s-p-3 s-shadow-xl"
74
+ className="s-rounded-2xl s-bg-muted-background s-p-3 s-shadow-xl"
75
75
  depth={-20}
76
76
  perspective={1000}
77
77
  fullscreenSensible
@@ -83,7 +83,7 @@ export const Hover3DExample = () => (
83
83
  </div>
84
84
  <div>
85
85
  <Hover3D
86
- className="s-rounded-[24px] s-bg-slate-800 s-p-8"
86
+ className="s-rounded-[24px] s-bg-primary-800 s-p-8"
87
87
  perspective={1000}
88
88
  fullscreenSensible
89
89
  >
@@ -47,7 +47,7 @@ export const DustLogos = () => (
47
47
  DustLogoGray
48
48
  </div>
49
49
  </div>
50
- <div className="s-bg-slate-800 s-p-6">
50
+ <div className="s-bg-primary-800 s-p-6">
51
51
  <DustLogoWhite className="s-h-8 s-w-32" />
52
52
  <div
53
53
  style={itemStyle as React.CSSProperties}
@@ -71,7 +71,7 @@ export const DustLogos = () => (
71
71
  DustLogoSquareGray
72
72
  </div>
73
73
  </div>
74
- <div className="s-bg-slate-800 s-p-6">
74
+ <div className="s-bg-primary-800 s-p-6">
75
75
  <DustLogoSquareWhite className="s-h-16 s-w-16" />
76
76
  <div
77
77
  style={itemStyle as React.CSSProperties}
@@ -14,7 +14,7 @@ const meta = {
14
14
  export default meta;
15
15
 
16
16
  export const TooltipLongLabel = () => (
17
- <div className="s-flex s-flex-col s-bg-slate-50 s-p-12">
17
+ <div className="s-flex s-flex-col s-bg-muted-background s-p-12">
18
18
  <div className="s-flex s-h-[600px] s-w-[800px] s-flex-col s-gap-16 s-p-12">
19
19
  <ResizableDemo />
20
20
  </div>
@@ -85,7 +85,7 @@ export function ResizableGrabDemo() {
85
85
  className="s-min-h-[200px] s-max-w-md s-rounded-lg s-border s-bg-white md:s-min-w-[450px]"
86
86
  >
87
87
  <ResizablePanel defaultSize={25}>
88
- <div className="s-flex s-h-full s-items-center s-justify-center s-bg-slate-900 s-p-6 s-text-white">
88
+ <div className="s-flex s-h-full s-items-center s-justify-center s-bg-primary-900 s-p-6 s-text-white">
89
89
  <span className="s-font-semibold">Sidebar</span>
90
90
  </div>
91
91
  </ResizablePanel>