@royalnavy/design-tokens 3.14.2 → 4.0.0-alpha.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/dist/cjs/index.js.map +1 -1
- package/dist/index.scss +1 -1
- package/dist/types/__tests__/selectors.test.d.ts +0 -1
- package/dist/types/__tests__/selectors.test.d.ts.map +1 -1
- package/dist/types/getters.d.ts +3 -2
- package/dist/types/getters.d.ts.map +1 -1
- package/dist/types/types.d.ts +0 -2
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +9 -9
package/dist/index.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/selectors.test.tsx"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"selectors.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/selectors.test.tsx"],"names":[],"mappings":"AAGA,OAAO,wBAAwB,CAAA"}
|
package/dist/types/getters.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Interpolation } from 'styled-components';
|
|
2
|
+
import { AnimationTiming, BreakpointSize, Breakpoint, ColorGroup, ColorShade, ShadowWeight, Spacing, TypographySize, ZIndexGroup, Theme } from './types';
|
|
2
3
|
export declare function getBreakpoint(size: BreakpointSize, theme?: Theme): Breakpoint;
|
|
3
4
|
export declare function getMediaQuery(options: {
|
|
4
5
|
gte: BreakpointSize;
|
|
5
6
|
lt?: BreakpointSize;
|
|
6
7
|
media?: string;
|
|
7
|
-
}, theme?: Theme): (strings: TemplateStringsArray, ...interpolations:
|
|
8
|
+
}, theme?: Theme): (strings: TemplateStringsArray, ...interpolations: Interpolation<object>[]) => string;
|
|
8
9
|
export declare function getAnimation(index: AnimationTiming, theme?: Theme): string;
|
|
9
10
|
export declare function getColor(group: ColorGroup, weight: ColorShade, theme?: Theme): string;
|
|
10
11
|
export declare function getTypography(size: TypographySize, theme?: Theme): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../src/getters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../src/getters.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGtD,OAAO,EACL,eAAe,EACf,cAAc,EACd,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,OAAO,EACP,cAAc,EACd,WAAW,EACX,KAAK,EACN,MAAM,SAAS,CAAA;AAUhB,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,UAAU,CAe7E;AAED,wBAAgB,aAAa,CAC3B,OAAO,EAAE;IACP,GAAG,EAAE,cAAc,CAAA;IACnB,EAAE,CAAC,EAAE,cAAc,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,EACD,KAAK,CAAC,EAAE,KAAK,GACZ,CACD,OAAO,EAAE,oBAAoB,EAC7B,GAAG,cAAc,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,KACvC,MAAM,CAwCV;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAQ1E;AAED,wBAAgB,QAAQ,CACtB,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,UAAU,EAClB,KAAK,CAAC,EAAE,KAAK,GACZ,MAAM,CAaR;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAWzE;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAQrE;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAQlE;AAED,wBAAgB,SAAS,CACvB,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,KAAK,GACZ,MAAM,CASR"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { InterpolationValue } from 'styled-components';
|
|
2
1
|
declare const tokens: {
|
|
3
2
|
animationTokens: {
|
|
4
3
|
timing: {
|
|
@@ -578,7 +577,6 @@ declare const tokens: {
|
|
|
578
577
|
};
|
|
579
578
|
};
|
|
580
579
|
};
|
|
581
|
-
export type StyledComponentsInterpolation = ((executionContext: Record<string, unknown>) => StyledComponentsInterpolation) | InterpolationValue | readonly StyledComponentsInterpolation[];
|
|
582
580
|
export type Tokens = typeof tokens;
|
|
583
581
|
export type Theme = Tokens & {
|
|
584
582
|
mode: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,CAAC,QAAQ,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@royalnavy/design-tokens",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-alpha.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"author": "Royal Navy",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
"@babel/preset-env": "^7.11.5",
|
|
41
41
|
"@babel/preset-react": "^7.10.4",
|
|
42
42
|
"@babel/preset-typescript": "^7.10.4",
|
|
43
|
-
"@royalnavy/eslint-config-react": "^3.
|
|
44
|
-
"@testing-library/jest-dom": "^
|
|
45
|
-
"@testing-library/react": "^
|
|
43
|
+
"@royalnavy/eslint-config-react": "^3.15.0",
|
|
44
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
45
|
+
"@testing-library/react": "^14.2.1",
|
|
46
46
|
"@types/jest": "^29.0.3",
|
|
47
47
|
"@types/lodash": "^4.14.161",
|
|
48
|
-
"@types/react": "^
|
|
49
|
-
"@types/styled-components": "^5.1.
|
|
48
|
+
"@types/react": "^18.2.25",
|
|
49
|
+
"@types/styled-components": "^5.1.34",
|
|
50
50
|
"babel-loader": "^9.0.1",
|
|
51
51
|
"clean-webpack-plugin": "^4.0.0",
|
|
52
52
|
"eslint": "^8.2.0",
|
|
53
53
|
"jest": "^29.0.3",
|
|
54
|
-
"jest-styled-components": "^7.0
|
|
54
|
+
"jest-styled-components": "^7.2.0",
|
|
55
55
|
"npm-run-all": "^4.1.5",
|
|
56
|
-
"react": "^
|
|
56
|
+
"react": "^18.2.0",
|
|
57
57
|
"source-map-loader": "^4.0.1",
|
|
58
58
|
"style-dictionary": "^3.1.1",
|
|
59
59
|
"styled-components": "^5.3.3",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"lodash": "^4.17.20"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"styled-components": "^
|
|
69
|
+
"styled-components": "^6.1.8"
|
|
70
70
|
}
|
|
71
71
|
}
|