@fluentui-react-native/theme-types 0.43.0 → 0.44.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.
@@ -1,206 +1,206 @@
1
1
  import type { ColorValue } from 'react-native';
2
2
  export interface OfficePalette {
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;
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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,75 +1,74 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/theme-types",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "Typing only package for fluentui-react-native theme types",
5
+ "keywords": [],
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "https://github.com/microsoft/fluentui-react-native.git",
8
9
  "directory": "packages/theming/theme-types"
9
10
  },
10
- "main": "lib-commonjs/index.js",
11
- "module": "lib/index.js",
12
- "react-native": "src/index.ts",
11
+ "license": "MIT",
12
+ "author": "",
13
13
  "exports": {
14
14
  ".": {
15
+ "types": "./lib/index.d.ts",
15
16
  "import": "./lib/index.js",
16
- "require": "./lib-commonjs/index.js",
17
- "types": "./lib/index.d.ts"
17
+ "require": "./lib-commonjs/index.js"
18
18
  }
19
19
  },
20
- "typings": "lib/index.d.ts",
20
+ "main": "lib-commonjs/index.js",
21
+ "module": "lib/index.js",
22
+ "types": "lib/index.d.ts",
21
23
  "scripts": {
22
24
  "build": "fluentui-scripts build",
23
- "just": "fluentui-scripts",
25
+ "build-cjs": "tsgo --outDir lib-commonjs",
26
+ "build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
24
27
  "clean": "fluentui-scripts clean",
25
28
  "depcheck": "fluentui-scripts depcheck",
26
29
  "lint": "fluentui-scripts eslint",
30
+ "lint-package": "fluentui-scripts lint-package",
31
+ "prettier": "fluentui-scripts prettier",
27
32
  "start": "fluentui-scripts dev",
28
33
  "start-test": "fluentui-scripts jest-watch",
29
34
  "test": "fluentui-scripts jest",
30
- "update-snapshots": "fluentui-scripts jest -u",
31
- "prettier": "fluentui-scripts prettier",
32
- "prettier-fix": "fluentui-scripts prettier --fix true"
35
+ "update-snapshots": "fluentui-scripts jest -u"
33
36
  },
34
- "keywords": [],
35
- "author": "",
36
- "license": "MIT",
37
37
  "devDependencies": {
38
38
  "@babel/core": "^7.20.0",
39
39
  "@fluentui-react-native/babel-config": "0.1.1",
40
40
  "@fluentui-react-native/eslint-config-rules": "0.1.1",
41
- "@fluentui-react-native/scripts": "0.1.1",
42
- "@react-native/babel-preset": "^0.74.0",
43
- "@react-native/metro-config": "^0.74.0",
44
- "@types/react": "^18.2.0",
45
- "react": "18.2.0",
46
- "react-native": "^0.74.0"
41
+ "@fluentui-react-native/kit-config": "0.1.2",
42
+ "@fluentui-react-native/scripts": "0.1.2",
43
+ "@react-native-community/cli": "^20.0.0",
44
+ "@react-native-community/cli-platform-android": "^20.0.0",
45
+ "@react-native-community/cli-platform-ios": "^20.0.0",
46
+ "@react-native/metro-config": "^0.81.0",
47
+ "@types/react": "~19.1.0",
48
+ "react": "19.1.0",
49
+ "react-native": "^0.81.0"
47
50
  },
48
51
  "peerDependencies": {
49
- "react": "18.2.0",
50
- "react-native": "^0.73.0 || ^0.74.0"
52
+ "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
53
+ "react": "18.2.0 || 19.0.0 || 19.1.0",
54
+ "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
55
+ },
56
+ "peerDependenciesMeta": {
57
+ "@types/react": {
58
+ "optional": true
59
+ }
51
60
  },
52
61
  "rnx-kit": {
53
62
  "kitType": "library",
54
63
  "alignDeps": {
55
- "presets": [
56
- "microsoft/react-native"
57
- ],
58
- "requirements": {
59
- "development": [
60
- "react-native@0.74"
61
- ],
62
- "production": [
63
- "react-native@0.73 || 0.74"
64
- ]
65
- },
66
64
  "capabilities": [
67
- "babel-preset-react-native",
68
65
  "core",
69
66
  "core-android",
70
67
  "core-ios",
71
- "react"
68
+ "react",
69
+ "tools-core"
72
70
  ]
73
- }
71
+ },
72
+ "extends": "@fluentui-react-native/kit-config"
74
73
  }
75
- }
74
+ }