@gitlab/ui 123.0.0 → 123.2.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/popover/popover.js +18 -3
  2. package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +2 -2
  3. package/dist/components/experimental/experiment_badge/experiment_badge.js +1 -1
  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 +3 -3
  22. package/src/components/base/popover/popover.vue +21 -3
  23. package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +2 -2
  24. package/src/components/experimental/experiment_badge/experiment_badge.vue +1 -1
  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
@@ -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';
@@ -6702,6 +6702,240 @@
6702
6702
  ]
6703
6703
  }
6704
6704
  },
6705
+ "shadow": {
6706
+ "sm": {
6707
+ "key": "{shadow.sm}",
6708
+ "$value": [
6709
+ {
6710
+ "color": "rgba(05, 05, 06, 0.4)",
6711
+ "offsetX": 0,
6712
+ "offsetY": 0,
6713
+ "blur": "2px",
6714
+ "spread": 0
6715
+ },
6716
+ {
6717
+ "color": "rgba(05, 05, 06, 0.4)",
6718
+ "offsetX": 0,
6719
+ "offsetY": "1px",
6720
+ "blur": "4px",
6721
+ "spread": 0
6722
+ }
6723
+ ],
6724
+ "$type": "shadow",
6725
+ "$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
6726
+ "$extensions": {
6727
+ "com.figma.scope": []
6728
+ },
6729
+ "filePath": "src/tokens/constant/shadow.tokens.json",
6730
+ "isSource": true,
6731
+ "original": {
6732
+ "$value": [
6733
+ {
6734
+ "color": "{shadow.color.default}",
6735
+ "offsetX": 0,
6736
+ "offsetY": 0,
6737
+ "blur": "2px",
6738
+ "spread": 0
6739
+ },
6740
+ {
6741
+ "color": "{shadow.color.default}",
6742
+ "offsetX": 0,
6743
+ "offsetY": "1px",
6744
+ "blur": "4px",
6745
+ "spread": 0
6746
+ }
6747
+ ],
6748
+ "$type": "shadow",
6749
+ "$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
6750
+ "$extensions": {
6751
+ "com.figma.scope": []
6752
+ },
6753
+ "key": "{shadow.sm}"
6754
+ },
6755
+ "name": "SHADOW_SM",
6756
+ "attributes": {},
6757
+ "path": [
6758
+ "shadow",
6759
+ "sm"
6760
+ ]
6761
+ },
6762
+ "md": {
6763
+ "key": "{shadow.md}",
6764
+ "$value": [
6765
+ {
6766
+ "color": "rgba(05, 05, 06, 0.4)",
6767
+ "offsetX": 0,
6768
+ "offsetY": 0,
6769
+ "blur": "1px",
6770
+ "spread": 0
6771
+ },
6772
+ {
6773
+ "color": "rgba(05, 05, 06, 0.4)",
6774
+ "offsetX": 0,
6775
+ "offsetY": 0,
6776
+ "blur": "2px",
6777
+ "spread": 0
6778
+ },
6779
+ {
6780
+ "color": "rgba(05, 05, 06, 0.4)",
6781
+ "offsetX": 0,
6782
+ "offsetY": "2px",
6783
+ "blur": "8px",
6784
+ "spread": 0
6785
+ }
6786
+ ],
6787
+ "$type": "shadow",
6788
+ "$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
6789
+ "$extensions": {
6790
+ "com.figma.scope": []
6791
+ },
6792
+ "filePath": "src/tokens/constant/shadow.tokens.json",
6793
+ "isSource": true,
6794
+ "original": {
6795
+ "$value": [
6796
+ {
6797
+ "color": "{shadow.color.default}",
6798
+ "offsetX": 0,
6799
+ "offsetY": 0,
6800
+ "blur": "1px",
6801
+ "spread": 0
6802
+ },
6803
+ {
6804
+ "color": "{shadow.color.default}",
6805
+ "offsetX": 0,
6806
+ "offsetY": 0,
6807
+ "blur": "2px",
6808
+ "spread": 0
6809
+ },
6810
+ {
6811
+ "color": "{shadow.color.default}",
6812
+ "offsetX": 0,
6813
+ "offsetY": "2px",
6814
+ "blur": "8px",
6815
+ "spread": 0
6816
+ }
6817
+ ],
6818
+ "$type": "shadow",
6819
+ "$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
6820
+ "$extensions": {
6821
+ "com.figma.scope": []
6822
+ },
6823
+ "key": "{shadow.md}"
6824
+ },
6825
+ "name": "SHADOW_MD",
6826
+ "attributes": {},
6827
+ "path": [
6828
+ "shadow",
6829
+ "md"
6830
+ ]
6831
+ },
6832
+ "lg": {
6833
+ "key": "{shadow.lg}",
6834
+ "$value": [
6835
+ {
6836
+ "color": "rgba(05, 05, 06, 0.4)",
6837
+ "offsetX": 0,
6838
+ "offsetY": 0,
6839
+ "blur": "2px",
6840
+ "spread": 0
6841
+ },
6842
+ {
6843
+ "color": "rgba(05, 05, 06, 0.4)",
6844
+ "offsetX": 0,
6845
+ "offsetY": 0,
6846
+ "blur": "2px",
6847
+ "spread": 0
6848
+ },
6849
+ {
6850
+ "color": "rgba(05, 05, 06, 0.4)",
6851
+ "offsetX": 0,
6852
+ "offsetY": "4px",
6853
+ "blur": "12px",
6854
+ "spread": 0
6855
+ }
6856
+ ],
6857
+ "$type": "shadow",
6858
+ "$description": "Used for large surfaces that present additional context to the user.",
6859
+ "$extensions": {
6860
+ "com.figma.scope": []
6861
+ },
6862
+ "filePath": "src/tokens/constant/shadow.tokens.json",
6863
+ "isSource": true,
6864
+ "original": {
6865
+ "$value": [
6866
+ {
6867
+ "color": "{shadow.color.default}",
6868
+ "offsetX": 0,
6869
+ "offsetY": 0,
6870
+ "blur": "2px",
6871
+ "spread": 0
6872
+ },
6873
+ {
6874
+ "color": "{shadow.color.default}",
6875
+ "offsetX": 0,
6876
+ "offsetY": 0,
6877
+ "blur": "2px",
6878
+ "spread": 0
6879
+ },
6880
+ {
6881
+ "color": "{shadow.color.default}",
6882
+ "offsetX": 0,
6883
+ "offsetY": "4px",
6884
+ "blur": "12px",
6885
+ "spread": 0
6886
+ }
6887
+ ],
6888
+ "$type": "shadow",
6889
+ "$description": "Used for large surfaces that present additional context to the user.",
6890
+ "$extensions": {
6891
+ "com.figma.scope": []
6892
+ },
6893
+ "key": "{shadow.lg}"
6894
+ },
6895
+ "name": "SHADOW_LG",
6896
+ "attributes": {},
6897
+ "path": [
6898
+ "shadow",
6899
+ "lg"
6900
+ ]
6901
+ },
6902
+ "color": {
6903
+ "default": {
6904
+ "key": "{shadow.color.default}",
6905
+ "$value": "rgba(05, 05, 06, 0.4)",
6906
+ "$type": "color",
6907
+ "$description": "Used for the default shadow color.",
6908
+ "$extensions": {
6909
+ "com.figma.scope": [
6910
+ "EFFECT_COLOR"
6911
+ ]
6912
+ },
6913
+ "filePath": "src/tokens/semantic/shadow.tokens.json",
6914
+ "isSource": true,
6915
+ "original": {
6916
+ "$value": {
6917
+ "default": "{color.alpha.dark.16}",
6918
+ "dark": "{color.alpha.dark.40}"
6919
+ },
6920
+ "$type": "color",
6921
+ "$description": "Used for the default shadow color.",
6922
+ "$extensions": {
6923
+ "com.figma.scope": [
6924
+ "EFFECT_COLOR"
6925
+ ]
6926
+ },
6927
+ "key": "{shadow.color.default}"
6928
+ },
6929
+ "name": "SHADOW_COLOR_DEFAULT",
6930
+ "attributes": {},
6931
+ "path": [
6932
+ "shadow",
6933
+ "color",
6934
+ "default"
6935
+ ]
6936
+ }
6937
+ }
6938
+ },
6705
6939
  "spacing-scale": {
6706
6940
  "0": {
6707
6941
  "key": "{spacing-scale.0}",
@@ -36057,44 +36291,6 @@
36057
36291
  }
36058
36292
  }
36059
36293
  },
36060
- "shadow": {
36061
- "color": {
36062
- "default": {
36063
- "key": "{shadow.color.default}",
36064
- "$value": "rgba(05, 05, 06, 0.4)",
36065
- "$type": "color",
36066
- "$description": "Used for the default shadow color.",
36067
- "$extensions": {
36068
- "com.figma.scope": [
36069
- "EFFECT_COLOR"
36070
- ]
36071
- },
36072
- "filePath": "src/tokens/semantic/shadow.tokens.json",
36073
- "isSource": true,
36074
- "original": {
36075
- "$value": {
36076
- "default": "{color.alpha.dark.16}",
36077
- "dark": "{color.alpha.dark.40}"
36078
- },
36079
- "$type": "color",
36080
- "$description": "Used for the default shadow color.",
36081
- "$extensions": {
36082
- "com.figma.scope": [
36083
- "EFFECT_COLOR"
36084
- ]
36085
- },
36086
- "key": "{shadow.color.default}"
36087
- },
36088
- "name": "SHADOW_COLOR_DEFAULT",
36089
- "attributes": {},
36090
- "path": [
36091
- "shadow",
36092
- "color",
36093
- "default"
36094
- ]
36095
- }
36096
- }
36097
- },
36098
36294
  "status": {
36099
36295
  "neutral": {
36100
36296
  "background": {