@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
@@ -1313,7 +1313,10 @@
1313
1313
  "filePath": "src/tokens/action.tokens.json",
1314
1314
  "isSource": true,
1315
1315
  "original": {
1316
- "value": "{color.neutral.0}",
1316
+ "value": {
1317
+ "default": "{color.neutral.0}",
1318
+ "dark": "{color.neutral.950}"
1319
+ },
1317
1320
  "$type": "color",
1318
1321
  "comment": "Used for the foreground of a strong confirm action in the default state."
1319
1322
  },
@@ -1501,7 +1504,7 @@
1501
1504
  "original": {
1502
1505
  "value": {
1503
1506
  "default": "{color.neutral.600}",
1504
- "dark": "{color.neutral.300}"
1507
+ "dark": "{color.neutral.700}"
1505
1508
  },
1506
1509
  "$type": "color",
1507
1510
  "comment": "Used for the background of a strong neutral action in the default state."
@@ -1526,7 +1529,7 @@
1526
1529
  "original": {
1527
1530
  "value": {
1528
1531
  "default": "{color.neutral.700}",
1529
- "dark": "{color.neutral.200}"
1532
+ "dark": "{color.neutral.600}"
1530
1533
  },
1531
1534
  "$type": "color",
1532
1535
  "comment": "Used for the background of a strong neutral action in the hover state."
@@ -1573,7 +1576,7 @@
1573
1576
  "original": {
1574
1577
  "value": {
1575
1578
  "default": "{color.neutral.800}",
1576
- "dark": "{color.neutral.100}"
1579
+ "dark": "{color.neutral.500}"
1577
1580
  },
1578
1581
  "$type": "color",
1579
1582
  "comment": "Used for the background of a strong neutral action in the active state."
@@ -1600,7 +1603,10 @@
1600
1603
  "filePath": "src/tokens/action.tokens.json",
1601
1604
  "isSource": true,
1602
1605
  "original": {
1603
- "value": "{color.neutral.0}",
1606
+ "value": {
1607
+ "default": "{color.neutral.0}",
1608
+ "dark": "{color.neutral.50}"
1609
+ },
1604
1610
  "$type": "color",
1605
1611
  "comment": "Used for the foreground of a strong neutral action in the default state."
1606
1612
  },
@@ -15134,6 +15140,215 @@
15134
15140
  }
15135
15141
  }
15136
15142
  },
15143
+ "toggle": {
15144
+ "switch": {
15145
+ "icon": {
15146
+ "color": {
15147
+ "unchecked": {
15148
+ "default": {
15149
+ "value": "#626168",
15150
+ "$type": "color",
15151
+ "comment": "Used for the icon color of an unchecked toggle switch in the default state.",
15152
+ "filePath": "src/tokens/contextual/toggle.tokens.json",
15153
+ "isSource": true,
15154
+ "original": {
15155
+ "value": "{action.strong.neutral.background.color.default}",
15156
+ "$type": "color",
15157
+ "comment": "Used for the icon color of an unchecked toggle switch in the default state."
15158
+ },
15159
+ "name": "TOGGLE_SWITCH_ICON_COLOR_UNCHECKED_DEFAULT",
15160
+ "attributes": {},
15161
+ "path": [
15162
+ "toggle",
15163
+ "switch",
15164
+ "icon",
15165
+ "color",
15166
+ "unchecked",
15167
+ "default"
15168
+ ]
15169
+ },
15170
+ "hover": {
15171
+ "value": "#4c4b51",
15172
+ "$type": "color",
15173
+ "comment": "Used for the icon color of an unchecked toggle switch in the hover state.",
15174
+ "filePath": "src/tokens/contextual/toggle.tokens.json",
15175
+ "isSource": true,
15176
+ "original": {
15177
+ "value": "{action.strong.neutral.background.color.hover}",
15178
+ "$type": "color",
15179
+ "comment": "Used for the icon color of an unchecked toggle switch in the hover state."
15180
+ },
15181
+ "name": "TOGGLE_SWITCH_ICON_COLOR_UNCHECKED_HOVER",
15182
+ "attributes": {},
15183
+ "path": [
15184
+ "toggle",
15185
+ "switch",
15186
+ "icon",
15187
+ "color",
15188
+ "unchecked",
15189
+ "hover"
15190
+ ]
15191
+ },
15192
+ "focus": {
15193
+ "value": "#4c4b51",
15194
+ "$type": "color",
15195
+ "comment": "Used for the icon color of an unchecked toggle switch in the focus state.",
15196
+ "filePath": "src/tokens/contextual/toggle.tokens.json",
15197
+ "isSource": true,
15198
+ "original": {
15199
+ "value": "{action.strong.neutral.background.color.focus}",
15200
+ "$type": "color",
15201
+ "comment": "Used for the icon color of an unchecked toggle switch in the focus state."
15202
+ },
15203
+ "name": "TOGGLE_SWITCH_ICON_COLOR_UNCHECKED_FOCUS",
15204
+ "attributes": {},
15205
+ "path": [
15206
+ "toggle",
15207
+ "switch",
15208
+ "icon",
15209
+ "color",
15210
+ "unchecked",
15211
+ "focus"
15212
+ ]
15213
+ },
15214
+ "active": {
15215
+ "value": "#3a383f",
15216
+ "$type": "color",
15217
+ "comment": "Used for the icon color of an unchecked toggle switch in the active state.",
15218
+ "filePath": "src/tokens/contextual/toggle.tokens.json",
15219
+ "isSource": true,
15220
+ "original": {
15221
+ "value": "{action.strong.neutral.background.color.active}",
15222
+ "$type": "color",
15223
+ "comment": "Used for the icon color of an unchecked toggle switch in the active state."
15224
+ },
15225
+ "name": "TOGGLE_SWITCH_ICON_COLOR_UNCHECKED_ACTIVE",
15226
+ "attributes": {},
15227
+ "path": [
15228
+ "toggle",
15229
+ "switch",
15230
+ "icon",
15231
+ "color",
15232
+ "unchecked",
15233
+ "active"
15234
+ ]
15235
+ }
15236
+ },
15237
+ "checked": {
15238
+ "default": {
15239
+ "value": "#1f75cb",
15240
+ "$type": "color",
15241
+ "comment": "Used for the icon color of a checked toggle switch in the default state.",
15242
+ "filePath": "src/tokens/contextual/toggle.tokens.json",
15243
+ "isSource": true,
15244
+ "original": {
15245
+ "value": "{action.strong.confirm.background.color.default}",
15246
+ "$type": "color",
15247
+ "comment": "Used for the icon color of a checked toggle switch in the default state."
15248
+ },
15249
+ "name": "TOGGLE_SWITCH_ICON_COLOR_CHECKED_DEFAULT",
15250
+ "attributes": {},
15251
+ "path": [
15252
+ "toggle",
15253
+ "switch",
15254
+ "icon",
15255
+ "color",
15256
+ "checked",
15257
+ "default"
15258
+ ]
15259
+ },
15260
+ "hover": {
15261
+ "value": "#1068bf",
15262
+ "$type": "color",
15263
+ "comment": "Used for the icon color of a checked toggle switch in the hover state.",
15264
+ "filePath": "src/tokens/contextual/toggle.tokens.json",
15265
+ "isSource": true,
15266
+ "original": {
15267
+ "value": "{action.strong.confirm.background.color.hover}",
15268
+ "$type": "color",
15269
+ "comment": "Used for the icon color of a checked toggle switch in the hover state."
15270
+ },
15271
+ "name": "TOGGLE_SWITCH_ICON_COLOR_CHECKED_HOVER",
15272
+ "attributes": {},
15273
+ "path": [
15274
+ "toggle",
15275
+ "switch",
15276
+ "icon",
15277
+ "color",
15278
+ "checked",
15279
+ "hover"
15280
+ ]
15281
+ },
15282
+ "focus": {
15283
+ "value": "#1068bf",
15284
+ "$type": "color",
15285
+ "comment": "Used for the icon color of a checked toggle switch in the focus state.",
15286
+ "filePath": "src/tokens/contextual/toggle.tokens.json",
15287
+ "isSource": true,
15288
+ "original": {
15289
+ "value": "{action.strong.confirm.background.color.focus}",
15290
+ "$type": "color",
15291
+ "comment": "Used for the icon color of a checked toggle switch in the focus state."
15292
+ },
15293
+ "name": "TOGGLE_SWITCH_ICON_COLOR_CHECKED_FOCUS",
15294
+ "attributes": {},
15295
+ "path": [
15296
+ "toggle",
15297
+ "switch",
15298
+ "icon",
15299
+ "color",
15300
+ "checked",
15301
+ "focus"
15302
+ ]
15303
+ },
15304
+ "active": {
15305
+ "value": "#0b5cad",
15306
+ "$type": "color",
15307
+ "comment": "Used for the icon color of a checked toggle switch in the active state.",
15308
+ "filePath": "src/tokens/contextual/toggle.tokens.json",
15309
+ "isSource": true,
15310
+ "original": {
15311
+ "value": "{action.strong.confirm.background.color.active}",
15312
+ "$type": "color",
15313
+ "comment": "Used for the icon color of a checked toggle switch in the active state."
15314
+ },
15315
+ "name": "TOGGLE_SWITCH_ICON_COLOR_CHECKED_ACTIVE",
15316
+ "attributes": {},
15317
+ "path": [
15318
+ "toggle",
15319
+ "switch",
15320
+ "icon",
15321
+ "color",
15322
+ "checked",
15323
+ "active"
15324
+ ]
15325
+ }
15326
+ },
15327
+ "disabled": {
15328
+ "value": "#ececef",
15329
+ "$type": "color",
15330
+ "comment": "Used for the icon color of a disabled toggle switch.",
15331
+ "filePath": "src/tokens/contextual/toggle.tokens.json",
15332
+ "isSource": true,
15333
+ "original": {
15334
+ "value": "{action.disabled.background.color}",
15335
+ "$type": "color",
15336
+ "comment": "Used for the icon color of a disabled toggle switch."
15337
+ },
15338
+ "name": "TOGGLE_SWITCH_ICON_COLOR_DISABLED",
15339
+ "attributes": {},
15340
+ "path": [
15341
+ "toggle",
15342
+ "switch",
15343
+ "icon",
15344
+ "color",
15345
+ "disabled"
15346
+ ]
15347
+ }
15348
+ }
15349
+ }
15350
+ }
15351
+ },
15137
15352
  "token": {
15138
15353
  "foreground": {
15139
15354
  "color": {
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "95.2.1",
3
+ "version": "95.4.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -121,6 +121,7 @@ export default {
121
121
  :href="prevButtonLink"
122
122
  :disabled="disabled || !hasPreviousPage"
123
123
  data-testid="prevButton"
124
+ category="tertiary"
124
125
  @click="$emit('prev', startCursor)"
125
126
  >
126
127
  <!-- @slot Used to customize the appearance of the "Prev" button -->
@@ -135,6 +136,7 @@ export default {
135
136
  :href="nextButtonLink"
136
137
  :disabled="disabled || !hasNextPage"
137
138
  data-testid="nextButton"
139
+ category="tertiary"
138
140
  @click="$emit('next', endCursor)"
139
141
  >
140
142
  <!-- @slot Used to customize the appearance of the "Next" button -->
@@ -142,22 +142,24 @@ export default {
142
142
 
143
143
  <template>
144
144
  <div>
145
- <div class="row-content-block second-block d-sm-flex justify-content-between flex-row-reverse">
145
+ <div class="gl-flex-row-reverse gl-justify-between sm:gl-flex">
146
146
  <slot name="header"></slot>
147
147
  <gl-search-box-by-type v-if="filterable" @input="query" />
148
148
  </div>
149
149
 
150
150
  <slot name="subheader"></slot>
151
151
 
152
- <ul class="list-group list-group-flush list-unstyled">
153
- <li v-for="listItem in paginatedList" :key="listItem[itemKey]" class="list-group-item">
152
+ <ul
153
+ class="gl-m-0 gl-grid gl-list-none gl-grid-cols-1 gl-divide-x-0 gl-divide-y gl-divide-solid gl-divide-default gl-p-0"
154
+ >
155
+ <li v-for="listItem in paginatedList" :key="listItem[itemKey]" class="gl-px-5 gl-py-4">
154
156
  <slot :list-item="listItem" :query="queryStr">{{ listItem.id }}</slot>
155
157
  </li>
156
158
  </ul>
157
159
 
158
160
  <gl-pagination
159
161
  v-if="!emptyList"
160
- class="d-flex justify-content-center prepend-top-default"
162
+ align="center"
161
163
  :per-page="pageInfo.perPage"
162
164
  v-bind="$attrs"
163
165
  :value="pageInfo.page"
@@ -1,86 +1,57 @@
1
1
  .gl-pagination {
2
2
  @apply gl-text-base;
3
+ @apply gl-text-nowrap;
3
4
 
4
- a {
5
- @apply gl-text-gray-900;
5
+ ul {
6
+ @apply gl-flex;
7
+ @apply gl-pl-0;
8
+ @apply gl-list-none;
9
+ @apply gl-rounded-base;
6
10
  }
7
11
 
8
- .page-link {
9
- @apply gl-border-gray-200;
10
- @apply gl-leading-normal;
11
- @apply gl-px-4;
12
- @apply gl-py-3;
13
-
14
- &.prev-page-item,
15
- &.next-page-item {
16
- @apply gl-px-3;
17
- }
18
-
19
- &:not(.active):hover {
20
- @apply gl-text-gray-900;
21
- box-shadow: inset 0 0 0 1px $gray-400;
22
- border-color: $gray-400;
23
- background: $gray-50;
24
- @apply gl-z-1;
25
- }
26
-
27
- &:not(.active):focus {
28
- @apply gl-bg-gray-50;
29
- }
30
-
31
- &:not(.active):active,
32
- &:not(.active).active {
33
- @apply gl-bg-gray-100;
34
- }
35
-
36
- &:not(.active):focus,
37
- &:not(.active):active,
38
- &:not(.active).active {
39
- @apply gl-focus;
40
- }
41
-
42
- &,
43
- &:active {
44
- @apply gl-no-underline;
45
- }
12
+ a {
13
+ color: var(--gl-action-neutral-foreground-color-default);
46
14
  }
15
+ }
47
16
 
48
- .page-item {
49
- &:not(.disabled) a.active {
50
- @apply gl-bg-blue-500;
51
- @apply gl-border-blue-500;
52
- @apply gl-text-white;
53
- @apply gl-z-2;
54
- @apply gl-shadow-none;
17
+ .gl-pagination-item {
18
+ @apply gl-flex;
19
+ @apply gl-justify-center;
20
+ @apply gl-p-3;
21
+ @apply gl-leading-normal;
22
+ @apply gl-rounded-base;
23
+ @apply gl-no-underline;
24
+ @apply gl-min-w-7;
25
+ @apply gl-text-center;
26
+ @apply gl-border-1;
27
+ @apply gl-border-solid;
28
+ @include gl-action-neutral-colors;
29
+ @include gl-prefers-reduced-motion-transition;
30
+ transition: color $gl-transition-duration-medium $gl-easing-out-cubic,
31
+ background-color $gl-transition-duration-medium $gl-easing-out-cubic,
32
+ border-color $gl-transition-duration-medium $gl-easing-out-cubic;
33
+
34
+ &:hover {
35
+ @apply gl-no-underline;
36
+ }
55
37
 
56
- &:focus {
57
- @apply gl-focus;
58
- }
59
- }
38
+ &:focus,
39
+ &:active:focus {
40
+ @apply gl-no-underline;
41
+ @apply gl-focus;
42
+ }
60
43
 
61
- &.disabled .page-link {
62
- @apply gl-bg-gray-10;
63
- @apply gl-border-gray-200;
64
- @apply gl-text-gray-500;
65
- }
44
+ &:active {
45
+ @apply gl-no-underline;
66
46
  }
67
47
 
68
- .prev-page-item,
69
- .next-page-item {
70
- .gl-icon {
71
- vertical-align: bottom;
72
- }
48
+ &:not(.disabled).active {
49
+ @include gl-action-selected-colors;
73
50
  }
74
51
  }
75
52
 
76
- // stylelint-disable-next-line @gitlab/no-gl-media-breakpoint-down
77
- @include gl-media-breakpoint-down(sm) {
78
- .gl-pagination {
79
- .prev-page-item,
80
- .next-page-item {
81
- span {
82
- display: none;
83
- }
84
- }
85
- }
53
+ .gl-pagination .disabled .gl-pagination-item {
54
+ @apply gl-border-transparent;
55
+ @apply gl-bg-transparent;
56
+ color: var(--gl-action-disabled-foreground-color);
86
57
  }