dashpresshq/dashpress

View on GitHub
src/shared/types/ui.d.ts

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import type { MessageDescriptor } from "@lingui/core";

import type { SpectrumColorTypes } from "@/components/ui/spectrum";

export interface IColorableSelection {
  spectrum?: SpectrumColorTypes;
  label: MessageDescriptor;
  value: string | boolean;
}

export type EntityTypesForSelection =
  | "selection"
  | "selection-enum"
  | "boolean";

export type GridSpanSizes =
  | "1"
  | "2"
  | "3"
  | "4"
  | "5"
  | "6"
  | "7"
  | "8"
  | "9"
  | "10"
  | "11"
  | "12";

export type GridHeightSizes = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8";