@brightlayer-ui/react-native-themes 7.0.1 → 7.0.3-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/blueDarkTheme.d.ts → blueDarkTheme.d.ts} +2 -2
- package/blueDarkTheme.js +197 -0
- package/{dist/blueTheme.d.ts → blueTheme.d.ts} +2 -2
- package/blueTheme.js +197 -0
- package/index.js +10 -0
- package/package.json +22 -34
- package/{dist/shared.d.ts → shared.d.ts} +4 -5
- package/{dist/shared.js → shared.js} +4 -11
- package/dist/blueDarkTheme.js +0 -203
- package/dist/blueTheme.js +0 -203
- package/dist/index.js +0 -17
- /package/{dist/index.d.ts → index.d.ts} +0 -0
|
@@ -127,11 +127,11 @@ export declare const MD3BluiDarkTheme: {
|
|
|
127
127
|
mapTextOutline: string;
|
|
128
128
|
};
|
|
129
129
|
dark: boolean;
|
|
130
|
-
mode?:
|
|
130
|
+
mode?: "adaptive" | "exact";
|
|
131
131
|
roundness: number;
|
|
132
132
|
animation: {
|
|
133
133
|
scale: number;
|
|
134
|
-
defaultAnimationDuration?: number
|
|
134
|
+
defaultAnimationDuration?: number;
|
|
135
135
|
};
|
|
136
136
|
version: 3;
|
|
137
137
|
isV3: true;
|
package/blueDarkTheme.js
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Copyright (c) 2020-present, Eaton
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
|
|
7
|
+
**/
|
|
8
|
+
var __assign = (this && this.__assign) || function () {
|
|
9
|
+
__assign = Object.assign || function(t) {
|
|
10
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11
|
+
s = arguments[i];
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
};
|
|
17
|
+
return __assign.apply(this, arguments);
|
|
18
|
+
};
|
|
19
|
+
import { MD3DarkTheme, configureFonts } from 'react-native-paper';
|
|
20
|
+
import { fontConfig } from './shared';
|
|
21
|
+
import BLUIColors from '@brightlayer-ui/colors';
|
|
22
|
+
import Color from 'color';
|
|
23
|
+
export var MD3BluiDarkTheme = __assign(__assign({}, MD3DarkTheme), { fonts: configureFonts({ config: fontConfig }), colors: __assign(__assign({}, MD3DarkTheme.colors), {
|
|
24
|
+
// React Native Paper default theme color variants
|
|
25
|
+
primary: BLUIColors.primary[80], onPrimary: BLUIColors.primary[20], primaryContainer: BLUIColors.primary[30], onPrimaryContainer: BLUIColors.primary[90], secondary: BLUIColors.primary[80], onSecondary: BLUIColors.primary[20], secondaryContainer: BLUIColors.primary[30], onSecondaryContainer: BLUIColors.primary[90], tertiary: BLUIColors.primary[80], onTertiary: BLUIColors.primary[20], tertiaryContainer: BLUIColors.primary[30], onTertiaryContainer: BLUIColors.primary[90], error: BLUIColors.error[80], onError: BLUIColors.error[20], errorContainer: BLUIColors.error[30], onErrorContainer: BLUIColors.error[90], background: BLUIColors.neutral[6], onBackground: BLUIColors.neutral[95], surface: BLUIColors.neutral[6], onSurface: BLUIColors.neutral[95], surfaceVariant: BLUIColors.neutralVariant[30], onSurfaceVariant: BLUIColors.neutralVariant[70], outline: BLUIColors.neutralVariant[60], outlineVariant: Color(BLUIColors.neutralVariant[60]).alpha(0.25).rgb().string(), shadow: BLUIColors.primary[0], scrim: BLUIColors.primary[0], inverseSurface: BLUIColors.neutral[90], inverseOnSurface: BLUIColors.neutral[10], inversePrimary: BLUIColors.primary[40], elevation: {
|
|
26
|
+
level0: 'transparent',
|
|
27
|
+
// level1 is the same as surfaceContainerLowest in design files
|
|
28
|
+
level1: BLUIColors.neutral[4],
|
|
29
|
+
// level2 is the same as surfaceContainerLow in design files
|
|
30
|
+
level2: BLUIColors.neutral[10],
|
|
31
|
+
// level3 is the same as surfaceContainer in design files
|
|
32
|
+
level3: BLUIColors.neutral[12],
|
|
33
|
+
// level4 is the same as surfaceContainerHigh in design files
|
|
34
|
+
level4: BLUIColors.neutral[17],
|
|
35
|
+
// level5 is the same as surfaceContainerHighest in design files
|
|
36
|
+
level5: BLUIColors.neutral[20],
|
|
37
|
+
},
|
|
38
|
+
// surfaceDisabled is the same as disabledContainer in design files
|
|
39
|
+
surfaceDisabled: Color(BLUIColors.neutral[95]).alpha(0.1).rgb().string(),
|
|
40
|
+
// onSurfaceDisabled is the same as onDisabledContainer in design files
|
|
41
|
+
onSurfaceDisabled: Color(BLUIColors.neutral[95]).alpha(0.15).rgb().string(), backdrop: Color(BLUIColors.primary[0]).alpha(0.32).rgb().string(),
|
|
42
|
+
// Custom color variants
|
|
43
|
+
// High-emphasis primary non-text variant, can be used on non-text elements like icons
|
|
44
|
+
primaryNonText: BLUIColors.primary[60],
|
|
45
|
+
// Attention-grabbing error color can be used on non-text elements like icons, which communicate error states
|
|
46
|
+
errorNonText: BLUIColors.error[60],
|
|
47
|
+
// variant used to render disabled elements
|
|
48
|
+
disabled: Color(BLUIColors.neutral[95]).alpha(0.25).rgb().string(),
|
|
49
|
+
// warning variant fills, texts, and icons which communicate warning states
|
|
50
|
+
warning: BLUIColors.warning[90],
|
|
51
|
+
// can be used on non-text warning elements like icons
|
|
52
|
+
warningNonText: BLUIColors.warning[80],
|
|
53
|
+
// can be used on warning text and icons against warning
|
|
54
|
+
onWarning: BLUIColors.warning[20],
|
|
55
|
+
// Standout fill warning color against surface
|
|
56
|
+
warningContainer: BLUIColors.warning[30],
|
|
57
|
+
// Text and icons against warning container
|
|
58
|
+
onWarningContainer: BLUIColors.warning[90],
|
|
59
|
+
// success color variant fills, texts, and icons which communicate success states
|
|
60
|
+
success: BLUIColors.success[80],
|
|
61
|
+
// can be used on non-text success elements like icons
|
|
62
|
+
successNonText: BLUIColors.success[70],
|
|
63
|
+
// can be used on success text and icons against success
|
|
64
|
+
onSuccess: BLUIColors.success[20],
|
|
65
|
+
// Standout fill success color against surface
|
|
66
|
+
successContainer: BLUIColors.success[30],
|
|
67
|
+
// Text and icons against success container
|
|
68
|
+
onSuccessContainer: BLUIColors.success[90],
|
|
69
|
+
// orange color variant fills, texts, and icons
|
|
70
|
+
orange: BLUIColors.orange[80],
|
|
71
|
+
// non-text orange variant can be used on non-text elements like icons
|
|
72
|
+
orangeNonText: BLUIColors.orange[70],
|
|
73
|
+
// can be used on text and icons against orange
|
|
74
|
+
onOrange: BLUIColors.orange[20],
|
|
75
|
+
// Standout fill orange color against surface
|
|
76
|
+
orangeContainer: BLUIColors.orange[30],
|
|
77
|
+
// Text and icons against orange container
|
|
78
|
+
onOrangeContainer: BLUIColors.orange[90],
|
|
79
|
+
// purple color variant fills, texts, and icons
|
|
80
|
+
purple: BLUIColors.purple[80],
|
|
81
|
+
// non-text purple variant can be used on non-text elements like icons
|
|
82
|
+
purpleNonText: BLUIColors.purple[60],
|
|
83
|
+
// can be used on text and icons against purple
|
|
84
|
+
onPurple: BLUIColors.purple[20],
|
|
85
|
+
// Standout fill purple color against surface
|
|
86
|
+
purpleContainer: BLUIColors.purple[30],
|
|
87
|
+
// Text and icons against purple container
|
|
88
|
+
onPurpleContainer: BLUIColors.purple[90],
|
|
89
|
+
// Surface container is the default role, but the others are especially helpful for creating hierarchy and nested containers
|
|
90
|
+
// Lowest-emphasis container color
|
|
91
|
+
surfaceContainerLowest: BLUIColors.neutral[4],
|
|
92
|
+
// Low-emphasis container color
|
|
93
|
+
surfaceContainerLow: BLUIColors.neutral[10],
|
|
94
|
+
// Default container color
|
|
95
|
+
surfaceContainer: BLUIColors.neutral[12],
|
|
96
|
+
// High-emphasis container color
|
|
97
|
+
surfaceContainerHigh: BLUIColors.neutral[17],
|
|
98
|
+
// Highest-emphasis container color
|
|
99
|
+
surfaceContainerHighest: BLUIColors.neutral[20],
|
|
100
|
+
// This is alias for surface disabled, used as disabled container background
|
|
101
|
+
disabledContainer: Color(BLUIColors.neutral[95]).alpha(0.1).rgb().string(),
|
|
102
|
+
// Text and icons against disable container
|
|
103
|
+
onDisabledContainer: Color(BLUIColors.neutral[95]).alpha(0.15).rgb().string(),
|
|
104
|
+
// Can be used on slider and range selector track
|
|
105
|
+
sliderTrack: BLUIColors.neutral[30],
|
|
106
|
+
// Disabled version of slider track color variant
|
|
107
|
+
sliderTrackDisabled: Color(BLUIColors.neutral[30]).alpha(0.5).rgb().string(),
|
|
108
|
+
// Attention-grabbing color against error filled surface
|
|
109
|
+
errorFilledContainer: BLUIColors.error[40],
|
|
110
|
+
// Text and icons against error filled container
|
|
111
|
+
onErrorFilledContainer: BLUIColors.error[100],
|
|
112
|
+
// Attention-grabbing color against error shaded surface
|
|
113
|
+
errorShadedContainer: Color(BLUIColors.error[40]).alpha(0.3).rgb().string(),
|
|
114
|
+
// Text and icons against error shaded container
|
|
115
|
+
onErrorShadedContainer: BLUIColors.error[80],
|
|
116
|
+
// Attention-grabbing color against error outlined container
|
|
117
|
+
errorOutlinedContainerOutline: BLUIColors.error[60],
|
|
118
|
+
// Text and icons against error outlined container
|
|
119
|
+
onErrorOutlinedContainerOutline: BLUIColors.error[80],
|
|
120
|
+
// Orange color against orange filled surface
|
|
121
|
+
orangeFilledContainer: BLUIColors.orange[70],
|
|
122
|
+
// Text and icons against orange filled container
|
|
123
|
+
onOrangeFilledContainer: BLUIColors.orange[20],
|
|
124
|
+
// Orange color against orange shaded surface
|
|
125
|
+
orangeShadedContainer: Color(BLUIColors.orange[70]).alpha(0.15).rgb().string(),
|
|
126
|
+
// Text and icons against orange shaded container
|
|
127
|
+
onOrangeShadedContainer: BLUIColors.orange[80],
|
|
128
|
+
// Orange color against orange outlined surface
|
|
129
|
+
orangeOutlinedContainer: BLUIColors.orange[70],
|
|
130
|
+
// Text and icons against orange outlined container
|
|
131
|
+
onOrangeOutlinedContainer: BLUIColors.orange[80],
|
|
132
|
+
// Warning color against warning filled surface
|
|
133
|
+
warningFilledContainer: BLUIColors.warning[80],
|
|
134
|
+
// Text and icons against warning filled container
|
|
135
|
+
onWarningFilledContainer: BLUIColors.warning[30],
|
|
136
|
+
// Warning color against warning shaded surface
|
|
137
|
+
warningShadedContainer: Color(BLUIColors.warning[90]).alpha(0.1).rgb().string(),
|
|
138
|
+
// Text and icons against warning shaded container
|
|
139
|
+
onWarningShadedContainer: BLUIColors.warning[90],
|
|
140
|
+
// Warning color against warning outlined container surface
|
|
141
|
+
warningOutlinedContainerOutline: BLUIColors.warning[90],
|
|
142
|
+
// Text and icons against warning outlined container surface
|
|
143
|
+
onWarningOutlinedContainer: BLUIColors.warning[90],
|
|
144
|
+
// Attention-grabbing color against success filled container
|
|
145
|
+
successFilledContainer: BLUIColors.success[50],
|
|
146
|
+
// Text and icons against success filled container
|
|
147
|
+
onSuccessFilledContainer: BLUIColors.success[100],
|
|
148
|
+
// Attention-grabbing color against success shaded surface
|
|
149
|
+
successShadedContainer: Color(BLUIColors.success[40]).alpha(0.3).rgb().string(),
|
|
150
|
+
// Attention-grabbing label color against success shaded surface
|
|
151
|
+
successShadedLabel: BLUIColors.success[90],
|
|
152
|
+
// Attention-grabbing color against success container
|
|
153
|
+
successOutlinedContainerOutline: BLUIColors.success[70],
|
|
154
|
+
// Text and icons against success outlined container
|
|
155
|
+
onSuccessOutlinedContainer: BLUIColors.success[80],
|
|
156
|
+
// Primary color against primary filled surface
|
|
157
|
+
primaryFilledContainer: BLUIColors.primary[50],
|
|
158
|
+
// Text and icons against primary filled container
|
|
159
|
+
onPrimaryFilledContainer: BLUIColors.primary[100],
|
|
160
|
+
// Primary color against primary shaded surface
|
|
161
|
+
primaryShadedContainer: Color(BLUIColors.primary[40]).alpha(0.4).rgb().string(),
|
|
162
|
+
// Text and icons against primary shaded container
|
|
163
|
+
onPrimaryShadedContainer: BLUIColors.primary[80],
|
|
164
|
+
// Primary color against primary outlined container
|
|
165
|
+
primaryOutlinedContainerOutline: BLUIColors.primary[60],
|
|
166
|
+
// Text and icons against primary outlined container
|
|
167
|
+
onPrimaryOutlinedContainer: BLUIColors.primary[70],
|
|
168
|
+
// Purple color against purple filled surface
|
|
169
|
+
purpleFilledContainer: BLUIColors.purple[50],
|
|
170
|
+
// Text and icons against purple filled container
|
|
171
|
+
onPurpleFilledContainer: BLUIColors.purple[100],
|
|
172
|
+
// Purple color against purple shaded surface
|
|
173
|
+
purpleShadedContainer: Color(BLUIColors.purple[40]).alpha(0.4).rgb().string(),
|
|
174
|
+
// Text and icons against purple shaded container
|
|
175
|
+
onPurpleShadedContainer: BLUIColors.purple[80],
|
|
176
|
+
// Purple color against purple outlined container
|
|
177
|
+
purpleOutlinedContainerOutline: BLUIColors.purple[50],
|
|
178
|
+
// Text and icons against purple outlined container
|
|
179
|
+
onPurpleOutlinedContainer: BLUIColors.purple[70],
|
|
180
|
+
// Neutral color against neutral filled surface
|
|
181
|
+
neutralFilledContainer: BLUIColors.neutral[50],
|
|
182
|
+
// Text and icons against neutral filled container
|
|
183
|
+
onNeutralFilledContainer: BLUIColors.neutral[100],
|
|
184
|
+
// Neutral color against neutral shaded surface
|
|
185
|
+
neutralShadedContainer: Color(BLUIColors.neutral[50]).alpha(0.4).rgb().string(),
|
|
186
|
+
// Text and icons against neutral shaded container
|
|
187
|
+
onNeutralShadedContainer: BLUIColors.neutral[80],
|
|
188
|
+
// Neutral color against neutral outlined container
|
|
189
|
+
neutralOutlinedContainerOutline: BLUIColors.neutralVariant[60],
|
|
190
|
+
// Text and icons against Neutral outlined container
|
|
191
|
+
onNeutralOutlinedContainer: BLUIColors.neutralVariant[70],
|
|
192
|
+
// Standout fill text field color against surface
|
|
193
|
+
textFieldContainer: Color(BLUIColors.neutral[80]).alpha(0.2).rgb().string(),
|
|
194
|
+
// Progress bar track on status color against filled surface
|
|
195
|
+
progressBarTrackOnStatusFilledContainer: Color(BLUIColors.primary[0]).alpha(0.25).rgb().string(),
|
|
196
|
+
// Text outline color variant
|
|
197
|
+
mapTextOutline: Color(BLUIColors.primary[0]).alpha(0.7).rgb().string() }) });
|
|
@@ -127,11 +127,11 @@ export declare const MD3BluiLightTheme: {
|
|
|
127
127
|
mapTextOutline: string;
|
|
128
128
|
};
|
|
129
129
|
dark: boolean;
|
|
130
|
-
mode?:
|
|
130
|
+
mode?: "adaptive" | "exact";
|
|
131
131
|
roundness: number;
|
|
132
132
|
animation: {
|
|
133
133
|
scale: number;
|
|
134
|
-
defaultAnimationDuration?: number
|
|
134
|
+
defaultAnimationDuration?: number;
|
|
135
135
|
};
|
|
136
136
|
version: 3;
|
|
137
137
|
isV3: true;
|
package/blueTheme.js
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Copyright (c) 2020-present, Eaton
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
|
|
7
|
+
**/
|
|
8
|
+
var __assign = (this && this.__assign) || function () {
|
|
9
|
+
__assign = Object.assign || function(t) {
|
|
10
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11
|
+
s = arguments[i];
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
13
|
+
t[p] = s[p];
|
|
14
|
+
}
|
|
15
|
+
return t;
|
|
16
|
+
};
|
|
17
|
+
return __assign.apply(this, arguments);
|
|
18
|
+
};
|
|
19
|
+
import { MD3LightTheme, configureFonts } from 'react-native-paper';
|
|
20
|
+
import BLUIColors from '@brightlayer-ui/colors';
|
|
21
|
+
import { fontConfig } from './shared';
|
|
22
|
+
import Color from 'color';
|
|
23
|
+
export var MD3BluiLightTheme = __assign(__assign({}, MD3LightTheme), { fonts: configureFonts({ config: fontConfig }), colors: __assign(__assign({}, MD3LightTheme.colors), {
|
|
24
|
+
// React Native Paper default theme color variants
|
|
25
|
+
primary: BLUIColors.primary[40], onPrimary: BLUIColors.primary[100], primaryContainer: BLUIColors.primary[80], onPrimaryContainer: BLUIColors.primary[30], secondary: BLUIColors.primary[40], onSecondary: BLUIColors.primary[100], secondaryContainer: BLUIColors.primary[80], onSecondaryContainer: BLUIColors.primary[30], tertiary: BLUIColors.primary[40], onTertiary: BLUIColors.primary[100], tertiaryContainer: BLUIColors.primary[80], onTertiaryContainer: BLUIColors.primary[30], error: BLUIColors.error[40], onError: BLUIColors.primary[100], errorContainer: BLUIColors.error[90], onErrorContainer: BLUIColors.error[30], background: BLUIColors.neutral[98], onBackground: BLUIColors.neutral[10], surface: BLUIColors.neutral[98], onSurface: BLUIColors.neutral[10], surfaceVariant: BLUIColors.neutralVariant[90], onSurfaceVariant: BLUIColors.neutralVariant[30], outline: BLUIColors.neutralVariant[50], outlineVariant: Color(BLUIColors.neutralVariant[50]).alpha(0.25).rgb().string(), shadow: BLUIColors.primary[0], scrim: BLUIColors.primary[0], inverseSurface: BLUIColors.neutral[20], inverseOnSurface: BLUIColors.neutral[95], inversePrimary: BLUIColors.primary[80], elevation: {
|
|
26
|
+
level0: 'transparent',
|
|
27
|
+
// level1 is the same as surfaceContainerLowest in design files
|
|
28
|
+
level1: BLUIColors.primary[100],
|
|
29
|
+
// level2 is the same as surfaceContainerLow in design files
|
|
30
|
+
level2: BLUIColors.neutral[97],
|
|
31
|
+
// level3 is the same as surfaceContainer in design files
|
|
32
|
+
level3: BLUIColors.neutral[94],
|
|
33
|
+
// level4 is the same as surfaceContainerHigh in design files
|
|
34
|
+
level4: BLUIColors.neutral[92],
|
|
35
|
+
// level5 is the same as surfaceContainerHighest in design files
|
|
36
|
+
level5: BLUIColors.neutral[90],
|
|
37
|
+
},
|
|
38
|
+
// surfaceDisabled is the same as disabledContainer in design files
|
|
39
|
+
surfaceDisabled: Color(BLUIColors.neutral[10]).alpha(0.05).rgb().string(),
|
|
40
|
+
// onSurfaceDisabled is the same as onDisabledContainer in design files
|
|
41
|
+
onSurfaceDisabled: Color(BLUIColors.neutral[10]).alpha(0.25).rgb().string(), backdrop: Color(BLUIColors.primary[0]).alpha(0.32).rgb().string(),
|
|
42
|
+
// Custom color variants
|
|
43
|
+
// High-emphasis primary non-text variant, can be used on non-text elements like icons
|
|
44
|
+
primaryNonText: BLUIColors.primary[50],
|
|
45
|
+
// Attention-grabbing error color can be used on non-text elements like icons, which communicate error states
|
|
46
|
+
errorNonText: BLUIColors.error[50],
|
|
47
|
+
// variant used to render disabled elements
|
|
48
|
+
disabled: Color(BLUIColors.neutral[10]).alpha(0.2).rgb().string(),
|
|
49
|
+
// warning variant fills, texts, and icons which communicate warning states
|
|
50
|
+
warning: BLUIColors.warning[40],
|
|
51
|
+
// can be used on non-text warning elements like icons
|
|
52
|
+
warningNonText: BLUIColors.warning[60],
|
|
53
|
+
// can be used on warning text and icons against warning
|
|
54
|
+
onWarning: BLUIColors.primary[100],
|
|
55
|
+
// Standout fill warning color against surface
|
|
56
|
+
warningContainer: BLUIColors.warning[90],
|
|
57
|
+
// Text and icons against warning container
|
|
58
|
+
onWarningContainer: BLUIColors.warning[30],
|
|
59
|
+
// success color variant fills, texts, and icons which communicate success states
|
|
60
|
+
success: BLUIColors.success[40],
|
|
61
|
+
// can be used on non-text success elements like icons
|
|
62
|
+
successNonText: BLUIColors.success[50],
|
|
63
|
+
// can be used on success text and icons against success
|
|
64
|
+
onSuccess: BLUIColors.primary[100],
|
|
65
|
+
// Standout fill success color against surface
|
|
66
|
+
successContainer: BLUIColors.success[90],
|
|
67
|
+
// Text and icons against success container
|
|
68
|
+
onSuccessContainer: BLUIColors.success[30],
|
|
69
|
+
// orange color variant fills, texts, and icons
|
|
70
|
+
orange: BLUIColors.orange[40],
|
|
71
|
+
// non-text orange variant can be used on non-text elements like icons
|
|
72
|
+
orangeNonText: BLUIColors.orange[50],
|
|
73
|
+
// can be used on text and icons against orange
|
|
74
|
+
onOrange: BLUIColors.primary[100],
|
|
75
|
+
// Standout fill orange color against surface
|
|
76
|
+
orangeContainer: BLUIColors.orange[90],
|
|
77
|
+
// Text and icons against orange container
|
|
78
|
+
onOrangeContainer: BLUIColors.orange[30],
|
|
79
|
+
// purple color variant fills, texts, and icons
|
|
80
|
+
purple: BLUIColors.purple[40],
|
|
81
|
+
// non-text purple variant can be used on non-text elements like icons
|
|
82
|
+
purpleNonText: BLUIColors.purple[50],
|
|
83
|
+
// can be used on text and icons against purple
|
|
84
|
+
onPurple: BLUIColors.primary[100],
|
|
85
|
+
// Standout fill purple color against surface
|
|
86
|
+
purpleContainer: BLUIColors.purple[90],
|
|
87
|
+
// Text and icons against purple container
|
|
88
|
+
onPurpleContainer: BLUIColors.purple[30],
|
|
89
|
+
// Surface container is the default role, but the others are especially helpful for creating hierarchy and nested containers
|
|
90
|
+
// Lowest-emphasis container color
|
|
91
|
+
surfaceContainerLowest: BLUIColors.primary[100],
|
|
92
|
+
// Low-emphasis container color
|
|
93
|
+
surfaceContainerLow: BLUIColors.neutral[97],
|
|
94
|
+
// Default container color
|
|
95
|
+
surfaceContainer: BLUIColors.neutral[94],
|
|
96
|
+
// High-emphasis container color
|
|
97
|
+
surfaceContainerHigh: BLUIColors.neutral[92],
|
|
98
|
+
// Highest-emphasis container color
|
|
99
|
+
surfaceContainerHighest: BLUIColors.neutral[90],
|
|
100
|
+
// This is alias for surface disabled, used as disabled container background
|
|
101
|
+
disabledContainer: Color(BLUIColors.neutral[10]).alpha(0.05).rgb().string(),
|
|
102
|
+
// Text and icons against disable container
|
|
103
|
+
onDisabledContainer: Color(BLUIColors.neutral[10]).alpha(0.25).rgb().string(),
|
|
104
|
+
// Can be used on slider and range selector track
|
|
105
|
+
sliderTrack: BLUIColors.neutral[80],
|
|
106
|
+
// Disabled version of slider track color variant
|
|
107
|
+
sliderTrackDisabled: Color(BLUIColors.neutral[80]).alpha(0.3).rgb().string(),
|
|
108
|
+
// Attention-grabbing color against error filled surface
|
|
109
|
+
errorFilledContainer: BLUIColors.error[40],
|
|
110
|
+
// Text and icons against error filled container
|
|
111
|
+
onErrorFilledContainer: BLUIColors.error[100],
|
|
112
|
+
// Attention-grabbing color against error shaded surface
|
|
113
|
+
errorShadedContainer: Color(BLUIColors.error[40]).alpha(0.15).rgb().string(),
|
|
114
|
+
// Text and icons against error shaded container
|
|
115
|
+
onErrorShadedContainer: BLUIColors.error[30],
|
|
116
|
+
// Attention-grabbing color against error outlined container
|
|
117
|
+
errorOutlinedContainerOutline: BLUIColors.error[40],
|
|
118
|
+
// Text and icons against error outlined container
|
|
119
|
+
onErrorOutlinedContainer: BLUIColors.error[40],
|
|
120
|
+
// Orange color against orange filled surface
|
|
121
|
+
orangeFilledContainer: BLUIColors.orange[70],
|
|
122
|
+
// Text and icons against orange filled container
|
|
123
|
+
onOrangeFilledContainer: BLUIColors.orange[20],
|
|
124
|
+
// Orange color against orange shaded surface
|
|
125
|
+
orangeShadedContainer: Color(BLUIColors.orange[70]).alpha(0.2).rgb().string(),
|
|
126
|
+
// Text and icons against orange shaded container
|
|
127
|
+
onOrangeShadedContainer: BLUIColors.orange[30],
|
|
128
|
+
// Orange color against orange outlined surface
|
|
129
|
+
orangeOutlinedContainer: BLUIColors.orange[70],
|
|
130
|
+
// Text and icons against orange outlined container
|
|
131
|
+
onOrangeOutlinedContainer: BLUIColors.orange[40],
|
|
132
|
+
// Warning color against warning filled surface
|
|
133
|
+
warningFilledContainer: BLUIColors.warning[90],
|
|
134
|
+
// Text and icons against warning filled container
|
|
135
|
+
onWarningFilledContainer: BLUIColors.warning[30],
|
|
136
|
+
// Warning color against warning shaded surface
|
|
137
|
+
warningShadedContainer: Color(BLUIColors.warning[90]).alpha(0.5).rgb().string(),
|
|
138
|
+
// Text and icons against warning shaded container
|
|
139
|
+
onWarningShadedContainer: BLUIColors.warning[30],
|
|
140
|
+
// Warning color against warning outlined container
|
|
141
|
+
warningOutlinedContainerOutline: BLUIColors.warning[80],
|
|
142
|
+
// Text and icons against warning outlined container
|
|
143
|
+
onWarningOutlinedContainer: BLUIColors.warning[40],
|
|
144
|
+
// Attention-grabbing color against success filled container
|
|
145
|
+
successFilledContainer: BLUIColors.success[50],
|
|
146
|
+
// Text and icons against success filled container
|
|
147
|
+
onSuccessFilledContainer: BLUIColors.success[100],
|
|
148
|
+
// Attention-grabbing color against success shaded surface
|
|
149
|
+
successShadedContainer: Color(BLUIColors.success[40]).alpha(0.15).rgb().string(),
|
|
150
|
+
// Attention-grabbing label color against success shaded surface
|
|
151
|
+
successShadedLabel: BLUIColors.success[30],
|
|
152
|
+
// Attention-grabbing color against success container
|
|
153
|
+
successOutlinedContainerOutline: BLUIColors.success[50],
|
|
154
|
+
// Text and icons against success outlined container
|
|
155
|
+
onSuccessOutlinedContainer: BLUIColors.success[40],
|
|
156
|
+
// Primary color against primary filled surface
|
|
157
|
+
primaryFilledContainer: BLUIColors.primary[50],
|
|
158
|
+
// Text and icons against primary filled container
|
|
159
|
+
onPrimaryFilledContainer: BLUIColors.primary[100],
|
|
160
|
+
// Primary color against primary shaded surface
|
|
161
|
+
primaryShadedContainer: Color(BLUIColors.primary[40]).alpha(0.15).rgb().string(),
|
|
162
|
+
// Text and icons against primary shaded container
|
|
163
|
+
onPrimaryShadedContainer: BLUIColors.primary[30],
|
|
164
|
+
// Primary color against primary outlined container
|
|
165
|
+
primaryOutlinedContainerOutline: BLUIColors.primary[50],
|
|
166
|
+
// Text and icons against primary outlined container
|
|
167
|
+
onPrimaryOutlinedContainer: BLUIColors.primary[40],
|
|
168
|
+
// Purple color against purple filled surface
|
|
169
|
+
purpleFilledContainer: BLUIColors.purple[50],
|
|
170
|
+
// Text and icons against purple filled container
|
|
171
|
+
onPurpleFilledContainer: BLUIColors.purple[100],
|
|
172
|
+
// Purple color against purple shaded surface
|
|
173
|
+
purpleShadedContainer: Color(BLUIColors.purple[40]).alpha(0.15).rgb().string(),
|
|
174
|
+
// Text and icons against purple shaded container
|
|
175
|
+
onPurpleShadedContainer: BLUIColors.purple[30],
|
|
176
|
+
// Purple color against purple outlined container
|
|
177
|
+
purpleOutlinedContainerOutline: BLUIColors.purple[50],
|
|
178
|
+
// Text and icons against purple outlined container
|
|
179
|
+
onPurpleOutlinedContainer: BLUIColors.purple[40],
|
|
180
|
+
// Neutral color against neutral filled surface
|
|
181
|
+
neutralFilledContainer: BLUIColors.neutral[50],
|
|
182
|
+
// Text and icons against neutral filled container
|
|
183
|
+
onNeutralFilledContainer: BLUIColors.neutral[100],
|
|
184
|
+
// Neutral color against neutral shaded surface
|
|
185
|
+
neutralShadedContainer: Color(BLUIColors.neutral[50]).alpha(0.2).rgb().string(),
|
|
186
|
+
// Text and icons against neutral shaded container
|
|
187
|
+
onNeutralShadedContainer: BLUIColors.neutral[30],
|
|
188
|
+
// Neutral color against neutral outlined container
|
|
189
|
+
neutralOutlinedContainerOutline: BLUIColors.neutralVariant[50],
|
|
190
|
+
// Text and icons against Neutral outlined container
|
|
191
|
+
onNeutralOutlinedContainer: BLUIColors.neutralVariant[30],
|
|
192
|
+
// Standout fill text field color against surface
|
|
193
|
+
textFieldContainer: Color(BLUIColors.neutral[80]).alpha(0.4).rgb().string(),
|
|
194
|
+
// Progress bar track on status color against filled surface
|
|
195
|
+
progressBarTrackOnStatusFilledContainer: Color(BLUIColors.primary[0]).alpha(0.25).rgb().string(),
|
|
196
|
+
// Text outline color variant
|
|
197
|
+
mapTextOutline: Color(BLUIColors.primary[100]).alpha(0.7).rgb().string() }) });
|
package/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Copyright (c) 2021-present, Eaton
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
|
|
7
|
+
**/
|
|
8
|
+
export { MD3BluiLightTheme as blue } from './blueTheme';
|
|
9
|
+
export { MD3BluiDarkTheme as blueDark } from './blueDarkTheme';
|
|
10
|
+
export { useExtendedTheme, useFontWeight } from './shared';
|
package/package.json
CHANGED
|
@@ -2,36 +2,32 @@
|
|
|
2
2
|
"name": "@brightlayer-ui/react-native-themes",
|
|
3
3
|
"author": "Brightlayer UI <brightlayer-ui@eaton.com>",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
|
-
"version": "7.0.
|
|
5
|
+
"version": "7.0.3-alpha.0",
|
|
6
6
|
"description": "React Native themes for Brightlayer UI applications",
|
|
7
|
-
"main": "./
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
8
16
|
"scripts": {
|
|
9
|
-
"
|
|
10
|
-
"install:showcase-ios": "cd demos/showcase && yarn && cd ios && pod install && cd ../../.. && yarn link:themes",
|
|
11
|
-
"install:showcase-android": "cd demos/showcase && yarn && cd ../.. && yarn link:themes",
|
|
12
|
-
"start": "yarn start:showcase",
|
|
13
|
-
"start:showcase": "yarn initialize && yarn start:showcase-ios",
|
|
14
|
-
"start:showcase-ios": "yarn initialize && yarn install:showcase-ios && cd demos/showcase && yarn ios",
|
|
15
|
-
"start:showcase-android": "yarn initialize && yarn install:showcase-android && cd demos/showcase && yarn android",
|
|
16
|
-
"build": "yarn && tsc",
|
|
17
|
-
"link:themes": "bash ./scripts/linkThemes.sh",
|
|
17
|
+
"build": "bash ./scripts/buildThemes.sh",
|
|
18
18
|
"test": "bash ./scripts/buildTest.sh",
|
|
19
|
-
"publish:package": "set npm_config_yes=true && npx -p @brightlayer-ui/publish blui-publish",
|
|
20
|
-
"tag:package": "npx -p @brightlayer-ui/tag blui-tag -s -blui-react-native-themes",
|
|
21
|
-
"
|
|
22
|
-
"prettier": "prettier \"src/**/**.{ts,tsx,js,jsx,json,css,scss,html}\" --write",
|
|
23
|
-
"prettier:check": "prettier \"src/**/**.{ts,tsx,js,jsx,json,css,scss,html}\" --check",
|
|
24
|
-
"generate:licenses": "npm-license-crawler -onlyDirectDependencies -json LICENSES.json",
|
|
25
|
-
"precommit": "yarn build && yarn generate:licenses && yarn prettier && yarn test"
|
|
19
|
+
"publish:package": "cd dist && set npm_config_yes=true && npx -p @brightlayer-ui/publish blui-publish",
|
|
20
|
+
"tag:package": "cd dist && npx -p @brightlayer-ui/tag blui-tag -s -blui-react-native-themes",
|
|
21
|
+
"generate:licenses": "npm-license-crawler -onlyDirectDependencies -json LICENSES.json"
|
|
26
22
|
},
|
|
27
23
|
"repository": {
|
|
28
24
|
"type": "git",
|
|
29
|
-
"url": "git+https://github.com/etn-ccis/blui-react-native
|
|
25
|
+
"url": "git+https://github.com/etn-ccis/blui-react-native.git"
|
|
30
26
|
},
|
|
31
27
|
"bugs": {
|
|
32
|
-
"url": "https://github.com/etn-ccis/blui-react-native
|
|
28
|
+
"url": "https://github.com/etn-ccis/blui-react-native/issues"
|
|
33
29
|
},
|
|
34
|
-
"homepage": "https://github.com/etn-ccis/blui-react-native
|
|
30
|
+
"homepage": "https://github.com/etn-ccis/blui-react-native/tree/master",
|
|
35
31
|
"keywords": [
|
|
36
32
|
"Brightlayer UI",
|
|
37
33
|
"themes",
|
|
@@ -47,21 +43,13 @@
|
|
|
47
43
|
},
|
|
48
44
|
"devDependencies": {
|
|
49
45
|
"@brightlayer-ui/prettier-config": "^1.0.3",
|
|
50
|
-
"@types/color": "^
|
|
46
|
+
"@types/color": "^4.2.0",
|
|
51
47
|
"npm-license-crawler": "^0.2.1",
|
|
52
48
|
"prettier": "^3.0.0",
|
|
49
|
+
"react": "^18.2.0",
|
|
50
|
+
"react-native": "0.76.7",
|
|
53
51
|
"react-native-paper": "^5.0.0",
|
|
54
|
-
"typescript": "^5.0.4"
|
|
55
|
-
"react-native": "~0.72.6",
|
|
56
|
-
"react": "^18.2.0"
|
|
52
|
+
"typescript": "^5.0.4"
|
|
57
53
|
},
|
|
58
|
-
"prettier": "@brightlayer-ui/prettier-config"
|
|
59
|
-
"files": [
|
|
60
|
-
"package.json",
|
|
61
|
-
"README.md",
|
|
62
|
-
"LICENSE",
|
|
63
|
-
"LICENSES.json",
|
|
64
|
-
"CHANGELOG.md",
|
|
65
|
-
"/dist"
|
|
66
|
-
]
|
|
54
|
+
"prettier": "@brightlayer-ui/prettier-config"
|
|
67
55
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MD3Theme } from 'react-native-paper';
|
|
2
|
-
import { $DeepPartial } from '@callstack/react-theme-provider';
|
|
3
2
|
export declare const fontConfig: {
|
|
4
3
|
displaySmall: {
|
|
5
4
|
fontFamily: string;
|
|
@@ -220,10 +219,10 @@ export type ExtendedTheme = Omit<MD3Theme, 'colors'> & {
|
|
|
220
219
|
mapTextOutline: string;
|
|
221
220
|
};
|
|
222
221
|
};
|
|
223
|
-
export declare const useExtendedTheme: (overrides?:
|
|
224
|
-
export type
|
|
222
|
+
export declare const useExtendedTheme: (overrides?: import("@callstack/react-theme-provider").$DeepPartial<ExtendedTheme> | undefined) => ExtendedTheme;
|
|
223
|
+
export type BluiFontWeight = '300' | '400' | '600' | '700' | '800' | undefined;
|
|
225
224
|
export type FontStyle = {
|
|
226
225
|
fontFamily: string;
|
|
227
|
-
fontWeight:
|
|
226
|
+
fontWeight: BluiFontWeight;
|
|
228
227
|
};
|
|
229
|
-
export declare const useFontWeight: (weight:
|
|
228
|
+
export declare const useFontWeight: (weight: BluiFontWeight) => FontStyle;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.useFontWeight = exports.useExtendedTheme = exports.fontConfig = void 0;
|
|
4
|
-
var react_native_paper_1 = require("react-native-paper");
|
|
5
|
-
exports.fontConfig = {
|
|
1
|
+
import { useTheme } from 'react-native-paper';
|
|
2
|
+
export var fontConfig = {
|
|
6
3
|
displaySmall: {
|
|
7
4
|
fontFamily: 'OpenSans-Regular',
|
|
8
5
|
fontWeight: '400',
|
|
@@ -101,11 +98,8 @@ exports.fontConfig = {
|
|
|
101
98
|
letterSpacing: 0.15,
|
|
102
99
|
},
|
|
103
100
|
};
|
|
104
|
-
var useExtendedTheme =
|
|
105
|
-
|
|
106
|
-
};
|
|
107
|
-
exports.useExtendedTheme = useExtendedTheme;
|
|
108
|
-
var useFontWeight = function (weight) {
|
|
101
|
+
export var useExtendedTheme = (useTheme);
|
|
102
|
+
export var useFontWeight = function (weight) {
|
|
109
103
|
switch (weight) {
|
|
110
104
|
case '300':
|
|
111
105
|
return {
|
|
@@ -136,4 +130,3 @@ var useFontWeight = function (weight) {
|
|
|
136
130
|
throw new Error("Invalid font weight: ".concat(weight));
|
|
137
131
|
}
|
|
138
132
|
};
|
|
139
|
-
exports.useFontWeight = useFontWeight;
|
package/dist/blueDarkTheme.js
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
Copyright (c) 2020-present, Eaton
|
|
4
|
-
|
|
5
|
-
All rights reserved.
|
|
6
|
-
|
|
7
|
-
This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
|
|
8
|
-
**/
|
|
9
|
-
var __assign = (this && this.__assign) || function () {
|
|
10
|
-
__assign = Object.assign || function(t) {
|
|
11
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12
|
-
s = arguments[i];
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
};
|
|
18
|
-
return __assign.apply(this, arguments);
|
|
19
|
-
};
|
|
20
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.MD3BluiDarkTheme = void 0;
|
|
25
|
-
var react_native_paper_1 = require("react-native-paper");
|
|
26
|
-
var shared_1 = require("./shared");
|
|
27
|
-
var colors_1 = __importDefault(require("@brightlayer-ui/colors"));
|
|
28
|
-
var color_1 = __importDefault(require("color"));
|
|
29
|
-
exports.MD3BluiDarkTheme = __assign(__assign({}, react_native_paper_1.MD3DarkTheme), { fonts: (0, react_native_paper_1.configureFonts)({ config: shared_1.fontConfig }), colors: __assign(__assign({}, react_native_paper_1.MD3DarkTheme.colors), {
|
|
30
|
-
// React Native Paper default theme color variants
|
|
31
|
-
primary: colors_1.default.primary[80], onPrimary: colors_1.default.primary[20], primaryContainer: colors_1.default.primary[30], onPrimaryContainer: colors_1.default.primary[90], secondary: colors_1.default.primary[80], onSecondary: colors_1.default.primary[20], secondaryContainer: colors_1.default.primary[30], onSecondaryContainer: colors_1.default.primary[90], tertiary: colors_1.default.primary[80], onTertiary: colors_1.default.primary[20], tertiaryContainer: colors_1.default.primary[30], onTertiaryContainer: colors_1.default.primary[90], error: colors_1.default.error[80], onError: colors_1.default.error[20], errorContainer: colors_1.default.error[30], onErrorContainer: colors_1.default.error[90], background: colors_1.default.neutral[6], onBackground: colors_1.default.neutral[95], surface: colors_1.default.neutral[6], onSurface: colors_1.default.neutral[95], surfaceVariant: colors_1.default.neutralVariant[30], onSurfaceVariant: colors_1.default.neutralVariant[70], outline: colors_1.default.neutralVariant[60], outlineVariant: (0, color_1.default)(colors_1.default.neutralVariant[60]).alpha(0.25).rgb().string(), shadow: colors_1.default.primary[0], scrim: colors_1.default.primary[0], inverseSurface: colors_1.default.neutral[90], inverseOnSurface: colors_1.default.neutral[10], inversePrimary: colors_1.default.primary[40], elevation: {
|
|
32
|
-
level0: 'transparent',
|
|
33
|
-
// level1 is the same as surfaceContainerLowest in design files
|
|
34
|
-
level1: colors_1.default.neutral[4],
|
|
35
|
-
// level2 is the same as surfaceContainerLow in design files
|
|
36
|
-
level2: colors_1.default.neutral[10],
|
|
37
|
-
// level3 is the same as surfaceContainer in design files
|
|
38
|
-
level3: colors_1.default.neutral[12],
|
|
39
|
-
// level4 is the same as surfaceContainerHigh in design files
|
|
40
|
-
level4: colors_1.default.neutral[17],
|
|
41
|
-
// level5 is the same as surfaceContainerHighest in design files
|
|
42
|
-
level5: colors_1.default.neutral[20],
|
|
43
|
-
},
|
|
44
|
-
// surfaceDisabled is the same as disabledContainer in design files
|
|
45
|
-
surfaceDisabled: (0, color_1.default)(colors_1.default.neutral[95]).alpha(0.1).rgb().string(),
|
|
46
|
-
// onSurfaceDisabled is the same as onDisabledContainer in design files
|
|
47
|
-
onSurfaceDisabled: (0, color_1.default)(colors_1.default.neutral[95]).alpha(0.15).rgb().string(), backdrop: (0, color_1.default)(colors_1.default.primary[0]).alpha(0.32).rgb().string(),
|
|
48
|
-
// Custom color variants
|
|
49
|
-
// High-emphasis primary non-text variant, can be used on non-text elements like icons
|
|
50
|
-
primaryNonText: colors_1.default.primary[60],
|
|
51
|
-
// Attention-grabbing error color can be used on non-text elements like icons, which communicate error states
|
|
52
|
-
errorNonText: colors_1.default.error[60],
|
|
53
|
-
// variant used to render disabled elements
|
|
54
|
-
disabled: (0, color_1.default)(colors_1.default.neutral[95]).alpha(0.25).rgb().string(),
|
|
55
|
-
// warning variant fills, texts, and icons which communicate warning states
|
|
56
|
-
warning: colors_1.default.warning[90],
|
|
57
|
-
// can be used on non-text warning elements like icons
|
|
58
|
-
warningNonText: colors_1.default.warning[80],
|
|
59
|
-
// can be used on warning text and icons against warning
|
|
60
|
-
onWarning: colors_1.default.warning[20],
|
|
61
|
-
// Standout fill warning color against surface
|
|
62
|
-
warningContainer: colors_1.default.warning[30],
|
|
63
|
-
// Text and icons against warning container
|
|
64
|
-
onWarningContainer: colors_1.default.warning[90],
|
|
65
|
-
// success color variant fills, texts, and icons which communicate success states
|
|
66
|
-
success: colors_1.default.success[80],
|
|
67
|
-
// can be used on non-text success elements like icons
|
|
68
|
-
successNonText: colors_1.default.success[70],
|
|
69
|
-
// can be used on success text and icons against success
|
|
70
|
-
onSuccess: colors_1.default.success[20],
|
|
71
|
-
// Standout fill success color against surface
|
|
72
|
-
successContainer: colors_1.default.success[30],
|
|
73
|
-
// Text and icons against success container
|
|
74
|
-
onSuccessContainer: colors_1.default.success[90],
|
|
75
|
-
// orange color variant fills, texts, and icons
|
|
76
|
-
orange: colors_1.default.orange[80],
|
|
77
|
-
// non-text orange variant can be used on non-text elements like icons
|
|
78
|
-
orangeNonText: colors_1.default.orange[70],
|
|
79
|
-
// can be used on text and icons against orange
|
|
80
|
-
onOrange: colors_1.default.orange[20],
|
|
81
|
-
// Standout fill orange color against surface
|
|
82
|
-
orangeContainer: colors_1.default.orange[30],
|
|
83
|
-
// Text and icons against orange container
|
|
84
|
-
onOrangeContainer: colors_1.default.orange[90],
|
|
85
|
-
// purple color variant fills, texts, and icons
|
|
86
|
-
purple: colors_1.default.purple[80],
|
|
87
|
-
// non-text purple variant can be used on non-text elements like icons
|
|
88
|
-
purpleNonText: colors_1.default.purple[60],
|
|
89
|
-
// can be used on text and icons against purple
|
|
90
|
-
onPurple: colors_1.default.purple[20],
|
|
91
|
-
// Standout fill purple color against surface
|
|
92
|
-
purpleContainer: colors_1.default.purple[30],
|
|
93
|
-
// Text and icons against purple container
|
|
94
|
-
onPurpleContainer: colors_1.default.purple[90],
|
|
95
|
-
// Surface container is the default role, but the others are especially helpful for creating hierarchy and nested containers
|
|
96
|
-
// Lowest-emphasis container color
|
|
97
|
-
surfaceContainerLowest: colors_1.default.neutral[4],
|
|
98
|
-
// Low-emphasis container color
|
|
99
|
-
surfaceContainerLow: colors_1.default.neutral[10],
|
|
100
|
-
// Default container color
|
|
101
|
-
surfaceContainer: colors_1.default.neutral[12],
|
|
102
|
-
// High-emphasis container color
|
|
103
|
-
surfaceContainerHigh: colors_1.default.neutral[17],
|
|
104
|
-
// Highest-emphasis container color
|
|
105
|
-
surfaceContainerHighest: colors_1.default.neutral[20],
|
|
106
|
-
// This is alias for surface disabled, used as disabled container background
|
|
107
|
-
disabledContainer: (0, color_1.default)(colors_1.default.neutral[95]).alpha(0.1).rgb().string(),
|
|
108
|
-
// Text and icons against disable container
|
|
109
|
-
onDisabledContainer: (0, color_1.default)(colors_1.default.neutral[95]).alpha(0.15).rgb().string(),
|
|
110
|
-
// Can be used on slider and range selector track
|
|
111
|
-
sliderTrack: colors_1.default.neutral[30],
|
|
112
|
-
// Disabled version of slider track color variant
|
|
113
|
-
sliderTrackDisabled: (0, color_1.default)(colors_1.default.neutral[30]).alpha(0.5).rgb().string(),
|
|
114
|
-
// Attention-grabbing color against error filled surface
|
|
115
|
-
errorFilledContainer: colors_1.default.error[40],
|
|
116
|
-
// Text and icons against error filled container
|
|
117
|
-
onErrorFilledContainer: colors_1.default.error[100],
|
|
118
|
-
// Attention-grabbing color against error shaded surface
|
|
119
|
-
errorShadedContainer: (0, color_1.default)(colors_1.default.error[40]).alpha(0.3).rgb().string(),
|
|
120
|
-
// Text and icons against error shaded container
|
|
121
|
-
onErrorShadedContainer: colors_1.default.error[80],
|
|
122
|
-
// Attention-grabbing color against error outlined container
|
|
123
|
-
errorOutlinedContainerOutline: colors_1.default.error[60],
|
|
124
|
-
// Text and icons against error outlined container
|
|
125
|
-
onErrorOutlinedContainerOutline: colors_1.default.error[80],
|
|
126
|
-
// Orange color against orange filled surface
|
|
127
|
-
orangeFilledContainer: colors_1.default.orange[70],
|
|
128
|
-
// Text and icons against orange filled container
|
|
129
|
-
onOrangeFilledContainer: colors_1.default.orange[20],
|
|
130
|
-
// Orange color against orange shaded surface
|
|
131
|
-
orangeShadedContainer: (0, color_1.default)(colors_1.default.orange[70]).alpha(0.15).rgb().string(),
|
|
132
|
-
// Text and icons against orange shaded container
|
|
133
|
-
onOrangeShadedContainer: colors_1.default.orange[80],
|
|
134
|
-
// Orange color against orange outlined surface
|
|
135
|
-
orangeOutlinedContainer: colors_1.default.orange[70],
|
|
136
|
-
// Text and icons against orange outlined container
|
|
137
|
-
onOrangeOutlinedContainer: colors_1.default.orange[80],
|
|
138
|
-
// Warning color against warning filled surface
|
|
139
|
-
warningFilledContainer: colors_1.default.warning[80],
|
|
140
|
-
// Text and icons against warning filled container
|
|
141
|
-
onWarningFilledContainer: colors_1.default.warning[30],
|
|
142
|
-
// Warning color against warning shaded surface
|
|
143
|
-
warningShadedContainer: (0, color_1.default)(colors_1.default.warning[90]).alpha(0.1).rgb().string(),
|
|
144
|
-
// Text and icons against warning shaded container
|
|
145
|
-
onWarningShadedContainer: colors_1.default.warning[90],
|
|
146
|
-
// Warning color against warning outlined container surface
|
|
147
|
-
warningOutlinedContainerOutline: colors_1.default.warning[90],
|
|
148
|
-
// Text and icons against warning outlined container surface
|
|
149
|
-
onWarningOutlinedContainer: colors_1.default.warning[90],
|
|
150
|
-
// Attention-grabbing color against success filled container
|
|
151
|
-
successFilledContainer: colors_1.default.success[50],
|
|
152
|
-
// Text and icons against success filled container
|
|
153
|
-
onSuccessFilledContainer: colors_1.default.success[100],
|
|
154
|
-
// Attention-grabbing color against success shaded surface
|
|
155
|
-
successShadedContainer: (0, color_1.default)(colors_1.default.success[40]).alpha(0.3).rgb().string(),
|
|
156
|
-
// Attention-grabbing label color against success shaded surface
|
|
157
|
-
successShadedLabel: colors_1.default.success[90],
|
|
158
|
-
// Attention-grabbing color against success container
|
|
159
|
-
successOutlinedContainerOutline: colors_1.default.success[70],
|
|
160
|
-
// Text and icons against success outlined container
|
|
161
|
-
onSuccessOutlinedContainer: colors_1.default.success[80],
|
|
162
|
-
// Primary color against primary filled surface
|
|
163
|
-
primaryFilledContainer: colors_1.default.primary[50],
|
|
164
|
-
// Text and icons against primary filled container
|
|
165
|
-
onPrimaryFilledContainer: colors_1.default.primary[100],
|
|
166
|
-
// Primary color against primary shaded surface
|
|
167
|
-
primaryShadedContainer: (0, color_1.default)(colors_1.default.primary[40]).alpha(0.4).rgb().string(),
|
|
168
|
-
// Text and icons against primary shaded container
|
|
169
|
-
onPrimaryShadedContainer: colors_1.default.primary[80],
|
|
170
|
-
// Primary color against primary outlined container
|
|
171
|
-
primaryOutlinedContainerOutline: colors_1.default.primary[60],
|
|
172
|
-
// Text and icons against primary outlined container
|
|
173
|
-
onPrimaryOutlinedContainer: colors_1.default.primary[70],
|
|
174
|
-
// Purple color against purple filled surface
|
|
175
|
-
purpleFilledContainer: colors_1.default.purple[50],
|
|
176
|
-
// Text and icons against purple filled container
|
|
177
|
-
onPurpleFilledContainer: colors_1.default.purple[100],
|
|
178
|
-
// Purple color against purple shaded surface
|
|
179
|
-
purpleShadedContainer: (0, color_1.default)(colors_1.default.purple[40]).alpha(0.4).rgb().string(),
|
|
180
|
-
// Text and icons against purple shaded container
|
|
181
|
-
onPurpleShadedContainer: colors_1.default.purple[80],
|
|
182
|
-
// Purple color against purple outlined container
|
|
183
|
-
purpleOutlinedContainerOutline: colors_1.default.purple[50],
|
|
184
|
-
// Text and icons against purple outlined container
|
|
185
|
-
onPurpleOutlinedContainer: colors_1.default.purple[70],
|
|
186
|
-
// Neutral color against neutral filled surface
|
|
187
|
-
neutralFilledContainer: colors_1.default.neutral[50],
|
|
188
|
-
// Text and icons against neutral filled container
|
|
189
|
-
onNeutralFilledContainer: colors_1.default.neutral[100],
|
|
190
|
-
// Neutral color against neutral shaded surface
|
|
191
|
-
neutralShadedContainer: (0, color_1.default)(colors_1.default.neutral[50]).alpha(0.4).rgb().string(),
|
|
192
|
-
// Text and icons against neutral shaded container
|
|
193
|
-
onNeutralShadedContainer: colors_1.default.neutral[80],
|
|
194
|
-
// Neutral color against neutral outlined container
|
|
195
|
-
neutralOutlinedContainerOutline: colors_1.default.neutralVariant[60],
|
|
196
|
-
// Text and icons against Neutral outlined container
|
|
197
|
-
onNeutralOutlinedContainer: colors_1.default.neutralVariant[70],
|
|
198
|
-
// Standout fill text field color against surface
|
|
199
|
-
textFieldContainer: (0, color_1.default)(colors_1.default.neutral[80]).alpha(0.2).rgb().string(),
|
|
200
|
-
// Progress bar track on status color against filled surface
|
|
201
|
-
progressBarTrackOnStatusFilledContainer: (0, color_1.default)(colors_1.default.primary[0]).alpha(0.25).rgb().string(),
|
|
202
|
-
// Text outline color variant
|
|
203
|
-
mapTextOutline: (0, color_1.default)(colors_1.default.primary[0]).alpha(0.7).rgb().string() }) });
|
package/dist/blueTheme.js
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
Copyright (c) 2020-present, Eaton
|
|
4
|
-
|
|
5
|
-
All rights reserved.
|
|
6
|
-
|
|
7
|
-
This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
|
|
8
|
-
**/
|
|
9
|
-
var __assign = (this && this.__assign) || function () {
|
|
10
|
-
__assign = Object.assign || function(t) {
|
|
11
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
12
|
-
s = arguments[i];
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
};
|
|
18
|
-
return __assign.apply(this, arguments);
|
|
19
|
-
};
|
|
20
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.MD3BluiLightTheme = void 0;
|
|
25
|
-
var react_native_paper_1 = require("react-native-paper");
|
|
26
|
-
var colors_1 = __importDefault(require("@brightlayer-ui/colors"));
|
|
27
|
-
var shared_1 = require("./shared");
|
|
28
|
-
var color_1 = __importDefault(require("color"));
|
|
29
|
-
exports.MD3BluiLightTheme = __assign(__assign({}, react_native_paper_1.MD3LightTheme), { fonts: (0, react_native_paper_1.configureFonts)({ config: shared_1.fontConfig }), colors: __assign(__assign({}, react_native_paper_1.MD3LightTheme.colors), {
|
|
30
|
-
// React Native Paper default theme color variants
|
|
31
|
-
primary: colors_1.default.primary[40], onPrimary: colors_1.default.primary[100], primaryContainer: colors_1.default.primary[80], onPrimaryContainer: colors_1.default.primary[30], secondary: colors_1.default.primary[40], onSecondary: colors_1.default.primary[100], secondaryContainer: colors_1.default.primary[80], onSecondaryContainer: colors_1.default.primary[30], tertiary: colors_1.default.primary[40], onTertiary: colors_1.default.primary[100], tertiaryContainer: colors_1.default.primary[80], onTertiaryContainer: colors_1.default.primary[30], error: colors_1.default.error[40], onError: colors_1.default.primary[100], errorContainer: colors_1.default.error[90], onErrorContainer: colors_1.default.error[30], background: colors_1.default.neutral[98], onBackground: colors_1.default.neutral[10], surface: colors_1.default.neutral[98], onSurface: colors_1.default.neutral[10], surfaceVariant: colors_1.default.neutralVariant[90], onSurfaceVariant: colors_1.default.neutralVariant[30], outline: colors_1.default.neutralVariant[50], outlineVariant: (0, color_1.default)(colors_1.default.neutralVariant[50]).alpha(0.25).rgb().string(), shadow: colors_1.default.primary[0], scrim: colors_1.default.primary[0], inverseSurface: colors_1.default.neutral[20], inverseOnSurface: colors_1.default.neutral[95], inversePrimary: colors_1.default.primary[80], elevation: {
|
|
32
|
-
level0: 'transparent',
|
|
33
|
-
// level1 is the same as surfaceContainerLowest in design files
|
|
34
|
-
level1: colors_1.default.primary[100],
|
|
35
|
-
// level2 is the same as surfaceContainerLow in design files
|
|
36
|
-
level2: colors_1.default.neutral[97],
|
|
37
|
-
// level3 is the same as surfaceContainer in design files
|
|
38
|
-
level3: colors_1.default.neutral[94],
|
|
39
|
-
// level4 is the same as surfaceContainerHigh in design files
|
|
40
|
-
level4: colors_1.default.neutral[92],
|
|
41
|
-
// level5 is the same as surfaceContainerHighest in design files
|
|
42
|
-
level5: colors_1.default.neutral[90],
|
|
43
|
-
},
|
|
44
|
-
// surfaceDisabled is the same as disabledContainer in design files
|
|
45
|
-
surfaceDisabled: (0, color_1.default)(colors_1.default.neutral[10]).alpha(0.05).rgb().string(),
|
|
46
|
-
// onSurfaceDisabled is the same as onDisabledContainer in design files
|
|
47
|
-
onSurfaceDisabled: (0, color_1.default)(colors_1.default.neutral[10]).alpha(0.25).rgb().string(), backdrop: (0, color_1.default)(colors_1.default.primary[0]).alpha(0.32).rgb().string(),
|
|
48
|
-
// Custom color variants
|
|
49
|
-
// High-emphasis primary non-text variant, can be used on non-text elements like icons
|
|
50
|
-
primaryNonText: colors_1.default.primary[50],
|
|
51
|
-
// Attention-grabbing error color can be used on non-text elements like icons, which communicate error states
|
|
52
|
-
errorNonText: colors_1.default.error[50],
|
|
53
|
-
// variant used to render disabled elements
|
|
54
|
-
disabled: (0, color_1.default)(colors_1.default.neutral[10]).alpha(0.2).rgb().string(),
|
|
55
|
-
// warning variant fills, texts, and icons which communicate warning states
|
|
56
|
-
warning: colors_1.default.warning[40],
|
|
57
|
-
// can be used on non-text warning elements like icons
|
|
58
|
-
warningNonText: colors_1.default.warning[60],
|
|
59
|
-
// can be used on warning text and icons against warning
|
|
60
|
-
onWarning: colors_1.default.primary[100],
|
|
61
|
-
// Standout fill warning color against surface
|
|
62
|
-
warningContainer: colors_1.default.warning[90],
|
|
63
|
-
// Text and icons against warning container
|
|
64
|
-
onWarningContainer: colors_1.default.warning[30],
|
|
65
|
-
// success color variant fills, texts, and icons which communicate success states
|
|
66
|
-
success: colors_1.default.success[40],
|
|
67
|
-
// can be used on non-text success elements like icons
|
|
68
|
-
successNonText: colors_1.default.success[50],
|
|
69
|
-
// can be used on success text and icons against success
|
|
70
|
-
onSuccess: colors_1.default.primary[100],
|
|
71
|
-
// Standout fill success color against surface
|
|
72
|
-
successContainer: colors_1.default.success[90],
|
|
73
|
-
// Text and icons against success container
|
|
74
|
-
onSuccessContainer: colors_1.default.success[30],
|
|
75
|
-
// orange color variant fills, texts, and icons
|
|
76
|
-
orange: colors_1.default.orange[40],
|
|
77
|
-
// non-text orange variant can be used on non-text elements like icons
|
|
78
|
-
orangeNonText: colors_1.default.orange[50],
|
|
79
|
-
// can be used on text and icons against orange
|
|
80
|
-
onOrange: colors_1.default.primary[100],
|
|
81
|
-
// Standout fill orange color against surface
|
|
82
|
-
orangeContainer: colors_1.default.orange[90],
|
|
83
|
-
// Text and icons against orange container
|
|
84
|
-
onOrangeContainer: colors_1.default.orange[30],
|
|
85
|
-
// purple color variant fills, texts, and icons
|
|
86
|
-
purple: colors_1.default.purple[40],
|
|
87
|
-
// non-text purple variant can be used on non-text elements like icons
|
|
88
|
-
purpleNonText: colors_1.default.purple[50],
|
|
89
|
-
// can be used on text and icons against purple
|
|
90
|
-
onPurple: colors_1.default.primary[100],
|
|
91
|
-
// Standout fill purple color against surface
|
|
92
|
-
purpleContainer: colors_1.default.purple[90],
|
|
93
|
-
// Text and icons against purple container
|
|
94
|
-
onPurpleContainer: colors_1.default.purple[30],
|
|
95
|
-
// Surface container is the default role, but the others are especially helpful for creating hierarchy and nested containers
|
|
96
|
-
// Lowest-emphasis container color
|
|
97
|
-
surfaceContainerLowest: colors_1.default.primary[100],
|
|
98
|
-
// Low-emphasis container color
|
|
99
|
-
surfaceContainerLow: colors_1.default.neutral[97],
|
|
100
|
-
// Default container color
|
|
101
|
-
surfaceContainer: colors_1.default.neutral[94],
|
|
102
|
-
// High-emphasis container color
|
|
103
|
-
surfaceContainerHigh: colors_1.default.neutral[92],
|
|
104
|
-
// Highest-emphasis container color
|
|
105
|
-
surfaceContainerHighest: colors_1.default.neutral[90],
|
|
106
|
-
// This is alias for surface disabled, used as disabled container background
|
|
107
|
-
disabledContainer: (0, color_1.default)(colors_1.default.neutral[10]).alpha(0.05).rgb().string(),
|
|
108
|
-
// Text and icons against disable container
|
|
109
|
-
onDisabledContainer: (0, color_1.default)(colors_1.default.neutral[10]).alpha(0.25).rgb().string(),
|
|
110
|
-
// Can be used on slider and range selector track
|
|
111
|
-
sliderTrack: colors_1.default.neutral[80],
|
|
112
|
-
// Disabled version of slider track color variant
|
|
113
|
-
sliderTrackDisabled: (0, color_1.default)(colors_1.default.neutral[80]).alpha(0.3).rgb().string(),
|
|
114
|
-
// Attention-grabbing color against error filled surface
|
|
115
|
-
errorFilledContainer: colors_1.default.error[40],
|
|
116
|
-
// Text and icons against error filled container
|
|
117
|
-
onErrorFilledContainer: colors_1.default.error[100],
|
|
118
|
-
// Attention-grabbing color against error shaded surface
|
|
119
|
-
errorShadedContainer: (0, color_1.default)(colors_1.default.error[40]).alpha(0.15).rgb().string(),
|
|
120
|
-
// Text and icons against error shaded container
|
|
121
|
-
onErrorShadedContainer: colors_1.default.error[30],
|
|
122
|
-
// Attention-grabbing color against error outlined container
|
|
123
|
-
errorOutlinedContainerOutline: colors_1.default.error[40],
|
|
124
|
-
// Text and icons against error outlined container
|
|
125
|
-
onErrorOutlinedContainer: colors_1.default.error[40],
|
|
126
|
-
// Orange color against orange filled surface
|
|
127
|
-
orangeFilledContainer: colors_1.default.orange[70],
|
|
128
|
-
// Text and icons against orange filled container
|
|
129
|
-
onOrangeFilledContainer: colors_1.default.orange[20],
|
|
130
|
-
// Orange color against orange shaded surface
|
|
131
|
-
orangeShadedContainer: (0, color_1.default)(colors_1.default.orange[70]).alpha(0.2).rgb().string(),
|
|
132
|
-
// Text and icons against orange shaded container
|
|
133
|
-
onOrangeShadedContainer: colors_1.default.orange[30],
|
|
134
|
-
// Orange color against orange outlined surface
|
|
135
|
-
orangeOutlinedContainer: colors_1.default.orange[70],
|
|
136
|
-
// Text and icons against orange outlined container
|
|
137
|
-
onOrangeOutlinedContainer: colors_1.default.orange[40],
|
|
138
|
-
// Warning color against warning filled surface
|
|
139
|
-
warningFilledContainer: colors_1.default.warning[90],
|
|
140
|
-
// Text and icons against warning filled container
|
|
141
|
-
onWarningFilledContainer: colors_1.default.warning[30],
|
|
142
|
-
// Warning color against warning shaded surface
|
|
143
|
-
warningShadedContainer: (0, color_1.default)(colors_1.default.warning[90]).alpha(0.5).rgb().string(),
|
|
144
|
-
// Text and icons against warning shaded container
|
|
145
|
-
onWarningShadedContainer: colors_1.default.warning[30],
|
|
146
|
-
// Warning color against warning outlined container
|
|
147
|
-
warningOutlinedContainerOutline: colors_1.default.warning[80],
|
|
148
|
-
// Text and icons against warning outlined container
|
|
149
|
-
onWarningOutlinedContainer: colors_1.default.warning[40],
|
|
150
|
-
// Attention-grabbing color against success filled container
|
|
151
|
-
successFilledContainer: colors_1.default.success[50],
|
|
152
|
-
// Text and icons against success filled container
|
|
153
|
-
onSuccessFilledContainer: colors_1.default.success[100],
|
|
154
|
-
// Attention-grabbing color against success shaded surface
|
|
155
|
-
successShadedContainer: (0, color_1.default)(colors_1.default.success[40]).alpha(0.15).rgb().string(),
|
|
156
|
-
// Attention-grabbing label color against success shaded surface
|
|
157
|
-
successShadedLabel: colors_1.default.success[30],
|
|
158
|
-
// Attention-grabbing color against success container
|
|
159
|
-
successOutlinedContainerOutline: colors_1.default.success[50],
|
|
160
|
-
// Text and icons against success outlined container
|
|
161
|
-
onSuccessOutlinedContainer: colors_1.default.success[40],
|
|
162
|
-
// Primary color against primary filled surface
|
|
163
|
-
primaryFilledContainer: colors_1.default.primary[50],
|
|
164
|
-
// Text and icons against primary filled container
|
|
165
|
-
onPrimaryFilledContainer: colors_1.default.primary[100],
|
|
166
|
-
// Primary color against primary shaded surface
|
|
167
|
-
primaryShadedContainer: (0, color_1.default)(colors_1.default.primary[40]).alpha(0.15).rgb().string(),
|
|
168
|
-
// Text and icons against primary shaded container
|
|
169
|
-
onPrimaryShadedContainer: colors_1.default.primary[30],
|
|
170
|
-
// Primary color against primary outlined container
|
|
171
|
-
primaryOutlinedContainerOutline: colors_1.default.primary[50],
|
|
172
|
-
// Text and icons against primary outlined container
|
|
173
|
-
onPrimaryOutlinedContainer: colors_1.default.primary[40],
|
|
174
|
-
// Purple color against purple filled surface
|
|
175
|
-
purpleFilledContainer: colors_1.default.purple[50],
|
|
176
|
-
// Text and icons against purple filled container
|
|
177
|
-
onPurpleFilledContainer: colors_1.default.purple[100],
|
|
178
|
-
// Purple color against purple shaded surface
|
|
179
|
-
purpleShadedContainer: (0, color_1.default)(colors_1.default.purple[40]).alpha(0.15).rgb().string(),
|
|
180
|
-
// Text and icons against purple shaded container
|
|
181
|
-
onPurpleShadedContainer: colors_1.default.purple[30],
|
|
182
|
-
// Purple color against purple outlined container
|
|
183
|
-
purpleOutlinedContainerOutline: colors_1.default.purple[50],
|
|
184
|
-
// Text and icons against purple outlined container
|
|
185
|
-
onPurpleOutlinedContainer: colors_1.default.purple[40],
|
|
186
|
-
// Neutral color against neutral filled surface
|
|
187
|
-
neutralFilledContainer: colors_1.default.neutral[50],
|
|
188
|
-
// Text and icons against neutral filled container
|
|
189
|
-
onNeutralFilledContainer: colors_1.default.neutral[100],
|
|
190
|
-
// Neutral color against neutral shaded surface
|
|
191
|
-
neutralShadedContainer: (0, color_1.default)(colors_1.default.neutral[50]).alpha(0.2).rgb().string(),
|
|
192
|
-
// Text and icons against neutral shaded container
|
|
193
|
-
onNeutralShadedContainer: colors_1.default.neutral[30],
|
|
194
|
-
// Neutral color against neutral outlined container
|
|
195
|
-
neutralOutlinedContainerOutline: colors_1.default.neutralVariant[50],
|
|
196
|
-
// Text and icons against Neutral outlined container
|
|
197
|
-
onNeutralOutlinedContainer: colors_1.default.neutralVariant[30],
|
|
198
|
-
// Standout fill text field color against surface
|
|
199
|
-
textFieldContainer: (0, color_1.default)(colors_1.default.neutral[80]).alpha(0.4).rgb().string(),
|
|
200
|
-
// Progress bar track on status color against filled surface
|
|
201
|
-
progressBarTrackOnStatusFilledContainer: (0, color_1.default)(colors_1.default.primary[0]).alpha(0.25).rgb().string(),
|
|
202
|
-
// Text outline color variant
|
|
203
|
-
mapTextOutline: (0, color_1.default)(colors_1.default.primary[100]).alpha(0.7).rgb().string() }) });
|
package/dist/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useFontWeight = exports.useExtendedTheme = exports.blueDark = exports.blue = void 0;
|
|
4
|
-
/**
|
|
5
|
-
Copyright (c) 2021-present, Eaton
|
|
6
|
-
|
|
7
|
-
All rights reserved.
|
|
8
|
-
|
|
9
|
-
This code is licensed under the BSD-3 license found in the LICENSE file in the root directory of this source tree and at https://opensource.org/licenses/BSD-3-Clause.
|
|
10
|
-
**/
|
|
11
|
-
var blueTheme_1 = require("./blueTheme");
|
|
12
|
-
Object.defineProperty(exports, "blue", { enumerable: true, get: function () { return blueTheme_1.MD3BluiLightTheme; } });
|
|
13
|
-
var blueDarkTheme_1 = require("./blueDarkTheme");
|
|
14
|
-
Object.defineProperty(exports, "blueDark", { enumerable: true, get: function () { return blueDarkTheme_1.MD3BluiDarkTheme; } });
|
|
15
|
-
var shared_1 = require("./shared");
|
|
16
|
-
Object.defineProperty(exports, "useExtendedTheme", { enumerable: true, get: function () { return shared_1.useExtendedTheme; } });
|
|
17
|
-
Object.defineProperty(exports, "useFontWeight", { enumerable: true, get: function () { return shared_1.useFontWeight; } });
|
|
File without changes
|