@planningcenter/chat-react-native 1.4.2-rc.1 → 1.4.2
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/build/components/display/avatar.d.ts +10 -0
- package/build/components/display/avatar.d.ts.map +1 -0
- package/build/components/display/avatar.js +11 -0
- package/build/components/display/avatar.js.map +1 -0
- package/build/components/display/avatar_group.d.ts +9 -0
- package/build/components/display/avatar_group.d.ts.map +1 -0
- package/build/components/display/avatar_group.js +11 -0
- package/build/components/display/avatar_group.js.map +1 -0
- package/build/components/display/heading.d.ts +8 -0
- package/build/components/display/heading.d.ts.map +1 -0
- package/build/components/display/heading.js +53 -0
- package/build/components/display/heading.js.map +1 -0
- package/build/components/display/image.d.ts +10 -3
- package/build/components/display/image.d.ts.map +1 -1
- package/build/components/display/image.js +7 -5
- package/build/components/display/image.js.map +1 -1
- package/build/components/display/index.d.ts +4 -1
- package/build/components/display/index.d.ts.map +1 -1
- package/build/components/display/index.js +4 -1
- package/build/components/display/index.js.map +1 -1
- package/build/components/display/text.d.ts +1 -1
- package/build/components/display/text.d.ts.map +1 -1
- package/build/components/display/text.js +7 -6
- package/build/components/display/text.js.map +1 -1
- package/build/components/error_boundary.d.ts +1 -1
- package/build/components/primitive/avatar_primitive.d.ts +39 -0
- package/build/components/primitive/avatar_primitive.d.ts.map +1 -0
- package/build/components/primitive/avatar_primitive.js +204 -0
- package/build/components/primitive/avatar_primitive.js.map +1 -0
- package/build/contexts/api_provider.d.ts.map +1 -1
- package/build/contexts/api_provider.js +3 -14
- package/build/contexts/api_provider.js.map +1 -1
- package/build/contexts/chat_context.js +2 -2
- package/build/contexts/chat_context.js.map +1 -1
- package/build/index.js.map +1 -1
- package/build/screens/display.d.ts.map +1 -1
- package/build/screens/display.js +51 -10
- package/build/screens/display.js.map +1 -1
- package/build/utils/api.d.ts +9 -0
- package/build/utils/api.d.ts.map +1 -0
- package/build/utils/api.js +36 -0
- package/build/utils/api.js.map +1 -0
- package/build/utils/platform_styles.d.ts +2 -0
- package/build/utils/platform_styles.d.ts.map +1 -0
- package/build/utils/platform_styles.js +7 -0
- package/build/utils/platform_styles.js.map +1 -0
- package/build/utils/space.d.ts +3 -0
- package/build/utils/space.d.ts.map +1 -0
- package/build/utils/space.js +22 -0
- package/build/utils/space.js.map +1 -0
- package/build/utils/theme.d.ts +2 -2
- package/build/utils/theme.d.ts.map +1 -1
- package/build/utils/theme.js +2 -2
- package/build/utils/theme.js.map +1 -1
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts +55 -0
- package/build/vendor/tapestry/alias_tokens_color_map.d.ts.map +1 -0
- package/build/vendor/tapestry/{tapestry_alias_tokens_color_map.js → alias_tokens_color_map.js} +4 -2
- package/build/vendor/tapestry/alias_tokens_color_map.js.map +1 -0
- package/build/vendor/tapestry/tokens.d.ts +49 -35
- package/build/vendor/tapestry/tokens.d.ts.map +1 -1
- package/build/vendor/tapestry/tokens.js +18 -0
- package/build/vendor/tapestry/tokens.js.map +1 -1
- package/package.json +8 -9
- package/src/__mocks__/@react-native-async-storage/async-storage.js +3 -0
- package/src/__mocks__/react-native-device-info.js +3 -0
- package/src/__tests__/hooks/useTheme.tsx +37 -0
- package/src/__tests__/utils/space.tsx +60 -0
- package/src/components/display/avatar.tsx +23 -0
- package/src/components/display/avatar_group.tsx +21 -0
- package/src/components/display/heading.tsx +71 -0
- package/src/components/display/image.tsx +20 -8
- package/src/components/display/index.ts +4 -1
- package/src/components/display/text.tsx +7 -6
- package/src/components/primitive/avatar_primitive.tsx +374 -0
- package/src/contexts/api_provider.tsx +4 -17
- package/src/contexts/chat_context.tsx +2 -2
- package/src/index.tsx +0 -1
- package/src/screens/display.tsx +52 -13
- package/src/utils/api.ts +47 -0
- package/src/utils/platform_styles.ts +7 -0
- package/src/utils/space.ts +39 -0
- package/src/utils/theme.ts +3 -3
- package/src/vendor/tapestry/{tapestry_alias_tokens_color_map.ts → alias_tokens_color_map.ts} +8 -5
- package/src/vendor/tapestry/tokens.ts +25 -50
- package/build/vendor/tapestry/tapestry_alias_tokens_color_map.d.ts +0 -53
- package/build/vendor/tapestry/tapestry_alias_tokens_color_map.d.ts.map +0 -1
- package/build/vendor/tapestry/tapestry_alias_tokens_color_map.js.map +0 -1
package/src/vendor/tapestry/{tapestry_alias_tokens_color_map.ts → alias_tokens_color_map.ts}
RENAMED
|
@@ -32,7 +32,7 @@ const neutralsLight: NeutralColors = {
|
|
|
32
32
|
fillColorNeutral080: tokens.colorNeutral97,
|
|
33
33
|
fillColorNeutral090: tokens.colorNeutral98,
|
|
34
34
|
fillColorNeutral100Inverted: tokens.colorNeutral100White,
|
|
35
|
-
}
|
|
35
|
+
} as const
|
|
36
36
|
|
|
37
37
|
const neutralsDark: NeutralColors = {
|
|
38
38
|
name: 'dark',
|
|
@@ -47,7 +47,7 @@ const neutralsDark: NeutralColors = {
|
|
|
47
47
|
fillColorNeutral080: tokens.colorNeutral15,
|
|
48
48
|
fillColorNeutral090: tokens.colorNeutral12,
|
|
49
49
|
fillColorNeutral100Inverted: tokens.colorNeutral7,
|
|
50
|
-
}
|
|
50
|
+
} as const
|
|
51
51
|
|
|
52
52
|
interface SemanticAliasesColors {
|
|
53
53
|
name: string
|
|
@@ -62,6 +62,7 @@ interface SemanticAliasesColors {
|
|
|
62
62
|
textColorDefaultDisabled: string
|
|
63
63
|
textColorDefaultPlaceholder: string
|
|
64
64
|
textColorDefaultInverted: string
|
|
65
|
+
fillColorInteractionOnlineDefault: string
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
const semanticAliasesLight: SemanticAliasesColors = {
|
|
@@ -77,7 +78,8 @@ const semanticAliasesLight: SemanticAliasesColors = {
|
|
|
77
78
|
textColorDefaultDisabled: neutralsLight.fillColorNeutral040,
|
|
78
79
|
textColorDefaultPlaceholder: neutralsLight.fillColorNeutral030,
|
|
79
80
|
textColorDefaultInverted: tokens.colorNeutral100White,
|
|
80
|
-
|
|
81
|
+
fillColorInteractionOnlineDefault: tokens.colorInteractionOnlineDefault,
|
|
82
|
+
} as const
|
|
81
83
|
|
|
82
84
|
const semanticAliasesDark: SemanticAliasesColors = {
|
|
83
85
|
name: 'dark',
|
|
@@ -92,9 +94,10 @@ const semanticAliasesDark: SemanticAliasesColors = {
|
|
|
92
94
|
textColorDefaultDisabled: neutralsDark.fillColorNeutral040,
|
|
93
95
|
textColorDefaultPlaceholder: neutralsDark.fillColorNeutral030,
|
|
94
96
|
textColorDefaultInverted: tokens.colorNeutral7,
|
|
97
|
+
fillColorInteractionOnlineDefault: tokens.colorInteractionOnlineDefault,
|
|
95
98
|
}
|
|
96
99
|
|
|
97
|
-
export const
|
|
100
|
+
export const aliasTokensColorMap = {
|
|
98
101
|
light: { ...neutralsLight, ...semanticAliasesLight },
|
|
99
102
|
dark: { ...neutralsDark, ...semanticAliasesDark },
|
|
100
|
-
}
|
|
103
|
+
} as const
|
|
@@ -2,28 +2,7 @@
|
|
|
2
2
|
// Defining these tokens locally is a temporary solution until the package supports mobile.
|
|
3
3
|
// Tokens Reference: https://planningcenter.github.io/tapestry/?path=/docs/foundations-design-tokens--docs
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
colorNeutral7: string
|
|
7
|
-
colorNeutral12: string
|
|
8
|
-
colorNeutral15: string
|
|
9
|
-
colorNeutral17: string
|
|
10
|
-
colorNeutral19: string
|
|
11
|
-
colorNeutral24: string
|
|
12
|
-
colorNeutral32: string
|
|
13
|
-
colorNeutral45: string
|
|
14
|
-
colorNeutral50: string
|
|
15
|
-
colorNeutral58: string
|
|
16
|
-
colorNeutral68: string
|
|
17
|
-
colorNeutral81: string
|
|
18
|
-
colorNeutral88: string
|
|
19
|
-
colorNeutral93: string
|
|
20
|
-
colorNeutral95: string
|
|
21
|
-
colorNeutral97: string
|
|
22
|
-
colorNeutral98: string
|
|
23
|
-
colorNeutral100White: string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const colorPrimitives: ColorPrimitves = {
|
|
5
|
+
const colorPrimitives = {
|
|
27
6
|
colorNeutral7: 'hsl(0, 0%, 7%)',
|
|
28
7
|
colorNeutral12: 'hsl(0, 0%, 12%)',
|
|
29
8
|
colorNeutral15: 'hsl(0, 0%, 15%)',
|
|
@@ -42,28 +21,9 @@ const colorPrimitives: ColorPrimitves = {
|
|
|
42
21
|
colorNeutral97: 'hsl(0, 0%, 97%)',
|
|
43
22
|
colorNeutral98: 'hsl(0, 0%, 98%)',
|
|
44
23
|
colorNeutral100White: 'hsl(0, 0%, 100%)',
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface NumericPrimitives {
|
|
48
|
-
spacingFourth: number
|
|
49
|
-
spacingHalf: number
|
|
50
|
-
spacing1: number
|
|
51
|
-
spacing2: number
|
|
52
|
-
spacing3: number
|
|
53
|
-
spacing4: number
|
|
54
|
-
spacing5: number
|
|
55
|
-
spacing6: number
|
|
56
|
-
spacing7: number
|
|
57
|
-
borderRadiusSm: number
|
|
58
|
-
borderRadiusMd: number
|
|
59
|
-
borderRadiusLg: number
|
|
60
|
-
borderRadiusXl: number
|
|
61
|
-
borderRadiusRound: number
|
|
62
|
-
borderSizeDefault: number
|
|
63
|
-
borderSizeThick: number
|
|
64
|
-
}
|
|
24
|
+
} as const
|
|
65
25
|
|
|
66
|
-
const numericPrimtives
|
|
26
|
+
const numericPrimtives = {
|
|
67
27
|
spacingFourth: 2,
|
|
68
28
|
spacingHalf: 4,
|
|
69
29
|
spacing1: 8,
|
|
@@ -80,18 +40,33 @@ const numericPrimtives: NumericPrimitives = {
|
|
|
80
40
|
borderRadiusRound: 56,
|
|
81
41
|
borderSizeDefault: 1,
|
|
82
42
|
borderSizeThick: 2,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
43
|
+
fontWeightNormal: '400',
|
|
44
|
+
fontWeightMedium: '500',
|
|
45
|
+
fontWeightSemiBold: '600',
|
|
46
|
+
fontWeightBold: '700',
|
|
47
|
+
fontSize4xl: 32,
|
|
48
|
+
fontSize3xl: 28,
|
|
49
|
+
fontSize2xl: 24,
|
|
50
|
+
fontSizeXl: 20,
|
|
51
|
+
fontSizeLg: 18,
|
|
52
|
+
fontSizeMd: 16,
|
|
53
|
+
fontSizeSm: 14,
|
|
54
|
+
fontSizeXs: 12,
|
|
55
|
+
fontSize2xs: 10,
|
|
56
|
+
} as const
|
|
88
57
|
|
|
89
|
-
const numericAliases
|
|
58
|
+
const numericAliases = {
|
|
90
59
|
borderRadiusDefault: numericPrimtives.borderRadiusMd,
|
|
91
|
-
}
|
|
60
|
+
} as const
|
|
61
|
+
|
|
62
|
+
// These tokens are specfic to Chat will not be replaced by the Tapestry library
|
|
63
|
+
const localChatTokens = {
|
|
64
|
+
colorInteractionOnlineDefault: 'hsl(123, 38%, 57%)',
|
|
65
|
+
} as const
|
|
92
66
|
|
|
93
67
|
export const tokens = {
|
|
94
68
|
...colorPrimitives,
|
|
95
69
|
...numericPrimtives,
|
|
96
70
|
...numericAliases,
|
|
71
|
+
...localChatTokens,
|
|
97
72
|
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare const tapestryAliasTokensColorMap: {
|
|
2
|
-
light: {
|
|
3
|
-
name: string;
|
|
4
|
-
iconColorDefaultPrimary: string;
|
|
5
|
-
iconColorDefaultSecondary: string;
|
|
6
|
-
iconColorDefaultDim: string;
|
|
7
|
-
iconColorDefaultDisabled: string;
|
|
8
|
-
iconColorDefaultInverted: string;
|
|
9
|
-
textColorDefaultHeadline: string;
|
|
10
|
-
textColorDefaultPrimary: string;
|
|
11
|
-
textColorDefaultSecondary: string;
|
|
12
|
-
textColorDefaultDisabled: string;
|
|
13
|
-
textColorDefaultPlaceholder: string;
|
|
14
|
-
textColorDefaultInverted: string;
|
|
15
|
-
fillColorNeutral000: string;
|
|
16
|
-
fillColorNeutral010: string;
|
|
17
|
-
fillColorNeutral020: string;
|
|
18
|
-
fillColorNeutral030: string;
|
|
19
|
-
fillColorNeutral040: string;
|
|
20
|
-
fillColorNeutral050Base: string;
|
|
21
|
-
fillColorNeutral060: string;
|
|
22
|
-
fillColorNeutral070: string;
|
|
23
|
-
fillColorNeutral080: string;
|
|
24
|
-
fillColorNeutral090: string;
|
|
25
|
-
fillColorNeutral100Inverted: string;
|
|
26
|
-
};
|
|
27
|
-
dark: {
|
|
28
|
-
name: string;
|
|
29
|
-
iconColorDefaultPrimary: string;
|
|
30
|
-
iconColorDefaultSecondary: string;
|
|
31
|
-
iconColorDefaultDim: string;
|
|
32
|
-
iconColorDefaultDisabled: string;
|
|
33
|
-
iconColorDefaultInverted: string;
|
|
34
|
-
textColorDefaultHeadline: string;
|
|
35
|
-
textColorDefaultPrimary: string;
|
|
36
|
-
textColorDefaultSecondary: string;
|
|
37
|
-
textColorDefaultDisabled: string;
|
|
38
|
-
textColorDefaultPlaceholder: string;
|
|
39
|
-
textColorDefaultInverted: string;
|
|
40
|
-
fillColorNeutral000: string;
|
|
41
|
-
fillColorNeutral010: string;
|
|
42
|
-
fillColorNeutral020: string;
|
|
43
|
-
fillColorNeutral030: string;
|
|
44
|
-
fillColorNeutral040: string;
|
|
45
|
-
fillColorNeutral050Base: string;
|
|
46
|
-
fillColorNeutral060: string;
|
|
47
|
-
fillColorNeutral070: string;
|
|
48
|
-
fillColorNeutral080: string;
|
|
49
|
-
fillColorNeutral090: string;
|
|
50
|
-
fillColorNeutral100Inverted: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=tapestry_alias_tokens_color_map.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tapestry_alias_tokens_color_map.d.ts","sourceRoot":"","sources":["../../../src/vendor/tapestry/tapestry_alias_tokens_color_map.ts"],"names":[],"mappings":"AAgGA,eAAO,MAAM,2BAA2B;;cA5ChC,MAAM;iCACa,MAAM;mCACJ,MAAM;6BACZ,MAAM;kCACD,MAAM;kCACN,MAAM;kCACN,MAAM;iCACP,MAAM;mCACJ,MAAM;kCACP,MAAM;qCACH,MAAM;kCACT,MAAM;6BAvDX,MAAM;6BACN,MAAM;6BACN,MAAM;6BACN,MAAM;6BACN,MAAM;iCACF,MAAM;6BACV,MAAM;6BACN,MAAM;6BACN,MAAM;6BACN,MAAM;qCACE,MAAM;;;cAkC7B,MAAM;iCACa,MAAM;mCACJ,MAAM;6BACZ,MAAM;kCACD,MAAM;kCACN,MAAM;kCACN,MAAM;iCACP,MAAM;mCACJ,MAAM;kCACP,MAAM;qCACH,MAAM;kCACT,MAAM;6BAvDX,MAAM;6BACN,MAAM;6BACN,MAAM;6BACN,MAAM;6BACN,MAAM;iCACF,MAAM;6BACV,MAAM;6BACN,MAAM;6BACN,MAAM;6BACN,MAAM;qCACE,MAAM;;CAiFpC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tapestry_alias_tokens_color_map.js","sourceRoot":"","sources":["../../../src/vendor/tapestry/tapestry_alias_tokens_color_map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAqBjC,MAAM,aAAa,GAAkB;IACnC,IAAI,EAAE,OAAO;IACb,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,uBAAuB,EAAE,MAAM,CAAC,cAAc;IAC9C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,2BAA2B,EAAE,MAAM,CAAC,oBAAoB;CACzD,CAAA;AAED,MAAM,YAAY,GAAkB;IAClC,IAAI,EAAE,MAAM;IACZ,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,uBAAuB,EAAE,MAAM,CAAC,cAAc;IAC9C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,mBAAmB,EAAE,MAAM,CAAC,cAAc;IAC1C,2BAA2B,EAAE,MAAM,CAAC,aAAa;CAClD,CAAA;AAiBD,MAAM,oBAAoB,GAA0B;IAClD,IAAI,EAAE,OAAO;IACb,uBAAuB,EAAE,aAAa,CAAC,mBAAmB;IAC1D,yBAAyB,EAAE,aAAa,CAAC,mBAAmB;IAC5D,mBAAmB,EAAE,aAAa,CAAC,mBAAmB;IACtD,wBAAwB,EAAE,aAAa,CAAC,mBAAmB;IAC3D,wBAAwB,EAAE,aAAa,CAAC,2BAA2B;IACnE,wBAAwB,EAAE,aAAa,CAAC,mBAAmB;IAC3D,uBAAuB,EAAE,aAAa,CAAC,mBAAmB;IAC1D,yBAAyB,EAAE,aAAa,CAAC,mBAAmB;IAC5D,wBAAwB,EAAE,aAAa,CAAC,mBAAmB;IAC3D,2BAA2B,EAAE,aAAa,CAAC,mBAAmB;IAC9D,wBAAwB,EAAE,MAAM,CAAC,oBAAoB;CACtD,CAAA;AAED,MAAM,mBAAmB,GAA0B;IACjD,IAAI,EAAE,MAAM;IACZ,uBAAuB,EAAE,YAAY,CAAC,mBAAmB;IACzD,yBAAyB,EAAE,YAAY,CAAC,mBAAmB;IAC3D,mBAAmB,EAAE,YAAY,CAAC,mBAAmB;IACrD,wBAAwB,EAAE,YAAY,CAAC,mBAAmB;IAC1D,wBAAwB,EAAE,YAAY,CAAC,2BAA2B;IAClE,wBAAwB,EAAE,YAAY,CAAC,mBAAmB;IAC1D,uBAAuB,EAAE,YAAY,CAAC,mBAAmB;IACzD,yBAAyB,EAAE,YAAY,CAAC,mBAAmB;IAC3D,wBAAwB,EAAE,YAAY,CAAC,mBAAmB;IAC1D,2BAA2B,EAAE,YAAY,CAAC,mBAAmB;IAC7D,wBAAwB,EAAE,MAAM,CAAC,aAAa;CAC/C,CAAA;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,KAAK,EAAE,EAAE,GAAG,aAAa,EAAE,GAAG,oBAAoB,EAAE;IACpD,IAAI,EAAE,EAAE,GAAG,YAAY,EAAE,GAAG,mBAAmB,EAAE;CAClD,CAAA","sourcesContent":["import { tokens } from './tokens'\n\n// Copied from `@planningcenter/tapestry` package.\n// Defining these tokens locally is a temporary solution until the package supports mobile.\n// Tokens Reference: https://planningcenter.github.io/tapestry/?path=/docs/foundations-design-tokens--docs\n\ninterface NeutralColors {\n name: string\n fillColorNeutral000: string\n fillColorNeutral010: string\n fillColorNeutral020: string\n fillColorNeutral030: string\n fillColorNeutral040: string\n fillColorNeutral050Base: string\n fillColorNeutral060: string\n fillColorNeutral070: string\n fillColorNeutral080: string\n fillColorNeutral090: string\n fillColorNeutral100Inverted: string\n}\n\nconst neutralsLight: NeutralColors = {\n name: 'light',\n fillColorNeutral000: tokens.colorNeutral12,\n fillColorNeutral010: tokens.colorNeutral24,\n fillColorNeutral020: tokens.colorNeutral45,\n fillColorNeutral030: tokens.colorNeutral58,\n fillColorNeutral040: tokens.colorNeutral81,\n fillColorNeutral050Base: tokens.colorNeutral88,\n fillColorNeutral060: tokens.colorNeutral93,\n fillColorNeutral070: tokens.colorNeutral95,\n fillColorNeutral080: tokens.colorNeutral97,\n fillColorNeutral090: tokens.colorNeutral98,\n fillColorNeutral100Inverted: tokens.colorNeutral100White,\n}\n\nconst neutralsDark: NeutralColors = {\n name: 'dark',\n fillColorNeutral000: tokens.colorNeutral98,\n fillColorNeutral010: tokens.colorNeutral88,\n fillColorNeutral020: tokens.colorNeutral68,\n fillColorNeutral030: tokens.colorNeutral50,\n fillColorNeutral040: tokens.colorNeutral32,\n fillColorNeutral050Base: tokens.colorNeutral24,\n fillColorNeutral060: tokens.colorNeutral19,\n fillColorNeutral070: tokens.colorNeutral17,\n fillColorNeutral080: tokens.colorNeutral15,\n fillColorNeutral090: tokens.colorNeutral12,\n fillColorNeutral100Inverted: tokens.colorNeutral7,\n}\n\ninterface SemanticAliasesColors {\n name: string\n iconColorDefaultPrimary: string\n iconColorDefaultSecondary: string\n iconColorDefaultDim: string\n iconColorDefaultDisabled: string\n iconColorDefaultInverted: string\n textColorDefaultHeadline: string\n textColorDefaultPrimary: string\n textColorDefaultSecondary: string\n textColorDefaultDisabled: string\n textColorDefaultPlaceholder: string\n textColorDefaultInverted: string\n}\n\nconst semanticAliasesLight: SemanticAliasesColors = {\n name: 'light',\n iconColorDefaultPrimary: neutralsLight.fillColorNeutral010,\n iconColorDefaultSecondary: neutralsLight.fillColorNeutral020,\n iconColorDefaultDim: neutralsLight.fillColorNeutral030,\n iconColorDefaultDisabled: neutralsLight.fillColorNeutral040,\n iconColorDefaultInverted: neutralsLight.fillColorNeutral100Inverted,\n textColorDefaultHeadline: neutralsLight.fillColorNeutral000,\n textColorDefaultPrimary: neutralsLight.fillColorNeutral010,\n textColorDefaultSecondary: neutralsLight.fillColorNeutral020,\n textColorDefaultDisabled: neutralsLight.fillColorNeutral040,\n textColorDefaultPlaceholder: neutralsLight.fillColorNeutral030,\n textColorDefaultInverted: tokens.colorNeutral100White,\n}\n\nconst semanticAliasesDark: SemanticAliasesColors = {\n name: 'dark',\n iconColorDefaultPrimary: neutralsDark.fillColorNeutral010,\n iconColorDefaultSecondary: neutralsDark.fillColorNeutral020,\n iconColorDefaultDim: neutralsDark.fillColorNeutral030,\n iconColorDefaultDisabled: neutralsDark.fillColorNeutral040,\n iconColorDefaultInverted: neutralsDark.fillColorNeutral100Inverted,\n textColorDefaultHeadline: neutralsDark.fillColorNeutral000,\n textColorDefaultPrimary: neutralsDark.fillColorNeutral010,\n textColorDefaultSecondary: neutralsDark.fillColorNeutral020,\n textColorDefaultDisabled: neutralsDark.fillColorNeutral040,\n textColorDefaultPlaceholder: neutralsDark.fillColorNeutral030,\n textColorDefaultInverted: tokens.colorNeutral7,\n}\n\nexport const tapestryAliasTokensColorMap = {\n light: { ...neutralsLight, ...semanticAliasesLight },\n dark: { ...neutralsDark, ...semanticAliasesDark },\n}\n"]}
|