Design system.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

text-control.ts 548 B

123456789101112131415
  1. export const AVAILABLE_SIZES = ['small', 'medium', 'large'] as const;
  2. export type Size = typeof AVAILABLE_SIZES[number];
  3. export const AVAILABLE_VARIANTS = ['default', 'alternate'] as const;
  4. export type Variant = typeof AVAILABLE_VARIANTS[number];
  5. export const AVAILABLE_INPUT_TYPES = ['text', 'search'] as const;
  6. export type InputType = typeof AVAILABLE_INPUT_TYPES[number];
  7. export const AVAILABLE_INPUT_MODES = ['none', 'numeric', 'decimal', ...AVAILABLE_INPUT_TYPES] as const;
  8. export type InputMode = typeof AVAILABLE_INPUT_MODES[number];