@artsy/palette-mobile 11.2.17 → 12.0.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v12.0.0 (Mon Aug 07 2023)
2
+
3
+ #### 💥 Breaking Change
4
+
5
+ - chore(palette-tokens): bump palette-tokens to v5 [#136](https://github.com/artsy/palette-mobile/pull/136) ([@araujobarret](https://github.com/araujobarret))
6
+
7
+ #### Authors: 1
8
+
9
+ - Carlos Alberto de Araujo Barreto ([@araujobarret](https://github.com/araujobarret))
10
+
11
+ ---
12
+
1
13
  # v11.2.17 (Fri Aug 04 2023)
2
14
 
3
15
  #### 🐛 Bug Fix
package/dist/tokens.js CHANGED
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.THEMES = exports.COLOR_LAYER_ROLE = exports.COLOR_LAYER_NAME = void 0;
9
9
  const palette_tokens_1 = require("@artsy/palette-tokens");
10
10
  const webTokensToMobile_1 = require("./utils/webTokensToMobile");
11
- const { textVariants, space, colors, fonts } = palette_tokens_1.THEME_V3;
11
+ const { textVariants, space, colors } = palette_tokens_1.THEME;
12
12
  exports.COLOR_LAYER_NAME = {
13
13
  ...colors,
14
14
  /** Adding this here for dev usage. Avoid using it for actual components. */
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SpacingUnit as BaseSpacingUnit } from "@artsy/palette-tokens/dist/themes/v3";
1
+ import { SpacingUnit as BaseSpacingUnit } from "@artsy/palette-tokens";
2
2
  import { COLOR_LAYER_ROLE, COLOR_LAYER_NAME } from "./tokens";
3
3
  import { Neg } from "./utils/types";
4
4
  export type SpacingUnitDSValueNumber = BaseSpacingUnit;
@@ -10,8 +10,8 @@ type SpaceFn = (spaceName: SpacingUnit) => number;
10
10
  declare const space: (theme: AllThemesType) => SpaceFn;
11
11
  export interface ColorFn {
12
12
  (colorNumber: undefined): undefined;
13
- (colorNumber: ColorDSValue): string;
14
- (colorNumber: Color | undefined): string | undefined;
13
+ (colorNumber: ColorDSValue | Color): string;
14
+ (colorNumber: ColorDSValue | Color | undefined): string | undefined;
15
15
  }
16
16
  declare const color: (theme: AllThemesType) => ColorFn;
17
17
  export {};
@@ -1,4 +1,4 @@
1
- import { THEME_V3 } from "@artsy/palette-tokens";
1
+ import { THEME } from "@artsy/palette-tokens";
2
2
  import { SpacingUnit } from "@artsy/palette-tokens/dist/themes/v3";
3
3
  import { TextTreatment, TextVariant } from "@artsy/palette-tokens/dist/typography/v3";
4
4
  import { SpacingUnitPixelValue } from "../types";
@@ -12,7 +12,7 @@ export type TextTreatmentWithoutUnits = {
12
12
  * from a string `"120px"` to a number `120`, and the key values from a number
13
13
  * `0.5` to a string `"0.5"`.
14
14
  */
15
- export declare const convertWebSpacingUnitsToMobile: (withUnits: typeof THEME_V3.space) => Record<SpacingUnit, SpacingUnitPixelValue>;
15
+ export declare const convertWebSpacingUnitsToMobile: (withUnits: typeof THEME.space) => Record<SpacingUnit, SpacingUnitPixelValue>;
16
16
  /**
17
17
  * This function is removing the `px` and `em` suffix and making the values
18
18
  * into numbers. letterspacing, fontSize, and lineHeight all take numbers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "11.2.17",
3
+ "version": "12.0.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "react-native run-android",
@@ -33,7 +33,7 @@
33
33
  "FOR DEPS NEEDED FOR THE STORYBOOK APP, ADD THEM AS DEV DEPS BELOW."
34
34
  ],
35
35
  "dependencies": {
36
- "@artsy/palette-tokens": "^4.0.1",
36
+ "@artsy/palette-tokens": "^5.0.0",
37
37
  "@styled-system/core": "^5.1.2",
38
38
  "@styled-system/theme-get": "^5.1.2",
39
39
  "events": "^3.3.0",