@gitlab/ui 80.14.0 → 80.15.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.
@@ -6669,7 +6669,6 @@
6669
6669
  "$type": "color",
6670
6670
  "comment": "Use text.color.default instead",
6671
6671
  "deprecated": true,
6672
- "themeable": true,
6673
6672
  "filePath": "src/tokens/text.tokens.json",
6674
6673
  "isSource": true,
6675
6674
  "original": {
@@ -6679,8 +6678,7 @@
6679
6678
  },
6680
6679
  "$type": "color",
6681
6680
  "comment": "Use text.color.default instead",
6682
- "deprecated": true,
6683
- "themeable": true
6681
+ "deprecated": true
6684
6682
  },
6685
6683
  "name": "TEXT_PRIMARY",
6686
6684
  "attributes": {},
@@ -6694,7 +6692,6 @@
6694
6692
  "$type": "color",
6695
6693
  "comment": "Use text.color.subtle instead",
6696
6694
  "deprecated": true,
6697
- "themeable": true,
6698
6695
  "filePath": "src/tokens/text.tokens.json",
6699
6696
  "isSource": true,
6700
6697
  "original": {
@@ -6704,8 +6701,7 @@
6704
6701
  },
6705
6702
  "$type": "color",
6706
6703
  "comment": "Use text.color.subtle instead",
6707
- "deprecated": true,
6708
- "themeable": true
6704
+ "deprecated": true
6709
6705
  },
6710
6706
  "name": "TEXT_SECONDARY",
6711
6707
  "attributes": {},
@@ -6719,7 +6715,6 @@
6719
6715
  "$type": "color",
6720
6716
  "comment": "Use text.color.disabled instead",
6721
6717
  "deprecated": true,
6722
- "themeable": true,
6723
6718
  "filePath": "src/tokens/text.tokens.json",
6724
6719
  "isSource": true,
6725
6720
  "original": {
@@ -6729,8 +6724,7 @@
6729
6724
  },
6730
6725
  "$type": "color",
6731
6726
  "comment": "Use text.color.disabled instead",
6732
- "deprecated": true,
6733
- "themeable": true
6727
+ "deprecated": true
6734
6728
  },
6735
6729
  "name": "TEXT_TERTIARY",
6736
6730
  "attributes": {},
@@ -6744,7 +6738,6 @@
6744
6738
  "value": "#ececef",
6745
6739
  "$type": "color",
6746
6740
  "comment": "Used for the default text color.",
6747
- "themeable": true,
6748
6741
  "filePath": "src/tokens/text.tokens.json",
6749
6742
  "isSource": true,
6750
6743
  "original": {
@@ -6753,8 +6746,7 @@
6753
6746
  "dark": "{color.neutral.50}"
6754
6747
  },
6755
6748
  "$type": "color",
6756
- "comment": "Used for the default text color.",
6757
- "themeable": true
6749
+ "comment": "Used for the default text color."
6758
6750
  },
6759
6751
  "name": "TEXT_COLOR_DEFAULT",
6760
6752
  "attributes": {},
@@ -6768,7 +6760,6 @@
6768
6760
  "value": "#bfbfc3",
6769
6761
  "$type": "color",
6770
6762
  "comment": "Used for supplemental text that doesn't need to be as prominent as other text.",
6771
- "themeable": true,
6772
6763
  "filePath": "src/tokens/text.tokens.json",
6773
6764
  "isSource": true,
6774
6765
  "original": {
@@ -6777,8 +6768,7 @@
6777
6768
  "dark": "{color.neutral.200}"
6778
6769
  },
6779
6770
  "$type": "color",
6780
- "comment": "Used for supplemental text that doesn't need to be as prominent as other text.",
6781
- "themeable": true
6771
+ "comment": "Used for supplemental text that doesn't need to be as prominent as other text."
6782
6772
  },
6783
6773
  "name": "TEXT_COLOR_SUBTLE",
6784
6774
  "attributes": {},
@@ -6792,7 +6782,6 @@
6792
6782
  "value": "#fff",
6793
6783
  "$type": "color",
6794
6784
  "comment": "Used for text with the highest contrast.",
6795
- "themeable": true,
6796
6785
  "filePath": "src/tokens/text.tokens.json",
6797
6786
  "isSource": true,
6798
6787
  "original": {
@@ -6801,8 +6790,7 @@
6801
6790
  "dark": "{color.neutral.0}"
6802
6791
  },
6803
6792
  "$type": "color",
6804
- "comment": "Used for text with the highest contrast.",
6805
- "themeable": true
6793
+ "comment": "Used for text with the highest contrast."
6806
6794
  },
6807
6795
  "name": "TEXT_COLOR_STRONG",
6808
6796
  "attributes": {},
@@ -6816,7 +6804,6 @@
6816
6804
  "value": "#fff",
6817
6805
  "$type": "color",
6818
6806
  "comment": "Used for headings level 1-6.",
6819
- "themeable": true,
6820
6807
  "filePath": "src/tokens/text.tokens.json",
6821
6808
  "isSource": true,
6822
6809
  "original": {
@@ -6825,8 +6812,7 @@
6825
6812
  "dark": "{color.neutral.0}"
6826
6813
  },
6827
6814
  "$type": "color",
6828
- "comment": "Used for headings level 1-6.",
6829
- "themeable": true
6815
+ "comment": "Used for headings level 1-6."
6830
6816
  },
6831
6817
  "name": "TEXT_COLOR_HEADING",
6832
6818
  "attributes": {},
@@ -6840,7 +6826,6 @@
6840
6826
  "value": "#63a6e9",
6841
6827
  "$type": "color",
6842
6828
  "comment": "Used for default text links.",
6843
- "themeable": true,
6844
6829
  "filePath": "src/tokens/text.tokens.json",
6845
6830
  "isSource": true,
6846
6831
  "original": {
@@ -6849,8 +6834,7 @@
6849
6834
  "dark": "{color.blue.300}"
6850
6835
  },
6851
6836
  "$type": "color",
6852
- "comment": "Used for default text links.",
6853
- "themeable": true
6837
+ "comment": "Used for default text links."
6854
6838
  },
6855
6839
  "name": "TEXT_COLOR_LINK",
6856
6840
  "attributes": {},
@@ -6864,7 +6848,6 @@
6864
6848
  "value": "#f57f6c",
6865
6849
  "$type": "color",
6866
6850
  "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
6867
- "themeable": true,
6868
6851
  "filePath": "src/tokens/text.tokens.json",
6869
6852
  "isSource": true,
6870
6853
  "original": {
@@ -6873,8 +6856,7 @@
6873
6856
  "dark": "{color.red.300}"
6874
6857
  },
6875
6858
  "$type": "color",
6876
- "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
6877
- "themeable": true
6859
+ "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination."
6878
6860
  },
6879
6861
  "name": "TEXT_COLOR_DANGER",
6880
6862
  "attributes": {},
@@ -6888,7 +6870,6 @@
6888
6870
  "value": "#52b87a",
6889
6871
  "$type": "color",
6890
6872
  "comment": "Used for text indicating success or validity.",
6891
- "themeable": true,
6892
6873
  "filePath": "src/tokens/text.tokens.json",
6893
6874
  "isSource": true,
6894
6875
  "original": {
@@ -6897,8 +6878,7 @@
6897
6878
  "dark": "{color.green.300}"
6898
6879
  },
6899
6880
  "$type": "color",
6900
- "comment": "Used for text indicating success or validity.",
6901
- "themeable": true
6881
+ "comment": "Used for text indicating success or validity."
6902
6882
  },
6903
6883
  "name": "TEXT_COLOR_SUCCESS",
6904
6884
  "attributes": {},
@@ -6912,7 +6892,6 @@
6912
6892
  "value": "#89888d",
6913
6893
  "$type": "color",
6914
6894
  "comment": "Used for disabled text.",
6915
- "themeable": true,
6916
6895
  "filePath": "src/tokens/text.tokens.json",
6917
6896
  "isSource": true,
6918
6897
  "original": {
@@ -6921,8 +6900,7 @@
6921
6900
  "dark": "{color.neutral.400}"
6922
6901
  },
6923
6902
  "$type": "color",
6924
- "comment": "Used for disabled text.",
6925
- "themeable": true
6903
+ "comment": "Used for disabled text."
6926
6904
  },
6927
6905
  "name": "TEXT_COLOR_DISABLED",
6928
6906
  "attributes": {},
@@ -6669,7 +6669,6 @@
6669
6669
  "$type": "color",
6670
6670
  "comment": "Use text.color.default instead",
6671
6671
  "deprecated": true,
6672
- "themeable": true,
6673
6672
  "filePath": "src/tokens/text.tokens.json",
6674
6673
  "isSource": true,
6675
6674
  "original": {
@@ -6679,8 +6678,7 @@
6679
6678
  },
6680
6679
  "$type": "color",
6681
6680
  "comment": "Use text.color.default instead",
6682
- "deprecated": true,
6683
- "themeable": true
6681
+ "deprecated": true
6684
6682
  },
6685
6683
  "name": "TEXT_PRIMARY",
6686
6684
  "attributes": {},
@@ -6694,7 +6692,6 @@
6694
6692
  "$type": "color",
6695
6693
  "comment": "Use text.color.subtle instead",
6696
6694
  "deprecated": true,
6697
- "themeable": true,
6698
6695
  "filePath": "src/tokens/text.tokens.json",
6699
6696
  "isSource": true,
6700
6697
  "original": {
@@ -6704,8 +6701,7 @@
6704
6701
  },
6705
6702
  "$type": "color",
6706
6703
  "comment": "Use text.color.subtle instead",
6707
- "deprecated": true,
6708
- "themeable": true
6704
+ "deprecated": true
6709
6705
  },
6710
6706
  "name": "TEXT_SECONDARY",
6711
6707
  "attributes": {},
@@ -6719,7 +6715,6 @@
6719
6715
  "$type": "color",
6720
6716
  "comment": "Use text.color.disabled instead",
6721
6717
  "deprecated": true,
6722
- "themeable": true,
6723
6718
  "filePath": "src/tokens/text.tokens.json",
6724
6719
  "isSource": true,
6725
6720
  "original": {
@@ -6729,8 +6724,7 @@
6729
6724
  },
6730
6725
  "$type": "color",
6731
6726
  "comment": "Use text.color.disabled instead",
6732
- "deprecated": true,
6733
- "themeable": true
6727
+ "deprecated": true
6734
6728
  },
6735
6729
  "name": "TEXT_TERTIARY",
6736
6730
  "attributes": {},
@@ -6744,7 +6738,6 @@
6744
6738
  "value": "#434248",
6745
6739
  "$type": "color",
6746
6740
  "comment": "Used for the default text color.",
6747
- "themeable": true,
6748
6741
  "filePath": "src/tokens/text.tokens.json",
6749
6742
  "isSource": true,
6750
6743
  "original": {
@@ -6753,8 +6746,7 @@
6753
6746
  "dark": "{color.neutral.50}"
6754
6747
  },
6755
6748
  "$type": "color",
6756
- "comment": "Used for the default text color.",
6757
- "themeable": true
6749
+ "comment": "Used for the default text color."
6758
6750
  },
6759
6751
  "name": "TEXT_COLOR_DEFAULT",
6760
6752
  "attributes": {},
@@ -6768,7 +6760,6 @@
6768
6760
  "value": "#626168",
6769
6761
  "$type": "color",
6770
6762
  "comment": "Used for supplemental text that doesn't need to be as prominent as other text.",
6771
- "themeable": true,
6772
6763
  "filePath": "src/tokens/text.tokens.json",
6773
6764
  "isSource": true,
6774
6765
  "original": {
@@ -6777,8 +6768,7 @@
6777
6768
  "dark": "{color.neutral.200}"
6778
6769
  },
6779
6770
  "$type": "color",
6780
- "comment": "Used for supplemental text that doesn't need to be as prominent as other text.",
6781
- "themeable": true
6771
+ "comment": "Used for supplemental text that doesn't need to be as prominent as other text."
6782
6772
  },
6783
6773
  "name": "TEXT_COLOR_SUBTLE",
6784
6774
  "attributes": {},
@@ -6792,7 +6782,6 @@
6792
6782
  "value": "#1f1e24",
6793
6783
  "$type": "color",
6794
6784
  "comment": "Used for text with the highest contrast.",
6795
- "themeable": true,
6796
6785
  "filePath": "src/tokens/text.tokens.json",
6797
6786
  "isSource": true,
6798
6787
  "original": {
@@ -6801,8 +6790,7 @@
6801
6790
  "dark": "{color.neutral.0}"
6802
6791
  },
6803
6792
  "$type": "color",
6804
- "comment": "Used for text with the highest contrast.",
6805
- "themeable": true
6793
+ "comment": "Used for text with the highest contrast."
6806
6794
  },
6807
6795
  "name": "TEXT_COLOR_STRONG",
6808
6796
  "attributes": {},
@@ -6816,7 +6804,6 @@
6816
6804
  "value": "#1f1e24",
6817
6805
  "$type": "color",
6818
6806
  "comment": "Used for headings level 1-6.",
6819
- "themeable": true,
6820
6807
  "filePath": "src/tokens/text.tokens.json",
6821
6808
  "isSource": true,
6822
6809
  "original": {
@@ -6825,8 +6812,7 @@
6825
6812
  "dark": "{color.neutral.0}"
6826
6813
  },
6827
6814
  "$type": "color",
6828
- "comment": "Used for headings level 1-6.",
6829
- "themeable": true
6815
+ "comment": "Used for headings level 1-6."
6830
6816
  },
6831
6817
  "name": "TEXT_COLOR_HEADING",
6832
6818
  "attributes": {},
@@ -6840,7 +6826,6 @@
6840
6826
  "value": "#0b5cad",
6841
6827
  "$type": "color",
6842
6828
  "comment": "Used for default text links.",
6843
- "themeable": true,
6844
6829
  "filePath": "src/tokens/text.tokens.json",
6845
6830
  "isSource": true,
6846
6831
  "original": {
@@ -6849,8 +6834,7 @@
6849
6834
  "dark": "{color.blue.300}"
6850
6835
  },
6851
6836
  "$type": "color",
6852
- "comment": "Used for default text links.",
6853
- "themeable": true
6837
+ "comment": "Used for default text links."
6854
6838
  },
6855
6839
  "name": "TEXT_COLOR_LINK",
6856
6840
  "attributes": {},
@@ -6864,7 +6848,6 @@
6864
6848
  "value": "#c91c00",
6865
6849
  "$type": "color",
6866
6850
  "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
6867
- "themeable": true,
6868
6851
  "filePath": "src/tokens/text.tokens.json",
6869
6852
  "isSource": true,
6870
6853
  "original": {
@@ -6873,8 +6856,7 @@
6873
6856
  "dark": "{color.red.300}"
6874
6857
  },
6875
6858
  "$type": "color",
6876
- "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.",
6877
- "themeable": true
6859
+ "comment": "Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination."
6878
6860
  },
6879
6861
  "name": "TEXT_COLOR_DANGER",
6880
6862
  "attributes": {},
@@ -6888,7 +6870,6 @@
6888
6870
  "value": "#217645",
6889
6871
  "$type": "color",
6890
6872
  "comment": "Used for text indicating success or validity.",
6891
- "themeable": true,
6892
6873
  "filePath": "src/tokens/text.tokens.json",
6893
6874
  "isSource": true,
6894
6875
  "original": {
@@ -6897,8 +6878,7 @@
6897
6878
  "dark": "{color.green.300}"
6898
6879
  },
6899
6880
  "$type": "color",
6900
- "comment": "Used for text indicating success or validity.",
6901
- "themeable": true
6881
+ "comment": "Used for text indicating success or validity."
6902
6882
  },
6903
6883
  "name": "TEXT_COLOR_SUCCESS",
6904
6884
  "attributes": {},
@@ -6912,7 +6892,6 @@
6912
6892
  "value": "#89888d",
6913
6893
  "$type": "color",
6914
6894
  "comment": "Used for disabled text.",
6915
- "themeable": true,
6916
6895
  "filePath": "src/tokens/text.tokens.json",
6917
6896
  "isSource": true,
6918
6897
  "original": {
@@ -6921,8 +6900,7 @@
6921
6900
  "dark": "{color.neutral.400}"
6922
6901
  },
6923
6902
  "$type": "color",
6924
- "comment": "Used for disabled text.",
6925
- "themeable": true
6903
+ "comment": "Used for disabled text."
6926
6904
  },
6927
6905
  "name": "TEXT_COLOR_DISABLED",
6928
6906
  "attributes": {},
@@ -2,9 +2,9 @@
2
2
  // Automatically generated
3
3
  // Do not edit directly
4
4
 
5
- $gl-text-tertiary: #737278 !default; // Use text.color.disabled instead
6
- $gl-text-secondary: #89888d !default; // Use text.color.subtle instead
7
- $gl-text-primary: #ececef !default; // Use text.color.default instead
5
+ $gl-text-tertiary: #737278; // Use text.color.disabled instead
6
+ $gl-text-secondary: #89888d; // Use text.color.subtle instead
7
+ $gl-text-primary: #ececef; // Use text.color.default instead
8
8
  $gl-line-height-52: 3.25rem;
9
9
  $gl-line-height-44: 2.75rem;
10
10
  $gl-line-height-42: 2.625rem;
@@ -304,14 +304,14 @@ $gl-color-blue-300: #63a6e9;
304
304
  $gl-color-blue-200: #9dc7f1;
305
305
  $gl-color-blue-100: #cbe2f9;
306
306
  $gl-color-blue-50: #e9f3fc;
307
- $gl-text-color-disabled: $gl-color-neutral-400 !default; // Used for disabled text.
308
- $gl-text-color-success: $gl-color-green-300 !default; // Used for text indicating success or validity.
309
- $gl-text-color-danger: $gl-color-red-300 !default; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
310
- $gl-text-color-link: $gl-color-blue-300 !default; // Used for default text links.
311
- $gl-text-color-heading: $gl-color-neutral-0 !default; // Used for headings level 1-6.
312
- $gl-text-color-strong: $gl-color-neutral-0 !default; // Used for text with the highest contrast.
313
- $gl-text-color-subtle: $gl-color-neutral-200 !default; // Used for supplemental text that doesn't need to be as prominent as other text.
314
- $gl-text-color-default: $gl-color-neutral-50 !default; // Used for the default text color.
307
+ $gl-text-color-disabled: $gl-color-neutral-400; // Used for disabled text.
308
+ $gl-text-color-success: $gl-color-green-300; // Used for text indicating success or validity.
309
+ $gl-text-color-danger: $gl-color-red-300; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
310
+ $gl-text-color-link: $gl-color-blue-300; // Used for default text links.
311
+ $gl-text-color-heading: $gl-color-neutral-0; // Used for headings level 1-6.
312
+ $gl-text-color-strong: $gl-color-neutral-0; // Used for text with the highest contrast.
313
+ $gl-text-color-subtle: $gl-color-neutral-200; // Used for supplemental text that doesn't need to be as prominent as other text.
314
+ $gl-text-color-default: $gl-color-neutral-50; // Used for the default text color.
315
315
  $gl-background-color-disabled: $gl-color-neutral-900; // Used to identify a disabled section.
316
316
  $gl-background-color-strong: $gl-color-neutral-800; // Used to make the background easily stand out from the default.
317
317
  $gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
@@ -2,9 +2,9 @@
2
2
  // Automatically generated
3
3
  // Do not edit directly
4
4
 
5
- $gl-text-tertiary: #89888d !default; // Use text.color.disabled instead
6
- $gl-text-secondary: #737278 !default; // Use text.color.subtle instead
7
- $gl-text-primary: #333238 !default; // Use text.color.default instead
5
+ $gl-text-tertiary: #89888d; // Use text.color.disabled instead
6
+ $gl-text-secondary: #737278; // Use text.color.subtle instead
7
+ $gl-text-primary: #333238; // Use text.color.default instead
8
8
  $gl-line-height-52: 3.25rem;
9
9
  $gl-line-height-44: 2.75rem;
10
10
  $gl-line-height-42: 2.625rem;
@@ -304,14 +304,14 @@ $gl-color-blue-300: #63a6e9;
304
304
  $gl-color-blue-200: #9dc7f1;
305
305
  $gl-color-blue-100: #cbe2f9;
306
306
  $gl-color-blue-50: #e9f3fc;
307
- $gl-text-color-disabled: $gl-color-neutral-400 !default; // Used for disabled text.
308
- $gl-text-color-success: $gl-color-green-600 !default; // Used for text indicating success or validity.
309
- $gl-text-color-danger: $gl-color-red-600 !default; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
310
- $gl-text-color-link: $gl-color-blue-700 !default; // Used for default text links.
311
- $gl-text-color-heading: $gl-color-neutral-950 !default; // Used for headings level 1-6.
312
- $gl-text-color-strong: $gl-color-neutral-950 !default; // Used for text with the highest contrast.
313
- $gl-text-color-subtle: $gl-color-neutral-600 !default; // Used for supplemental text that doesn't need to be as prominent as other text.
314
- $gl-text-color-default: $gl-color-neutral-800 !default; // Used for the default text color.
307
+ $gl-text-color-disabled: $gl-color-neutral-400; // Used for disabled text.
308
+ $gl-text-color-success: $gl-color-green-600; // Used for text indicating success or validity.
309
+ $gl-text-color-danger: $gl-color-red-600; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
310
+ $gl-text-color-link: $gl-color-blue-700; // Used for default text links.
311
+ $gl-text-color-heading: $gl-color-neutral-950; // Used for headings level 1-6.
312
+ $gl-text-color-strong: $gl-color-neutral-950; // Used for text with the highest contrast.
313
+ $gl-text-color-subtle: $gl-color-neutral-600; // Used for supplemental text that doesn't need to be as prominent as other text.
314
+ $gl-text-color-default: $gl-color-neutral-800; // Used for the default text color.
315
315
  $gl-background-color-disabled: $gl-color-neutral-10; // Used to identify a disabled section.
316
316
  $gl-background-color-strong: $gl-color-neutral-50; // Used to make the background easily stand out from the default.
317
317
  $gl-background-color-subtle: $gl-color-neutral-10; // Used to slightly differentiate the background from the default.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "80.14.0",
3
+ "version": "80.15.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -98,11 +98,11 @@
98
98
  },
99
99
  "devDependencies": {
100
100
  "@arkweid/lefthook": "0.7.7",
101
- "@babel/core": "^7.24.5",
101
+ "@babel/core": "^7.24.6",
102
102
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
103
103
  "@babel/plugin-proposal-optional-chaining": "^7.21.0",
104
- "@babel/preset-env": "^7.24.5",
105
- "@babel/preset-react": "^7.24.1",
104
+ "@babel/preset-env": "^7.24.6",
105
+ "@babel/preset-react": "^7.24.6",
106
106
  "@cypress/grep": "^4.0.1",
107
107
  "@gitlab/eslint-plugin": "19.5.0",
108
108
  "@gitlab/fonts": "^1.3.0",
@@ -137,7 +137,7 @@
137
137
  "babel-jest": "29.0.1",
138
138
  "babel-loader": "^8.0.5",
139
139
  "bootstrap": "4.6.2",
140
- "cypress": "13.9.0",
140
+ "cypress": "13.10.0",
141
141
  "cypress-axe": "^1.4.0",
142
142
  "cypress-real-events": "^1.11.0",
143
143
  "dompurify": "^3.1.2",
@@ -158,6 +158,8 @@
158
158
  "module-alias": "^2.2.2",
159
159
  "npm-run-all": "^4.1.5",
160
160
  "pikaday": "^1.8.0",
161
+ "playwright": "^1.44.1",
162
+ "playwright-core": "^1.44.1",
161
163
  "plop": "^2.5.4",
162
164
  "postcss": "8.4.28",
163
165
  "postcss-loader": "^7.0.2",
@@ -364,56 +364,58 @@ export default {
364
364
 
365
365
  <template>
366
366
  <div :class="datepickerClasses">
367
- <div v-if="showDefaultField" class="gl-relative">
368
- <!--
367
+ <div v-if="showDefaultField" class="gl-display-flex gl-align-items-start gl-gap-3">
368
+ <div class="gl-relative gl-display-flex gl-flex-grow-1">
369
+ <!--
369
370
  @slot (optional) Input to display and bind the datepicker to. Defaults to `<gl-form-input />`
370
371
  @binding {string} formattedDate
371
372
  -->
372
- <slot :formatted-date="formattedDate">
373
- <gl-form-input
374
- :id="inputId"
375
- v-model="textInput"
376
- :name="inputName"
377
- data-testid="gl-datepicker-input"
378
- class="gl-w-full"
379
- :class="renderClearButton ? 'gl-pr-9!' : 'gl-pr-7!'"
380
- :value="formattedDate"
381
- :placeholder="placeholder"
382
- :autocomplete="inputAutocomplete"
383
- :disabled="disabled"
384
- :aria-label="inputLabel"
385
- @keydown.enter="onKeydown"
386
- />
387
- </slot>
388
- <div class="gl-datepicker-actions">
389
- <gl-button
390
- v-if="renderClearButton"
391
- data-testid="clear-button"
392
- class="gl-pointer-events-auto"
393
- aria-label="Clear date"
394
- category="tertiary"
395
- size="small"
396
- icon="clear"
397
- @click="cleared"
398
- />
399
- <span
400
- v-if="triggerOnFocus || disabled"
401
- data-testid="datepicker-calendar-icon"
402
- class="gl-px-2"
403
- :class="disabled ? 'gl-text-gray-400' : 'gl-text-gray-500'"
404
- >
405
- <gl-icon class="gl-display-block" name="calendar" :size="16" />
406
- </span>
407
- <gl-button
408
- v-else
409
- ref="calendarTriggerBtn"
410
- class="gl-pointer-events-auto"
411
- aria-label="Open datepicker"
412
- category="tertiary"
413
- size="small"
414
- icon="calendar"
415
- />
373
+ <slot :formatted-date="formattedDate">
374
+ <gl-form-input
375
+ :id="inputId"
376
+ v-model="textInput"
377
+ :name="inputName"
378
+ data-testid="gl-datepicker-input"
379
+ :class="renderClearButton ? 'gl-pr-9!' : 'gl-pr-7!'"
380
+ :value="formattedDate"
381
+ :placeholder="placeholder"
382
+ :autocomplete="inputAutocomplete"
383
+ :disabled="disabled"
384
+ :aria-label="inputLabel"
385
+ @keydown.enter="onKeydown"
386
+ />
387
+ </slot>
388
+ <div class="gl-datepicker-actions">
389
+ <gl-button
390
+ v-if="renderClearButton"
391
+ data-testid="clear-button"
392
+ class="gl-pointer-events-auto"
393
+ aria-label="Clear date"
394
+ category="tertiary"
395
+ size="small"
396
+ icon="clear"
397
+ @click="cleared"
398
+ />
399
+ <span
400
+ v-if="triggerOnFocus || disabled"
401
+ data-testid="datepicker-calendar-icon"
402
+ class="gl-px-2"
403
+ :class="disabled ? 'gl-text-gray-400' : 'gl-text-gray-500'"
404
+ >
405
+ <gl-icon class="gl-display-block" name="calendar" :size="16" />
406
+ </span>
407
+ <gl-button
408
+ v-else
409
+ ref="calendarTriggerBtn"
410
+ class="gl-pointer-events-auto"
411
+ aria-label="Open datepicker"
412
+ category="tertiary"
413
+ size="small"
414
+ icon="calendar"
415
+ />
416
+ </div>
416
417
  </div>
418
+ <slot name="after"></slot>
417
419
  </div>
418
420
  <slot v-else :formatted-date="formattedDate"> </slot>
419
421
  </div>
@@ -3,6 +3,7 @@ import { GlTooltipDirective } from '../../../directives/tooltip';
3
3
  import { getDayDifference, getDateInPast, getDateInFuture } from '../../../utils/datetime_utility';
4
4
  import GlDatepicker from '../datepicker/datepicker.vue';
5
5
  import GlIcon from '../icon/icon.vue';
6
+ import { datepickerWidthOptionsMap } from '../../../utils/constants';
6
7
 
7
8
  const CONTAINER_CLASSES = [
8
9
  'gl-display-flex',
@@ -133,6 +134,15 @@ export default {
133
134
  required: false,
134
135
  default: false,
135
136
  },
137
+ /**
138
+ * Maximum width of the Datepicker
139
+ */
140
+ width: {
141
+ type: String,
142
+ required: false,
143
+ default: null,
144
+ validator: (value) => Object.keys(datepickerWidthOptionsMap).includes(value),
145
+ },
136
146
  },
137
147
  data() {
138
148
  return {
@@ -267,10 +277,15 @@ export default {
267
277
  :target="startPickerTarget"
268
278
  :container="startPickerContainer"
269
279
  :start-opened="startOpened"
280
+ :width="width"
270
281
  @input="onStartDateSelected"
271
282
  @open="onStartPickerOpen"
272
283
  @close="onStartPickerClose"
273
- />
284
+ >
285
+ <template #after>
286
+ <slot name="after-start"></slot>
287
+ </template>
288
+ </gl-datepicker>
274
289
  </div>
275
290
  <div :class="endContainerClasses" data-testid="daterange-picker-end-container">
276
291
  <label :class="labelClass">{{ toLabel }}</label>
@@ -287,10 +302,15 @@ export default {
287
302
  :container="endPickerContainer"
288
303
  :start-opened="openToCalendar"
289
304
  :default-date="toCalendarDefaultDate"
305
+ :width="width"
290
306
  @input="onEndDateSelected"
291
307
  @open="onEndPickerOpen"
292
308
  @close="onEndPickerClose"
293
- />
309
+ >
310
+ <template #after>
311
+ <slot name="after-end"></slot>
312
+ </template>
313
+ </gl-datepicker>
294
314
  </div>
295
315
  <div
296
316
  v-if="showIndicator"