@artsy/palette-mobile 8.1.0 → 8.3.0

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.
Files changed (2) hide show
  1. package/dist/tokens.d.ts +5 -4
  2. package/package.json +2 -1
package/dist/tokens.d.ts CHANGED
@@ -8,9 +8,10 @@ import { TextTreatment as TextTreatmentWithUnits, TextVariant as TextVariantV3 }
8
8
  export type { TextTreatmentWithUnits };
9
9
  export type SpacingUnitPixelValue = `${number}px` & {};
10
10
  export type SpacingUnitDSValueNumber = SpacingUnitV3Numbers;
11
- type SpacingUnitDSValueNumberNegativeString = `-${SpacingUnitDSValueNumber}`;
12
- export type SpacingUnitDSValueNumberNegative = ParseNumber<SpacingUnitDSValueNumberNegativeString>;
13
- export type SpacingUnit = SpacingUnitDSValueNumber | SpacingUnitDSValueNumberNegative | SpacingUnitPixelValue;
11
+ export type SpacingUnitDSValueNumberNegative = Neg<SpacingUnitDSValueNumber>;
12
+ export type SpacingUnitDSValue = SpacingUnitDSValueNumber | SpacingUnitDSValueNumberNegative;
13
+ type SpacingUnitSpecialValue = 0 | "0px" | "auto";
14
+ export type SpacingUnit = SpacingUnitDSValue | SpacingUnitPixelValue | SpacingUnitSpecialValue;
14
15
  export type ColorCssString = string & {};
15
16
  export declare const NAMED_LAYER_NAMES: readonly ["black100", "black60", "black30", "black15", "black10", "black5", "white100", "blue150", "blue100", "blue10", "green150", "green100", "green10", "yellow150", "yellow100", "yellow10", "orange150", "orange100", "orange10", "red150", "red100", "red10", "devpurple"];
16
17
  export type ColorNamedLayer = typeof NAMED_LAYER_NAMES[number];
@@ -65,4 +66,4 @@ export type SpacingUnitsTheme = {
65
66
  export type ColorsTheme = {
66
67
  colors: Record<Color, any>;
67
68
  };
68
- type ParseNumber<T extends `-${number}`> = T extends any ? T extends `${infer Digit extends number}` ? Digit : never : never;
69
+ type Neg<T extends number> = T extends 0 ? 0 : `-${T}` extends `${infer U extends number}` ? U : `${T}` extends `-${infer U extends number}` ? U : Extract<[1e999, -1e999] | [-1e999, 1e999] | [0, 0], [T, unknown]> extends [T, infer U] ? U : T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "8.1.0",
3
+ "version": "8.3.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "react-native run-android",
@@ -48,6 +48,7 @@
48
48
  "react-native-svg": "*"
49
49
  },
50
50
  "devDependencies": {
51
+ "@artsy/auto-config": "1.2.0",
51
52
  "@auto-it/all-contributors": "10.38.5",
52
53
  "@auto-it/first-time-contributor": "10.38.5",
53
54
  "@babel/core": "7.20.12",