ui-primitives 16.24.0 → 16.25.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-primitives",
3
- "version": "16.24.0",
3
+ "version": "16.25.0",
4
4
  "description": "UI primitives for sharing between platforms in Design System Team projects",
5
5
  "keywords": [
6
6
  "design",
@@ -1,12 +1,592 @@
1
1
  {
2
+ "attrs": [
3
+ {
4
+ "name": "backgroundColorToolbar",
5
+ "format": "color"
6
+ },
7
+ {
8
+ "name": "buttonStyleSecondary",
9
+ "format": "reference"
10
+ },
11
+ {
12
+ "name": "toolbarTransparentWhiteOverlayStyle",
13
+ "format": "reference"
14
+ },
15
+ {
16
+ "name": "tabBarStyle",
17
+ "format": "reference"
18
+ },
19
+ {
20
+ "name": "buttonStyleTertiary",
21
+ "format": "reference"
22
+ },
23
+ {
24
+ "name": "fitSystemWindows",
25
+ "format": "boolean"
26
+ },
27
+ {
28
+ "name": "backgroundColorSecondaryToolbar",
29
+ "format": "color"
30
+ },
31
+ {
32
+ "name": "buttonStyleInvertedDeepLink",
33
+ "format": "reference"
34
+ },
35
+ {
36
+ "name": "actionButtonStylePrimary",
37
+ "format": "reference"
38
+ },
39
+ {
40
+ "name": "rippleColorPrimary",
41
+ "format": "color"
42
+ },
43
+ {
44
+ "name": "buttonStylePrimary",
45
+ "format": "reference"
46
+ },
47
+ {
48
+ "name": "progressBarBackground",
49
+ "format": "color"
50
+ },
51
+ {
52
+ "name": "textColorToolbar",
53
+ "format": "color"
54
+ },
55
+ {
56
+ "name": "toolbarIconTint",
57
+ "format": "color"
58
+ },
59
+ {
60
+ "name": "separator_enabled",
61
+ "format": "boolean"
62
+ },
63
+ {
64
+ "name": "redesign_enabled",
65
+ "format": "boolean"
66
+ },
67
+ {
68
+ "name": "subtitleTextColorToolbar",
69
+ "format": "color"
70
+ },
71
+ {
72
+ "name": "iconTintColorToolbar",
73
+ "format": "color"
74
+ },
75
+ {
76
+ "name": "stbv_bottom_line_background_color",
77
+ "format": "color"
78
+ },
79
+ {
80
+ "name": "stbv_bottom_line_background_height",
81
+ "format": "dimension"
82
+ },
83
+ {
84
+ "name": "ab_icon_color_enabled",
85
+ "format": "color"
86
+ },
87
+ {
88
+ "name": "ab_button_background_enabled",
89
+ "format": "color"
90
+ },
91
+ {
92
+ "name": "ab_icon_color_disabled",
93
+ "format": "color"
94
+ },
95
+ {
96
+ "name": "ab_button_background_pressed",
97
+ "format": "color"
98
+ },
99
+ {
100
+ "name": "ab_button_background_disabled",
101
+ "format": "color"
102
+ },
103
+ {
104
+ "name": "ab_label_color_disabled",
105
+ "format": "color"
106
+ },
107
+ {
108
+ "name": "ab_icon_color_pressed",
109
+ "format": "color"
110
+ },
111
+ {
112
+ "name": "ab_label_color_enabled",
113
+ "format": "color"
114
+ }
115
+ ],
116
+ "schemes": [
117
+ {
118
+ "name": "tools",
119
+ "url": "http://schemas.android.com/tools"
120
+ }
121
+ ],
2
122
  "common": {
3
- "colorPrimary": "?backgroundColorAccent",
123
+ "colorPrimary": "?backgroundColorPrimary",
4
124
  "colorControlNormal": "?graphicColorSecondary",
5
125
  "colorControlActivated": "?graphicColorSecondary",
6
- "colorControlHighlight": "?graphicColorSecondary",
7
126
  "android:textColor": "?textColorPrimary",
8
127
  "android:textColorLink": "?textColorLink",
9
128
  "android:ambientShadowAlpha": 0.04,
10
- "android:spotShadowAlpha": 0.12
11
- }
129
+ "android:spotShadowAlpha": 0.12,
130
+ "windowActionBar": false,
131
+ "windowNoTitle": true,
132
+ "staticBackgroundColorLight": "?staticBackgroundColorPrimaryLight",
133
+ "staticBackgroundColorDark": "?staticBackgroundColorPrimaryDark",
134
+ "rippleColorPrimary": "?colorControlHighlight",
135
+ "android:statusBarColor": "#08182a",
136
+ "colorPrimaryDark": "?textColorNegative",
137
+ "colorAccent": "?backgroundColorAccent",
138
+ "colorSwitchThumbNormal": "?graphicColorSecondary",
139
+ "progressBarBackground": "?backgroundColorOverlay",
140
+ "colorControlHighlight": "@color/color_control_highlight",
141
+ "buttonTint": "@color/thumb_color",
142
+ "trackTint": "@color/switch_track_selector",
143
+ "fitSystemWindows": true,
144
+ "backgroundColorToolbar": "?backgroundColorPrimary",
145
+ "backgroundColorSecondaryToolbar": "?backgroundColorSecondary",
146
+ "textColorToolbar": "?textColorPrimary",
147
+ "toolbarIconTint": "?graphicColorPrimary",
148
+ "android:itemBackground": "?specialBackgroundColorSecondaryGrouped",
149
+ "windowActionModeOverlay": true,
150
+ "actionModeBackground": "?backgroundColorToolbar",
151
+ "wrapped_resource": {
152
+ "name": "android:forceDarkAllowed",
153
+ "value": false,
154
+ "other_params": [
155
+ {
156
+ "namespace": "tools",
157
+ "name": "targetApi",
158
+ "value": "q"
159
+ }
160
+ ]
161
+ },
162
+ "actionModeCloseButtonStyle": "@style/AppbarCloseButton",
163
+ "actionBarTheme": "@style/DynamicToolbarStyleActionMode",
164
+ "actionModeStyle": "@style/ActionModeStyle",
165
+ "chipStyle": "@style/Element.Chip",
166
+ "chipGroupStyle": "@style/Element.ChipGroup",
167
+ "alertDialogStyle": "@style/AlfaDialog",
168
+ "alertDialogTheme": "@style/AlfaDialog",
169
+ "tabBarStyle": "@style/ScrollableTabBarStyle",
170
+ "buttonStylePrimary": "@style/ButtonPrimary",
171
+ "buttonStyleSecondary": "@style/ButtonSecondary",
172
+ "buttonStyleTertiary": "@style/ButtonTertiary",
173
+ "actionButtonStylePrimary": "@style/ActionButtonPrimary",
174
+ "buttonStyleInvertedDeepLink": "@style/ButtonInvertedDeepLink"
175
+ },
176
+ "styles": {
177
+ "Element.Chip": {
178
+ "parent": "Base.Widget.MaterialComponents.Chip",
179
+ "android:checkable": true,
180
+ "android:clickable": true,
181
+ "android:focusable": true,
182
+ "checkedIconEnabled": false,
183
+ "checkedIcon": "@null",
184
+ "closeIconEnabled": false,
185
+ "closeIcon": "@null",
186
+ "android:textColor": "@color/chip_text_selector",
187
+ "android:textAppearance": "?textStylePrimaryComponentsRegular",
188
+ "chipBackgroundColor": "@color/chip_background_selector",
189
+ "chipCornerRadius": "8dp",
190
+ "textStartPadding": "16dp",
191
+ "textEndPadding": "16dp",
192
+ "android:paddingTop": "10dp",
193
+ "android:paddingBottom": "10dp"
194
+ },
195
+ "Element.ChipGroup": {
196
+ "parent": "Widget.MaterialComponents.ChipGroup",
197
+ "chipSpacing": "8dp",
198
+ "chipSpacingHorizontal": "8dp",
199
+ "singleLine": true,
200
+ "singleSelection": true
201
+ },
202
+ "AlfaDialog": {
203
+ "parent": "Theme.AppCompat.Light.Dialog.Alert",
204
+ "colorAccent": "?textColorNegative",
205
+ "buttonBarNegativeButtonStyle": "@style/DialogButtonStyle",
206
+ "buttonBarPositiveButtonStyle": "@style/DialogButtonStyle",
207
+ "android:windowTitleStyle": "@style/DialogTitleTextStyle",
208
+ "android:background": "?specialBackgroundColorSecondaryGrouped",
209
+ "android:textColorSecondary": "?textColorSecondary",
210
+ "android:textColorPrimary": "?textColorSecondary"
211
+ },
212
+ "DialogButtonStyle": {
213
+ "parent": "Widget.AppCompat.Button.ButtonBar.AlertDialog",
214
+ "android:textColor": "?textColorPrimary",
215
+ "android:textAllCaps": true,
216
+ "android:fontFamily": "@font/roboto_medium",
217
+ "android:textSize": "14sp"
218
+ },
219
+ "DialogTitleTextStyle": {
220
+ "parent": null,
221
+ "android:textColor": "?textColorPrimary",
222
+ "android:textSize": "18sp",
223
+ "android:fontFamily": "@font/roboto_medium"
224
+ },
225
+ "ScrollableTabBarStyle": {
226
+ "parent": "BaseScrollableTabBarStyle",
227
+ "redesign_enabled": true
228
+ },
229
+ "BaseScrollableTabBarStyle": {
230
+ "parent": null,
231
+ "android:layout_width": "match_parent",
232
+ "android:layout_height": "52dp",
233
+ "tabMode": "scrollable",
234
+ "tabMaxWidth": "0dp",
235
+ "tabIndicatorColor": "?borderColorAccent",
236
+ "tabContentStart": "16dp",
237
+ "tabPaddingStart": "0dp",
238
+ "tabPaddingEnd": "0dp",
239
+ "stbv_bottom_line_background_height": "1dp",
240
+ "stbv_bottom_line_background_color": "?borderColorPrimary",
241
+ "tabIndicatorHeight": "2dp"
242
+ },
243
+ "ButtonBase": {
244
+ "parent": "Widget.MaterialComponents.Button",
245
+ "android:insetLeft": "0dp",
246
+ "android:insetRight": "0dp",
247
+ "android:insetTop": "0dp",
248
+ "android:insetBottom": "0dp",
249
+ "android:textAppearance": "?textStylePrimaryComponentsMedium",
250
+ "cornerRadius": "12dp",
251
+ "android:stateListAnimator": "@null",
252
+ "rippleColor": "?colorControlHighlight"
253
+ },
254
+ "ButtonPrimary": {
255
+ "parent": "ButtonBase",
256
+ "backgroundTint": "?backgroundColorSecondaryInverted",
257
+ "android:textColor": "@color/button_text_color_primary_selector"
258
+ },
259
+ "ButtonSecondary": {
260
+ "parent": "ButtonBase",
261
+ "backgroundTint": "?backgroundColorSecondary",
262
+ "android:textColor": "@color/button_text_color_secondary_selector"
263
+ },
264
+ "ButtonTertiary": {
265
+ "parent": "ButtonBase",
266
+ "backgroundTint": "?specialBackgroundColorNulled",
267
+ "android:textColor": "@color/button_text_color_secondary_selector"
268
+ },
269
+ "ActionButtonPrimary": {
270
+ "parent": null,
271
+ "ab_icon_color_enabled": "?graphicColorPrimaryInverted",
272
+ "ab_icon_color_pressed": "?graphicColorPrimaryInverted",
273
+ "ab_icon_color_disabled": "?textColorDisabled",
274
+ "ab_button_background_enabled": "?backgroundColorSecondaryInverted",
275
+ "ab_button_background_pressed": "?backgroundColorPrimaryInverted",
276
+ "ab_button_background_disabled": "?textColorDisabled",
277
+ "ab_label_color_enabled": "?textColorPrimary",
278
+ "ab_label_color_disabled": "?textColorDisabled"
279
+ },
280
+ "AppbarCloseButton": {
281
+ "parent": "Widget.AppCompat.Light.ActionButton.CloseMode",
282
+ "android:tint": "?graphicColorPrimary"
283
+ },
284
+ "DynamicToolbarStyleActionMode": {
285
+ "parent": null,
286
+ "titleTextStyle": "?textStylePrimaryComponentsMedium"
287
+ },
288
+ "ActionModeStyle": {
289
+ "parent": "Widget.AppCompat.ActionMode",
290
+ "titleTextStyle": "@style/ActionModeTitleTextStyle"
291
+ },
292
+ "ActionModeTitleTextStyle": {
293
+ "parent": "TextAppearance.AppCompat.Widget.ActionMode.Title",
294
+ "android:textColor": "?textColorPrimary"
295
+ },
296
+ "ButtonInvertedDeepLink": {
297
+ "parent": "ButtonBaseDeepLink",
298
+ "android:textColor": "?textColorPrimary",
299
+ "backgroundTint": "?backgroundColorSecondary"
300
+ },
301
+ "ButtonBaseDeepLink": {
302
+ "parent": "Widget.MaterialComponents.Button",
303
+ "android:textAppearance": "?textStyleSecondaryMedium",
304
+ "android:paddingStart": "16dp",
305
+ "android:paddingEnd": "16dp",
306
+ "android:paddingTop": "12dp",
307
+ "cornerRadius": "12dp",
308
+ "android:paddingBottom": "12dp",
309
+ "rippleColor": "?rippleColorPrimary",
310
+ "android:stateListAnimator": "@null"
311
+ }
312
+ },
313
+ "color_selectors": [
314
+ {
315
+ "filename": "thumb_color.xml",
316
+ "items": [
317
+ {
318
+ "item_params": [
319
+ {
320
+ "scheme": "android",
321
+ "name": "color",
322
+ "value": "?graphicColorTertiary"
323
+ },
324
+ {
325
+ "scheme": "android",
326
+ "name": "state_enabled",
327
+ "value": "false"
328
+ }
329
+ ]
330
+ },
331
+ {
332
+ "item_params": [
333
+ {
334
+ "scheme": "android",
335
+ "name": "color",
336
+ "value": "?graphicColorPrimary"
337
+ },
338
+ {
339
+ "scheme": "android",
340
+ "name": "state_checked",
341
+ "value": "true"
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "item_params": [
347
+ {
348
+ "scheme": "android",
349
+ "name": "color",
350
+ "value": "?graphicColorSecondary"
351
+ },
352
+ {
353
+ "scheme": "android",
354
+ "name": "state_checked",
355
+ "value": "false"
356
+ }
357
+ ]
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "filename": "switch_track_selector.xml",
363
+ "items": [
364
+ {
365
+ "item_params": [
366
+ {
367
+ "scheme": "android",
368
+ "name": "color",
369
+ "value": "?graphicColorTertiary"
370
+ },
371
+ {
372
+ "scheme": "android",
373
+ "name": "state_enabled",
374
+ "value": "true"
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "item_params": [
380
+ {
381
+ "scheme": "android",
382
+ "name": "color",
383
+ "value": "?graphicColorQuaternary"
384
+ },
385
+ {
386
+ "scheme": "android",
387
+ "name": "state_enabled",
388
+ "value": "false"
389
+ }
390
+ ]
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "filename": "button_text_color_secondary_selector.xml",
396
+ "items": [
397
+ {
398
+ "item_params": [
399
+ {
400
+ "scheme": "android",
401
+ "name": "color",
402
+ "value": "?textColorPrimary"
403
+ },
404
+ {
405
+ "scheme": "android",
406
+ "name": "state_enabled",
407
+ "value": "true"
408
+ }
409
+ ]
410
+ },
411
+ {
412
+ "item_params": [
413
+ {
414
+ "scheme": "android",
415
+ "name": "color",
416
+ "value": "?textColorTertiary"
417
+ }
418
+ ]
419
+ }
420
+ ]
421
+ },
422
+ {
423
+ "filename": "chip_background_selector.xml",
424
+ "items": [
425
+ {
426
+ "item_params": [
427
+ {
428
+ "scheme": "android",
429
+ "name": "color",
430
+ "value": "?backgroundColorPrimaryInverted"
431
+ },
432
+ {
433
+ "scheme": "android",
434
+ "name": "state_checked",
435
+ "value": "true"
436
+ },
437
+ {
438
+ "scheme": "android",
439
+ "name": "state_pressed",
440
+ "value": "true"
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ "item_params": [
446
+ {
447
+ "scheme": "android",
448
+ "name": "color",
449
+ "value": "?backgroundColorPrimaryInverted"
450
+ },
451
+ {
452
+ "scheme": "android",
453
+ "name": "state_pressed",
454
+ "value": "true"
455
+ }
456
+ ]
457
+ },
458
+ {
459
+ "item_params": [
460
+ {
461
+ "scheme": "android",
462
+ "name": "color",
463
+ "value": "?backgroundColorPrimaryInverted"
464
+ },
465
+ {
466
+ "scheme": "android",
467
+ "name": "state_checked",
468
+ "value": "true"
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ "item_params": [
474
+ {
475
+ "scheme": "android",
476
+ "name": "color",
477
+ "value": "?backgroundColorSecondary"
478
+ }
479
+ ]
480
+ }
481
+ ]
482
+ },
483
+ {
484
+ "filename": "chip_text_selector.xml",
485
+ "items": [
486
+ {
487
+ "item_params": [
488
+ {
489
+ "scheme": "android",
490
+ "name": "color",
491
+ "value": "?textColorPrimaryInverted"
492
+ },
493
+ {
494
+ "scheme": "android",
495
+ "name": "state_checked",
496
+ "value": "true"
497
+ },
498
+ {
499
+ "scheme": "android",
500
+ "name": "state_pressed",
501
+ "value": "true"
502
+ }
503
+ ]
504
+ },
505
+ {
506
+ "item_params": [
507
+ {
508
+ "scheme": "android",
509
+ "name": "color",
510
+ "value": "?textColorPrimaryInverted"
511
+ },
512
+ {
513
+ "scheme": "android",
514
+ "name": "state_pressed",
515
+ "value": "true"
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "item_params": [
521
+ {
522
+ "scheme": "android",
523
+ "name": "color",
524
+ "value": "?textColorPrimaryInverted"
525
+ },
526
+ {
527
+ "scheme": "android",
528
+ "name": "state_checked",
529
+ "value": "true"
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ "item_params": [
535
+ {
536
+ "scheme": "android",
537
+ "name": "color",
538
+ "value": "?textColorPrimary"
539
+ }
540
+ ]
541
+ }
542
+ ]
543
+ },
544
+ {
545
+ "filename": "button_text_color_primary_selector.xml",
546
+ "items": [
547
+ {
548
+ "item_params": [
549
+ {
550
+ "scheme": "android",
551
+ "name": "color",
552
+ "value": "?textColorPrimaryInverted"
553
+ },
554
+ {
555
+ "scheme": "android",
556
+ "name": "state_enabled",
557
+ "value": "true"
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ "item_params": [
563
+ {
564
+ "scheme": "android",
565
+ "name": "color",
566
+ "value": "?textColorTertiaryInverted"
567
+ }
568
+ ]
569
+ }
570
+ ]
571
+ },
572
+ {
573
+ "filename": "color_control_highlight.xml",
574
+ "items": [
575
+ {
576
+ "item_params": [
577
+ {
578
+ "scheme": "android",
579
+ "name": "color",
580
+ "value": "?backgroundColorPrimaryInverted"
581
+ },
582
+ {
583
+ "scheme": "android",
584
+ "name": "alpha",
585
+ "value": ".08"
586
+ }
587
+ ]
588
+ }
589
+ ]
590
+ }
591
+ ]
12
592
  }