@planningcenter/chat-react-native 1.6.2-rc.1 → 1.6.2-rc.3
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/badge.d.ts +58 -0
- package/build/components/display/badge.d.ts.map +1 -0
- package/build/components/display/badge.js +186 -0
- package/build/components/display/badge.js.map +1 -0
- package/build/components/display/button_color_utils.d.ts +1 -1
- package/build/components/display/index.d.ts +2 -0
- package/build/components/display/index.d.ts.map +1 -1
- package/build/components/display/index.js +2 -0
- package/build/components/display/index.js.map +1 -1
- package/build/components/display/switch.d.ts +4 -0
- package/build/components/display/switch.d.ts.map +1 -0
- package/build/components/display/switch.js +14 -0
- package/build/components/display/switch.js.map +1 -0
- package/build/screens/design_system_screen.d.ts.map +1 -1
- package/build/screens/design_system_screen.js +408 -332
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/utils/theme.d.ts +19 -0
- package/build/utils/theme.d.ts.map +1 -1
- package/build/utils/theme.js +37 -0
- package/build/utils/theme.js.map +1 -1
- package/build/vendor/tapestry/tokens.d.ts +30 -0
- package/build/vendor/tapestry/tokens.d.ts.map +1 -1
- package/build/vendor/tapestry/tokens.js +30 -0
- package/build/vendor/tapestry/tokens.js.map +1 -1
- package/package.json +2 -2
- package/src/components/display/badge.tsx +323 -0
- package/src/components/display/index.ts +2 -0
- package/src/components/display/switch.tsx +23 -0
- package/src/screens/design_system_screen.tsx +714 -571
- package/src/utils/theme.ts +56 -0
- package/src/vendor/tapestry/tokens.ts +30 -0
package/src/utils/theme.ts
CHANGED
|
@@ -27,6 +27,7 @@ export interface DefaultTheme {
|
|
|
27
27
|
button: {
|
|
28
28
|
borderRadius: number
|
|
29
29
|
}
|
|
30
|
+
showBadgeLogo: boolean
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export const defaultTheme = (colorScheme: ColorSchemeName): ChatTheme => {
|
|
@@ -42,6 +43,7 @@ export const defaultTheme = (colorScheme: ColorSchemeName): ChatTheme => {
|
|
|
42
43
|
button: {
|
|
43
44
|
borderRadius: 40,
|
|
44
45
|
},
|
|
46
|
+
showBadgeLogo: true, // Overrides visibility of the product logo in `src/display/badge.tsx`
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
|
|
@@ -52,7 +54,25 @@ interface ChatColors {
|
|
|
52
54
|
buttonStart: string | undefined
|
|
53
55
|
buttonEnd: string | undefined
|
|
54
56
|
interaction: string
|
|
57
|
+
switchTrackTrue: string | undefined
|
|
58
|
+
switchTrackFalse: string | undefined
|
|
59
|
+
switchThumbColor: string | undefined
|
|
55
60
|
testColor: string
|
|
61
|
+
statusInfoIcon: string
|
|
62
|
+
statusInfoText: string
|
|
63
|
+
statusInfoBackground: string
|
|
64
|
+
statusSuccessIcon: string
|
|
65
|
+
statusSuccessText: string
|
|
66
|
+
statusSuccessBackground: string
|
|
67
|
+
statusWarningIcon: string
|
|
68
|
+
statusWarningText: string
|
|
69
|
+
statusWarningBackground: string
|
|
70
|
+
statusErrorIcon: string
|
|
71
|
+
statusErrorText: string
|
|
72
|
+
statusErrorBackground: string
|
|
73
|
+
statusNeutralIcon: string
|
|
74
|
+
statusNeutralText: string
|
|
75
|
+
statusNeutralBackground: string
|
|
56
76
|
}
|
|
57
77
|
|
|
58
78
|
const colorsChatLight: ChatColors = {
|
|
@@ -60,7 +80,25 @@ const colorsChatLight: ChatColors = {
|
|
|
60
80
|
buttonStart: undefined,
|
|
61
81
|
buttonEnd: undefined,
|
|
62
82
|
interaction: tokens.fillColorInteractionDefault,
|
|
83
|
+
switchTrackTrue: undefined,
|
|
84
|
+
switchTrackFalse: undefined,
|
|
85
|
+
switchThumbColor: undefined,
|
|
63
86
|
testColor: 'hotpink',
|
|
87
|
+
statusInfoIcon: tokens.iconColorStatusInfoPrimary,
|
|
88
|
+
statusInfoText: tokens.textColorStatusInfo,
|
|
89
|
+
statusInfoBackground: tokens.fillColorStatusInfoGhost,
|
|
90
|
+
statusSuccessIcon: tokens.iconColorStatusSuccessPrimary,
|
|
91
|
+
statusSuccessText: tokens.textColorStatusSuccess,
|
|
92
|
+
statusSuccessBackground: tokens.fillColorStatusSuccessGhost,
|
|
93
|
+
statusWarningIcon: tokens.iconColorStatusWarningPrimary,
|
|
94
|
+
statusWarningText: tokens.textColorStatusWarning,
|
|
95
|
+
statusWarningBackground: tokens.fillColorStatusWarningGhost,
|
|
96
|
+
statusErrorIcon: tokens.iconColorStatusErrorPrimary,
|
|
97
|
+
statusErrorText: tokens.textColorStatusError,
|
|
98
|
+
statusErrorBackground: tokens.fillColorStatusErrorGhost,
|
|
99
|
+
statusNeutralIcon: tokens.iconColorStatusNeutralPrimary,
|
|
100
|
+
statusNeutralText: tokens.textColorStatusNeutral,
|
|
101
|
+
statusNeutralBackground: tokens.fillColorStatusNeutralGhost,
|
|
64
102
|
}
|
|
65
103
|
|
|
66
104
|
const colorsChatDark: ChatColors = {
|
|
@@ -68,7 +106,25 @@ const colorsChatDark: ChatColors = {
|
|
|
68
106
|
buttonStart: undefined,
|
|
69
107
|
buttonEnd: undefined,
|
|
70
108
|
interaction: tokens.fillColorInteractionDefaultDark,
|
|
109
|
+
switchTrackTrue: undefined,
|
|
110
|
+
switchTrackFalse: undefined,
|
|
111
|
+
switchThumbColor: undefined,
|
|
71
112
|
testColor: 'pink',
|
|
113
|
+
statusInfoIcon: tokens.iconColorStatusInfoPrimaryDark,
|
|
114
|
+
statusInfoText: tokens.textColorStatusInfoDark,
|
|
115
|
+
statusInfoBackground: tokens.fillColorStatusInfoGhostDark,
|
|
116
|
+
statusSuccessIcon: tokens.iconColorStatusSuccessPrimaryDark,
|
|
117
|
+
statusSuccessText: tokens.textColorStatusSuccessDark,
|
|
118
|
+
statusSuccessBackground: tokens.fillColorStatusSuccessGhostDark,
|
|
119
|
+
statusWarningIcon: tokens.iconColorStatusWarningPrimaryDark,
|
|
120
|
+
statusWarningText: tokens.textColorStatusWarningDark,
|
|
121
|
+
statusWarningBackground: tokens.fillColorStatusWarningGhostDark,
|
|
122
|
+
statusErrorIcon: tokens.iconColorStatusErrorPrimaryDark,
|
|
123
|
+
statusErrorText: tokens.textColorStatusErrorDark,
|
|
124
|
+
statusErrorBackground: tokens.fillColorStatusErrorGhostDark,
|
|
125
|
+
statusNeutralIcon: tokens.iconColorStatusNeutralPrimaryDark,
|
|
126
|
+
statusNeutralText: tokens.textColorStatusNeutralDark,
|
|
127
|
+
statusNeutralBackground: tokens.fillColorStatusNeutralGhostDark,
|
|
72
128
|
}
|
|
73
129
|
|
|
74
130
|
const chatThemeColorMap = {
|
|
@@ -22,6 +22,36 @@ const colorPrimitives = {
|
|
|
22
22
|
colorNeutral98: 'hsl(0, 0%, 98%)',
|
|
23
23
|
colorNeutral100White: 'hsl(0, 0%, 100%)',
|
|
24
24
|
fillColorInteractionDefault: 'hsl(204, 100%, 40%)',
|
|
25
|
+
fillColorStatusNeutralGhost: 'hsl(0, 0%, 93%)',
|
|
26
|
+
fillColorStatusNeutralGhostDark: 'hsl(0, 0%, 18%)',
|
|
27
|
+
textColorStatusNeutral: 'hsl(0, 0%, 24%)',
|
|
28
|
+
textColorStatusNeutralDark: 'hsl(0, 0%, 80%)',
|
|
29
|
+
iconColorStatusNeutralPrimary: 'hsl(0, 0%, 45%)',
|
|
30
|
+
iconColorStatusNeutralPrimaryDark: 'hsl(0, 0%, 54%)',
|
|
31
|
+
fillColorStatusErrorGhost: 'hsl(9, 59%, 93%)',
|
|
32
|
+
fillColorStatusErrorGhostDark: 'hsl(8, 20%, 16%)',
|
|
33
|
+
textColorStatusError: 'hsl(8, 60%, 45%)',
|
|
34
|
+
textColorStatusErrorDark: 'hsl(8, 61%, 61%)',
|
|
35
|
+
iconColorStatusErrorPrimary: 'hsl(8, 60%, 47%)',
|
|
36
|
+
iconColorStatusErrorPrimaryDark: 'hsl(8, 60%, 55%)',
|
|
37
|
+
fillColorStatusWarningGhost: 'hsl(42, 87%, 94%)',
|
|
38
|
+
fillColorStatusWarningGhostDark: 'hsl(41, 18%, 17%)',
|
|
39
|
+
textColorStatusWarning: 'hsl(42, 100%, 29%)',
|
|
40
|
+
textColorStatusWarningDark: 'hsl(42, 84%, 55%)',
|
|
41
|
+
iconColorStatusWarningPrimary: 'hsl(42, 84%, 49%)',
|
|
42
|
+
iconColorStatusWarningPrimaryDark: 'hsl(42, 84%, 49%)',
|
|
43
|
+
fillColorStatusSuccessGhost: 'hsl(97, 57%, 90%)',
|
|
44
|
+
fillColorStatusSuccessGhostDark: 'hsl(125, 17%, 15%)',
|
|
45
|
+
textColorStatusSuccess: 'hsl(97, 57%, 28%)',
|
|
46
|
+
textColorStatusSuccessDark: 'hsl(97, 57%, 41%)',
|
|
47
|
+
iconColorStatusSuccessPrimary: 'hsl(96, 57%, 33%)',
|
|
48
|
+
iconColorStatusSuccessPrimaryDark: 'hsl(96, 57%, 41%)',
|
|
49
|
+
fillColorStatusInfoGhost: 'hsl(203, 94%, 94%)',
|
|
50
|
+
fillColorStatusInfoGhostDark: 'hsl(204, 32%, 15%)',
|
|
51
|
+
textColorStatusInfo: 'hsl(204, 100%, 35%)',
|
|
52
|
+
textColorStatusInfoDark: 'hsl(204, 68%, 55%)',
|
|
53
|
+
iconColorStatusInfoPrimary: 'hsl(204, 100%, 40%)',
|
|
54
|
+
iconColorStatusInfoPrimaryDark: 'hsl(204, 78%, 38%)',
|
|
25
55
|
fillColorTransparencyLight010: 'hsla(0, 0%, 100%, 0.1)',
|
|
26
56
|
fillColorTransparencyLight020: 'hsla(0, 0%, 100%, 0.2)',
|
|
27
57
|
fillColorTransparencyLight030: 'hsla(0, 0%, 100%, 0.3)',
|