@hero-design/snowflake-guard 1.2.3 → 1.2.4-alpha.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/README.md +2 -0
- package/lib/src/index.js +30 -22
- package/lib/src/parseMobileSource.d.ts +15 -0
- package/lib/src/parseMobileSource.js +118 -0
- package/lib/src/parsers/flow.d.ts +3 -0
- package/lib/src/parsers/flow.js +37 -0
- package/lib/src/reports/mobile/__tests__/reportCustomStyleProperties.spec.d.ts +1 -0
- package/lib/src/reports/mobile/__tests__/reportCustomStyleProperties.spec.js +123 -0
- package/lib/src/reports/mobile/__tests__/reportInlineStyle.spec.d.ts +1 -0
- package/lib/src/reports/mobile/__tests__/reportInlineStyle.spec.js +103 -0
- package/lib/src/reports/mobile/__tests__/reportStyledComponents.spec.d.ts +1 -0
- package/lib/src/reports/mobile/__tests__/reportStyledComponents.spec.js +54 -0
- package/lib/src/reports/mobile/constants.d.ts +260 -0
- package/lib/src/reports/mobile/constants.js +429 -0
- package/lib/src/reports/mobile/reportCustomStyleProperties.d.ts +38 -0
- package/lib/src/reports/mobile/reportCustomStyleProperties.js +155 -0
- package/lib/src/reports/mobile/reportInlineStyle.d.ts +21 -0
- package/lib/src/reports/mobile/reportInlineStyle.js +214 -0
- package/lib/src/reports/mobile/reportStyledComponents.d.ts +6 -0
- package/lib/src/reports/mobile/reportStyledComponents.js +95 -0
- package/lib/src/reports/mobile/reportToastStyle.d.ts +0 -0
- package/lib/src/reports/mobile/reportToastStyle.js +1 -0
- package/lib/src/reports/mobile/testUtils.d.ts +1 -0
- package/lib/src/reports/mobile/testUtils.js +32 -0
- package/lib/src/reports/mobile/types.d.ts +3 -0
- package/lib/src/reports/mobile/types.js +2 -0
- package/lib/src/reports/reportCustomStyleProperties.d.ts +1 -1
- package/lib/src/reports/reportStyledComponents.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
declare const HD_MOBILE_COMPONENTS: readonly ["Accordion", "Alert", "Attachment", "Avatar", "Badge", "BottomNavigation", "BottomSheet", "Box", "Button", "Calendar", "Carousel", "Card", "Chip", "Collapse", "Checkbox", "ContentNavigator", "DatePicker", "Divider", "Drawer", "Empty", "Error", "FAB", "HeroDesignProvider", "MapPin", "Icon", "Image", "List", "PinInput", "Progress", "Slider", "Spinner", "Swipeable", "Radio", "SectionHeading", "Select", "Skeleton", "Success", "Switch", "Tabs", "Tag", "TextInput", "TimePicker", "Toast", "Toolbar", "Typography", "Rate", "RefreshControl", "RichTextEditor", "PageControl", "Portal", "ScrollViewWithFAB", "SectionListWithFAB", "FlatListWithFAB", "Search", "FloatingIsland"];
|
|
2
|
+
declare const MOBILE_RULESET_MAP: {
|
|
3
|
+
Accordion: string[];
|
|
4
|
+
Alert: (string | string[])[];
|
|
5
|
+
Attachment: string[];
|
|
6
|
+
Avatar: string[];
|
|
7
|
+
'Avatar.Stack': string[];
|
|
8
|
+
Badge: string[];
|
|
9
|
+
'Badge.Status': string[];
|
|
10
|
+
BottomNavigation: string[];
|
|
11
|
+
BottomSheet: string[];
|
|
12
|
+
'BottomSheet.ScrollView': string[];
|
|
13
|
+
Box: string[];
|
|
14
|
+
Button: string[];
|
|
15
|
+
'Button.Icon': string[];
|
|
16
|
+
'Button.Utility': string[];
|
|
17
|
+
Calendar: string[];
|
|
18
|
+
Card: string[];
|
|
19
|
+
'Card.Data': string[];
|
|
20
|
+
Carousel: string[];
|
|
21
|
+
'Carousel.Card': string[];
|
|
22
|
+
Checkbox: string[];
|
|
23
|
+
Chip: string[];
|
|
24
|
+
Collapse: string[];
|
|
25
|
+
ContentNavigator: string[];
|
|
26
|
+
DatePicker: string[];
|
|
27
|
+
Divider: string[];
|
|
28
|
+
Drawer: string[];
|
|
29
|
+
'Drawer.Dragable': string[];
|
|
30
|
+
Empty: string[];
|
|
31
|
+
Error: string[];
|
|
32
|
+
FAB: string[];
|
|
33
|
+
'FAB.ActionGroup': string[];
|
|
34
|
+
'FAB.Pair': string[];
|
|
35
|
+
FloatingIsland: string[];
|
|
36
|
+
Icon: string[];
|
|
37
|
+
Image: string[];
|
|
38
|
+
'List.BasicItem': string[];
|
|
39
|
+
'List.Item': string[];
|
|
40
|
+
MapPin: string[];
|
|
41
|
+
PageControl: string[];
|
|
42
|
+
PinInput: string[];
|
|
43
|
+
Portal: string[];
|
|
44
|
+
'Progress.Bar': string[];
|
|
45
|
+
'Progress.Circle': string[];
|
|
46
|
+
'Progress.Step': string[];
|
|
47
|
+
'Radio.Group': string[];
|
|
48
|
+
Rate: string[];
|
|
49
|
+
RefreshControl: string[];
|
|
50
|
+
RichTextEditor: string[];
|
|
51
|
+
'RichTextEditor.MentionList': string[];
|
|
52
|
+
'RichTextEditor.Toolbar': string[];
|
|
53
|
+
ScrollViewWithFAB: string[];
|
|
54
|
+
FlatListWithFAB: string[];
|
|
55
|
+
SectionListWithFAB: string[];
|
|
56
|
+
'Search.OneLine': string[];
|
|
57
|
+
'Search.TwoLine': string[];
|
|
58
|
+
'Search.SuffixIcon': string[];
|
|
59
|
+
SectionHeading: string[];
|
|
60
|
+
Select: string[];
|
|
61
|
+
'Select.Multi': string[];
|
|
62
|
+
Skeleton: string[];
|
|
63
|
+
Slider: string[];
|
|
64
|
+
Spinner: string[];
|
|
65
|
+
Success: string[];
|
|
66
|
+
Swipeable: string[];
|
|
67
|
+
'Swipeable.Action': string[];
|
|
68
|
+
'Swipeable.Content': string[];
|
|
69
|
+
Switch: string[];
|
|
70
|
+
'Switch.Selector': string[];
|
|
71
|
+
Tabs: string[];
|
|
72
|
+
'Tabs.Scroll': string[];
|
|
73
|
+
Tag: string[];
|
|
74
|
+
TextInput: string[];
|
|
75
|
+
TimePicker: string[];
|
|
76
|
+
'Toast.Container': string[];
|
|
77
|
+
'Toast.Provider': string[];
|
|
78
|
+
'Toolbar.Group': string[];
|
|
79
|
+
'Toolbar.Item': string[];
|
|
80
|
+
'Toolbar.Message': string[];
|
|
81
|
+
'Typography.Body': string[];
|
|
82
|
+
'Typography.Caption': string[];
|
|
83
|
+
'Typography.Label': string[];
|
|
84
|
+
};
|
|
85
|
+
declare const BAR_STYLE_RULESET_MAP: {
|
|
86
|
+
Tabs: string[];
|
|
87
|
+
'Tabs.Scroll': string[];
|
|
88
|
+
};
|
|
89
|
+
declare const CONTAINER_STYLE_RULESET_MAP: {
|
|
90
|
+
Tabs: string[];
|
|
91
|
+
'Tabs.Scroll': string[];
|
|
92
|
+
};
|
|
93
|
+
declare const TEXT_STYLE_RULESET_MAP: {
|
|
94
|
+
'Toolbar.Message': {
|
|
95
|
+
[x: number]: string;
|
|
96
|
+
length: number;
|
|
97
|
+
toString(): string;
|
|
98
|
+
toLocaleString(): string;
|
|
99
|
+
pop(): string | undefined;
|
|
100
|
+
push(...items: string[]): number;
|
|
101
|
+
concat(...items: ConcatArray<string>[]): string[];
|
|
102
|
+
concat(...items: (string | ConcatArray<string>)[]): string[];
|
|
103
|
+
join(separator?: string | undefined): string;
|
|
104
|
+
reverse(): string[];
|
|
105
|
+
shift(): string | undefined;
|
|
106
|
+
slice(start?: number | undefined, end?: number | undefined): string[];
|
|
107
|
+
sort(compareFn?: ((a: string, b: string) => number) | undefined): string[];
|
|
108
|
+
splice(start: number, deleteCount?: number | undefined): string[];
|
|
109
|
+
splice(start: number, deleteCount: number, ...items: string[]): string[];
|
|
110
|
+
unshift(...items: string[]): number;
|
|
111
|
+
indexOf(searchElement: string, fromIndex?: number | undefined): number;
|
|
112
|
+
lastIndexOf(searchElement: string, fromIndex?: number | undefined): number;
|
|
113
|
+
every<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): this is S[];
|
|
114
|
+
every(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
115
|
+
some(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
116
|
+
forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void;
|
|
117
|
+
map<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any): U[];
|
|
118
|
+
filter<S_1 extends string>(predicate: (value: string, index: number, array: string[]) => value is S_1, thisArg?: any): S_1[];
|
|
119
|
+
filter(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
120
|
+
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
121
|
+
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
122
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: string[]) => U_1, initialValue: U_1): U_1;
|
|
123
|
+
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
124
|
+
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
125
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: string[]) => U_2, initialValue: U_2): U_2;
|
|
126
|
+
find<S_2 extends string>(predicate: (this: void, value: string, index: number, obj: string[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
127
|
+
find(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
128
|
+
findIndex(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): number;
|
|
129
|
+
fill(value: string, start?: number | undefined, end?: number | undefined): string[];
|
|
130
|
+
copyWithin(target: number, start: number, end?: number | undefined): string[];
|
|
131
|
+
entries(): IterableIterator<[number, string]>;
|
|
132
|
+
keys(): IterableIterator<number>;
|
|
133
|
+
values(): IterableIterator<string>;
|
|
134
|
+
includes(searchElement: string, fromIndex?: number | undefined): boolean;
|
|
135
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
|
|
136
|
+
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
137
|
+
[Symbol.iterator](): IterableIterator<string>;
|
|
138
|
+
[Symbol.unscopables](): {
|
|
139
|
+
copyWithin: boolean;
|
|
140
|
+
entries: boolean;
|
|
141
|
+
fill: boolean;
|
|
142
|
+
find: boolean;
|
|
143
|
+
findIndex: boolean;
|
|
144
|
+
keys: boolean;
|
|
145
|
+
values: boolean;
|
|
146
|
+
};
|
|
147
|
+
at(index: number): string | undefined;
|
|
148
|
+
};
|
|
149
|
+
TextInput: {
|
|
150
|
+
[x: number]: string;
|
|
151
|
+
length: number;
|
|
152
|
+
toString(): string;
|
|
153
|
+
toLocaleString(): string;
|
|
154
|
+
pop(): string | undefined;
|
|
155
|
+
push(...items: string[]): number;
|
|
156
|
+
concat(...items: ConcatArray<string>[]): string[];
|
|
157
|
+
concat(...items: (string | ConcatArray<string>)[]): string[];
|
|
158
|
+
join(separator?: string | undefined): string;
|
|
159
|
+
reverse(): string[];
|
|
160
|
+
shift(): string | undefined;
|
|
161
|
+
slice(start?: number | undefined, end?: number | undefined): string[];
|
|
162
|
+
sort(compareFn?: ((a: string, b: string) => number) | undefined): string[];
|
|
163
|
+
splice(start: number, deleteCount?: number | undefined): string[];
|
|
164
|
+
splice(start: number, deleteCount: number, ...items: string[]): string[];
|
|
165
|
+
unshift(...items: string[]): number;
|
|
166
|
+
indexOf(searchElement: string, fromIndex?: number | undefined): number;
|
|
167
|
+
lastIndexOf(searchElement: string, fromIndex?: number | undefined): number;
|
|
168
|
+
every<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): this is S[];
|
|
169
|
+
every(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
170
|
+
some(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
171
|
+
forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void;
|
|
172
|
+
map<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any): U[];
|
|
173
|
+
filter<S_1 extends string>(predicate: (value: string, index: number, array: string[]) => value is S_1, thisArg?: any): S_1[];
|
|
174
|
+
filter(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
175
|
+
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
176
|
+
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
177
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: string[]) => U_1, initialValue: U_1): U_1;
|
|
178
|
+
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
179
|
+
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
180
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: string[]) => U_2, initialValue: U_2): U_2;
|
|
181
|
+
find<S_2 extends string>(predicate: (this: void, value: string, index: number, obj: string[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
182
|
+
find(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
183
|
+
findIndex(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): number;
|
|
184
|
+
fill(value: string, start?: number | undefined, end?: number | undefined): string[];
|
|
185
|
+
copyWithin(target: number, start: number, end?: number | undefined): string[];
|
|
186
|
+
entries(): IterableIterator<[number, string]>;
|
|
187
|
+
keys(): IterableIterator<number>;
|
|
188
|
+
values(): IterableIterator<string>;
|
|
189
|
+
includes(searchElement: string, fromIndex?: number | undefined): boolean;
|
|
190
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
|
|
191
|
+
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
192
|
+
[Symbol.iterator](): IterableIterator<string>;
|
|
193
|
+
[Symbol.unscopables](): {
|
|
194
|
+
copyWithin: boolean;
|
|
195
|
+
entries: boolean;
|
|
196
|
+
fill: boolean;
|
|
197
|
+
find: boolean;
|
|
198
|
+
findIndex: boolean;
|
|
199
|
+
keys: boolean;
|
|
200
|
+
values: boolean;
|
|
201
|
+
};
|
|
202
|
+
at(index: number): string | undefined;
|
|
203
|
+
};
|
|
204
|
+
'Search.OneLine': {
|
|
205
|
+
[x: number]: string;
|
|
206
|
+
length: number;
|
|
207
|
+
toString(): string;
|
|
208
|
+
toLocaleString(): string;
|
|
209
|
+
pop(): string | undefined;
|
|
210
|
+
push(...items: string[]): number;
|
|
211
|
+
concat(...items: ConcatArray<string>[]): string[];
|
|
212
|
+
concat(...items: (string | ConcatArray<string>)[]): string[];
|
|
213
|
+
join(separator?: string | undefined): string;
|
|
214
|
+
reverse(): string[];
|
|
215
|
+
shift(): string | undefined;
|
|
216
|
+
slice(start?: number | undefined, end?: number | undefined): string[];
|
|
217
|
+
sort(compareFn?: ((a: string, b: string) => number) | undefined): string[];
|
|
218
|
+
splice(start: number, deleteCount?: number | undefined): string[];
|
|
219
|
+
splice(start: number, deleteCount: number, ...items: string[]): string[];
|
|
220
|
+
unshift(...items: string[]): number;
|
|
221
|
+
indexOf(searchElement: string, fromIndex?: number | undefined): number;
|
|
222
|
+
lastIndexOf(searchElement: string, fromIndex?: number | undefined): number;
|
|
223
|
+
every<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): this is S[];
|
|
224
|
+
every(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
225
|
+
some(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
226
|
+
forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void;
|
|
227
|
+
map<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any): U[];
|
|
228
|
+
filter<S_1 extends string>(predicate: (value: string, index: number, array: string[]) => value is S_1, thisArg?: any): S_1[];
|
|
229
|
+
filter(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
230
|
+
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
231
|
+
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
232
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: string[]) => U_1, initialValue: U_1): U_1;
|
|
233
|
+
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
234
|
+
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
235
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: string[]) => U_2, initialValue: U_2): U_2;
|
|
236
|
+
find<S_2 extends string>(predicate: (this: void, value: string, index: number, obj: string[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
237
|
+
find(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
238
|
+
findIndex(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): number;
|
|
239
|
+
fill(value: string, start?: number | undefined, end?: number | undefined): string[];
|
|
240
|
+
copyWithin(target: number, start: number, end?: number | undefined): string[];
|
|
241
|
+
entries(): IterableIterator<[number, string]>;
|
|
242
|
+
keys(): IterableIterator<number>;
|
|
243
|
+
values(): IterableIterator<string>;
|
|
244
|
+
includes(searchElement: string, fromIndex?: number | undefined): boolean;
|
|
245
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
|
|
246
|
+
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
247
|
+
[Symbol.iterator](): IterableIterator<string>;
|
|
248
|
+
[Symbol.unscopables](): {
|
|
249
|
+
copyWithin: boolean;
|
|
250
|
+
entries: boolean;
|
|
251
|
+
fill: boolean;
|
|
252
|
+
find: boolean;
|
|
253
|
+
findIndex: boolean;
|
|
254
|
+
keys: boolean;
|
|
255
|
+
values: boolean;
|
|
256
|
+
};
|
|
257
|
+
at(index: number): string | undefined;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
export { HD_MOBILE_COMPONENTS, MOBILE_RULESET_MAP, BAR_STYLE_RULESET_MAP, CONTAINER_STYLE_RULESET_MAP, TEXT_STYLE_RULESET_MAP, };
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TEXT_STYLE_RULESET_MAP = exports.CONTAINER_STYLE_RULESET_MAP = exports.BAR_STYLE_RULESET_MAP = exports.MOBILE_RULESET_MAP = exports.HD_MOBILE_COMPONENTS = void 0;
|
|
4
|
+
const PADDING_ATTRS = [
|
|
5
|
+
'padding',
|
|
6
|
+
'paddingBottom',
|
|
7
|
+
'paddingEnd',
|
|
8
|
+
'paddingHorizontal',
|
|
9
|
+
'paddingLeft',
|
|
10
|
+
'paddingRight',
|
|
11
|
+
'paddingStart',
|
|
12
|
+
'paddingTop',
|
|
13
|
+
'paddingVertical',
|
|
14
|
+
];
|
|
15
|
+
const MARGIN_ATTRS = [
|
|
16
|
+
'margin',
|
|
17
|
+
'marginBottom',
|
|
18
|
+
'marginEnd',
|
|
19
|
+
'marginHorizontal',
|
|
20
|
+
'marginLeft',
|
|
21
|
+
'marginRight',
|
|
22
|
+
'marginStart',
|
|
23
|
+
'marginTop',
|
|
24
|
+
'marginVertical',
|
|
25
|
+
];
|
|
26
|
+
const COLOR_ATTRS = ['backgroundColor', 'borderColor'];
|
|
27
|
+
const BORDER_ATTRS = [
|
|
28
|
+
'borderBottomColor',
|
|
29
|
+
'borderBottomEndRadius',
|
|
30
|
+
'borderBottomLeftRadius',
|
|
31
|
+
'borderBottomRightRadius',
|
|
32
|
+
'borderBottomStartRadius',
|
|
33
|
+
'borderBottomWidth',
|
|
34
|
+
'borderEndColor',
|
|
35
|
+
'borderEndWidth',
|
|
36
|
+
'borderLeftColor',
|
|
37
|
+
'borderLeftWidth',
|
|
38
|
+
'borderRadius',
|
|
39
|
+
'borderRightColor',
|
|
40
|
+
'borderRightWidth',
|
|
41
|
+
'borderStartColor',
|
|
42
|
+
'borderStartWidth',
|
|
43
|
+
'borderStyle',
|
|
44
|
+
'borderTopColor',
|
|
45
|
+
'borderTopEndRadius',
|
|
46
|
+
'borderTopLeftRadius',
|
|
47
|
+
'borderTopRightRadius',
|
|
48
|
+
'borderTopStartRadius',
|
|
49
|
+
'borderTopWidth',
|
|
50
|
+
'borderWidth',
|
|
51
|
+
];
|
|
52
|
+
const SHADOW_ATTRS = [
|
|
53
|
+
'shadowColor',
|
|
54
|
+
'shadowOffset',
|
|
55
|
+
'shadowOpacity',
|
|
56
|
+
'shadowRadius',
|
|
57
|
+
'elevation',
|
|
58
|
+
];
|
|
59
|
+
const TEXT_ATTRS = [
|
|
60
|
+
'color',
|
|
61
|
+
'fontFamily',
|
|
62
|
+
'fontSize',
|
|
63
|
+
'fontStyle',
|
|
64
|
+
'fontWeight',
|
|
65
|
+
'fontVariant',
|
|
66
|
+
'letterSpacing',
|
|
67
|
+
'lineHeight',
|
|
68
|
+
];
|
|
69
|
+
const WIDTH_ATTRS = ['width', 'maxWidth', 'minWidth'];
|
|
70
|
+
const HEIGHT_ATTRS = ['height', 'maxHeight', 'minHeight'];
|
|
71
|
+
const HD_MOBILE_COMPONENTS = [
|
|
72
|
+
'Accordion',
|
|
73
|
+
'Alert',
|
|
74
|
+
'Attachment',
|
|
75
|
+
'Avatar',
|
|
76
|
+
'Badge',
|
|
77
|
+
'BottomNavigation',
|
|
78
|
+
'BottomSheet',
|
|
79
|
+
'Box',
|
|
80
|
+
'Button',
|
|
81
|
+
'Calendar',
|
|
82
|
+
'Carousel',
|
|
83
|
+
'Card',
|
|
84
|
+
'Chip',
|
|
85
|
+
'Collapse',
|
|
86
|
+
'Checkbox',
|
|
87
|
+
'ContentNavigator',
|
|
88
|
+
'DatePicker',
|
|
89
|
+
'Divider',
|
|
90
|
+
'Drawer',
|
|
91
|
+
'Empty',
|
|
92
|
+
'Error',
|
|
93
|
+
'FAB',
|
|
94
|
+
'HeroDesignProvider',
|
|
95
|
+
'MapPin',
|
|
96
|
+
'Icon',
|
|
97
|
+
'Image',
|
|
98
|
+
'List',
|
|
99
|
+
'PinInput',
|
|
100
|
+
'Progress',
|
|
101
|
+
'Slider',
|
|
102
|
+
'Spinner',
|
|
103
|
+
'Swipeable',
|
|
104
|
+
'Radio',
|
|
105
|
+
'SectionHeading',
|
|
106
|
+
'Select',
|
|
107
|
+
'Skeleton',
|
|
108
|
+
'Success',
|
|
109
|
+
'Switch',
|
|
110
|
+
'Tabs',
|
|
111
|
+
'Tag',
|
|
112
|
+
'TextInput',
|
|
113
|
+
'TimePicker',
|
|
114
|
+
'Toast',
|
|
115
|
+
'Toolbar',
|
|
116
|
+
'Typography',
|
|
117
|
+
'Rate',
|
|
118
|
+
'RefreshControl',
|
|
119
|
+
'RichTextEditor',
|
|
120
|
+
'PageControl',
|
|
121
|
+
'Portal',
|
|
122
|
+
'ScrollViewWithFAB',
|
|
123
|
+
'SectionListWithFAB',
|
|
124
|
+
'FlatListWithFAB',
|
|
125
|
+
'Search',
|
|
126
|
+
'FloatingIsland',
|
|
127
|
+
];
|
|
128
|
+
exports.HD_MOBILE_COMPONENTS = HD_MOBILE_COMPONENTS;
|
|
129
|
+
// Not common: MARGIN_ATTRS, WIDTH_ATTRS, HEIGHT_ATTRS
|
|
130
|
+
const COMMON_PROHIBITED_ATTRS = [
|
|
131
|
+
...PADDING_ATTRS,
|
|
132
|
+
...COLOR_ATTRS,
|
|
133
|
+
...BORDER_ATTRS,
|
|
134
|
+
...TEXT_ATTRS,
|
|
135
|
+
...SHADOW_ATTRS,
|
|
136
|
+
];
|
|
137
|
+
const MOBILE_RULESET_MAP = {
|
|
138
|
+
Accordion: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
139
|
+
Alert: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, HEIGHT_ATTRS],
|
|
140
|
+
Attachment: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
141
|
+
Avatar: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
142
|
+
'Avatar.Stack': [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
143
|
+
Badge: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
144
|
+
'Badge.Status': [
|
|
145
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
146
|
+
...WIDTH_ATTRS,
|
|
147
|
+
...HEIGHT_ATTRS,
|
|
148
|
+
...MARGIN_ATTRS,
|
|
149
|
+
],
|
|
150
|
+
BottomNavigation: [
|
|
151
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
152
|
+
...WIDTH_ATTRS,
|
|
153
|
+
...HEIGHT_ATTRS,
|
|
154
|
+
],
|
|
155
|
+
BottomSheet: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
156
|
+
'BottomSheet.ScrollView': [
|
|
157
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
158
|
+
...WIDTH_ATTRS,
|
|
159
|
+
...HEIGHT_ATTRS,
|
|
160
|
+
],
|
|
161
|
+
Box: [...TEXT_ATTRS],
|
|
162
|
+
Button: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
163
|
+
'Button.Icon': [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
164
|
+
'Button.Utility': [
|
|
165
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
166
|
+
...WIDTH_ATTRS,
|
|
167
|
+
...HEIGHT_ATTRS,
|
|
168
|
+
],
|
|
169
|
+
Calendar: [
|
|
170
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
171
|
+
...WIDTH_ATTRS,
|
|
172
|
+
...HEIGHT_ATTRS,
|
|
173
|
+
...MARGIN_ATTRS,
|
|
174
|
+
],
|
|
175
|
+
Card: [...COMMON_PROHIBITED_ATTRS],
|
|
176
|
+
'Card.Data': [...COMMON_PROHIBITED_ATTRS],
|
|
177
|
+
Carousel: [...COMMON_PROHIBITED_ATTRS],
|
|
178
|
+
'Carousel.Card': [...COMMON_PROHIBITED_ATTRS],
|
|
179
|
+
Checkbox: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
180
|
+
Chip: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
181
|
+
Collapse: [...TEXT_ATTRS],
|
|
182
|
+
ContentNavigator: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
183
|
+
DatePicker: [
|
|
184
|
+
...PADDING_ATTRS,
|
|
185
|
+
...BORDER_ATTRS,
|
|
186
|
+
...SHADOW_ATTRS,
|
|
187
|
+
...TEXT_ATTRS,
|
|
188
|
+
...HEIGHT_ATTRS,
|
|
189
|
+
],
|
|
190
|
+
Divider: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
191
|
+
Drawer: [
|
|
192
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
193
|
+
...WIDTH_ATTRS,
|
|
194
|
+
...HEIGHT_ATTRS,
|
|
195
|
+
...MARGIN_ATTRS,
|
|
196
|
+
],
|
|
197
|
+
'Drawer.Dragable': [
|
|
198
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
199
|
+
...WIDTH_ATTRS,
|
|
200
|
+
...HEIGHT_ATTRS,
|
|
201
|
+
...MARGIN_ATTRS,
|
|
202
|
+
],
|
|
203
|
+
Empty: [
|
|
204
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
205
|
+
...WIDTH_ATTRS,
|
|
206
|
+
...HEIGHT_ATTRS,
|
|
207
|
+
...MARGIN_ATTRS,
|
|
208
|
+
],
|
|
209
|
+
Error: [
|
|
210
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
211
|
+
...WIDTH_ATTRS,
|
|
212
|
+
...HEIGHT_ATTRS,
|
|
213
|
+
...MARGIN_ATTRS,
|
|
214
|
+
],
|
|
215
|
+
FAB: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
216
|
+
'FAB.ActionGroup': [
|
|
217
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
218
|
+
...WIDTH_ATTRS,
|
|
219
|
+
...HEIGHT_ATTRS,
|
|
220
|
+
],
|
|
221
|
+
'FAB.Pair': [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
222
|
+
FloatingIsland: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
223
|
+
Icon: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
224
|
+
Image: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
225
|
+
'List.BasicItem': [...COMMON_PROHIBITED_ATTRS],
|
|
226
|
+
'List.Item': [...COMMON_PROHIBITED_ATTRS],
|
|
227
|
+
MapPin: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
228
|
+
PageControl: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
229
|
+
PinInput: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
230
|
+
Portal: [
|
|
231
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
232
|
+
...WIDTH_ATTRS,
|
|
233
|
+
...HEIGHT_ATTRS,
|
|
234
|
+
...MARGIN_ATTRS,
|
|
235
|
+
],
|
|
236
|
+
'Progress.Bar': [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
237
|
+
'Progress.Circle': [
|
|
238
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
239
|
+
...WIDTH_ATTRS,
|
|
240
|
+
...HEIGHT_ATTRS,
|
|
241
|
+
],
|
|
242
|
+
'Progress.Step': [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
243
|
+
'Radio.Group': [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
244
|
+
Rate: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
245
|
+
RefreshControl: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
246
|
+
RichTextEditor: [
|
|
247
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
248
|
+
...WIDTH_ATTRS,
|
|
249
|
+
...HEIGHT_ATTRS,
|
|
250
|
+
...MARGIN_ATTRS,
|
|
251
|
+
],
|
|
252
|
+
'RichTextEditor.MentionList': [
|
|
253
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
254
|
+
...WIDTH_ATTRS,
|
|
255
|
+
...HEIGHT_ATTRS,
|
|
256
|
+
...MARGIN_ATTRS,
|
|
257
|
+
],
|
|
258
|
+
'RichTextEditor.Toolbar': [
|
|
259
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
260
|
+
...WIDTH_ATTRS,
|
|
261
|
+
...HEIGHT_ATTRS,
|
|
262
|
+
...MARGIN_ATTRS,
|
|
263
|
+
],
|
|
264
|
+
ScrollViewWithFAB: [...TEXT_ATTRS],
|
|
265
|
+
FlatListWithFAB: [...TEXT_ATTRS],
|
|
266
|
+
SectionListWithFAB: [...TEXT_ATTRS],
|
|
267
|
+
'Search.OneLine': [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
268
|
+
'Search.TwoLine': [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
269
|
+
'Search.SuffixIcon': [
|
|
270
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
271
|
+
...WIDTH_ATTRS,
|
|
272
|
+
...HEIGHT_ATTRS,
|
|
273
|
+
...MARGIN_ATTRS,
|
|
274
|
+
],
|
|
275
|
+
SectionHeading: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
276
|
+
Select: [
|
|
277
|
+
...PADDING_ATTRS,
|
|
278
|
+
...BORDER_ATTRS,
|
|
279
|
+
...SHADOW_ATTRS,
|
|
280
|
+
...TEXT_ATTRS,
|
|
281
|
+
...HEIGHT_ATTRS,
|
|
282
|
+
],
|
|
283
|
+
'Select.Multi': [
|
|
284
|
+
...PADDING_ATTRS,
|
|
285
|
+
...BORDER_ATTRS,
|
|
286
|
+
...SHADOW_ATTRS,
|
|
287
|
+
...TEXT_ATTRS,
|
|
288
|
+
...HEIGHT_ATTRS,
|
|
289
|
+
],
|
|
290
|
+
Skeleton: [...COMMON_PROHIBITED_ATTRS],
|
|
291
|
+
Slider: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
292
|
+
Spinner: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
293
|
+
Success: [
|
|
294
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
295
|
+
...WIDTH_ATTRS,
|
|
296
|
+
...HEIGHT_ATTRS,
|
|
297
|
+
...MARGIN_ATTRS,
|
|
298
|
+
],
|
|
299
|
+
Swipeable: [
|
|
300
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
301
|
+
...WIDTH_ATTRS,
|
|
302
|
+
...HEIGHT_ATTRS,
|
|
303
|
+
...MARGIN_ATTRS,
|
|
304
|
+
],
|
|
305
|
+
'Swipeable.Action': [
|
|
306
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
307
|
+
...WIDTH_ATTRS,
|
|
308
|
+
...HEIGHT_ATTRS,
|
|
309
|
+
...MARGIN_ATTRS,
|
|
310
|
+
],
|
|
311
|
+
'Swipeable.Content': [
|
|
312
|
+
...COLOR_ATTRS,
|
|
313
|
+
...BORDER_ATTRS,
|
|
314
|
+
...TEXT_ATTRS,
|
|
315
|
+
...SHADOW_ATTRS,
|
|
316
|
+
...WIDTH_ATTRS,
|
|
317
|
+
...HEIGHT_ATTRS,
|
|
318
|
+
...MARGIN_ATTRS,
|
|
319
|
+
],
|
|
320
|
+
Switch: [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
321
|
+
'Switch.Selector': [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
322
|
+
Tabs: [
|
|
323
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
324
|
+
...WIDTH_ATTRS,
|
|
325
|
+
...HEIGHT_ATTRS,
|
|
326
|
+
...MARGIN_ATTRS,
|
|
327
|
+
],
|
|
328
|
+
'Tabs.Scroll': [
|
|
329
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
330
|
+
...WIDTH_ATTRS,
|
|
331
|
+
...HEIGHT_ATTRS,
|
|
332
|
+
...MARGIN_ATTRS,
|
|
333
|
+
],
|
|
334
|
+
Tag: [...COMMON_PROHIBITED_ATTRS, ...WIDTH_ATTRS, ...HEIGHT_ATTRS],
|
|
335
|
+
TextInput: [
|
|
336
|
+
...PADDING_ATTRS,
|
|
337
|
+
...BORDER_ATTRS,
|
|
338
|
+
...SHADOW_ATTRS,
|
|
339
|
+
...TEXT_ATTRS,
|
|
340
|
+
...HEIGHT_ATTRS,
|
|
341
|
+
],
|
|
342
|
+
TimePicker: [
|
|
343
|
+
...PADDING_ATTRS,
|
|
344
|
+
...BORDER_ATTRS,
|
|
345
|
+
...SHADOW_ATTRS,
|
|
346
|
+
...TEXT_ATTRS,
|
|
347
|
+
...HEIGHT_ATTRS,
|
|
348
|
+
],
|
|
349
|
+
'Toast.Container': [
|
|
350
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
351
|
+
...WIDTH_ATTRS,
|
|
352
|
+
...HEIGHT_ATTRS,
|
|
353
|
+
...MARGIN_ATTRS,
|
|
354
|
+
],
|
|
355
|
+
'Toast.Provider': [
|
|
356
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
357
|
+
...WIDTH_ATTRS,
|
|
358
|
+
...HEIGHT_ATTRS,
|
|
359
|
+
...MARGIN_ATTRS,
|
|
360
|
+
],
|
|
361
|
+
'Toolbar.Group': [
|
|
362
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
363
|
+
...WIDTH_ATTRS,
|
|
364
|
+
...HEIGHT_ATTRS,
|
|
365
|
+
...MARGIN_ATTRS,
|
|
366
|
+
],
|
|
367
|
+
'Toolbar.Item': [
|
|
368
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
369
|
+
...WIDTH_ATTRS,
|
|
370
|
+
...HEIGHT_ATTRS,
|
|
371
|
+
...MARGIN_ATTRS,
|
|
372
|
+
],
|
|
373
|
+
'Toolbar.Message': [
|
|
374
|
+
...COMMON_PROHIBITED_ATTRS,
|
|
375
|
+
...WIDTH_ATTRS,
|
|
376
|
+
...HEIGHT_ATTRS,
|
|
377
|
+
...MARGIN_ATTRS,
|
|
378
|
+
],
|
|
379
|
+
'Typography.Body': [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
380
|
+
'Typography.Caption': [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
381
|
+
'Typography.Label': [...COMMON_PROHIBITED_ATTRS, ...HEIGHT_ATTRS],
|
|
382
|
+
};
|
|
383
|
+
exports.MOBILE_RULESET_MAP = MOBILE_RULESET_MAP;
|
|
384
|
+
const BAR_STYLE_RULESET_MAP = {
|
|
385
|
+
Tabs: [
|
|
386
|
+
...PADDING_ATTRS,
|
|
387
|
+
...BORDER_ATTRS,
|
|
388
|
+
...TEXT_ATTRS,
|
|
389
|
+
...SHADOW_ATTRS,
|
|
390
|
+
...WIDTH_ATTRS,
|
|
391
|
+
...HEIGHT_ATTRS,
|
|
392
|
+
...MARGIN_ATTRS,
|
|
393
|
+
],
|
|
394
|
+
'Tabs.Scroll': [
|
|
395
|
+
...PADDING_ATTRS,
|
|
396
|
+
...BORDER_ATTRS,
|
|
397
|
+
...TEXT_ATTRS,
|
|
398
|
+
...SHADOW_ATTRS,
|
|
399
|
+
...WIDTH_ATTRS,
|
|
400
|
+
...HEIGHT_ATTRS,
|
|
401
|
+
...MARGIN_ATTRS,
|
|
402
|
+
],
|
|
403
|
+
};
|
|
404
|
+
exports.BAR_STYLE_RULESET_MAP = BAR_STYLE_RULESET_MAP;
|
|
405
|
+
const CONTAINER_STYLE_RULESET_MAP = {
|
|
406
|
+
Tabs: [
|
|
407
|
+
...BORDER_ATTRS,
|
|
408
|
+
...TEXT_ATTRS,
|
|
409
|
+
...SHADOW_ATTRS,
|
|
410
|
+
...WIDTH_ATTRS,
|
|
411
|
+
...HEIGHT_ATTRS,
|
|
412
|
+
...MARGIN_ATTRS,
|
|
413
|
+
],
|
|
414
|
+
'Tabs.Scroll': [
|
|
415
|
+
...BORDER_ATTRS,
|
|
416
|
+
...TEXT_ATTRS,
|
|
417
|
+
...SHADOW_ATTRS,
|
|
418
|
+
...WIDTH_ATTRS,
|
|
419
|
+
...HEIGHT_ATTRS,
|
|
420
|
+
...MARGIN_ATTRS,
|
|
421
|
+
],
|
|
422
|
+
};
|
|
423
|
+
exports.CONTAINER_STYLE_RULESET_MAP = CONTAINER_STYLE_RULESET_MAP;
|
|
424
|
+
const TEXT_STYLE_RULESET_MAP = {
|
|
425
|
+
'Toolbar.Message': Object.assign(Object.assign(Object.assign(Object.assign({}, COMMON_PROHIBITED_ATTRS), WIDTH_ATTRS), HEIGHT_ATTRS), MARGIN_ATTRS),
|
|
426
|
+
TextInput: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, PADDING_ATTRS), BORDER_ATTRS), SHADOW_ATTRS), TEXT_ATTRS), HEIGHT_ATTRS),
|
|
427
|
+
'Search.OneLine': Object.assign(Object.assign(Object.assign(Object.assign({}, COMMON_PROHIBITED_ATTRS), WIDTH_ATTRS), HEIGHT_ATTRS), MARGIN_ATTRS),
|
|
428
|
+
};
|
|
429
|
+
exports.TEXT_STYLE_RULESET_MAP = TEXT_STYLE_RULESET_MAP;
|