@gitlab/ui 95.2.1 → 95.4.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 (37) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/components/base/keyset_pagination/keyset_pagination.js +1 -1
  3. package/dist/components/base/paginated_list/paginated_list.js +1 -1
  4. package/dist/components/base/pagination/pagination.js +18 -10
  5. package/dist/index.css +2 -2
  6. package/dist/index.css.map +1 -1
  7. package/dist/tailwind.css +1 -1
  8. package/dist/tailwind.css.map +1 -1
  9. package/dist/tokens/build/js/tokens.dark.js +26 -17
  10. package/dist/tokens/build/js/tokens.js +10 -1
  11. package/dist/tokens/css/tokens.css +9 -0
  12. package/dist/tokens/css/tokens.dark.css +14 -5
  13. package/dist/tokens/js/tokens.dark.js +25 -16
  14. package/dist/tokens/js/tokens.js +9 -0
  15. package/dist/tokens/json/tokens.dark.json +236 -21
  16. package/dist/tokens/json/tokens.json +220 -5
  17. package/dist/tokens/scss/_tokens.dark.scss +14 -5
  18. package/dist/tokens/scss/_tokens.scss +9 -0
  19. package/dist/tokens/scss/_tokens_custom_properties.scss +9 -0
  20. package/package.json +1 -1
  21. package/src/components/base/keyset_pagination/keyset_pagination.vue +2 -0
  22. package/src/components/base/paginated_list/paginated_list.vue +6 -4
  23. package/src/components/base/pagination/pagination.scss +42 -71
  24. package/src/components/base/pagination/pagination.vue +31 -24
  25. package/src/scss/mixins.scss +24 -0
  26. package/src/tokens/action.tokens.json +12 -6
  27. package/src/tokens/build/css/tokens.css +9 -0
  28. package/src/tokens/build/css/tokens.dark.css +14 -5
  29. package/src/tokens/build/js/tokens.dark.js +25 -16
  30. package/src/tokens/build/js/tokens.js +9 -0
  31. package/src/tokens/build/json/tokens.dark.json +236 -21
  32. package/src/tokens/build/json/tokens.json +220 -5
  33. package/src/tokens/build/scss/_tokens.dark.scss +14 -5
  34. package/src/tokens/build/scss/_tokens.scss +9 -0
  35. package/src/tokens/build/scss/_tokens_custom_properties.scss +9 -0
  36. package/src/tokens/contextual/toggle.tokens.json +59 -0
  37. package/translations.js +1 -0
@@ -744,12 +744,12 @@ $gl-background-color-strong: $gl-color-neutral-800; // Used to make the backgrou
744
744
  $gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
745
745
  $gl-background-color-default: $gl-color-neutral-950; // Used for the default background color.
746
746
  $gl-action-strong-neutral-border-color-default: $gl-color-alpha-0; // Used for the border of a strong neutral action in the default state.
747
- $gl-action-strong-neutral-foreground-color-default: $gl-color-neutral-0; // Used for the foreground of a strong neutral action in the default state.
748
- $gl-action-strong-neutral-background-color-active: $gl-color-neutral-100; // Used for the background of a strong neutral action in the active state.
749
- $gl-action-strong-neutral-background-color-hover: $gl-color-neutral-200; // Used for the background of a strong neutral action in the hover state.
750
- $gl-action-strong-neutral-background-color-default: $gl-color-neutral-300; // Used for the background of a strong neutral action in the default state.
747
+ $gl-action-strong-neutral-foreground-color-default: $gl-color-neutral-50; // Used for the foreground of a strong neutral action in the default state.
748
+ $gl-action-strong-neutral-background-color-active: $gl-color-neutral-500; // Used for the background of a strong neutral action in the active state.
749
+ $gl-action-strong-neutral-background-color-hover: $gl-color-neutral-600; // Used for the background of a strong neutral action in the hover state.
750
+ $gl-action-strong-neutral-background-color-default: $gl-color-neutral-700; // Used for the background of a strong neutral action in the default state.
751
751
  $gl-action-strong-confirm-border-color-default: $gl-color-alpha-0; // Used for the border of a strong confirm action in the default state.
752
- $gl-action-strong-confirm-foreground-color-default: $gl-color-neutral-0; // Used for the foreground of a strong confirm action in the default state.
752
+ $gl-action-strong-confirm-foreground-color-default: $gl-color-neutral-950; // Used for the foreground of a strong confirm action in the default state.
753
753
  $gl-action-strong-confirm-background-color-active: $gl-color-blue-200; // Used for the background of a strong confirm action in the active state.
754
754
  $gl-action-strong-confirm-background-color-hover: $gl-color-blue-300; // Used for the background of a strong confirm action in the hover state.
755
755
  $gl-action-strong-confirm-background-color-default: $gl-color-blue-400; // Used for the background of a strong confirm action in the default state.
@@ -778,6 +778,13 @@ $gl-control-placeholder-color: $gl-text-color-disabled; // Used for placeholder
778
778
  $gl-control-text-color-valid: $gl-text-color-success; // Used for the helper text when the input is valid.
779
779
  $gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text when the input is invalid.
780
780
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
781
+ $gl-toggle-switch-icon-color-disabled: $gl-action-disabled-background-color; // Used for the icon color of a disabled toggle switch.
782
+ $gl-toggle-switch-icon-color-checked-active: $gl-action-strong-confirm-background-color-active; // Used for the icon color of a checked toggle switch in the active state.
783
+ $gl-toggle-switch-icon-color-checked-hover: $gl-action-strong-confirm-background-color-hover; // Used for the icon color of a checked toggle switch in the hover state.
784
+ $gl-toggle-switch-icon-color-checked-default: $gl-action-strong-confirm-background-color-default; // Used for the icon color of a checked toggle switch in the default state.
785
+ $gl-toggle-switch-icon-color-unchecked-active: $gl-action-strong-neutral-background-color-active; // Used for the icon color of an unchecked toggle switch in the active state.
786
+ $gl-toggle-switch-icon-color-unchecked-hover: $gl-action-strong-neutral-background-color-hover; // Used for the icon color of an unchecked toggle switch in the hover state.
787
+ $gl-toggle-switch-icon-color-unchecked-default: $gl-action-strong-neutral-background-color-default; // Used for the icon color of an unchecked toggle switch in the default state.
781
788
  $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
782
789
  $gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
783
790
  $gl-progress-bar-indicator-color-danger: $gl-status-danger-icon-color; // Used for the indicator color for the danger progress-bar variant.
@@ -891,6 +898,8 @@ $gl-action-selected-border-color-hover: $gl-action-selected-background-color-hov
891
898
  $gl-action-selected-border-color-default: $gl-action-selected-background-color-default; // Used for the border of a selected action in the default state.
892
899
  $gl-action-selected-background-color-focus: $gl-action-selected-background-color-hover; // Used for the background of a selected action in the focus state.
893
900
  $gl-action-selected-foreground-color-hover: $gl-action-selected-foreground-color-default; // Used for the foreground of a selected action in the hover state.
901
+ $gl-toggle-switch-icon-color-checked-focus: $gl-action-strong-confirm-background-color-focus; // Used for the icon color of a checked toggle switch in the focus state.
902
+ $gl-toggle-switch-icon-color-unchecked-focus: $gl-action-strong-neutral-background-color-focus; // Used for the icon color of an unchecked toggle switch in the focus state.
894
903
  $gl-dropdown-option-text-color-active: $gl-action-neutral-foreground-color-active; // Used for the text of a dropdown option in the active state.
895
904
  $gl-dropdown-option-text-color-focus: $gl-action-neutral-foreground-color-focus; // Used for the text of a dropdown option in the focus state.
896
905
  $gl-dropdown-option-text-color-hover: $gl-action-neutral-foreground-color-hover; // Used for the text of a dropdown option in the hover state.
@@ -778,6 +778,13 @@ $gl-control-placeholder-color: $gl-text-color-disabled; // Used for placeholder
778
778
  $gl-control-text-color-valid: $gl-text-color-success; // Used for the helper text when the input is valid.
779
779
  $gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text when the input is invalid.
780
780
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
781
+ $gl-toggle-switch-icon-color-disabled: $gl-action-disabled-background-color; // Used for the icon color of a disabled toggle switch.
782
+ $gl-toggle-switch-icon-color-checked-active: $gl-action-strong-confirm-background-color-active; // Used for the icon color of a checked toggle switch in the active state.
783
+ $gl-toggle-switch-icon-color-checked-hover: $gl-action-strong-confirm-background-color-hover; // Used for the icon color of a checked toggle switch in the hover state.
784
+ $gl-toggle-switch-icon-color-checked-default: $gl-action-strong-confirm-background-color-default; // Used for the icon color of a checked toggle switch in the default state.
785
+ $gl-toggle-switch-icon-color-unchecked-active: $gl-action-strong-neutral-background-color-active; // Used for the icon color of an unchecked toggle switch in the active state.
786
+ $gl-toggle-switch-icon-color-unchecked-hover: $gl-action-strong-neutral-background-color-hover; // Used for the icon color of an unchecked toggle switch in the hover state.
787
+ $gl-toggle-switch-icon-color-unchecked-default: $gl-action-strong-neutral-background-color-default; // Used for the icon color of an unchecked toggle switch in the default state.
781
788
  $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
782
789
  $gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
783
790
  $gl-progress-bar-indicator-color-danger: $gl-status-danger-icon-color; // Used for the indicator color for the danger progress-bar variant.
@@ -891,6 +898,8 @@ $gl-action-selected-border-color-hover: $gl-action-selected-background-color-hov
891
898
  $gl-action-selected-border-color-default: $gl-action-selected-background-color-default; // Used for the border of a selected action in the default state.
892
899
  $gl-action-selected-background-color-focus: $gl-action-selected-background-color-hover; // Used for the background of a selected action in the focus state.
893
900
  $gl-action-selected-foreground-color-hover: $gl-action-selected-foreground-color-default; // Used for the foreground of a selected action in the hover state.
901
+ $gl-toggle-switch-icon-color-checked-focus: $gl-action-strong-confirm-background-color-focus; // Used for the icon color of a checked toggle switch in the focus state.
902
+ $gl-toggle-switch-icon-color-unchecked-focus: $gl-action-strong-neutral-background-color-focus; // Used for the icon color of an unchecked toggle switch in the focus state.
894
903
  $gl-dropdown-option-text-color-active: $gl-action-neutral-foreground-color-active; // Used for the text of a dropdown option in the active state.
895
904
  $gl-dropdown-option-text-color-focus: $gl-action-neutral-foreground-color-focus; // Used for the text of a dropdown option in the focus state.
896
905
  $gl-dropdown-option-text-color-hover: $gl-action-neutral-foreground-color-hover; // Used for the text of a dropdown option in the hover state.
@@ -682,6 +682,15 @@ $gl-spinner-segment-color-light: var(--gl-spinner-segment-color-light);
682
682
  $gl-table-row-background-color-hover: var(--gl-table-row-background-color-hover);
683
683
  $gl-table-sorting-icon-color: var(--gl-table-sorting-icon-color);
684
684
  $gl-tab-selected-indicator-color-default: var(--gl-tab-selected-indicator-color-default);
685
+ $gl-toggle-switch-icon-color-unchecked-default: var(--gl-toggle-switch-icon-color-unchecked-default);
686
+ $gl-toggle-switch-icon-color-unchecked-hover: var(--gl-toggle-switch-icon-color-unchecked-hover);
687
+ $gl-toggle-switch-icon-color-unchecked-focus: var(--gl-toggle-switch-icon-color-unchecked-focus);
688
+ $gl-toggle-switch-icon-color-unchecked-active: var(--gl-toggle-switch-icon-color-unchecked-active);
689
+ $gl-toggle-switch-icon-color-checked-default: var(--gl-toggle-switch-icon-color-checked-default);
690
+ $gl-toggle-switch-icon-color-checked-hover: var(--gl-toggle-switch-icon-color-checked-hover);
691
+ $gl-toggle-switch-icon-color-checked-focus: var(--gl-toggle-switch-icon-color-checked-focus);
692
+ $gl-toggle-switch-icon-color-checked-active: var(--gl-toggle-switch-icon-color-checked-active);
693
+ $gl-toggle-switch-icon-color-disabled: var(--gl-toggle-switch-icon-color-disabled);
685
694
  $gl-token-foreground-color: var(--gl-token-foreground-color);
686
695
  $gl-token-background-color: var(--gl-token-background-color);
687
696
  $gl-control-background-color-default: var(--gl-control-background-color-default);
@@ -0,0 +1,59 @@
1
+ {
2
+ "toggle": {
3
+ "switch": {
4
+ "icon": {
5
+ "color": {
6
+ "unchecked": {
7
+ "default": {
8
+ "$value": "{action.strong.neutral.background.color.default}",
9
+ "$type": "color",
10
+ "$description": "Used for the icon color of an unchecked toggle switch in the default state."
11
+ },
12
+ "hover": {
13
+ "$value": "{action.strong.neutral.background.color.hover}",
14
+ "$type": "color",
15
+ "$description": "Used for the icon color of an unchecked toggle switch in the hover state."
16
+ },
17
+ "focus": {
18
+ "$value": "{action.strong.neutral.background.color.focus}",
19
+ "$type": "color",
20
+ "$description": "Used for the icon color of an unchecked toggle switch in the focus state."
21
+ },
22
+ "active": {
23
+ "$value": "{action.strong.neutral.background.color.active}",
24
+ "$type": "color",
25
+ "$description": "Used for the icon color of an unchecked toggle switch in the active state."
26
+ }
27
+ },
28
+ "checked": {
29
+ "default": {
30
+ "$value": "{action.strong.confirm.background.color.default}",
31
+ "$type": "color",
32
+ "$description": "Used for the icon color of a checked toggle switch in the default state."
33
+ },
34
+ "hover": {
35
+ "$value": "{action.strong.confirm.background.color.hover}",
36
+ "$type": "color",
37
+ "$description": "Used for the icon color of a checked toggle switch in the hover state."
38
+ },
39
+ "focus": {
40
+ "$value": "{action.strong.confirm.background.color.focus}",
41
+ "$type": "color",
42
+ "$description": "Used for the icon color of a checked toggle switch in the focus state."
43
+ },
44
+ "active": {
45
+ "$value": "{action.strong.confirm.background.color.active}",
46
+ "$type": "color",
47
+ "$description": "Used for the icon color of a checked toggle switch in the active state."
48
+ }
49
+ },
50
+ "disabled": {
51
+ "$value": "{action.disabled.background.color}",
52
+ "$type": "color",
53
+ "$description": "Used for the icon color of a disabled toggle switch."
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
package/translations.js CHANGED
@@ -74,6 +74,7 @@ export default {
74
74
  'GlPagination.labelNextPage': 'Go to next page',
75
75
  'GlPagination.labelPage': 'Go to page %{page}',
76
76
  'GlPagination.labelPrevPage': 'Go to previous page',
77
+ 'GlPagination.nav': 'Pagination',
77
78
  'GlPagination.nextText': 'Next',
78
79
  'GlPagination.prevText': 'Previous',
79
80
  'GlSearchBoxByType.clearButtonTitle': 'Clear',