@gitlab/ui 136.2.0 → 136.3.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.
Files changed (28) hide show
  1. package/dist/components/base/filtered_search/filtered_search_term.js +1 -1
  2. package/dist/components/base/form/form_date/form_date.js +9 -1
  3. package/dist/components/base/sorting/sorting.js +2 -2
  4. package/dist/components/base/toggle/toggle.js +1 -0
  5. package/dist/index.css +2 -2
  6. package/dist/index.css.map +1 -1
  7. package/dist/tokens/build/js/tokens.dark.js +35 -17
  8. package/dist/tokens/build/js/tokens.js +35 -17
  9. package/package.json +1 -1
  10. package/src/components/base/filtered_search/filtered_search_term.vue +0 -1
  11. package/src/components/base/form/form_date/form_date.vue +9 -0
  12. package/src/components/base/sorting/sorting.vue +3 -2
  13. package/src/components/base/toggle/toggle.scss +90 -22
  14. package/src/components/base/toggle/toggle.vue +1 -0
  15. package/src/tokens/build/css/tokens.css +40 -22
  16. package/src/tokens/build/css/tokens.dark.css +40 -22
  17. package/src/tokens/build/figma/mode.dark.json +200 -24
  18. package/src/tokens/build/figma/mode.json +200 -24
  19. package/src/tokens/build/js/tokens.dark.js +34 -16
  20. package/src/tokens/build/js/tokens.js +34 -16
  21. package/src/tokens/build/json/tokens.dark.json +687 -42
  22. package/src/tokens/build/json/tokens.json +687 -42
  23. package/src/tokens/build/scss/_tokens.dark.scss +40 -22
  24. package/src/tokens/build/scss/_tokens.scss +40 -22
  25. package/src/tokens/build/scss/_tokens_custom_properties.scss +18 -0
  26. package/src/tokens/contextual/application-chrome.tokens.json +20 -0
  27. package/src/tokens/contextual/toggle.tokens.json +198 -33
  28. package/src/tokens/semantic/action.tokens.json +14 -0
@@ -312,6 +312,17 @@
312
312
  ]
313
313
  }
314
314
  },
315
+ "🔒/application-chrome-background-color": {
316
+ "$value": "{color-neutral-1000}",
317
+ "$type": "color",
318
+ "$description": "Used for the application chrome background, the lowest layer of the interface that sits beneath panels and contains global navigation, user actions, application navigation, and AI navigation.",
319
+ "$extensions": {
320
+ "com.figma.scopes": [
321
+ "FRAME_FILL",
322
+ "SHAPE_FILL"
323
+ ]
324
+ }
325
+ },
315
326
  "🔒/avatar-border-color-default": {
316
327
  "$value": "{color-alpha-light-8}",
317
328
  "$type": "color",
@@ -5120,7 +5131,7 @@
5120
5131
  }
5121
5132
  },
5122
5133
  "🔒/toggle-switch-track-color-unchecked-default": {
5123
- "$value": "{control-border-color-default}",
5134
+ "$value": "{control-background-color-default}",
5124
5135
  "$type": "color",
5125
5136
  "$description": "Used for the track color of an unchecked toggle switch in the default state.",
5126
5137
  "$extensions": {
@@ -5133,7 +5144,7 @@
5133
5144
  "🔒/toggle-switch-track-color-unchecked-hover": {
5134
5145
  "$value": "{🔒/toggle-switch-track-color-unchecked-default}",
5135
5146
  "$type": "color",
5136
- "$description": "Used for the track color of an unchecked toggle switch in the hover state.",
5147
+ "$description": "Used for the track color of an unchecked toggle switch in the hover state. The track is deliberately unchanged from the default state; hover is carried by the track border and the thumb size.",
5137
5148
  "$extensions": {
5138
5149
  "com.figma.scopes": [
5139
5150
  "SHAPE_FILL",
@@ -5144,7 +5155,7 @@
5144
5155
  "🔒/toggle-switch-track-color-unchecked-focus": {
5145
5156
  "$value": "{🔒/toggle-switch-track-color-unchecked-hover}",
5146
5157
  "$type": "color",
5147
- "$description": "Used for the track color of an unchecked toggle switch in the focus state.",
5158
+ "$description": "Used for the track color of an unchecked toggle switch in the focus state. The track is deliberately unchanged from the default state; focus is carried by the focus ring, the track border and the thumb size.",
5148
5159
  "$extensions": {
5149
5160
  "com.figma.scopes": [
5150
5161
  "SHAPE_FILL",
@@ -5153,7 +5164,7 @@
5153
5164
  }
5154
5165
  },
5155
5166
  "🔒/toggle-switch-track-color-unchecked-active": {
5156
- "$value": "{🔒/toggle-switch-track-color-unchecked-focus}",
5167
+ "$value": "{action-neutral-background-color-active}",
5157
5168
  "$type": "color",
5158
5169
  "$description": "Used for the track color of an unchecked toggle switch in the active state.",
5159
5170
  "$extensions": {
@@ -5163,8 +5174,19 @@
5163
5174
  ]
5164
5175
  }
5165
5176
  },
5177
+ "🔒/toggle-switch-track-color-unchecked-disabled": {
5178
+ "$value": "{control-background-color-default}",
5179
+ "$type": "color",
5180
+ "$description": "Used for the track color of a disabled unchecked toggle switch.",
5181
+ "$extensions": {
5182
+ "com.figma.scopes": [
5183
+ "SHAPE_FILL",
5184
+ "FRAME_FILL"
5185
+ ]
5186
+ }
5187
+ },
5166
5188
  "🔒/toggle-switch-track-color-checked-default": {
5167
- "$value": "{color-neutral-50}",
5189
+ "$value": "{action-selected-background-color-default}",
5168
5190
  "$type": "color",
5169
5191
  "$description": "Used for the track color of a checked toggle switch in the default state.",
5170
5192
  "$extensions": {
@@ -5175,7 +5197,7 @@
5175
5197
  }
5176
5198
  },
5177
5199
  "🔒/toggle-switch-track-color-checked-hover": {
5178
- "$value": "{color-neutral-10}",
5200
+ "$value": "{action-selected-background-color-hover}",
5179
5201
  "$type": "color",
5180
5202
  "$description": "Used for the track color of a checked toggle switch in the hover state.",
5181
5203
  "$extensions": {
@@ -5186,7 +5208,7 @@
5186
5208
  }
5187
5209
  },
5188
5210
  "🔒/toggle-switch-track-color-checked-focus": {
5189
- "$value": "{🔒/toggle-switch-track-color-checked-hover}",
5211
+ "$value": "{action-selected-background-color-focus}",
5190
5212
  "$type": "color",
5191
5213
  "$description": "Used for the track color of a checked toggle switch in the focus state.",
5192
5214
  "$extensions": {
@@ -5197,7 +5219,7 @@
5197
5219
  }
5198
5220
  },
5199
5221
  "🔒/toggle-switch-track-color-checked-active": {
5200
- "$value": "{color-neutral-0}",
5222
+ "$value": "{action-selected-background-color-active}",
5201
5223
  "$type": "color",
5202
5224
  "$description": "Used for the track color of a checked toggle switch in the active state.",
5203
5225
  "$extensions": {
@@ -5207,8 +5229,140 @@
5207
5229
  ]
5208
5230
  }
5209
5231
  },
5232
+ "🔒/toggle-switch-track-color-checked-disabled": {
5233
+ "$value": "{action-selected-background-color-disabled}",
5234
+ "$type": "color",
5235
+ "$description": "Used for the track color of a disabled checked toggle switch, which stays filled so the checked state remains legible.",
5236
+ "$extensions": {
5237
+ "com.figma.scopes": [
5238
+ "SHAPE_FILL",
5239
+ "FRAME_FILL"
5240
+ ]
5241
+ }
5242
+ },
5243
+ "🔒/toggle-switch-track-color-loading": {
5244
+ "$value": "{action-disabled-background-color}",
5245
+ "$type": "color",
5246
+ "$description": "Used for the track color of a loading toggle switch. A loading toggle renders no thumb and its value is still in flight, so the track carries no checked state.",
5247
+ "$extensions": {
5248
+ "com.figma.scopes": [
5249
+ "SHAPE_FILL",
5250
+ "FRAME_FILL"
5251
+ ]
5252
+ }
5253
+ },
5254
+ "🔒/toggle-switch-track-border-color-unchecked-default": {
5255
+ "$value": "{control-border-color-default}",
5256
+ "$type": "color",
5257
+ "$description": "Used for the track border color of an unchecked toggle switch in the default state.",
5258
+ "$extensions": {
5259
+ "com.figma.scopes": [
5260
+ "STROKE_COLOR"
5261
+ ]
5262
+ }
5263
+ },
5264
+ "🔒/toggle-switch-track-border-color-unchecked-hover": {
5265
+ "$value": "{control-border-color-hover}",
5266
+ "$type": "color",
5267
+ "$description": "Used for the track border color of an unchecked toggle switch in the hover state.",
5268
+ "$extensions": {
5269
+ "com.figma.scopes": [
5270
+ "STROKE_COLOR"
5271
+ ]
5272
+ }
5273
+ },
5274
+ "🔒/toggle-switch-track-border-color-unchecked-focus": {
5275
+ "$value": "{🔒/toggle-switch-track-border-color-unchecked-hover}",
5276
+ "$type": "color",
5277
+ "$description": "Used for the track border color of an unchecked toggle switch in the focus state.",
5278
+ "$extensions": {
5279
+ "com.figma.scopes": [
5280
+ "STROKE_COLOR"
5281
+ ]
5282
+ }
5283
+ },
5284
+ "🔒/toggle-switch-track-border-color-unchecked-active": {
5285
+ "$value": "{🔒/toggle-switch-track-border-color-unchecked-focus}",
5286
+ "$type": "color",
5287
+ "$description": "Used for the track border color of an unchecked toggle switch in the active state.",
5288
+ "$extensions": {
5289
+ "com.figma.scopes": [
5290
+ "STROKE_COLOR"
5291
+ ]
5292
+ }
5293
+ },
5294
+ "🔒/toggle-switch-track-border-color-unchecked-disabled": {
5295
+ "$value": "{action-disabled-border-color}",
5296
+ "$type": "color",
5297
+ "$description": "Used for the track border color of a disabled unchecked toggle switch.",
5298
+ "$extensions": {
5299
+ "com.figma.scopes": [
5300
+ "STROKE_COLOR"
5301
+ ]
5302
+ }
5303
+ },
5304
+ "🔒/toggle-switch-track-border-color-checked-default": {
5305
+ "$value": "{action-selected-border-color-default}",
5306
+ "$type": "color",
5307
+ "$description": "Used for the track border color of a checked toggle switch in the default state.",
5308
+ "$extensions": {
5309
+ "com.figma.scopes": [
5310
+ "STROKE_COLOR"
5311
+ ]
5312
+ }
5313
+ },
5314
+ "🔒/toggle-switch-track-border-color-checked-hover": {
5315
+ "$value": "{action-selected-border-color-hover}",
5316
+ "$type": "color",
5317
+ "$description": "Used for the track border color of a checked toggle switch in the hover state.",
5318
+ "$extensions": {
5319
+ "com.figma.scopes": [
5320
+ "STROKE_COLOR"
5321
+ ]
5322
+ }
5323
+ },
5324
+ "🔒/toggle-switch-track-border-color-checked-focus": {
5325
+ "$value": "{action-selected-border-color-focus}",
5326
+ "$type": "color",
5327
+ "$description": "Used for the track border color of a checked toggle switch in the focus state.",
5328
+ "$extensions": {
5329
+ "com.figma.scopes": [
5330
+ "STROKE_COLOR"
5331
+ ]
5332
+ }
5333
+ },
5334
+ "🔒/toggle-switch-track-border-color-checked-active": {
5335
+ "$value": "{action-selected-border-color-active}",
5336
+ "$type": "color",
5337
+ "$description": "Used for the track border color of a checked toggle switch in the active state.",
5338
+ "$extensions": {
5339
+ "com.figma.scopes": [
5340
+ "STROKE_COLOR"
5341
+ ]
5342
+ }
5343
+ },
5344
+ "🔒/toggle-switch-track-border-color-checked-disabled": {
5345
+ "$value": "{🔒/toggle-switch-track-color-checked-disabled}",
5346
+ "$type": "color",
5347
+ "$description": "Used for the track border color of a disabled checked toggle switch, which matches the track color.",
5348
+ "$extensions": {
5349
+ "com.figma.scopes": [
5350
+ "STROKE_COLOR"
5351
+ ]
5352
+ }
5353
+ },
5354
+ "🔒/toggle-switch-track-border-color-loading": {
5355
+ "$value": "{🔒/toggle-switch-track-color-loading}",
5356
+ "$type": "color",
5357
+ "$description": "Used for the track border color of a loading toggle switch, which matches the track color so the track reads as a single flat fill.",
5358
+ "$extensions": {
5359
+ "com.figma.scopes": [
5360
+ "STROKE_COLOR"
5361
+ ]
5362
+ }
5363
+ },
5210
5364
  "🔒/toggle-switch-background-color-unchecked-default": {
5211
- "$value": "{control-indicator-color-selected}",
5365
+ "$value": "{action-selected-background-color-default}",
5212
5366
  "$type": "color",
5213
5367
  "$description": "Used for the background color of the unchecked toggle switch thumb in the default state.",
5214
5368
  "$extensions": {
@@ -5251,8 +5405,19 @@
5251
5405
  ]
5252
5406
  }
5253
5407
  },
5408
+ "🔒/toggle-switch-background-color-unchecked-disabled": {
5409
+ "$value": "{action-disabled-foreground-color}",
5410
+ "$type": "color",
5411
+ "$description": "Used for the background color of the disabled unchecked toggle switch thumb.",
5412
+ "$extensions": {
5413
+ "com.figma.scopes": [
5414
+ "SHAPE_FILL",
5415
+ "FRAME_FILL"
5416
+ ]
5417
+ }
5418
+ },
5254
5419
  "🔒/toggle-switch-background-color-checked-default": {
5255
- "$value": "{action-strong-confirm-foreground-color-default}",
5420
+ "$value": "{action-selected-foreground-color-default}",
5256
5421
  "$type": "color",
5257
5422
  "$description": "Used for the background color of the checked toggle switch thumb in the default state.",
5258
5423
  "$extensions": {
@@ -5263,7 +5428,7 @@
5263
5428
  }
5264
5429
  },
5265
5430
  "🔒/toggle-switch-background-color-checked-hover": {
5266
- "$value": "{action-strong-confirm-foreground-color-hover}",
5431
+ "$value": "{action-selected-foreground-color-hover}",
5267
5432
  "$type": "color",
5268
5433
  "$description": "Used for the background color of the checked toggle switch thumb in the hover state.",
5269
5434
  "$extensions": {
@@ -5274,7 +5439,7 @@
5274
5439
  }
5275
5440
  },
5276
5441
  "🔒/toggle-switch-background-color-checked-focus": {
5277
- "$value": "{action-strong-confirm-foreground-color-focus}",
5442
+ "$value": "{action-selected-foreground-color-focus}",
5278
5443
  "$type": "color",
5279
5444
  "$description": "Used for the background color of the checked toggle switch thumb in the focus state.",
5280
5445
  "$extensions": {
@@ -5285,7 +5450,7 @@
5285
5450
  }
5286
5451
  },
5287
5452
  "🔒/toggle-switch-background-color-checked-active": {
5288
- "$value": "{action-strong-confirm-foreground-color-active}",
5453
+ "$value": "{action-selected-foreground-color-active}",
5289
5454
  "$type": "color",
5290
5455
  "$description": "Used for the background color of the checked toggle switch thumb in the active state.",
5291
5456
  "$extensions": {
@@ -5295,10 +5460,10 @@
5295
5460
  ]
5296
5461
  }
5297
5462
  },
5298
- "🔒/toggle-switch-background-color-disabled": {
5299
- "$value": "{action-disabled-foreground-color}",
5463
+ "🔒/toggle-switch-background-color-checked-disabled": {
5464
+ "$value": "{action-selected-foreground-color-default}",
5300
5465
  "$type": "color",
5301
- "$description": "Used for the background color of the toggle switch thumb in the disabled state.",
5466
+ "$description": "Used for the background color of the disabled checked toggle switch thumb.",
5302
5467
  "$extensions": {
5303
5468
  "com.figma.scopes": [
5304
5469
  "SHAPE_FILL",
@@ -5307,7 +5472,7 @@
5307
5472
  }
5308
5473
  },
5309
5474
  "🔒/toggle-switch-icon-color-unchecked-default": {
5310
- "$value": "{action-strong-neutral-background-color-default}",
5475
+ "$value": "{action-selected-foreground-color-default}",
5311
5476
  "$type": "color",
5312
5477
  "$description": "Used for the icon color of an unchecked toggle switch in the default state.",
5313
5478
  "$extensions": {
@@ -5317,7 +5482,7 @@
5317
5482
  }
5318
5483
  },
5319
5484
  "🔒/toggle-switch-icon-color-unchecked-hover": {
5320
- "$value": "{action-strong-neutral-background-color-hover}",
5485
+ "$value": "{action-selected-foreground-color-hover}",
5321
5486
  "$type": "color",
5322
5487
  "$description": "Used for the icon color of an unchecked toggle switch in the hover state.",
5323
5488
  "$extensions": {
@@ -5327,7 +5492,7 @@
5327
5492
  }
5328
5493
  },
5329
5494
  "🔒/toggle-switch-icon-color-unchecked-focus": {
5330
- "$value": "{action-strong-neutral-background-color-focus}",
5495
+ "$value": "{action-selected-foreground-color-focus}",
5331
5496
  "$type": "color",
5332
5497
  "$description": "Used for the icon color of an unchecked toggle switch in the focus state.",
5333
5498
  "$extensions": {
@@ -5337,7 +5502,7 @@
5337
5502
  }
5338
5503
  },
5339
5504
  "🔒/toggle-switch-icon-color-unchecked-active": {
5340
- "$value": "{action-strong-neutral-background-color-active}",
5505
+ "$value": "{action-selected-foreground-color-active}",
5341
5506
  "$type": "color",
5342
5507
  "$description": "Used for the icon color of an unchecked toggle switch in the active state.",
5343
5508
  "$extensions": {
@@ -5347,7 +5512,7 @@
5347
5512
  }
5348
5513
  },
5349
5514
  "🔒/toggle-switch-icon-color-checked-default": {
5350
- "$value": "{action-strong-confirm-background-color-default}",
5515
+ "$value": "{action-selected-background-color-default}",
5351
5516
  "$type": "color",
5352
5517
  "$description": "Used for the icon color of a checked toggle switch in the default state.",
5353
5518
  "$extensions": {
@@ -5357,7 +5522,7 @@
5357
5522
  }
5358
5523
  },
5359
5524
  "🔒/toggle-switch-icon-color-checked-hover": {
5360
- "$value": "{action-strong-confirm-background-color-hover}",
5525
+ "$value": "{action-selected-background-color-hover}",
5361
5526
  "$type": "color",
5362
5527
  "$description": "Used for the icon color of a checked toggle switch in the hover state.",
5363
5528
  "$extensions": {
@@ -5367,7 +5532,7 @@
5367
5532
  }
5368
5533
  },
5369
5534
  "🔒/toggle-switch-icon-color-checked-focus": {
5370
- "$value": "{action-strong-confirm-background-color-focus}",
5535
+ "$value": "{action-selected-background-color-focus}",
5371
5536
  "$type": "color",
5372
5537
  "$description": "Used for the icon color of a checked toggle switch in the focus state.",
5373
5538
  "$extensions": {
@@ -5377,7 +5542,7 @@
5377
5542
  }
5378
5543
  },
5379
5544
  "🔒/toggle-switch-icon-color-checked-active": {
5380
- "$value": "{action-strong-confirm-background-color-active}",
5545
+ "$value": "{action-selected-background-color-active}",
5381
5546
  "$type": "color",
5382
5547
  "$description": "Used for the icon color of a checked toggle switch in the active state.",
5383
5548
  "$extensions": {
@@ -5579,6 +5744,17 @@
5579
5744
  ]
5580
5745
  }
5581
5746
  },
5747
+ "action-selected-background-color-disabled": {
5748
+ "$value": "{color-neutral-500}",
5749
+ "$type": "color",
5750
+ "$description": "Used for the background of a disabled action that stays selected. Sits between the disabled background and the enabled selected background so the selected state keeps 3:1 contrast against the page while still reading as disabled.",
5751
+ "$extensions": {
5752
+ "com.figma.scopes": [
5753
+ "FRAME_FILL",
5754
+ "SHAPE_FILL"
5755
+ ]
5756
+ }
5757
+ },
5582
5758
  "action-selected-border-color-default": {
5583
5759
  "$value": "{action-selected-background-color-default}",
5584
5760
  "$type": "color",