@gitlab/ui 122.14.0 → 123.1.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.
Files changed (39) hide show
  1. package/dist/components/base/avatar/avatar.js +22 -12
  2. package/dist/components/base/avatar/utils.js +17 -0
  3. package/dist/components/base/avatar_labeled/avatar_labeled.js +83 -2
  4. package/dist/index.css +2 -2
  5. package/dist/index.css.map +1 -1
  6. package/dist/tokens/build/js/tokens.dark.js +53 -2
  7. package/dist/tokens/build/js/tokens.js +53 -2
  8. package/dist/tokens/css/tokens.css +4 -1
  9. package/dist/tokens/css/tokens.dark.css +4 -1
  10. package/dist/tokens/docs/tokens-tailwind-docs.dark.json +201 -0
  11. package/dist/tokens/docs/tokens-tailwind-docs.json +201 -0
  12. package/dist/tokens/figma/constants.tokens.json +85 -0
  13. package/dist/tokens/js/tokens.dark.js +63 -1
  14. package/dist/tokens/js/tokens.js +63 -1
  15. package/dist/tokens/json/tokens.dark.json +234 -38
  16. package/dist/tokens/json/tokens.json +234 -38
  17. package/dist/tokens/scss/_tokens.dark.scss +4 -1
  18. package/dist/tokens/scss/_tokens.scss +4 -1
  19. package/dist/tokens/scss/_tokens_custom_properties.scss +4 -1
  20. package/dist/tokens/tailwind/tokens.cjs +2 -0
  21. package/package.json +2 -5
  22. package/src/components/base/avatar/avatar.vue +22 -16
  23. package/src/components/base/avatar/utils.js +19 -0
  24. package/src/components/base/avatar_labeled/avatar_labeled.vue +83 -2
  25. package/src/tokens/build/css/tokens.css +4 -1
  26. package/src/tokens/build/css/tokens.dark.css +4 -1
  27. package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +201 -0
  28. package/src/tokens/build/docs/tokens-tailwind-docs.json +201 -0
  29. package/src/tokens/build/figma/constants.tokens.json +85 -0
  30. package/src/tokens/build/js/tokens.dark.js +63 -1
  31. package/src/tokens/build/js/tokens.js +63 -1
  32. package/src/tokens/build/json/tokens.dark.json +234 -38
  33. package/src/tokens/build/json/tokens.json +234 -38
  34. package/src/tokens/build/scss/_tokens.dark.scss +4 -1
  35. package/src/tokens/build/scss/_tokens.scss +4 -1
  36. package/src/tokens/build/scss/_tokens_custom_properties.scss +4 -1
  37. package/src/tokens/build/tailwind/tokens.cjs +6 -0
  38. package/src/tokens/constant/shadow.tokens.json +87 -0
  39. package/tailwind.defaults.js +3 -5
@@ -44512,5 +44512,206 @@
44512
44512
  ],
44513
44513
  "cssWithValue": "var(--gl-zindex-9999, 9999)"
44514
44514
  }
44515
+ },
44516
+ "boxShadow": {
44517
+ "sm": {
44518
+ "key": "{shadow.sm}",
44519
+ "$value": [
44520
+ {
44521
+ "color": "rgba(05, 05, 06, 0.16)",
44522
+ "offsetX": 0,
44523
+ "offsetY": 0,
44524
+ "blur": "2px",
44525
+ "spread": 0
44526
+ },
44527
+ {
44528
+ "color": "rgba(05, 05, 06, 0.16)",
44529
+ "offsetX": 0,
44530
+ "offsetY": "1px",
44531
+ "blur": "4px",
44532
+ "spread": 0
44533
+ }
44534
+ ],
44535
+ "$type": "shadow",
44536
+ "$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
44537
+ "$extensions": {
44538
+ "com.figma.scope": []
44539
+ },
44540
+ "filePath": "src/tokens/constant/shadow.tokens.json",
44541
+ "isSource": true,
44542
+ "original": {
44543
+ "$value": [
44544
+ {
44545
+ "color": "{shadow.color.default}",
44546
+ "offsetX": 0,
44547
+ "offsetY": 0,
44548
+ "blur": "2px",
44549
+ "spread": 0
44550
+ },
44551
+ {
44552
+ "color": "{shadow.color.default}",
44553
+ "offsetX": 0,
44554
+ "offsetY": "1px",
44555
+ "blur": "4px",
44556
+ "spread": 0
44557
+ }
44558
+ ],
44559
+ "$type": "shadow",
44560
+ "$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
44561
+ "$extensions": {
44562
+ "com.figma.scope": []
44563
+ },
44564
+ "key": "{shadow.sm}"
44565
+ },
44566
+ "name": "SHADOW_SM",
44567
+ "attributes": {},
44568
+ "path": [
44569
+ "shadow",
44570
+ "sm"
44571
+ ],
44572
+ "cssWithValue": "var(--gl-shadow-sm)"
44573
+ },
44574
+ "md": {
44575
+ "key": "{shadow.md}",
44576
+ "$value": [
44577
+ {
44578
+ "color": "rgba(05, 05, 06, 0.16)",
44579
+ "offsetX": 0,
44580
+ "offsetY": 0,
44581
+ "blur": "1px",
44582
+ "spread": 0
44583
+ },
44584
+ {
44585
+ "color": "rgba(05, 05, 06, 0.16)",
44586
+ "offsetX": 0,
44587
+ "offsetY": 0,
44588
+ "blur": "2px",
44589
+ "spread": 0
44590
+ },
44591
+ {
44592
+ "color": "rgba(05, 05, 06, 0.16)",
44593
+ "offsetX": 0,
44594
+ "offsetY": "2px",
44595
+ "blur": "8px",
44596
+ "spread": 0
44597
+ }
44598
+ ],
44599
+ "$type": "shadow",
44600
+ "$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
44601
+ "$extensions": {
44602
+ "com.figma.scope": []
44603
+ },
44604
+ "filePath": "src/tokens/constant/shadow.tokens.json",
44605
+ "isSource": true,
44606
+ "original": {
44607
+ "$value": [
44608
+ {
44609
+ "color": "{shadow.color.default}",
44610
+ "offsetX": 0,
44611
+ "offsetY": 0,
44612
+ "blur": "1px",
44613
+ "spread": 0
44614
+ },
44615
+ {
44616
+ "color": "{shadow.color.default}",
44617
+ "offsetX": 0,
44618
+ "offsetY": 0,
44619
+ "blur": "2px",
44620
+ "spread": 0
44621
+ },
44622
+ {
44623
+ "color": "{shadow.color.default}",
44624
+ "offsetX": 0,
44625
+ "offsetY": "2px",
44626
+ "blur": "8px",
44627
+ "spread": 0
44628
+ }
44629
+ ],
44630
+ "$type": "shadow",
44631
+ "$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
44632
+ "$extensions": {
44633
+ "com.figma.scope": []
44634
+ },
44635
+ "key": "{shadow.md}"
44636
+ },
44637
+ "name": "SHADOW_MD",
44638
+ "attributes": {},
44639
+ "path": [
44640
+ "shadow",
44641
+ "md"
44642
+ ],
44643
+ "cssWithValue": "var(--gl-shadow-md)"
44644
+ },
44645
+ "lg": {
44646
+ "key": "{shadow.lg}",
44647
+ "$value": [
44648
+ {
44649
+ "color": "rgba(05, 05, 06, 0.16)",
44650
+ "offsetX": 0,
44651
+ "offsetY": 0,
44652
+ "blur": "2px",
44653
+ "spread": 0
44654
+ },
44655
+ {
44656
+ "color": "rgba(05, 05, 06, 0.16)",
44657
+ "offsetX": 0,
44658
+ "offsetY": 0,
44659
+ "blur": "2px",
44660
+ "spread": 0
44661
+ },
44662
+ {
44663
+ "color": "rgba(05, 05, 06, 0.16)",
44664
+ "offsetX": 0,
44665
+ "offsetY": "4px",
44666
+ "blur": "12px",
44667
+ "spread": 0
44668
+ }
44669
+ ],
44670
+ "$type": "shadow",
44671
+ "$description": "Used for large surfaces that present additional context to the user.",
44672
+ "$extensions": {
44673
+ "com.figma.scope": []
44674
+ },
44675
+ "filePath": "src/tokens/constant/shadow.tokens.json",
44676
+ "isSource": true,
44677
+ "original": {
44678
+ "$value": [
44679
+ {
44680
+ "color": "{shadow.color.default}",
44681
+ "offsetX": 0,
44682
+ "offsetY": 0,
44683
+ "blur": "2px",
44684
+ "spread": 0
44685
+ },
44686
+ {
44687
+ "color": "{shadow.color.default}",
44688
+ "offsetX": 0,
44689
+ "offsetY": 0,
44690
+ "blur": "2px",
44691
+ "spread": 0
44692
+ },
44693
+ {
44694
+ "color": "{shadow.color.default}",
44695
+ "offsetX": 0,
44696
+ "offsetY": "4px",
44697
+ "blur": "12px",
44698
+ "spread": 0
44699
+ }
44700
+ ],
44701
+ "$type": "shadow",
44702
+ "$description": "Used for large surfaces that present additional context to the user.",
44703
+ "$extensions": {
44704
+ "com.figma.scope": []
44705
+ },
44706
+ "key": "{shadow.lg}"
44707
+ },
44708
+ "name": "SHADOW_LG",
44709
+ "attributes": {},
44710
+ "path": [
44711
+ "shadow",
44712
+ "lg"
44713
+ ],
44714
+ "cssWithValue": "var(--gl-shadow-lg)"
44715
+ }
44515
44716
  }
44516
44717
  }
@@ -1876,6 +1876,91 @@
1876
1876
  }
1877
1877
  }
1878
1878
  },
1879
+ "shadow": {
1880
+ "sm": {
1881
+ "$value": [
1882
+ {
1883
+ "color": "{shadow.color.default}",
1884
+ "offsetX": 0,
1885
+ "offsetY": 0,
1886
+ "blur": "2px",
1887
+ "spread": 0
1888
+ },
1889
+ {
1890
+ "color": "{shadow.color.default}",
1891
+ "offsetX": 0,
1892
+ "offsetY": "1px",
1893
+ "blur": "4px",
1894
+ "spread": 0
1895
+ }
1896
+ ],
1897
+ "$type": "shadow",
1898
+ "$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
1899
+ "$extensions": {
1900
+ "com.figma.scope": []
1901
+ }
1902
+ },
1903
+ "md": {
1904
+ "$value": [
1905
+ {
1906
+ "color": "{shadow.color.default}",
1907
+ "offsetX": 0,
1908
+ "offsetY": 0,
1909
+ "blur": "1px",
1910
+ "spread": 0
1911
+ },
1912
+ {
1913
+ "color": "{shadow.color.default}",
1914
+ "offsetX": 0,
1915
+ "offsetY": 0,
1916
+ "blur": "2px",
1917
+ "spread": 0
1918
+ },
1919
+ {
1920
+ "color": "{shadow.color.default}",
1921
+ "offsetX": 0,
1922
+ "offsetY": "2px",
1923
+ "blur": "8px",
1924
+ "spread": 0
1925
+ }
1926
+ ],
1927
+ "$type": "shadow",
1928
+ "$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
1929
+ "$extensions": {
1930
+ "com.figma.scope": []
1931
+ }
1932
+ },
1933
+ "lg": {
1934
+ "$value": [
1935
+ {
1936
+ "color": "{shadow.color.default}",
1937
+ "offsetX": 0,
1938
+ "offsetY": 0,
1939
+ "blur": "2px",
1940
+ "spread": 0
1941
+ },
1942
+ {
1943
+ "color": "{shadow.color.default}",
1944
+ "offsetX": 0,
1945
+ "offsetY": 0,
1946
+ "blur": "2px",
1947
+ "spread": 0
1948
+ },
1949
+ {
1950
+ "color": "{shadow.color.default}",
1951
+ "offsetX": 0,
1952
+ "offsetY": "4px",
1953
+ "blur": "12px",
1954
+ "spread": 0
1955
+ }
1956
+ ],
1957
+ "$type": "shadow",
1958
+ "$description": "Used for large surfaces that present additional context to the user.",
1959
+ "$extensions": {
1960
+ "com.figma.scope": []
1961
+ }
1962
+ }
1963
+ },
1879
1964
  "spacing-scale": {
1880
1965
  "0": {
1881
1966
  "$value": "0",
@@ -264,6 +264,69 @@ export const GL_OPACITY_7 = '.7';
264
264
  export const GL_OPACITY_8 = '.8';
265
265
  export const GL_OPACITY_9 = '.9';
266
266
  export const GL_OPACITY_10 = '1';
267
+ export const GL_SHADOW_SM = [
268
+ {
269
+ color: 'rgba(05, 05, 06, 0.4)',
270
+ offsetX: 0,
271
+ offsetY: 0,
272
+ blur: '2px',
273
+ spread: 0,
274
+ },
275
+ {
276
+ color: 'rgba(05, 05, 06, 0.4)',
277
+ offsetX: 0,
278
+ offsetY: '1px',
279
+ blur: '4px',
280
+ spread: 0,
281
+ },
282
+ ];
283
+ export const GL_SHADOW_MD = [
284
+ {
285
+ color: 'rgba(05, 05, 06, 0.4)',
286
+ offsetX: 0,
287
+ offsetY: 0,
288
+ blur: '1px',
289
+ spread: 0,
290
+ },
291
+ {
292
+ color: 'rgba(05, 05, 06, 0.4)',
293
+ offsetX: 0,
294
+ offsetY: 0,
295
+ blur: '2px',
296
+ spread: 0,
297
+ },
298
+ {
299
+ color: 'rgba(05, 05, 06, 0.4)',
300
+ offsetX: 0,
301
+ offsetY: '2px',
302
+ blur: '8px',
303
+ spread: 0,
304
+ },
305
+ ];
306
+ export const GL_SHADOW_LG = [
307
+ {
308
+ color: 'rgba(05, 05, 06, 0.4)',
309
+ offsetX: 0,
310
+ offsetY: 0,
311
+ blur: '2px',
312
+ spread: 0,
313
+ },
314
+ {
315
+ color: 'rgba(05, 05, 06, 0.4)',
316
+ offsetX: 0,
317
+ offsetY: 0,
318
+ blur: '2px',
319
+ spread: 0,
320
+ },
321
+ {
322
+ color: 'rgba(05, 05, 06, 0.4)',
323
+ offsetX: 0,
324
+ offsetY: '4px',
325
+ blur: '12px',
326
+ spread: 0,
327
+ },
328
+ ];
329
+ export const GL_SHADOW_COLOR_DEFAULT = 'rgba(05, 05, 06, 0.4)';
267
330
  export const GL_SPACING_SCALE_0 = '0';
268
331
  export const GL_SPACING_SCALE_1 = '0.125rem';
269
332
  export const GL_SPACING_SCALE_2 = '0.25rem';
@@ -1086,7 +1149,6 @@ export const GL_ICON_COLOR_INFO = '#9dc7f1';
1086
1149
  export const GL_ICON_COLOR_WARNING = '#d99530';
1087
1150
  export const GL_ICON_COLOR_DANGER = '#f6806d';
1088
1151
  export const GL_ICON_COLOR_SUCCESS = '#52b87a';
1089
- export const GL_SHADOW_COLOR_DEFAULT = 'rgba(05, 05, 06, 0.4)';
1090
1152
  export const GL_STATUS_NEUTRAL_BACKGROUND_COLOR = '#3a383f';
1091
1153
  export const GL_STATUS_NEUTRAL_TEXT_COLOR = '#bfbfc3';
1092
1154
  export const GL_STATUS_NEUTRAL_ICON_COLOR = '#a4a3a8';
@@ -264,6 +264,69 @@ export const GL_OPACITY_7 = '.7';
264
264
  export const GL_OPACITY_8 = '.8';
265
265
  export const GL_OPACITY_9 = '.9';
266
266
  export const GL_OPACITY_10 = '1';
267
+ export const GL_SHADOW_SM = [
268
+ {
269
+ color: 'rgba(05, 05, 06, 0.16)',
270
+ offsetX: 0,
271
+ offsetY: 0,
272
+ blur: '2px',
273
+ spread: 0,
274
+ },
275
+ {
276
+ color: 'rgba(05, 05, 06, 0.16)',
277
+ offsetX: 0,
278
+ offsetY: '1px',
279
+ blur: '4px',
280
+ spread: 0,
281
+ },
282
+ ];
283
+ export const GL_SHADOW_MD = [
284
+ {
285
+ color: 'rgba(05, 05, 06, 0.16)',
286
+ offsetX: 0,
287
+ offsetY: 0,
288
+ blur: '1px',
289
+ spread: 0,
290
+ },
291
+ {
292
+ color: 'rgba(05, 05, 06, 0.16)',
293
+ offsetX: 0,
294
+ offsetY: 0,
295
+ blur: '2px',
296
+ spread: 0,
297
+ },
298
+ {
299
+ color: 'rgba(05, 05, 06, 0.16)',
300
+ offsetX: 0,
301
+ offsetY: '2px',
302
+ blur: '8px',
303
+ spread: 0,
304
+ },
305
+ ];
306
+ export const GL_SHADOW_LG = [
307
+ {
308
+ color: 'rgba(05, 05, 06, 0.16)',
309
+ offsetX: 0,
310
+ offsetY: 0,
311
+ blur: '2px',
312
+ spread: 0,
313
+ },
314
+ {
315
+ color: 'rgba(05, 05, 06, 0.16)',
316
+ offsetX: 0,
317
+ offsetY: 0,
318
+ blur: '2px',
319
+ spread: 0,
320
+ },
321
+ {
322
+ color: 'rgba(05, 05, 06, 0.16)',
323
+ offsetX: 0,
324
+ offsetY: '4px',
325
+ blur: '12px',
326
+ spread: 0,
327
+ },
328
+ ];
329
+ export const GL_SHADOW_COLOR_DEFAULT = 'rgba(05, 05, 06, 0.16)';
267
330
  export const GL_SPACING_SCALE_0 = '0';
268
331
  export const GL_SPACING_SCALE_1 = '0.125rem';
269
332
  export const GL_SPACING_SCALE_2 = '0.25rem';
@@ -1086,7 +1149,6 @@ export const GL_ICON_COLOR_INFO = '#2f5ca0';
1086
1149
  export const GL_ICON_COLOR_WARNING = '#995715';
1087
1150
  export const GL_ICON_COLOR_DANGER = '#c02f12';
1088
1151
  export const GL_ICON_COLOR_SUCCESS = '#2f7549';
1089
- export const GL_SHADOW_COLOR_DEFAULT = 'rgba(05, 05, 06, 0.16)';
1090
1152
  export const GL_STATUS_NEUTRAL_BACKGROUND_COLOR = '#dcdcde';
1091
1153
  export const GL_STATUS_NEUTRAL_TEXT_COLOR = '#4c4b51';
1092
1154
  export const GL_STATUS_NEUTRAL_ICON_COLOR = '#737278';