← All changes
|
backend/views/components/Analytics/components/ui/card.jsx
+7
-7
1.4.2
→
1.4.21
View file →
| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | <div |
| 6 | 6 | data-slot="card" |
| 7 | 7 | data-size={size} |
| 8 | 8 | className={cn( |
| 9 | - 'disco-group/card disco-flex disco-flex-col disco-gap-4 disco-overflow-hidden disco-rounded-xl disco-bg-card disco-py-4 disco-text-sm disco-text-card-foreground disco-ring-foreground/10 has-data-[slot=card-footer]:disco-pb-0 has-[>img:first-child]:disco-pt-0 data-[size=sm]:disco-gap-3 data-[size=sm]:disco-py-3 data-[size=sm]:has-data-[slot=card-footer]:disco-pb-0 *:[img:first-child]:disco-rounded-t-xl *:[img:last-child]:disco-rounded-b-xl', | |
| 9 | + 'disco:group/card disco:flex disco:flex-col disco:gap-4 disco:overflow-hidden disco:rounded-xl disco:bg-card disco:py-4 disco:text-sm disco:text-card-foreground disco:ring-foreground/10 disco:has-data-[slot=card-footer]:pb-0 disco:has-[>img:first-child]:pt-0 disco:data-[size=sm]:gap-3 disco:data-[size=sm]:py-3 disco:data-[size=sm]:has-data-[slot=card-footer]:pb-0 disco:*:[img:first-child]:rounded-t-xl disco:*:[img:last-child]:rounded-b-xl', | |
| 10 | 10 | className |
| 11 | 11 | )} |
| 12 | 12 | {...props} |
| 13 | 13 | /> |
| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | return ( |
| 19 | 19 | <div |
| 20 | 20 | data-slot="card-header" |
| 21 | 21 | className={cn( |
| 22 | - 'disco-group/card-header disco-@container/card-header disco-grid disco-auto-rows-min disco-items-start disco-gap-1 disco-rounded-t-xl disco-px-4 group-data-[size=sm]/card:disco-px-3 has-data-[slot=card-action]:disco-grid-cols-[1fr_auto] has-data-[slot=card-description]:disco-grid-rows-[auto_auto] [.border-b]:disco-pb-4 group-data-[size=sm]/card:[.border-b]:disco-pb-3', | |
| 22 | + 'disco:group/card-header disco:@container/card-header disco:grid disco:auto-rows-min disco:items-start disco:gap-1 disco:rounded-t-xl disco:px-4 disco:group-data-[size=sm]/card:px-3 disco:has-data-[slot=card-action]:grid-cols-[1fr_auto] disco:has-data-[slot=card-description]:grid-rows-[auto_auto] disco:[.border-b]:pb-4 disco:group-data-[size=sm]/card:[.border-b]:pb-3', | |
| 23 | 23 | className |
| 24 | 24 | )} |
| 25 | 25 | {...props} |
| 26 | 26 | /> |
| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | return ( |
| 32 | 32 | <div |
| 33 | 33 | data-slot="card-title" |
| 34 | 34 | className={cn( |
| 35 | - 'disco- disco-text-base disco-leading-snug disco-font-medium group-data-[size=sm]/card:disco-text-sm', | |
| 35 | + 'disco:text-base disco:leading-snug disco:font-medium disco:group-data-[size=sm]/card:text-sm', | |
| 36 | 36 | className |
| 37 | 37 | )} |
| 38 | 38 | {...props} |
| 39 | 39 | /> |
| @@ -44,9 +44,9 @@ | ||
| 44 | 44 | return ( |
| 45 | 45 | <div |
| 46 | 46 | data-slot="card-description" |
| 47 | 47 | className={cn( |
| 48 | - 'disco-text-sm disco-text-muted-foreground', | |
| 48 | + 'disco:text-sm disco:text-muted-foreground', | |
| 49 | 49 | className |
| 50 | 50 | )} |
| 51 | 51 | {...props} |
| 52 | 52 | /> |
| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | return ( |
| 58 | 58 | <div |
| 59 | 59 | data-slot="card-action" |
| 60 | 60 | className={cn( |
| 61 | - 'disco-col-start-2 disco-row-span-2 disco-row-start-1 disco-self-start disco-justify-self-end', | |
| 61 | + 'disco:col-start-2 disco:row-span-2 disco:row-start-1 disco:self-start disco:justify-self-end', | |
| 62 | 62 | className |
| 63 | 63 | )} |
| 64 | 64 | {...props} |
| 65 | 65 | /> |
| @@ -70,9 +70,9 @@ | ||
| 70 | 70 | return ( |
| 71 | 71 | <div |
| 72 | 72 | data-slot="card-content" |
| 73 | 73 | className={cn( |
| 74 | - 'disco-px-4 group-data-[size=sm]/card:disco-px-3', | |
| 74 | + 'disco:px-4 disco:group-data-[size=sm]/card:px-3', | |
| 75 | 75 | className |
| 76 | 76 | )} |
| 77 | 77 | {...props} |
| 78 | 78 | /> |
| @@ -83,9 +83,9 @@ | ||
| 83 | 83 | return ( |
| 84 | 84 | <div |
| 85 | 85 | data-slot="card-footer" |
| 86 | 86 | className={cn( |
| 87 | - 'disco-flex disco-items-center disco-rounded-b-xl disco-border-t disco-bg-muted/50 disco-p-4 group-data-[size=sm]/card:disco-p-3', | |
| 87 | + 'disco:flex disco:items-center disco:rounded-b-xl disco:border-t disco:bg-muted/50 disco:p-4 disco:group-data-[size=sm]/card:p-3', | |
| 88 | 88 | className |
| 89 | 89 | )} |
| 90 | 90 | {...props} |
| 91 | 91 | /> |