@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
21 lines (16 loc) • 592 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var z = require('zod');
const dashboardBucket = z.z.object({
min: z.z.number().optional(),
max: z.z.number().optional(),
hexColour: z.z.string().regex(/^#/).optional(),
});
const BucketOptionsSchema = z.z.object({
useRagColour: z.z.boolean().default(false),
buckets: z.z.array(dashboardBucket).default([]),
baseColour: z.z.string().regex(/^#/).optional(),
});
exports.BucketOptionsSchema = BucketOptionsSchema;
exports.default = BucketOptionsSchema;
//# sourceMappingURL=validate.js.map