@dust-tt/sparkle 0.2.204 → 0.2.205

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dust-tt/sparkle",
3
- "version": "0.2.204",
3
+ "version": "0.2.205",
4
4
  "scripts": {
5
5
  "build": "rm -rf dist && rollup -c",
6
6
  "build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true",
@@ -92,4 +92,4 @@
92
92
  "tailwind-scrollbar-hide": "^1.1.7"
93
93
  },
94
94
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
95
- }
95
+ }
@@ -249,6 +249,7 @@ DataTable.Row = function Row({
249
249
  interface CellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
250
250
  avatarUrl?: string;
251
251
  icon?: React.ComponentType<{ className?: string }>;
252
+ iconClassName?: string;
252
253
  children?: ReactNode;
253
254
  description?: string;
254
255
  }
@@ -258,6 +259,7 @@ DataTable.Cell = function Cell({
258
259
  className,
259
260
  avatarUrl,
260
261
  icon,
262
+ iconClassName,
261
263
  description,
262
264
  ...props
263
265
  }: CellProps) {
@@ -274,7 +276,14 @@ DataTable.Cell = function Cell({
274
276
  <Avatar visual={avatarUrl} size="xs" className="s-mr-2" />
275
277
  )}
276
278
  {icon && (
277
- <Icon visual={icon} size="sm" className="s-mr-2 s-text-element-600" />
279
+ <Icon
280
+ visual={icon}
281
+ size="sm"
282
+ className={classNames(
283
+ "s-mr-2 s-text-element-600",
284
+ iconClassName || ""
285
+ )}
286
+ />
278
287
  )}
279
288
  <div className="s-flex">
280
289
  <span className="s-text-sm s-text-element-800">{children}</span>