@gitlab/ui 86.7.1 → 86.9.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 (40) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +17 -6
  3. package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown_deprecated_wrapper.js +47 -0
  4. package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown_improved_wrapper.js +47 -0
  5. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +10 -1
  6. package/dist/components/base/new_dropdowns/listbox/listbox.js +10 -1
  7. package/dist/components/base/table/table.js +1 -1
  8. package/dist/directives/outside/outside.js +3 -2
  9. package/dist/index.css +2 -2
  10. package/dist/index.css.map +1 -1
  11. package/dist/tokens/build/js/tokens.dark.js +3 -1
  12. package/dist/tokens/build/js/tokens.js +3 -1
  13. package/dist/tokens/css/tokens.css +2 -0
  14. package/dist/tokens/css/tokens.dark.css +2 -0
  15. package/dist/tokens/js/tokens.dark.js +2 -0
  16. package/dist/tokens/js/tokens.js +2 -0
  17. package/dist/tokens/json/tokens.dark.json +53 -0
  18. package/dist/tokens/json/tokens.json +53 -0
  19. package/dist/tokens/scss/_tokens.dark.scss +2 -0
  20. package/dist/tokens/scss/_tokens.scss +2 -0
  21. package/dist/tokens/scss/_tokens_custom_properties.scss +2 -0
  22. package/package.json +1 -1
  23. package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +23 -5
  24. package/src/components/base/new_dropdowns/base_dropdown/base_dropdown_deprecated_wrapper.vue +14 -0
  25. package/src/components/base/new_dropdowns/base_dropdown/base_dropdown_improved_wrapper.vue +14 -0
  26. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +10 -0
  27. package/src/components/base/new_dropdowns/listbox/listbox.vue +10 -0
  28. package/src/components/base/table/table.scss +13 -13
  29. package/src/components/base/table/table.vue +1 -1
  30. package/src/directives/outside/outside.js +6 -2
  31. package/src/tokens/build/css/tokens.css +2 -0
  32. package/src/tokens/build/css/tokens.dark.css +2 -0
  33. package/src/tokens/build/js/tokens.dark.js +2 -0
  34. package/src/tokens/build/js/tokens.js +2 -0
  35. package/src/tokens/build/json/tokens.dark.json +53 -0
  36. package/src/tokens/build/json/tokens.json +53 -0
  37. package/src/tokens/build/scss/_tokens.dark.scss +2 -0
  38. package/src/tokens/build/scss/_tokens.scss +2 -0
  39. package/src/tokens/build/scss/_tokens_custom_properties.scss +2 -0
  40. package/src/tokens/contextual/table.tokens.json +24 -0
@@ -98,9 +98,13 @@ function parseBinding({ arg, value, modifiers }) {
98
98
  );
99
99
  }
100
100
 
101
- if (modifiersList.some((modifier) => !supportedEventTypes.includes(modifier))) {
101
+ const unsupportedModifiers = modifiersList.filter(
102
+ (modifier) => !supportedEventTypes.includes(modifier)
103
+ );
104
+
105
+ if (unsupportedModifiers.length > 0) {
102
106
  throw new Error(
103
- `[GlOutsideDirective] Cannot bind ${modifiersList} events; supported event types are: ${supportedEventTypes.join(
107
+ `[GlOutsideDirective] Cannot bind ${unsupportedModifiers.join(', ')} events; supported event types are: ${supportedEventTypes.join(
104
108
  ', '
105
109
  )}`
106
110
  );
@@ -672,4 +672,6 @@
672
672
  --gl-action-border-color-disabled: var(--gl-color-neutral-100); /* Used for the border of a disabled action. */
673
673
  --gl-action-background-color-disabled: var(--gl-color-neutral-50); /* Used for the background of a disabled action. */
674
674
  --gl-focus-ring-inner-color: var(--gl-background-color-default); /* Used for the inner neutral portion of the focus ring. */
675
+ --gl-table-sorting-icon-color: var(--gl-text-color-heading); /* Used for the color of the sorting icons in the column headers. */
676
+ --gl-table-row-background-color-hover: var(--gl-background-color-subtle); /* Used for the background of a table row in hover state. */
675
677
  }
@@ -672,4 +672,6 @@
672
672
  --gl-action-border-color-disabled: var(--gl-color-neutral-800); /* Used for the border of a disabled action. */
673
673
  --gl-action-background-color-disabled: var(--gl-color-neutral-900); /* Used for the background of a disabled action. */
674
674
  --gl-focus-ring-inner-color: var(--gl-background-color-default); /* Used for the inner neutral portion of the focus ring. */
675
+ --gl-table-sorting-icon-color: var(--gl-text-color-heading); /* Used for the color of the sorting icons in the column headers. */
676
+ --gl-table-row-background-color-hover: var(--gl-background-color-subtle); /* Used for the background of a table row in hover state. */
675
677
  }
@@ -529,6 +529,8 @@ export const GL_SPINNER_TRACK_COLOR_DEFAULT = '#434248'; // Used for the static
529
529
  export const GL_SPINNER_TRACK_COLOR_LIGHT = '#434248'; // Used for the static track (background) of a loading spinner on a dark background.
530
530
  export const GL_SPINNER_SEGMENT_COLOR_DEFAULT = '#bfbfc3'; // Used for the animated segment of a loading spinner.
531
531
  export const GL_SPINNER_SEGMENT_COLOR_LIGHT = '#bfbfc3'; // Used for the animated segment of a loading spinner on a dark background.
532
+ export const GL_TABLE_ROW_BACKGROUND_COLOR_HOVER = '#333238'; // Used for the background of a table row in hover state.
533
+ export const GL_TABLE_SORTING_ICON_COLOR = '#fff'; // Used for the color of the sorting icons in the column headers.
532
534
  export const GL_CONTROL_BACKGROUND_COLOR_DEFAULT = '#333238'; // Used for form control (input, radio button, checkbox, textarea) default background.
533
535
  export const GL_CONTROL_BACKGROUND_COLOR_DISABLED = '#1f1e24'; // Used for disabled form control (checkbox, input, radio button, textarea) background.
534
536
  export const GL_CONTROL_BACKGROUND_COLOR_SELECTED_DEFAULT = '#428fdc'; // Used for checked and indeterminate (selected) form control (checkbox, radio button) background.
@@ -529,6 +529,8 @@ export const GL_SPINNER_TRACK_COLOR_DEFAULT = '#dcdcde'; // Used for the static
529
529
  export const GL_SPINNER_TRACK_COLOR_LIGHT = '#434248'; // Used for the static track (background) of a loading spinner on a dark background.
530
530
  export const GL_SPINNER_SEGMENT_COLOR_DEFAULT = '#535158'; // Used for the animated segment of a loading spinner.
531
531
  export const GL_SPINNER_SEGMENT_COLOR_LIGHT = '#bfbfc3'; // Used for the animated segment of a loading spinner on a dark background.
532
+ export const GL_TABLE_ROW_BACKGROUND_COLOR_HOVER = '#fbfafd'; // Used for the background of a table row in hover state.
533
+ export const GL_TABLE_SORTING_ICON_COLOR = '#1f1e24'; // Used for the color of the sorting icons in the column headers.
532
534
  export const GL_CONTROL_BACKGROUND_COLOR_DEFAULT = '#fff'; // Used for form control (input, radio button, checkbox, textarea) default background.
533
535
  export const GL_CONTROL_BACKGROUND_COLOR_DISABLED = '#fbfafd'; // Used for disabled form control (checkbox, input, radio button, textarea) background.
534
536
  export const GL_CONTROL_BACKGROUND_COLOR_SELECTED_DEFAULT = '#1f75cb'; // Used for checked and indeterminate (selected) form control (checkbox, radio button) background.
@@ -11571,6 +11571,59 @@
11571
11571
  }
11572
11572
  }
11573
11573
  },
11574
+ "table": {
11575
+ "row": {
11576
+ "background": {
11577
+ "color": {
11578
+ "hover": {
11579
+ "value": "#333238",
11580
+ "$type": "color",
11581
+ "comment": "Used for the background of a table row in hover state.",
11582
+ "filePath": "src/tokens/contextual/table.tokens.json",
11583
+ "isSource": true,
11584
+ "original": {
11585
+ "value": "{background.color.subtle}",
11586
+ "$type": "color",
11587
+ "comment": "Used for the background of a table row in hover state."
11588
+ },
11589
+ "name": "TABLE_ROW_BACKGROUND_COLOR_HOVER",
11590
+ "attributes": {},
11591
+ "path": [
11592
+ "table",
11593
+ "row",
11594
+ "background",
11595
+ "color",
11596
+ "hover"
11597
+ ]
11598
+ }
11599
+ }
11600
+ }
11601
+ },
11602
+ "sorting": {
11603
+ "icon": {
11604
+ "color": {
11605
+ "value": "#fff",
11606
+ "$type": "color",
11607
+ "comment": "Used for the color of the sorting icons in the column headers.",
11608
+ "filePath": "src/tokens/contextual/table.tokens.json",
11609
+ "isSource": true,
11610
+ "original": {
11611
+ "value": "{text.color.heading}",
11612
+ "$type": "color",
11613
+ "comment": "Used for the color of the sorting icons in the column headers."
11614
+ },
11615
+ "name": "TABLE_SORTING_ICON_COLOR",
11616
+ "attributes": {},
11617
+ "path": [
11618
+ "table",
11619
+ "sorting",
11620
+ "icon",
11621
+ "color"
11622
+ ]
11623
+ }
11624
+ }
11625
+ }
11626
+ },
11574
11627
  "control": {
11575
11628
  "background": {
11576
11629
  "color": {
@@ -11571,6 +11571,59 @@
11571
11571
  }
11572
11572
  }
11573
11573
  },
11574
+ "table": {
11575
+ "row": {
11576
+ "background": {
11577
+ "color": {
11578
+ "hover": {
11579
+ "value": "#fbfafd",
11580
+ "$type": "color",
11581
+ "comment": "Used for the background of a table row in hover state.",
11582
+ "filePath": "src/tokens/contextual/table.tokens.json",
11583
+ "isSource": true,
11584
+ "original": {
11585
+ "value": "{background.color.subtle}",
11586
+ "$type": "color",
11587
+ "comment": "Used for the background of a table row in hover state."
11588
+ },
11589
+ "name": "TABLE_ROW_BACKGROUND_COLOR_HOVER",
11590
+ "attributes": {},
11591
+ "path": [
11592
+ "table",
11593
+ "row",
11594
+ "background",
11595
+ "color",
11596
+ "hover"
11597
+ ]
11598
+ }
11599
+ }
11600
+ }
11601
+ },
11602
+ "sorting": {
11603
+ "icon": {
11604
+ "color": {
11605
+ "value": "#1f1e24",
11606
+ "$type": "color",
11607
+ "comment": "Used for the color of the sorting icons in the column headers.",
11608
+ "filePath": "src/tokens/contextual/table.tokens.json",
11609
+ "isSource": true,
11610
+ "original": {
11611
+ "value": "{text.color.heading}",
11612
+ "$type": "color",
11613
+ "comment": "Used for the color of the sorting icons in the column headers."
11614
+ },
11615
+ "name": "TABLE_SORTING_ICON_COLOR",
11616
+ "attributes": {},
11617
+ "path": [
11618
+ "table",
11619
+ "sorting",
11620
+ "icon",
11621
+ "color"
11622
+ ]
11623
+ }
11624
+ }
11625
+ }
11626
+ },
11574
11627
  "control": {
11575
11628
  "background": {
11576
11629
  "color": {
@@ -670,3 +670,5 @@ $gl-action-text-color-disabled: $gl-color-neutral-400; // Used for the text of a
670
670
  $gl-action-border-color-disabled: $gl-color-neutral-800; // Used for the border of a disabled action.
671
671
  $gl-action-background-color-disabled: $gl-color-neutral-900; // Used for the background of a disabled action.
672
672
  $gl-focus-ring-inner-color: $gl-background-color-default; // Used for the inner neutral portion of the focus ring.
673
+ $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
674
+ $gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
@@ -670,3 +670,5 @@ $gl-action-text-color-disabled: $gl-color-neutral-500; // Used for the text of a
670
670
  $gl-action-border-color-disabled: $gl-color-neutral-100; // Used for the border of a disabled action.
671
671
  $gl-action-background-color-disabled: $gl-color-neutral-50; // Used for the background of a disabled action.
672
672
  $gl-focus-ring-inner-color: $gl-background-color-default; // Used for the inner neutral portion of the focus ring.
673
+ $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
674
+ $gl-table-row-background-color-hover: $gl-background-color-subtle; // Used for the background of a table row in hover state.
@@ -529,6 +529,8 @@ $gl-spinner-track-color-default: var(--gl-spinner-track-color-default);
529
529
  $gl-spinner-track-color-light: var(--gl-spinner-track-color-light);
530
530
  $gl-spinner-segment-color-default: var(--gl-spinner-segment-color-default);
531
531
  $gl-spinner-segment-color-light: var(--gl-spinner-segment-color-light);
532
+ $gl-table-row-background-color-hover: var(--gl-table-row-background-color-hover);
533
+ $gl-table-sorting-icon-color: var(--gl-table-sorting-icon-color);
532
534
  $gl-control-background-color-default: var(--gl-control-background-color-default);
533
535
  $gl-control-background-color-disabled: var(--gl-control-background-color-disabled);
534
536
  $gl-control-background-color-selected-default: var(--gl-control-background-color-selected-default);
@@ -0,0 +1,24 @@
1
+ {
2
+ "table": {
3
+ "row": {
4
+ "background": {
5
+ "color": {
6
+ "hover": {
7
+ "$value": "{background.color.subtle}",
8
+ "$type": "color",
9
+ "$description": "Used for the background of a table row in hover state."
10
+ }
11
+ }
12
+ }
13
+ },
14
+ "sorting": {
15
+ "icon": {
16
+ "color": {
17
+ "$value": "{text.color.heading}",
18
+ "$type": "color",
19
+ "$description": "Used for the color of the sorting icons in the column headers."
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }