@jobber/components 6.106.2-CLEANUPpr-ee307ff.0 → 6.106.2-FIXfix-au-8f3c3ae.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.
@@ -158,7 +158,7 @@ const InputDateRebuilt = React.forwardRef((props, forwardedRef) => {
158
158
  return (
159
159
  // We prevent the picker from opening on focus for keyboard navigation, so to maintain a good UX for mouse users we want to open the picker on click
160
160
  React.createElement("div", { onClick: onClick },
161
- React.createElement(InputText_index.InputText, { "aria-describedby": activatorProps.ariaDescribedBy, "aria-labelledby": activatorProps.ariaLabelledBy, "aria-required": activatorProps.ariaRequired === "true" ? true : false, autoFocus: props.autoFocus, id: activatorProps.id, autoComplete: props.autoComplete, disabled: props.disabled, error: props.error, readOnly: props.readOnly, placeholder: props.placeholder, size: props.size, inline: props.inline, align: props.align, description: props.description, invalid: props.invalid, name: props.name, version: 2, value: showEmptyValueLabel ? props.emptyValueLabel || "" : value || "", ref: forwardedRef, suffix: suffix, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: event => {
161
+ React.createElement(InputText_index.InputText, { "aria-describedby": activatorProps.ariaDescribedBy, "aria-labelledby": activatorProps.ariaLabelledBy, "aria-required": activatorProps.ariaRequired === "true" ? true : false, autoFocus: props.autoFocus, id: activatorProps.id, disabled: props.disabled, error: props.error, readOnly: props.readOnly, placeholder: props.placeholder, size: props.size, inline: props.inline, align: props.align, description: props.description, invalid: props.invalid, name: props.name, version: 2, value: showEmptyValueLabel ? props.emptyValueLabel || "" : value || "", ref: forwardedRef, suffix: suffix, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: event => {
162
162
  var _a, _b;
163
163
  if (props.showIcon === false && event.key === "ArrowDown") {
164
164
  (_a = activatorProps.onClick) === null || _a === void 0 ? void 0 : _a.call(activatorProps);
@@ -156,7 +156,7 @@ const InputDateRebuilt = forwardRef((props, forwardedRef) => {
156
156
  return (
157
157
  // We prevent the picker from opening on focus for keyboard navigation, so to maintain a good UX for mouse users we want to open the picker on click
158
158
  React__default.createElement("div", { onClick: onClick },
159
- React__default.createElement(InputText, { "aria-describedby": activatorProps.ariaDescribedBy, "aria-labelledby": activatorProps.ariaLabelledBy, "aria-required": activatorProps.ariaRequired === "true" ? true : false, autoFocus: props.autoFocus, id: activatorProps.id, autoComplete: props.autoComplete, disabled: props.disabled, error: props.error, readOnly: props.readOnly, placeholder: props.placeholder, size: props.size, inline: props.inline, align: props.align, description: props.description, invalid: props.invalid, name: props.name, version: 2, value: showEmptyValueLabel ? props.emptyValueLabel || "" : value || "", ref: forwardedRef, suffix: suffix, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: event => {
159
+ React__default.createElement(InputText, { "aria-describedby": activatorProps.ariaDescribedBy, "aria-labelledby": activatorProps.ariaLabelledBy, "aria-required": activatorProps.ariaRequired === "true" ? true : false, autoFocus: props.autoFocus, id: activatorProps.id, disabled: props.disabled, error: props.error, readOnly: props.readOnly, placeholder: props.placeholder, size: props.size, inline: props.inline, align: props.align, description: props.description, invalid: props.invalid, name: props.name, version: 2, value: showEmptyValueLabel ? props.emptyValueLabel || "" : value || "", ref: forwardedRef, suffix: suffix, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: event => {
160
160
  var _a, _b;
161
161
  if (props.showIcon === false && event.key === "ArrowDown") {
162
162
  (_a = activatorProps.onClick) === null || _a === void 0 ? void 0 : _a.call(activatorProps);
package/dist/styles.css CHANGED
@@ -939,6 +939,15 @@
939
939
  -webkit-text-fill-color: var(--field--value-color);
940
940
  }
941
941
 
942
+ /* Apply miniLabel styles when input has autofill (CSS-only solution) */
943
+
944
+ /* Supports both -webkit-autofill (Chrome/Safari) and :autofill (Firefox) */
945
+
946
+ ._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:-webkit-autofill)._9tjyT9QUtP8-:not(._0pmqVa2zSE4-),
947
+ ._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:autofill)._9tjyT9QUtP8-:not(._0pmqVa2zSE4-) {
948
+ --field--padding-top: calc(var(--space-large) + var(--space-smaller));
949
+ }
950
+
942
951
  .hGr6YW4AeLM-:not(:has(.Dgk00tzlODA-)) .vtSDcuzNr9Q- {
943
952
  padding-top: var(--field--padding-top);
944
953
  }
@@ -1026,6 +1035,15 @@
1026
1035
  font-size: var(--typography--fontSize-small);
1027
1036
  }
1028
1037
 
1038
+ /* Apply miniLabel label styles when input has autofill */
1039
+
1040
+ /* Supports both -webkit-autofill (Chrome/Safari) and :autofill (Firefox) */
1041
+
1042
+ ._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:-webkit-autofill).hGr6YW4AeLM- .Dgk00tzlODA-,
1043
+ ._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:autofill).hGr6YW4AeLM- .Dgk00tzlODA- {
1044
+ background-color: var(--field--background-color);
1045
+ }
1046
+
1029
1047
  ._0pmqVa2zSE4-.Sw5O4I0lMJg-.F1t76G6bDKo-:focus-within:not(.Tz9LK9ABKMk-) .Dgk00tzlODA- {
1030
1048
  display: none;
1031
1049
  }
@@ -1099,6 +1117,16 @@
1099
1117
  padding-bottom: var(--field--padding-bottom);
1100
1118
  }
1101
1119
 
1120
+ /* Apply affix label styles when input has autofill */
1121
+
1122
+ /* Supports both -webkit-autofill (Chrome/Safari) and :autofill (Firefox) */
1123
+
1124
+ ._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:-webkit-autofill):not(.Sw5O4I0lMJg-) .-Wzcb0pBh5I-,
1125
+ ._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:autofill):not(.Sw5O4I0lMJg-) .-Wzcb0pBh5I- {
1126
+ padding-top: var(--field--padding-top);
1127
+ padding-bottom: var(--field--padding-bottom);
1128
+ }
1129
+
1102
1130
  .DHX5ijY3xIw- {
1103
1131
  margin-top: 4px;
1104
1132
  margin-top: var(--space-smaller);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.106.2-CLEANUPpr-ee307ff.0+ee307ffb3",
3
+ "version": "6.106.2-FIXfix-au-8f3c3ae.0+8f3c3ae07",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -538,5 +538,5 @@
538
538
  "> 1%",
539
539
  "IE 10"
540
540
  ],
541
- "gitHead": "ee307ffb3709ada1d98076236efadb37c08c8820"
541
+ "gitHead": "8f3c3ae074c7353aac7919e1a139091f599bb142"
542
542
  }