@code4rena/components-library
Advanced tools
Comparing version
@@ -9,2 +9,4 @@ export declare enum Status { | ||
status?: Status; | ||
/** Audit status. */ | ||
auditStatus?: AuditStatus | null; | ||
/** String of custom classes to extend the default styling of the component. */ | ||
@@ -33,1 +35,8 @@ className?: string; | ||
export type AuditStatus = (typeof AuditStatus)[keyof typeof AuditStatus]; | ||
export declare enum AuditPublicStage { | ||
Active = "Active", | ||
Upcoming = "Upcoming", | ||
SubsClosed = "Submissions closed", | ||
Completed = "Completed" | ||
} | ||
export declare const MapAuditStatusToAuditPublicStage: Record<AuditStatus, AuditPublicStage | null>; |
@@ -9,2 +9,16 @@ import { BaseContestSchedule, ContestCohort, ContestSchedule } from "../lib/ContestTile/ContestTile.types"; | ||
declare const getDates: (start: string, end: string) => BaseContestSchedule; | ||
export { getDates, getContestSchedule, getCurrentCohortDates }; | ||
/** Get a relative date time string in long format | ||
* @note Mainly for use in countdown situations like the audit timers | ||
* | ||
* @examples "In 00:00:05" (5 seconds) | ||
* "In 00:05:00" (5 minutes) | ||
* "In 05:00:00" (5 hours) | ||
* "In 1 day" (1 day) | ||
* "In 5 days" (5 days) | ||
* "In about 1 month" (1 month) | ||
* "In about 5 months" (5 months) | ||
* "In about 1 year" (1 year) | ||
* "In about 5 years" (5 years) | ||
*/ | ||
declare const getRelativeDateTimeLongFormat: (date: Date) => string; | ||
export { getDates, getContestSchedule, getCurrentCohortDates, getRelativeDateTimeLongFormat }; |
{ | ||
"name": "@code4rena/components-library", | ||
"version": "4.5.2", | ||
"version": "4.5.3", | ||
"description": "Code4rena's official components library ", | ||
@@ -5,0 +5,0 @@ "types": "./dist/lib.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1019785
0.71%64
1.59%15953
1.03%