@atb-as/theme 11.0.0-alpha.14 → 11.0.0-alpha.16

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 (85) hide show
  1. package/package.json +4 -10
  2. package/lib/index.d.ts +0 -2
  3. package/lib/index.js +0 -19
  4. package/lib/index.js.map +0 -1
  5. package/lib/theme.d.ts +0 -302
  6. package/lib/theme.js +0 -127
  7. package/lib/theme.js.map +0 -1
  8. package/lib/themes/atb-theme/dark.d.ts +0 -439
  9. package/lib/themes/atb-theme/dark.js +0 -441
  10. package/lib/themes/atb-theme/dark.js.map +0 -1
  11. package/lib/themes/atb-theme/light.d.ts +0 -439
  12. package/lib/themes/atb-theme/light.js +0 -441
  13. package/lib/themes/atb-theme/light.js.map +0 -1
  14. package/lib/themes/atb-theme/theme.css +0 -790
  15. package/lib/themes/atb-theme/theme.d.ts +0 -876
  16. package/lib/themes/atb-theme/theme.js +0 -16
  17. package/lib/themes/atb-theme/theme.js.map +0 -1
  18. package/lib/themes/atb-theme/theme.module.css +0 -790
  19. package/lib/themes/fram-theme/theme.css +0 -763
  20. package/lib/themes/fram-theme/theme.d.ts +0 -215
  21. package/lib/themes/fram-theme/theme.js +0 -622
  22. package/lib/themes/fram-theme/theme.js.map +0 -1
  23. package/lib/themes/fram-theme/theme.module.css +0 -763
  24. package/lib/themes/index.d.ts +0 -5
  25. package/lib/themes/index.js +0 -17
  26. package/lib/themes/index.js.map +0 -1
  27. package/lib/themes/innlandet-theme/theme.css +0 -763
  28. package/lib/themes/innlandet-theme/theme.d.ts +0 -113
  29. package/lib/themes/innlandet-theme/theme.js +0 -502
  30. package/lib/themes/innlandet-theme/theme.js.map +0 -1
  31. package/lib/themes/innlandet-theme/theme.module.css +0 -763
  32. package/lib/themes/nfk-theme/theme.css +0 -763
  33. package/lib/themes/nfk-theme/theme.d.ts +0 -185
  34. package/lib/themes/nfk-theme/theme.js +0 -595
  35. package/lib/themes/nfk-theme/theme.js.map +0 -1
  36. package/lib/themes/nfk-theme/theme.module.css +0 -763
  37. package/lib/themes/troms-theme/dark.d.ts +0 -418
  38. package/lib/themes/troms-theme/dark.js +0 -420
  39. package/lib/themes/troms-theme/dark.js.map +0 -1
  40. package/lib/themes/troms-theme/light.d.ts +0 -427
  41. package/lib/themes/troms-theme/light.js +0 -429
  42. package/lib/themes/troms-theme/light.js.map +0 -1
  43. package/lib/themes/troms-theme/theme.css +0 -786
  44. package/lib/themes/troms-theme/theme.d.ts +0 -843
  45. package/lib/themes/troms-theme/theme.js +0 -16
  46. package/lib/themes/troms-theme/theme.js.map +0 -1
  47. package/lib/themes/troms-theme/theme.module.css +0 -786
  48. package/lib/themes-fs/atb-theme/dark.d.ts +0 -762
  49. package/lib/themes-fs/atb-theme/dark.js +0 -764
  50. package/lib/themes-fs/atb-theme/dark.js.map +0 -1
  51. package/lib/themes-fs/atb-theme/light.d.ts +0 -762
  52. package/lib/themes-fs/atb-theme/light.js +0 -764
  53. package/lib/themes-fs/atb-theme/light.js.map +0 -1
  54. package/lib/themes-fs/atb-theme/theme.d.ts +0 -1522
  55. package/lib/themes-fs/atb-theme/theme.js +0 -16
  56. package/lib/themes-fs/atb-theme/theme.js.map +0 -1
  57. package/lib/themes-fs/index.d.ts +0 -2
  58. package/lib/themes-fs/index.js +0 -14
  59. package/lib/themes-fs/index.js.map +0 -1
  60. package/lib/themes-fs/troms-theme/dark.d.ts +0 -708
  61. package/lib/themes-fs/troms-theme/dark.js +0 -710
  62. package/lib/themes-fs/troms-theme/dark.js.map +0 -1
  63. package/lib/themes-fs/troms-theme/light.d.ts +0 -750
  64. package/lib/themes-fs/troms-theme/light.js +0 -752
  65. package/lib/themes-fs/troms-theme/light.js.map +0 -1
  66. package/lib/themes-fs/troms-theme/theme.d.ts +0 -1456
  67. package/lib/themes-fs/troms-theme/theme.js +0 -16
  68. package/lib/themes-fs/troms-theme/theme.js.map +0 -1
  69. package/lib/typography/android.d.ts +0 -3
  70. package/lib/typography/android.js +0 -97
  71. package/lib/typography/android.js.map +0 -1
  72. package/lib/typography/index.d.ts +0 -63
  73. package/lib/typography/index.js +0 -98
  74. package/lib/typography/index.js.map +0 -1
  75. package/lib/typography/ios.d.ts +0 -3
  76. package/lib/typography/ios.js +0 -96
  77. package/lib/typography/ios.js.map +0 -1
  78. package/lib/typography/types.d.ts +0 -21
  79. package/lib/typography/types.js +0 -27
  80. package/lib/typography/types.js.map +0 -1
  81. package/lib/typography.css +0 -260
  82. package/lib/typography.module.css +0 -260
  83. package/lib/utils/override-config.d.ts +0 -8
  84. package/lib/utils/override-config.js +0 -37
  85. package/lib/utils/override-config.js.map +0 -1
@@ -1,16 +0,0 @@
1
- "use strict";
2
- /**
3
- * Do not edit directly, this file was auto-generated.
4
- */
5
- var __importDefault = (this && this.__importDefault) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- var light_1 = __importDefault(require("./light"));
10
- var dark_1 = __importDefault(require("./dark"));
11
- var themes = {
12
- light: light_1.default,
13
- dark: dark_1.default
14
- };
15
- exports.default = themes;
16
- //# sourceMappingURL=theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/themes-fs/troms-theme/theme.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;AAGH,kDAA2B;AAC3B,gDAAyB;AAEzB,IAAM,MAAM,GAAG;IACb,KAAK,iBAAA;IACL,IAAI,gBAAA;CACL,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -1,3 +0,0 @@
1
- import { FontBook, TextTypeStyles } from './types';
2
- export declare const androidFontData: FontBook;
3
- export declare const androidTextTypeStyles: TextTypeStyles;
@@ -1,97 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.androidTextTypeStyles = exports.androidFontData = void 0;
15
- var primaryBase = {
16
- fontSize: 16,
17
- lineHeight: 20,
18
- letterSpacing: 0.5,
19
- };
20
- var secondaryBase = {
21
- fontSize: 14,
22
- lineHeight: 20,
23
- letterSpacing: 0.25,
24
- };
25
- var tertiaryBase = {
26
- fontSize: 12,
27
- lineHeight: 16,
28
- letterSpacing: 0.4,
29
- };
30
- var labelBase = {
31
- fontSize: 10,
32
- lineHeight: 16,
33
- letterSpacing: 0,
34
- };
35
- exports.androidFontData = {
36
- main: {
37
- url: 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap',
38
- fontFamily: "'Roboto', sans-serif",
39
- },
40
- };
41
- exports.androidTextTypeStyles = {
42
- body__primary: primaryBase,
43
- 'body__primary--bold': __assign(__assign({}, primaryBase), { fontWeight: '500' }),
44
- 'body__primary--strike': __assign(__assign({}, primaryBase), { textDecorationLine: 'line-through' }),
45
- 'body__primary--underline': __assign(__assign({}, primaryBase), { textDecorationLine: 'underline' }),
46
- 'body__primary--big': {
47
- fontSize: 24,
48
- lineHeight: 28,
49
- letterSpacing: 0.25,
50
- },
51
- 'body__primary--big--bold': {
52
- fontSize: 24,
53
- lineHeight: 28,
54
- letterSpacing: 0.25,
55
- fontWeight: 'bold',
56
- },
57
- 'body__primary--jumbo': {
58
- fontSize: 36,
59
- lineHeight: 40,
60
- letterSpacing: 0.25,
61
- },
62
- 'body__primary--jumbo--bold': {
63
- fontSize: 36,
64
- lineHeight: 40,
65
- letterSpacing: 0.25,
66
- fontWeight: 'bold',
67
- },
68
- body__secondary: secondaryBase,
69
- 'body__secondary--bold': __assign(__assign({}, secondaryBase), { fontWeight: '500' }),
70
- body__tertiary: tertiaryBase,
71
- 'body__tertiary--bold': __assign(__assign({}, tertiaryBase), { fontWeight: '500' }),
72
- 'body__tertiary--strike': __assign(__assign({}, tertiaryBase), { textDecorationLine: 'line-through' }),
73
- 'body__tertiary--uppercase': __assign(__assign({}, primaryBase), { textTransform: 'uppercase' }),
74
- heading__title: __assign(__assign({}, primaryBase), { fontWeight: 'bold' }),
75
- heading__component: __assign(__assign({}, primaryBase), { fontWeight: '500' }),
76
- heading__paragraph: __assign(__assign({}, primaryBase), { fontWeight: '500' }),
77
- 'heading--medium': {
78
- fontSize: 20,
79
- lineHeight: 24,
80
- letterSpacing: 0.5,
81
- fontWeight: 'bold',
82
- },
83
- 'heading--big': {
84
- fontSize: 24,
85
- lineHeight: 28,
86
- letterSpacing: -0.31,
87
- fontWeight: 'bold',
88
- },
89
- 'heading--jumbo': {
90
- fontSize: 32,
91
- lineHeight: 38,
92
- letterSpacing: -0.31,
93
- fontWeight: 'bold',
94
- },
95
- label__uppercase: __assign(__assign({}, labelBase), { textTransform: 'uppercase' }),
96
- };
97
- //# sourceMappingURL=android.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"android.js","sourceRoot":"","sources":["../../src/typography/android.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,IAAM,WAAW,GAAc;IAC7B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,aAAa,GAAc;IAC/B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,IAAI;CACpB,CAAC;AACF,IAAM,YAAY,GAAc;IAC9B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,SAAS,GAAc;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC;CACjB,CAAC;AAEW,QAAA,eAAe,GAAa;IACvC,IAAI,EAAE;QACJ,GAAG,EAAE,+EAA+E;QACpF,UAAU,EAAE,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AAE,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,wBACX,SAAS,KACZ,aAAa,EAAE,WAAW,GAC3B;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,98 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- var __importDefault = (this && this.__importDefault) || function (mod) {
17
- return (mod && mod.__esModule) ? mod : { "default": mod };
18
- };
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.fonts = exports.textTypeStyles = void 0;
21
- exports.getFontBook = getFontBook;
22
- exports.createTextTypeStyles = createTextTypeStyles;
23
- exports.extendTextTypeStyles = extendTextTypeStyles;
24
- var ts_deepmerge_1 = __importDefault(require("ts-deepmerge"));
25
- var override_config_1 = require("../utils/override-config");
26
- var android_1 = require("./android");
27
- var ios_1 = require("./ios");
28
- var mapType = function (a) {
29
- return a === 'ios' ? 'ios' : 'android';
30
- };
31
- __exportStar(require("./types"), exports);
32
- exports.textTypeStyles = {
33
- android: android_1.androidTextTypeStyles,
34
- ios: ios_1.iosTextTypeStyles,
35
- };
36
- exports.fonts = {
37
- android: android_1.androidFontData,
38
- ios: ios_1.iosFontData,
39
- };
40
- /**
41
- * Get fonts for platform. Web should use Android as platform.
42
- *
43
- * @param overrides - Properties to override base config with
44
- * @returns text type styles
45
- */
46
- function getFontBook(type) {
47
- return exports.fonts[mapType(type)];
48
- }
49
- /**
50
- * Create new text type style with optinally overriden defaults.
51
- *
52
- * @example extending nested features
53
- * ```ts
54
- * createTextTypeStyles({
55
- * paragraphHeadline: {
56
- * fontWeight: Platform.select({ios: '600', android: 'bold'})
57
- * }
58
- * })
59
- * ```
60
- *
61
- * @param type - What platform to fetch text styles from (Android, iOS, Web)
62
- * @param overrides - Properties to override base config with
63
- * @returns text type styles
64
- */
65
- function createTextTypeStyles(type, overrides) {
66
- if (!overrides)
67
- return exports.textTypeStyles[mapType(type)];
68
- return (0, override_config_1.overrideConfig)(exports.textTypeStyles[mapType(type)], overrides);
69
- }
70
- /**
71
- * Use text type style as base and extend with new properties. Properties
72
- * can be nested and will be deep merged.
73
- *
74
- * @example extending nested features
75
- * ```ts
76
- * type Foo = {
77
- * paragraphHeadline: {
78
- * additional: boolean;
79
- * };
80
- * };
81
- * const foo = extendTextTypeStyles<Foo>({
82
- * paragraphHeadline: {
83
- * additional: true,
84
- * },
85
- * });
86
- *
87
- * console.log(foo.paragraphHeadline.additional);
88
- * //=> (property) additional: boolean
89
- * ```
90
- *
91
- * @param type - What platform to fetch text styles from (Android, iOS, Web)
92
- * @param extension - Object to extend original text type style. Can be nested with same keys as style
93
- * @returns new deep merged intersection
94
- */
95
- function extendTextTypeStyles(type, extension) {
96
- return (0, ts_deepmerge_1.default)(exports.textTypeStyles[mapType(type)], extension);
97
- }
98
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typography/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AA8BA,kCAEC;AAkBD,oDAMC;AA2BD,oDAEC;AArFD,8DAAiC;AAEjC,4DAA+E;AAE/E,qCAAiE;AACjE,6BAAqD;AAIrD,IAAM,OAAO,GAAG,UAAC,CAAgB;IAC/B,OAAA,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;AAA/B,CAA+B,CAAC;AAElC,0CAAwB;AAEX,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,+BAAqB;IAC9B,GAAG,EAAE,uBAAiB;CACvB,CAAC;AAEW,QAAA,KAAK,GAAG;IACnB,OAAO,EAAE,yBAAe;IACxB,GAAG,EAAE,iBAAW;CACjB,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,IAAmB;IAC7C,OAAO,aAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,oBAAoB,CAClC,IAAmB,EACnB,SAAiD;IAEjD,IAAI,CAAC,SAAS;QAAE,OAAO,sBAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,OAAO,IAAA,gCAAc,EAAC,sBAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,oBAAoB,CAAe,IAAmB,EAAE,SAAY;IAClF,OAAO,IAAA,sBAAK,EAAC,sBAAc,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,96 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.iosTextTypeStyles = exports.iosFontData = void 0;
15
- var primaryBase = {
16
- fontSize: 16,
17
- lineHeight: 20,
18
- letterSpacing: -0.31,
19
- };
20
- var secondaryBase = {
21
- fontSize: 14,
22
- lineHeight: 20,
23
- letterSpacing: -0.15,
24
- };
25
- var tertiaryBase = {
26
- fontSize: 12,
27
- lineHeight: 16,
28
- letterSpacing: 0,
29
- };
30
- var labelBase = {
31
- fontSize: 10,
32
- lineHeight: 16,
33
- letterSpacing: 0,
34
- };
35
- exports.iosFontData = {
36
- main: {
37
- fontFamily: "'SF Pro Text', -apple-system, BlinkMacSystemFont",
38
- },
39
- };
40
- exports.iosTextTypeStyles = {
41
- body__primary: primaryBase,
42
- 'body__primary--bold': __assign(__assign({}, primaryBase), { fontWeight: '600' }),
43
- 'body__primary--strike': __assign(__assign({}, primaryBase), { textDecorationLine: 'line-through' }),
44
- 'body__primary--underline': __assign(__assign({}, primaryBase), { textDecorationLine: 'underline' }),
45
- 'body__primary--big': {
46
- fontSize: 24,
47
- lineHeight: 28,
48
- letterSpacing: 0.41,
49
- },
50
- 'body__primary--big--bold': {
51
- fontSize: 24,
52
- lineHeight: 28,
53
- letterSpacing: 0.41,
54
- fontWeight: 'bold',
55
- },
56
- 'body__primary--jumbo': {
57
- fontSize: 36,
58
- lineHeight: 40,
59
- letterSpacing: 0.41,
60
- },
61
- 'body__primary--jumbo--bold': {
62
- fontSize: 36,
63
- lineHeight: 40,
64
- letterSpacing: 0.41,
65
- fontWeight: 'bold',
66
- },
67
- body__secondary: secondaryBase,
68
- 'body__secondary--bold': __assign(__assign({}, secondaryBase), { fontWeight: '600' }),
69
- body__tertiary: tertiaryBase,
70
- 'body__tertiary--bold': __assign(__assign({}, tertiaryBase), { fontWeight: '600' }),
71
- 'body__tertiary--strike': __assign(__assign({}, tertiaryBase), { textDecorationLine: 'line-through' }),
72
- 'body__tertiary--uppercase': __assign(__assign({}, primaryBase), { textTransform: 'uppercase' }),
73
- heading__title: __assign(__assign({}, primaryBase), { fontWeight: 'bold' }),
74
- heading__component: __assign(__assign({}, primaryBase), { fontWeight: '600' }),
75
- heading__paragraph: __assign(__assign({}, primaryBase), { fontWeight: '600' }),
76
- 'heading--medium': {
77
- fontSize: 20,
78
- lineHeight: 24,
79
- letterSpacing: -0.31,
80
- fontWeight: '700',
81
- },
82
- 'heading--big': {
83
- fontSize: 24,
84
- lineHeight: 28,
85
- letterSpacing: -0.31,
86
- fontWeight: '600',
87
- },
88
- 'heading--jumbo': {
89
- fontSize: 32,
90
- lineHeight: 38,
91
- letterSpacing: -0.31,
92
- fontWeight: 'bold',
93
- },
94
- label__uppercase: __assign(__assign({}, labelBase), { textTransform: 'uppercase' }),
95
- };
96
- //# sourceMappingURL=ios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ios.js","sourceRoot":"","sources":["../../src/typography/ios.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,IAAM,WAAW,GAAc;IAC7B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC,IAAI;CACrB,CAAC;AACF,IAAM,aAAa,GAAc;IAC/B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC,IAAI;CACrB,CAAC;AACF,IAAM,YAAY,GAAc;IAC9B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC;CACjB,CAAC;AACF,IAAM,SAAS,GAAc;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,CAAC;CACjB,CAAC;AAEW,QAAA,WAAW,GAAa;IACnC,IAAI,EAAE;QACJ,UAAU,EAAE,kDAAkD;KAC/D;CACF,CAAC;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ACD,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,wBACX,SAAS,KACZ,aAAa,EAAE,WAAW,GAC3B;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,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.textNames = void 0;
4
- exports.textNames = [
5
- 'body__primary',
6
- 'body__primary--strike',
7
- 'body__primary--bold',
8
- 'body__primary--underline',
9
- 'body__primary--big',
10
- 'body__primary--big--bold',
11
- 'body__primary--jumbo',
12
- 'body__primary--jumbo--bold',
13
- 'body__secondary',
14
- 'body__secondary--bold',
15
- 'body__tertiary',
16
- 'body__tertiary--bold',
17
- 'body__tertiary--uppercase',
18
- 'body__tertiary--strike',
19
- 'heading__title',
20
- 'heading__component',
21
- 'heading__paragraph',
22
- 'heading--medium',
23
- 'heading--big',
24
- 'heading--jumbo',
25
- 'label__uppercase',
26
- ];
27
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/typography/types.ts"],"names":[],"mappings":";;;AAAa,QAAA,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"}