@syscore/ui-library 1.3.2 → 1.3.3

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.
@@ -83,10 +83,10 @@ const CardWithIcon = React.forwardRef<
83
83
  >(({ icon: Icon, title, description }, ref) => (
84
84
  <Card
85
85
  ref={ref}
86
- className="border-gray-100 bg-white p-6 gap-6 hover:scale-102 hover:border-gray-200 ease-in-out duration-200 will-change-transform"
86
+ className="card-with-icon"
87
87
  >
88
- <div className="flex items-center gap-4">
89
- {Icon && <Icon className="size-12" />}
88
+ <div className="card-with-icon__header">
89
+ {Icon && <Icon className="card-with-icon__icon" />}
90
90
  <Text as="h3" variant="overline-large">{title}</Text>
91
91
  </div>
92
92
  <Text as="p" variant="body-base">{description}</Text>
package/client/global.css CHANGED
@@ -400,6 +400,31 @@
400
400
  color: var(--color-gray-800, #282a31);
401
401
  }
402
402
 
403
+ .card-with-icon {
404
+ border: 1px solid var(--color-gray-100, #eff1f2);
405
+ background-color: var(--color-white, #fff);
406
+ padding: 1.5rem;
407
+ gap: 1.5rem;
408
+ transition: transform 200ms ease-in-out, border-color 200ms ease-in-out;
409
+ will-change: transform;
410
+ }
411
+
412
+ .card-with-icon:hover {
413
+ transform: scale(1.02);
414
+ border-color: var(--color-gray-200, #dedfe3);
415
+ }
416
+
417
+ .card-with-icon__header {
418
+ display: flex;
419
+ align-items: center;
420
+ gap: 1rem;
421
+ }
422
+
423
+ .card-with-icon__icon {
424
+ width: 3rem;
425
+ height: 3rem;
426
+ }
427
+
403
428
  /* Input Styles */
404
429
  .input-wrapper {
405
430
  display: flex;