@fluentui-react-native/theme-types 0.44.0 → 0.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/lib/Color.types.d.ts +1040 -1040
- package/lib/Color.types.js +1 -1
- package/lib/Shadow.types.d.ts +21 -21
- package/lib/Shadow.types.js +1 -1
- package/lib/Theme.types.d.ts +40 -40
- package/lib/Theme.types.js +1 -1
- package/lib/Typography.types.d.ts +58 -58
- package/lib/Typography.types.js +1 -1
- package/lib/context.d.ts +1 -1
- package/lib/context.js +1 -1
- package/lib/index.d.ts +3 -29
- package/lib/index.js +1 -1
- package/lib/palette.types.d.ts +203 -203
- package/lib/palette.types.js +1 -1
- package/lib-commonjs/Color.types.d.ts +1040 -1040
- package/lib-commonjs/Color.types.js +3 -3
- package/lib-commonjs/Shadow.types.d.ts +21 -21
- package/lib-commonjs/Shadow.types.js +3 -3
- package/lib-commonjs/Theme.types.d.ts +40 -40
- package/lib-commonjs/Theme.types.js +3 -3
- package/lib-commonjs/Typography.types.d.ts +58 -58
- package/lib-commonjs/Typography.types.js +3 -3
- package/lib-commonjs/context.d.ts +1 -1
- package/lib-commonjs/context.js +33 -50
- package/lib-commonjs/index.d.ts +3 -29
- package/lib-commonjs/index.js +6 -16
- package/lib-commonjs/palette.types.d.ts +203 -203
- package/lib-commonjs/palette.types.js +3 -3
- package/package.json +12 -11
|
@@ -1,206 +1,206 @@
|
|
|
1
1
|
import type { ColorValue } from 'react-native';
|
|
2
2
|
export interface OfficePalette {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Background Colors
|
|
5
|
+
*
|
|
6
|
+
* Background color for any region of the user interface.
|
|
7
|
+
*/
|
|
8
|
+
Bkg: ColorValue;
|
|
9
|
+
BkgHover: ColorValue;
|
|
10
|
+
BkgPressed: ColorValue;
|
|
11
|
+
BkgSelected: ColorValue;
|
|
12
|
+
BkgSelectionHighlight: ColorValue;
|
|
13
|
+
BkgSubtle: ColorValue;
|
|
14
|
+
/**
|
|
15
|
+
* Transparent Control Colors
|
|
16
|
+
*
|
|
17
|
+
* These colors should be used to build controls with a transparent
|
|
18
|
+
* background. For example, list items and ribbon buttons.
|
|
19
|
+
*/
|
|
20
|
+
Text: ColorValue;
|
|
21
|
+
TextRest: ColorValue;
|
|
22
|
+
TextHover: ColorValue;
|
|
23
|
+
TextPressed: ColorValue;
|
|
24
|
+
TextSelected: ColorValue;
|
|
25
|
+
TextDisabled: ColorValue;
|
|
26
|
+
TextSelectionHighlight: ColorValue;
|
|
27
|
+
TextSecondary: ColorValue;
|
|
28
|
+
TextSecondaryRest: ColorValue;
|
|
29
|
+
TextSecondaryHover: ColorValue;
|
|
30
|
+
TextSecondaryPressed: ColorValue;
|
|
31
|
+
TextSecondarySelected: ColorValue;
|
|
32
|
+
TextEmphasis: ColorValue;
|
|
33
|
+
TextEmphasisRest: ColorValue;
|
|
34
|
+
TextEmphasisHover: ColorValue;
|
|
35
|
+
TextEmphasisPressed: ColorValue;
|
|
36
|
+
TextEmphasisSelected: ColorValue;
|
|
37
|
+
StrokeSelectedHover: ColorValue;
|
|
38
|
+
StrokeKeyboard: ColorValue;
|
|
39
|
+
StrokeOverRest: ColorValue;
|
|
40
|
+
StrokeOverHover: ColorValue;
|
|
41
|
+
StrokeOverPressed: ColorValue;
|
|
42
|
+
StrokeOverSelectedRest: ColorValue;
|
|
43
|
+
StrokeOverSelectedHover: ColorValue;
|
|
44
|
+
StrokeOverSelectedPressed: ColorValue;
|
|
45
|
+
/**
|
|
46
|
+
* Push Button Controls
|
|
47
|
+
*
|
|
48
|
+
* Push button controls only. These controls have a non-transparent
|
|
49
|
+
* background. Most other controls should not use these colors.
|
|
50
|
+
*/
|
|
51
|
+
BkgCtl: ColorValue;
|
|
52
|
+
BkgCtlHover: ColorValue;
|
|
53
|
+
BkgCtlPressed: ColorValue;
|
|
54
|
+
BkgCtlSelected: ColorValue;
|
|
55
|
+
BkgCtlDisabled: ColorValue;
|
|
56
|
+
TextCtl: ColorValue;
|
|
57
|
+
TextCtlHover: ColorValue;
|
|
58
|
+
TextCtlPressed: ColorValue;
|
|
59
|
+
TextCtlSelected: ColorValue;
|
|
60
|
+
TextCtlDisabled: ColorValue;
|
|
61
|
+
StrokeCtl: ColorValue;
|
|
62
|
+
StrokeCtlHover: ColorValue;
|
|
63
|
+
StrokeCtlPressed: ColorValue;
|
|
64
|
+
StrokeCtlSelected: ColorValue;
|
|
65
|
+
StrokeCtlDisabled: ColorValue;
|
|
66
|
+
StrokeCtlKeyboard: ColorValue;
|
|
67
|
+
/**
|
|
68
|
+
* Emphasized Push Button Controls
|
|
69
|
+
*
|
|
70
|
+
* Push button controls only. These controls have a non-transparent
|
|
71
|
+
* background. Most other controls should not use these colors.
|
|
72
|
+
*/
|
|
73
|
+
BkgCtlEmphasis: ColorValue;
|
|
74
|
+
BkgCtlEmphasisHover: ColorValue;
|
|
75
|
+
BkgCtlEmphasisPressed: ColorValue;
|
|
76
|
+
BkgCtlEmphasisDisabled: ColorValue;
|
|
77
|
+
TextCtlEmphasis: ColorValue;
|
|
78
|
+
TextCtlEmphasisHover: ColorValue;
|
|
79
|
+
TextCtlEmphasisPressed: ColorValue;
|
|
80
|
+
TextCtlEmphasisDisabled: ColorValue;
|
|
81
|
+
StrokeCtlEmphasis: ColorValue;
|
|
82
|
+
StrokeCtlEmphasisHover: ColorValue;
|
|
83
|
+
StrokeCtlEmphasisPressed: ColorValue;
|
|
84
|
+
StrokeCtlEmphasisDisabled: ColorValue;
|
|
85
|
+
StrokeCtlEmphasisKeyboard: ColorValue;
|
|
86
|
+
/**
|
|
87
|
+
* Text Controls
|
|
88
|
+
*
|
|
89
|
+
* Controls which have a background, even in dark themes, such as text box,
|
|
90
|
+
* combo box, check box, and radio button.
|
|
91
|
+
*/
|
|
92
|
+
BkgCtlSubtle: ColorValue;
|
|
93
|
+
BkgCtlSubtleHover: ColorValue;
|
|
94
|
+
BkgCtlSubtlePressed: ColorValue;
|
|
95
|
+
BkgCtlSubtleDisabled: ColorValue;
|
|
96
|
+
TextCtlSubtle: ColorValue;
|
|
97
|
+
TextCtlSubtleHover: ColorValue;
|
|
98
|
+
TextCtlSubtlePressed: ColorValue;
|
|
99
|
+
TextCtlSubtleDisabled: ColorValue;
|
|
100
|
+
StrokeCtlSubtle: ColorValue;
|
|
101
|
+
StrokeCtlSubtleHover: ColorValue;
|
|
102
|
+
StrokeCtlSubtlePressed: ColorValue;
|
|
103
|
+
StrokeCtlSubtleDisabled: ColorValue;
|
|
104
|
+
StrokeCtlSubtleKeyboard: ColorValue;
|
|
105
|
+
StrokeOnlyHover: ColorValue;
|
|
106
|
+
StrokeOnlyPressed: ColorValue;
|
|
107
|
+
StrokeOnlySelected: ColorValue;
|
|
108
|
+
/**
|
|
109
|
+
* Hyperlinks
|
|
110
|
+
*/
|
|
111
|
+
TextHyperlink: ColorValue;
|
|
112
|
+
TextHyperlinkHover: ColorValue;
|
|
113
|
+
TextHyperlinkPressed: ColorValue;
|
|
114
|
+
/**
|
|
115
|
+
* Active Text
|
|
116
|
+
*
|
|
117
|
+
* Text only states, with no background change, such as a pivot control.
|
|
118
|
+
*/
|
|
119
|
+
TextActive: ColorValue;
|
|
120
|
+
TextActiveHover: ColorValue;
|
|
121
|
+
TextActivePressed: ColorValue;
|
|
122
|
+
TextActiveSelected: ColorValue;
|
|
123
|
+
/**
|
|
124
|
+
* Errors
|
|
125
|
+
*/
|
|
126
|
+
TextError: ColorValue;
|
|
127
|
+
TextErrorHover: ColorValue;
|
|
128
|
+
TextErrorPressed: ColorValue;
|
|
129
|
+
TextErrorSelected: ColorValue;
|
|
130
|
+
/**
|
|
131
|
+
* Accents
|
|
132
|
+
*
|
|
133
|
+
* Used to emphasize or create boundaries around/within UI.
|
|
134
|
+
*/
|
|
135
|
+
AccentDark: ColorValue;
|
|
136
|
+
AccentLight: ColorValue;
|
|
137
|
+
AccentEmphasis: ColorValue;
|
|
138
|
+
AccentOutline: ColorValue;
|
|
139
|
+
BkgAccentTint: ColorValue;
|
|
140
|
+
TextAccentTint: ColorValue;
|
|
141
|
+
/**
|
|
142
|
+
* Headers
|
|
143
|
+
*
|
|
144
|
+
* Used for headings on sections of the user interface.
|
|
145
|
+
*/
|
|
146
|
+
BkgHeader: ColorValue;
|
|
147
|
+
TextHeader: ColorValue;
|
|
148
|
+
/**
|
|
149
|
+
* Thumb toggle colors
|
|
150
|
+
*/
|
|
151
|
+
ThumbToggleSwitchOff: ColorValue;
|
|
152
|
+
ThumbToggleSwitchOffHover: ColorValue;
|
|
153
|
+
ThumbToggleSwitchOffPressed: ColorValue;
|
|
154
|
+
ThumbToggleSwitchOffDisabled: ColorValue;
|
|
155
|
+
ThumbToggleSwitchOn: ColorValue;
|
|
156
|
+
ThumbToggleSwitchOnHover: ColorValue;
|
|
157
|
+
ThumbToggleSwitchOnPressed: ColorValue;
|
|
158
|
+
ThumbToggleSwitchOnDisabled: ColorValue;
|
|
159
|
+
/**
|
|
160
|
+
* Background values for toggle switches
|
|
161
|
+
*/
|
|
162
|
+
BkgToggleSwitchOff: ColorValue;
|
|
163
|
+
BkgToggleSwitchOffHover: ColorValue;
|
|
164
|
+
BkgToggleSwitchOffPressed: ColorValue;
|
|
165
|
+
BkgToggleSwitchOffDisabled: ColorValue;
|
|
166
|
+
BkgToggleSwitchOn: ColorValue;
|
|
167
|
+
BkgToggleSwitchOnHover: ColorValue;
|
|
168
|
+
BkgToggleSwitchOnPressed: ColorValue;
|
|
169
|
+
BkgToggleSwitchOnDisabled: ColorValue;
|
|
170
|
+
/**
|
|
171
|
+
* Stroke values for toggle switches
|
|
172
|
+
*/
|
|
173
|
+
StrokeToggleSwitchOff: ColorValue;
|
|
174
|
+
StrokeToggleSwitchOffHover: ColorValue;
|
|
175
|
+
StrokeToggleSwitchOffPressed: ColorValue;
|
|
176
|
+
StrokeToggleSwitchOffDisabled: ColorValue;
|
|
177
|
+
StrokeToggleSwitchOn: ColorValue;
|
|
178
|
+
StrokeToggleSwitchOnHover: ColorValue;
|
|
179
|
+
StrokeToggleSwitchOnPressed: ColorValue;
|
|
180
|
+
StrokeToggleSwitchOnDisabled: ColorValue;
|
|
181
|
+
/**
|
|
182
|
+
* Slider colors
|
|
183
|
+
*/
|
|
184
|
+
SliderPrimary: ColorValue;
|
|
185
|
+
SliderPrimaryHover: ColorValue;
|
|
186
|
+
SliderPrimaryPressed: ColorValue;
|
|
187
|
+
SliderPrimaryDisabled: ColorValue;
|
|
188
|
+
SliderSecondary: ColorValue;
|
|
189
|
+
SliderBuffer: ColorValue;
|
|
190
|
+
SliderKeyboard: ColorValue;
|
|
191
|
+
SliderToolTipBorder: ColorValue;
|
|
192
|
+
SliderToolTipLabel: ColorValue;
|
|
193
|
+
SliderToolTipBkg: ColorValue;
|
|
194
|
+
/**
|
|
195
|
+
* Assorted other colors
|
|
196
|
+
*/
|
|
197
|
+
TextEmphasis2: ColorValue;
|
|
198
|
+
BkgCtlSubtleSelected: ColorValue;
|
|
199
|
+
TextCtlSubtleSelected: ColorValue;
|
|
200
|
+
BkgCtlEmphasisFocus: ColorValue;
|
|
201
|
+
BkgCtlSubtleFocus: ColorValue;
|
|
202
|
+
BkgCtlSubtleHoverDisabled: ColorValue;
|
|
203
|
+
BkgCtlSubtleSelectedDisabled: ColorValue;
|
|
204
|
+
TextTextBoxPlaceholder: ColorValue;
|
|
205
205
|
}
|
|
206
|
-
//# sourceMappingURL=palette.types.d.ts.map
|
|
206
|
+
//# sourceMappingURL=palette.types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
3
|
-
//# sourceMappingURL=palette.types.js.map
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=palette.types.js.map
|
package/package.json
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/theme-types",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.1",
|
|
4
4
|
"description": "Typing only package for fluentui-react-native theme types",
|
|
5
5
|
"keywords": [],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "",
|
|
6
8
|
"repository": {
|
|
7
9
|
"type": "git",
|
|
8
10
|
"url": "https://github.com/microsoft/fluentui-react-native.git",
|
|
9
11
|
"directory": "packages/theming/theme-types"
|
|
10
12
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
+
"main": "lib-commonjs/index.js",
|
|
14
|
+
"module": "lib/index.js",
|
|
15
|
+
"types": "lib/index.d.ts",
|
|
13
16
|
"exports": {
|
|
14
17
|
".": {
|
|
15
18
|
"types": "./lib/index.d.ts",
|
|
16
19
|
"import": "./lib/index.js",
|
|
17
|
-
"require": "./lib-commonjs/index.js"
|
|
20
|
+
"require": "./lib-commonjs/index.js",
|
|
21
|
+
"default": "./src/index.ts"
|
|
18
22
|
}
|
|
19
23
|
},
|
|
20
|
-
"main": "lib-commonjs/index.js",
|
|
21
|
-
"module": "lib/index.js",
|
|
22
|
-
"types": "lib/index.d.ts",
|
|
23
24
|
"scripts": {
|
|
24
25
|
"build": "fluentui-scripts build",
|
|
25
26
|
"build-cjs": "tsgo --outDir lib-commonjs",
|
|
26
|
-
"build-
|
|
27
|
+
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
|
|
27
28
|
"clean": "fluentui-scripts clean",
|
|
28
29
|
"depcheck": "fluentui-scripts depcheck",
|
|
29
30
|
"lint": "fluentui-scripts eslint",
|
|
30
31
|
"lint-package": "fluentui-scripts lint-package",
|
|
31
|
-
"
|
|
32
|
+
"format": "fluentui-scripts format",
|
|
32
33
|
"start": "fluentui-scripts dev",
|
|
33
34
|
"start-test": "fluentui-scripts jest-watch",
|
|
34
35
|
"test": "fluentui-scripts jest",
|
|
@@ -37,9 +38,9 @@
|
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@babel/core": "^7.20.0",
|
|
39
40
|
"@fluentui-react-native/babel-config": "0.1.1",
|
|
40
|
-
"@fluentui-react-native/eslint-config-rules": "0.1.
|
|
41
|
+
"@fluentui-react-native/eslint-config-rules": "0.1.2",
|
|
41
42
|
"@fluentui-react-native/kit-config": "0.1.2",
|
|
42
|
-
"@fluentui-react-native/scripts": "0.1.
|
|
43
|
+
"@fluentui-react-native/scripts": "0.1.0",
|
|
43
44
|
"@react-native-community/cli": "^20.0.0",
|
|
44
45
|
"@react-native-community/cli-platform-android": "^20.0.0",
|
|
45
46
|
"@react-native-community/cli-platform-ios": "^20.0.0",
|