@veeqo/ui 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- import { ComponentSize, WeightUnit } from '../types';
1
+ import { ComponentSize, ImperialWeight, MetricWeight } from '../types';
2
2
  export interface BaseWeightProps {
3
3
  hasError?: boolean;
4
4
  size?: ComponentSize;
5
5
  className?: string;
6
6
  }
7
7
  export interface GramWeightProps extends BaseWeightProps {
8
- weightUnit: WeightUnit.g;
8
+ weightUnit: MetricWeight;
9
9
  gram: string;
10
10
  handleChangeGram: (value: string) => void;
11
11
  }
12
12
  export interface LbWeightProps extends BaseWeightProps {
13
- weightUnit: WeightUnit.lb;
13
+ weightUnit: ImperialWeight;
14
14
  ounce: string;
15
15
  pound: string;
16
16
  handleChangeOunce: (value: string) => void;
@@ -3,10 +3,8 @@ export declare enum ComponentSize {
3
3
  base = "base",
4
4
  sm = "sm"
5
5
  }
6
- export declare enum WeightUnit {
7
- g = "g",
8
- lb = "lb"
9
- }
6
+ export type MetricWeight = 'g';
7
+ export type ImperialWeight = 'lb' | 'oz';
10
8
  export type EventHandlerProps = {
11
9
  onClick?: (event: SyntheticEvent) => void;
12
10
  onKeyUp?: (event: SyntheticEvent) => void;