@atb-as/theme 11.0.0-alpha.9 → 11.0.0-rc.1

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 (50) hide show
  1. package/package.json +7 -10
  2. package/lib/index.d.ts +0 -2
  3. package/lib/index.js +0 -3
  4. package/lib/index.js.map +0 -1
  5. package/lib/theme.d.ts +0 -301
  6. package/lib/theme.js +0 -113
  7. package/lib/theme.js.map +0 -1
  8. package/lib/themes/atb-theme/dark.d.ts +0 -419
  9. package/lib/themes/atb-theme/dark.js +0 -419
  10. package/lib/themes/atb-theme/dark.js.map +0 -1
  11. package/lib/themes/atb-theme/light.d.ts +0 -419
  12. package/lib/themes/atb-theme/light.js +0 -419
  13. package/lib/themes/atb-theme/light.js.map +0 -1
  14. package/lib/themes/atb-theme/theme.css +0 -760
  15. package/lib/themes/atb-theme/theme.d.ts +0 -836
  16. package/lib/themes/atb-theme/theme.js +0 -11
  17. package/lib/themes/atb-theme/theme.js.map +0 -1
  18. package/lib/themes/atb-theme/theme.module.css +0 -760
  19. package/lib/themes/index.d.ts +0 -1
  20. package/lib/themes/index.js +0 -6
  21. package/lib/themes/index.js.map +0 -1
  22. package/lib/themes-fs/atb-theme/dark.d.ts +0 -722
  23. package/lib/themes-fs/atb-theme/dark.js +0 -722
  24. package/lib/themes-fs/atb-theme/dark.js.map +0 -1
  25. package/lib/themes-fs/atb-theme/light.d.ts +0 -722
  26. package/lib/themes-fs/atb-theme/light.js +0 -722
  27. package/lib/themes-fs/atb-theme/light.js.map +0 -1
  28. package/lib/themes-fs/atb-theme/theme.d.ts +0 -1442
  29. package/lib/themes-fs/atb-theme/theme.js +0 -11
  30. package/lib/themes-fs/atb-theme/theme.js.map +0 -1
  31. package/lib/themes-fs/index.d.ts +0 -1
  32. package/lib/themes-fs/index.js +0 -6
  33. package/lib/themes-fs/index.js.map +0 -1
  34. package/lib/typography/android.d.ts +0 -3
  35. package/lib/typography/android.js +0 -116
  36. package/lib/typography/android.js.map +0 -1
  37. package/lib/typography/index.d.ts +0 -63
  38. package/lib/typography/index.js +0 -73
  39. package/lib/typography/index.js.map +0 -1
  40. package/lib/typography/ios.d.ts +0 -3
  41. package/lib/typography/ios.js +0 -115
  42. package/lib/typography/ios.js.map +0 -1
  43. package/lib/typography/types.d.ts +0 -21
  44. package/lib/typography/types.js +0 -24
  45. package/lib/typography/types.js.map +0 -1
  46. package/lib/typography.css +0 -260
  47. package/lib/typography.module.css +0 -260
  48. package/lib/utils/override-config.d.ts +0 -8
  49. package/lib/utils/override-config.js +0 -23
  50. package/lib/utils/override-config.js.map +0 -1
@@ -1,11 +0,0 @@
1
- /**
2
- * Do not edit directly, this file was auto-generated.
3
- */
4
- import light from "./light";
5
- import dark from "./dark";
6
- const themes = {
7
- light,
8
- dark
9
- };
10
- export default themes;
11
- //# sourceMappingURL=theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/themes-fs/atb-theme/theme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,IAAI,MAAM,QAAQ,CAAA;AAEzB,MAAM,MAAM,GAAG;IACb,KAAK;IACL,IAAI;CACL,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -1 +0,0 @@
1
- export { default as AtBThemesFs } from './atb-theme/theme';
@@ -1,6 +0,0 @@
1
- export { default as AtBThemesFs } from './atb-theme/theme';
2
- // export {default as NfkThemesFs} from './nfk-theme/theme';
3
- // export {default as FRAMThemesFs} from './fram-theme/theme';
4
- // export {default as TromsThemesFs} from './troms-theme/theme';
5
- // export {default as InnlandetThemesFs} from './innlandet-theme/theme';
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/themes-fs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,mBAAmB,CAAC;AACzD,4DAA4D;AAC5D,8DAA8D;AAC9D,gEAAgE;AAChE,wEAAwE"}
@@ -1,3 +0,0 @@
1
- import { FontBook, TextTypeStyles } from './types';
2
- export declare const androidFontData: FontBook;
3
- export declare const androidTextTypeStyles: TextTypeStyles;
@@ -1,116 +0,0 @@
1
- const primaryBase = {
2
- fontSize: 16,
3
- lineHeight: 20,
4
- letterSpacing: 0.5,
5
- };
6
- const secondaryBase = {
7
- fontSize: 14,
8
- lineHeight: 20,
9
- letterSpacing: 0.25,
10
- };
11
- const tertiaryBase = {
12
- fontSize: 12,
13
- lineHeight: 16,
14
- letterSpacing: 0.4,
15
- };
16
- const labelBase = {
17
- fontSize: 10,
18
- lineHeight: 16,
19
- letterSpacing: 0,
20
- };
21
- export const androidFontData = {
22
- main: {
23
- url: 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap',
24
- fontFamily: `'Roboto', sans-serif`,
25
- },
26
- };
27
- export const androidTextTypeStyles = {
28
- body__primary: primaryBase,
29
- 'body__primary--bold': {
30
- ...primaryBase,
31
- fontWeight: '500',
32
- },
33
- 'body__primary--strike': {
34
- ...primaryBase,
35
- textDecorationLine: 'line-through',
36
- },
37
- 'body__primary--underline': {
38
- ...primaryBase,
39
- textDecorationLine: 'underline',
40
- },
41
- 'body__primary--big': {
42
- fontSize: 24,
43
- lineHeight: 28,
44
- letterSpacing: 0.25,
45
- },
46
- 'body__primary--big--bold': {
47
- fontSize: 24,
48
- lineHeight: 28,
49
- letterSpacing: 0.25,
50
- fontWeight: 'bold',
51
- },
52
- 'body__primary--jumbo': {
53
- fontSize: 36,
54
- lineHeight: 40,
55
- letterSpacing: 0.25,
56
- },
57
- 'body__primary--jumbo--bold': {
58
- fontSize: 36,
59
- lineHeight: 40,
60
- letterSpacing: 0.25,
61
- fontWeight: 'bold',
62
- },
63
- body__secondary: secondaryBase,
64
- 'body__secondary--bold': {
65
- ...secondaryBase,
66
- fontWeight: '500',
67
- },
68
- body__tertiary: tertiaryBase,
69
- 'body__tertiary--bold': {
70
- ...tertiaryBase,
71
- fontWeight: '500',
72
- },
73
- 'body__tertiary--strike': {
74
- ...tertiaryBase,
75
- textDecorationLine: 'line-through',
76
- },
77
- 'body__tertiary--uppercase': {
78
- ...primaryBase,
79
- textTransform: 'uppercase',
80
- },
81
- heading__title: {
82
- ...primaryBase,
83
- fontWeight: 'bold',
84
- },
85
- heading__component: {
86
- ...primaryBase,
87
- fontWeight: '500',
88
- },
89
- heading__paragraph: {
90
- ...primaryBase,
91
- fontWeight: '500',
92
- },
93
- 'heading--medium': {
94
- fontSize: 20,
95
- lineHeight: 24,
96
- letterSpacing: 0.5,
97
- fontWeight: 'bold',
98
- },
99
- 'heading--big': {
100
- fontSize: 24,
101
- lineHeight: 28,
102
- letterSpacing: -0.31,
103
- fontWeight: 'bold',
104
- },
105
- 'heading--jumbo': {
106
- fontSize: 32,
107
- lineHeight: 38,
108
- letterSpacing: -0.31,
109
- fontWeight: 'bold',
110
- },
111
- label__uppercase: {
112
- ...labelBase,
113
- textTransform: 'uppercase',
114
- },
115
- };
116
- //# sourceMappingURL=android.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"android.js","sourceRoot":"","sources":["../../src/typography/android.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAc;IAC7B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,MAAM,aAAa,GAAc;IAC/B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,IAAI;CACpB,CAAC;AACF,MAAM,YAAY,GAAc;IAC9B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,MAAM,SAAS,GAAc;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,CAAC,MA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AW;QACd,UAAU,EAAE,KAAK;KAClB;IACD,kBAAkB,EAAE;QAClB,GAAG,WAAW;QACd,UAAU,EAAE,KAAK;KAClB;IACD,iBAAiB,EAAE;QACjB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,GAAG;QAClB,UAAU,EAAE,MAAM;KACnB;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,CAAC,IAAI;QACpB,UAAU,EAAE,MAAM;KACnB;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,CAAC,IAAI;QACpB,UAAU,EAAE,MAAM;KACnB;IACD,gBAAgB,EAAE;QAChB,GAAG,SAAS;QACZ,aAAa,EAAE,WAAW;KAC3B;CACF,CAAC"}
@@ -1,63 +0,0 @@
1
- import { TextTypeStyles } from '.';
2
- import { ConfigurationOverride } from '../utils/override-config';
3
- type _MappedPlatforms = 'ios' | 'android';
4
- type PlatformTypes = _MappedPlatforms | 'web';
5
- export * from './types';
6
- export declare const textTypeStyles: {
7
- android: TextTypeStyles;
8
- ios: TextTypeStyles;
9
- };
10
- export declare const fonts: {
11
- android: import("./types").FontBook;
12
- ios: import("./types").FontBook;
13
- };
14
- /**
15
- * Get fonts for platform. Web should use Android as platform.
16
- *
17
- * @param overrides - Properties to override base config with
18
- * @returns text type styles
19
- */
20
- export declare function getFontBook(type: PlatformTypes): import("./types").FontBook;
21
- /**
22
- * Create new text type style with optinally overriden defaults.
23
- *
24
- * @example extending nested features
25
- * ```ts
26
- * createTextTypeStyles({
27
- * paragraphHeadline: {
28
- * fontWeight: Platform.select({ios: '600', android: 'bold'})
29
- * }
30
- * })
31
- * ```
32
- *
33
- * @param type - What platform to fetch text styles from (Android, iOS, Web)
34
- * @param overrides - Properties to override base config with
35
- * @returns text type styles
36
- */
37
- export declare function createTextTypeStyles(type: PlatformTypes, overrides?: ConfigurationOverride<TextTypeStyles>): TextTypeStyles;
38
- /**
39
- * Use text type style as base and extend with new properties. Properties
40
- * can be nested and will be deep merged.
41
- *
42
- * @example extending nested features
43
- * ```ts
44
- * type Foo = {
45
- * paragraphHeadline: {
46
- * additional: boolean;
47
- * };
48
- * };
49
- * const foo = extendTextTypeStyles<Foo>({
50
- * paragraphHeadline: {
51
- * additional: true,
52
- * },
53
- * });
54
- *
55
- * console.log(foo.paragraphHeadline.additional);
56
- * //=> (property) additional: boolean
57
- * ```
58
- *
59
- * @param type - What platform to fetch text styles from (Android, iOS, Web)
60
- * @param extension - Object to extend original text type style. Can be nested with same keys as style
61
- * @returns new deep merged intersection
62
- */
63
- export declare function extendTextTypeStyles<T extends {}>(type: PlatformTypes, extension: T): ((k: TextTypeStyles) => void) | (T extends any ? (k: T) => void : never) extends (k: infer I) => void ? I : never;
@@ -1,73 +0,0 @@
1
- import merge from 'ts-deepmerge';
2
- import { overrideConfig } from '../utils/override-config';
3
- import { androidTextTypeStyles, androidFontData } from './android';
4
- import { iosTextTypeStyles, iosFontData } from './ios';
5
- const mapType = (a) => a === 'ios' ? 'ios' : 'android';
6
- export * from './types';
7
- export const textTypeStyles = {
8
- android: androidTextTypeStyles,
9
- ios: iosTextTypeStyles,
10
- };
11
- export const fonts = {
12
- android: androidFontData,
13
- ios: iosFontData,
14
- };
15
- /**
16
- * Get fonts for platform. Web should use Android as platform.
17
- *
18
- * @param overrides - Properties to override base config with
19
- * @returns text type styles
20
- */
21
- export function getFontBook(type) {
22
- return fonts[mapType(type)];
23
- }
24
- /**
25
- * Create new text type style with optinally overriden defaults.
26
- *
27
- * @example extending nested features
28
- * ```ts
29
- * createTextTypeStyles({
30
- * paragraphHeadline: {
31
- * fontWeight: Platform.select({ios: '600', android: 'bold'})
32
- * }
33
- * })
34
- * ```
35
- *
36
- * @param type - What platform to fetch text styles from (Android, iOS, Web)
37
- * @param overrides - Properties to override base config with
38
- * @returns text type styles
39
- */
40
- export function createTextTypeStyles(type, overrides) {
41
- if (!overrides)
42
- return textTypeStyles[mapType(type)];
43
- return overrideConfig(textTypeStyles[mapType(type)], overrides);
44
- }
45
- /**
46
- * Use text type style as base and extend with new properties. Properties
47
- * can be nested and will be deep merged.
48
- *
49
- * @example extending nested features
50
- * ```ts
51
- * type Foo = {
52
- * paragraphHeadline: {
53
- * additional: boolean;
54
- * };
55
- * };
56
- * const foo = extendTextTypeStyles<Foo>({
57
- * paragraphHeadline: {
58
- * additional: true,
59
- * },
60
- * });
61
- *
62
- * console.log(foo.paragraphHeadline.additional);
63
- * //=> (property) additional: boolean
64
- * ```
65
- *
66
- * @param type - What platform to fetch text styles from (Android, iOS, Web)
67
- * @param extension - Object to extend original text type style. Can be nested with same keys as style
68
- * @returns new deep merged intersection
69
- */
70
- export function extendTextTypeStyles(type, extension) {
71
- return merge(textTypeStyles[mapType(type)], extension);
72
- }
73
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAwB,cAAc,EAAC,MAAM,0BAA0B,CAAC;AAE/E,OAAO,EAAC,qBAAqB,EAAE,eAAe,EAAC,MAAM,WAAW,CAAC;AACjE,OAAO,EAAC,iBAAiB,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AAIrD,MAAM,OAAO,GAAG,CAAC,CAAgB,EAAoB,EAAE,CACrD,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAElC,cAAc,SAAS,CAAC;AAExB,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,OAAO,EAAE,qBAAqB;IAC9B,GAAG,EAAE,iBAAiB;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,OAAO,EAAE,eAAe;IACxB,GAAG,EAAE,WAAW;CACjB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,IAAmB;IAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,oBAAoB,CAClC,IAAmB,EACnB,SAAiD;IAEjD,IAAI,CAAC,SAAS;QAAE,OAAO,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,OAAO,cAAc,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,oBAAoB,CAAe,IAAmB,EAAE,SAAY;IAClF,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AACzD,CAAC"}
@@ -1,3 +0,0 @@
1
- import { FontBook, TextTypeStyles } from './types';
2
- export declare const iosFontData: FontBook;
3
- export declare const iosTextTypeStyles: TextTypeStyles;
@@ -1,115 +0,0 @@
1
- const primaryBase = {
2
- fontSize: 16,
3
- lineHeight: 20,
4
- letterSpacing: -0.31,
5
- };
6
- const secondaryBase = {
7
- fontSize: 14,
8
- lineHeight: 20,
9
- letterSpacing: -0.15,
10
- };
11
- const tertiaryBase = {
12
- fontSize: 12,
13
- lineHeight: 16,
14
- letterSpacing: 0,
15
- };
16
- const labelBase = {
17
- fontSize: 10,
18
- lineHeight: 16,
19
- letterSpacing: 0,
20
- };
21
- export const iosFontData = {
22
- main: {
23
- fontFamily: `'SF Pro Text', -apple-system, BlinkMacSystemFont`,
24
- },
25
- };
26
- export const iosTextTypeStyles = {
27
- body__primary: primaryBase,
28
- 'body__primary--bold': {
29
- ...primaryBase,
30
- fontWeight: '600',
31
- },
32
- 'body__primary--strike': {
33
- ...primaryBase,
34
- textDecorationLine: 'line-through',
35
- },
36
- 'body__primary--underline': {
37
- ...primaryBase,
38
- textDecorationLine: 'underline',
39
- },
40
- 'body__primary--big': {
41
- fontSize: 24,
42
- lineHeight: 28,
43
- letterSpacing: 0.41,
44
- },
45
- 'body__primary--big--bold': {
46
- fontSize: 24,
47
- lineHeight: 28,
48
- letterSpacing: 0.41,
49
- fontWeight: 'bold',
50
- },
51
- 'body__primary--jumbo': {
52
- fontSize: 36,
53
- lineHeight: 40,
54
- letterSpacing: 0.41,
55
- },
56
- 'body__primary--jumbo--bold': {
57
- fontSize: 36,
58
- lineHeight: 40,
59
- letterSpacing: 0.41,
60
- fontWeight: 'bold',
61
- },
62
- body__secondary: secondaryBase,
63
- 'body__secondary--bold': {
64
- ...secondaryBase,
65
- fontWeight: '600',
66
- },
67
- body__tertiary: tertiaryBase,
68
- 'body__tertiary--bold': {
69
- ...tertiaryBase,
70
- fontWeight: '600',
71
- },
72
- 'body__tertiary--strike': {
73
- ...tertiaryBase,
74
- textDecorationLine: 'line-through',
75
- },
76
- 'body__tertiary--uppercase': {
77
- ...primaryBase,
78
- textTransform: 'uppercase',
79
- },
80
- heading__title: {
81
- ...primaryBase,
82
- fontWeight: 'bold',
83
- },
84
- heading__component: {
85
- ...primaryBase,
86
- fontWeight: '600',
87
- },
88
- heading__paragraph: {
89
- ...primaryBase,
90
- fontWeight: '600',
91
- },
92
- 'heading--medium': {
93
- fontSize: 20,
94
- lineHeight: 24,
95
- letterSpacing: -0.31,
96
- fontWeight: '700',
97
- },
98
- 'heading--big': {
99
- fontSize: 24,
100
- lineHeight: 28,
101
- letterSpacing: -0.31,
102
- fontWeight: '600',
103
- },
104
- 'heading--jumbo': {
105
- fontSize: 32,
106
- lineHeight: 38,
107
- letterSpacing: -0.31,
108
- fontWeight: 'bold',
109
- },
110
- label__uppercase: {
111
- ...labelBase,
112
- textTransform: 'uppercase',
113
- },
114
- };
115
- //# sourceMappingURL=ios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ios.js","sourceRoot":"","sources":["../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;QACd,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,MAAM;KACnB;IACD,eAAe,EAAE,aAAa;IAC9B,uBAAuB,EAAE;QACvB,GAAG,aAAa;QAChB,UAAU,EAAE,KAAK;KAClB;IACD,cAAc,EAAE,YAAY;IAC5B,sBAAsB,EAAE;QACtB,GAAG,YAAY;QACf,UAAU,EAAE,KAAK;KAClB;IACD,wBAAwB,EAAE;QACxB,GAAG,YAAY;QACf,kBAAkB,EAAE,cAAc;KACnC;IACD,2BAA2B,EAAE;QAC3B,GAAG,WAAW;QACd,aAAa,EAAE,WAAW;KAC3B;IACD,cAAc,EAAE;QACd,GAAG,WAAW;QACd,UAAU,EAAE,MAAM;KACnB;IACD,kBAAkB,EAAE;QAClB,GAAG,WAAW;QACd,UAAU,EAAE,KAAK;KAClB;IACD,kBAAkB,EAAE;QAClB,GAAG,WAAW;QACd,UAAU,EAAE,KAAK;KAClB;IACD,iBAAiB,EAAE;QACjB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,CAAC,IAAI;QACpB,UAAU,EAAE,KAAK;KAClB;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,CAAC,IAAI;QACpB,UAAU,EAAE,KAAK;KAClB;IACD,gBAAgB,EAAE;QAChB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,CAAC,IAAI;QACpB,UAAU,EAAE,MAAM;KACnB;IACD,gBAAgB,EAAE;QAChB,GAAG,SAAS;QACZ,aAAa,EAAE,WAAW;KAC3B;CACF,CAAC"}
@@ -1,21 +0,0 @@
1
- export declare const textNames: readonly ["body__primary", "body__primary--strike", "body__primary--bold", "body__primary--underline", "body__primary--big", "body__primary--big--bold", "body__primary--jumbo", "body__primary--jumbo--bold", "body__secondary", "body__secondary--bold", "body__tertiary", "body__tertiary--bold", "body__tertiary--uppercase", "body__tertiary--strike", "heading__title", "heading__component", "heading__paragraph", "heading--medium", "heading--big", "heading--jumbo", "label__uppercase"];
2
- export type FontMetadata = {
3
- url?: string;
4
- fontFamily: string;
5
- };
6
- export type FontBook = {
7
- main: FontMetadata;
8
- [fontName: string]: FontMetadata;
9
- };
10
- export type TextNames = (typeof textNames)[number];
11
- export type TextStyle = {
12
- fontSize: number;
13
- letterSpacing: number;
14
- lineHeight: number;
15
- textDecorationLine?: 'none' | 'underline' | 'line-through' | 'underline line-through';
16
- fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
17
- textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';
18
- };
19
- export type TextTypeStyles = {
20
- [key in TextNames]: TextStyle;
21
- };
@@ -1,24 +0,0 @@
1
- export const textNames = [
2
- 'body__primary',
3
- 'body__primary--strike',
4
- 'body__primary--bold',
5
- 'body__primary--underline',
6
- 'body__primary--big',
7
- 'body__primary--big--bold',
8
- 'body__primary--jumbo',
9
- 'body__primary--jumbo--bold',
10
- 'body__secondary',
11
- 'body__secondary--bold',
12
- 'body__tertiary',
13
- 'body__tertiary--bold',
14
- 'body__tertiary--uppercase',
15
- 'body__tertiary--strike',
16
- 'heading__title',
17
- 'heading__component',
18
- 'heading__paragraph',
19
- 'heading--medium',
20
- 'heading--big',
21
- 'heading--jumbo',
22
- 'label__uppercase',
23
- ];
24
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/typography/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,eAAe;IACf,uBAAuB;IACvB,qBAAqB;IACrB,0BAA0B;IAC1B,oBAAoB;IACpB,0BAA0B;IAC1B,sBAAsB;IACtB,4BAA4B;IAC5B,iBAAiB;IACjB,uBAAuB;IACvB,gBAAgB;IAChB,sBAAsB;IACtB,2BAA2B;IAC3B,wBAAwB;IACxB,gBAAgB;IAChB,oBAAoB;IACpB,oBAAoB;IACpB,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,kBAAkB;CACV,CAAC"}