@jobber/components 6.20.4 → 6.20.5

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.
package/dist/Chip-cjs.js CHANGED
@@ -100,7 +100,8 @@ const Chip = ({ ariaLabel, disabled, heading, invalid, label, value, testID, onC
100
100
  React.createElement(Typography.Typography, { size: "base" },
101
101
  label,
102
102
  React.createElement("span", { ref: labelRef, className: styles$1.chipLabelRef })),
103
- !labelFullyVisible && (React.createElement("div", { className: styles$1.truncateGradient, "data-testid": "ATL-Chip-Truncation-Gradient" }))),
103
+ !labelFullyVisible && (React.createElement("div", { className: styles$1.truncateGradient, "data-testid": "ATL-Chip-Truncation-Gradient" },
104
+ React.createElement("span", null)))),
104
105
  suffix)));
105
106
  };
106
107
  function getTooltipMessage(labelFullyVisible, headingFullyVisible, label, heading) {
package/dist/Chip-es.js CHANGED
@@ -98,7 +98,8 @@ const Chip = ({ ariaLabel, disabled, heading, invalid, label, value, testID, onC
98
98
  React.createElement(Typography, { size: "base" },
99
99
  label,
100
100
  React.createElement("span", { ref: labelRef, className: styles$1.chipLabelRef })),
101
- !labelFullyVisible && (React.createElement("div", { className: styles$1.truncateGradient, "data-testid": "ATL-Chip-Truncation-Gradient" }))),
101
+ !labelFullyVisible && (React.createElement("div", { className: styles$1.truncateGradient, "data-testid": "ATL-Chip-Truncation-Gradient" },
102
+ React.createElement("span", null)))),
102
103
  suffix)));
103
104
  };
104
105
  function getTooltipMessage(labelFullyVisible, headingFullyVisible, label, heading) {
package/dist/styles.css CHANGED
@@ -2914,6 +2914,7 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
2914
2914
  .ln-ky9jFiLI-.CMvHum0PGzY- {
2915
2915
  --chip-border-color: var(--color-critical);
2916
2916
  --chip-base-bg-color: var(--color-critical--surface);
2917
+ --chip-base-hover-bg-color: var(--color-interactive--background--hover);
2917
2918
  }
2918
2919
 
2919
2920
  /* If these change, please update InternalChip.css focus-visible rules */
@@ -2923,12 +2924,12 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
2923
2924
  .ln-ky9jFiLI-.CMvHum0PGzY-:hover,
2924
2925
  .ln-ky9jFiLI-.CMvHum0PGzY-:focus-visible {
2925
2926
  --chip-border-color: var(--color-critical);
2926
- --chip-base-hover-bg-color: var(--color-interactive--background--hover);
2927
2927
  }
2928
2928
 
2929
2929
  .ln-ky9jFiLI- {
2930
2930
  --chip-border-color: var(--color-border--interactive);
2931
2931
  --chip-base-bg-color: var(--color-surface);
2932
+ --chip-base-hover-bg-color: var(--color-interactive--background);
2932
2933
  }
2933
2934
 
2934
2935
  /* If these change, please update InternalChip.css focus-visible rules */
@@ -2936,7 +2937,6 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
2936
2937
  .ln-ky9jFiLI-:focus-visible,
2937
2938
  .ln-ky9jFiLI-:hover {
2938
2939
  --chip-border-color: var(--chip-base-bg-color);
2939
- --chip-base-hover-bg-color: var(--color-interactive--background);
2940
2940
  }
2941
2941
 
2942
2942
  .CMvHum0PGzY-._3uJEejbZvig-,
@@ -3001,22 +3001,57 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
3001
3001
  width: 16px;
3002
3002
  width: var(--space-base);
3003
3003
  height: 100%;
3004
+ }
3005
+
3006
+ .H3-SjXQhoS4- > span {
3007
+ position: absolute;
3008
+ top: 0;
3009
+ right: 0;
3010
+ bottom: 0;
3011
+ width: 10%;
3012
+ background-color: var(--chip-base-bg-color);
3013
+ }
3014
+
3015
+ .H3-SjXQhoS4-::before,
3016
+ .H3-SjXQhoS4-::after {
3017
+ content: "";
3018
+ position: absolute;
3019
+ top: 0;
3020
+ right: 0;
3021
+ bottom: 0;
3022
+ left: 0;
3023
+ transition: opacity 200ms;
3024
+ transition: opacity var(--timing-base);
3025
+ }
3026
+
3027
+ .H3-SjXQhoS4-::before {
3004
3028
  background: linear-gradient(
3005
3029
  to left,
3006
- var(--chip-base-bg-color) 5%,
3030
+ var(--chip-base-bg-color) 10%,
3007
3031
  rgba(255, 255, 255, 0)
3008
3032
  );
3009
- transition: all 200ms;
3010
- transition: all var(--timing-base);
3033
+ opacity: 1;
3011
3034
  }
3012
3035
 
3013
- .FJNLweTKlm4-:focus-visible .H3-SjXQhoS4-,
3014
- .FJNLweTKlm4-:hover .H3-SjXQhoS4- {
3036
+ .H3-SjXQhoS4-::after {
3015
3037
  background: linear-gradient(
3016
3038
  to left,
3017
- var(--chip-base-hover-bg-color) 5%,
3039
+ var(--chip-base-hover-bg-color) 10%,
3018
3040
  rgba(255, 255, 255, 0)
3019
3041
  );
3042
+ opacity: 0;
3043
+ }
3044
+
3045
+ .FJNLweTKlm4-:hover .H3-SjXQhoS4-::before,
3046
+ .FJNLweTKlm4-:focus .H3-SjXQhoS4-::before,
3047
+ .FJNLweTKlm4-:focus-visible .H3-SjXQhoS4-::before {
3048
+ opacity: 0;
3049
+ }
3050
+
3051
+ .FJNLweTKlm4-:hover .H3-SjXQhoS4-::after,
3052
+ .FJNLweTKlm4-:focus .H3-SjXQhoS4-::after,
3053
+ .FJNLweTKlm4-:focus-visible .H3-SjXQhoS4-::after {
3054
+ opacity: 1;
3020
3055
  }
3021
3056
 
3022
3057
  .rYoQfOpWeMk- {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.20.4",
3
+ "version": "6.20.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -489,5 +489,5 @@
489
489
  "> 1%",
490
490
  "IE 10"
491
491
  ],
492
- "gitHead": "a9e854f0c5c4de234f7d318fe25dbacd7912312a"
492
+ "gitHead": "eaa4f8ec36f4d3b1af72d56413c2cdaa3060e900"
493
493
  }