@jobber/components 6.106.2-FIXfix-au-8f3c3ae.0 → 6.106.2

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.
@@ -217,6 +217,9 @@ function useInputTimeActions({ onChange, value, inputRef, onFocus, onBlur, onKey
217
217
  if (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) {
218
218
  if (!inputRef.current.checkValidity()) {
219
219
  inputRef.current.value = "";
220
+ inputRef.current.valueAsDate = null;
221
+ // Remove validation error. This is mainly needed for Safari
222
+ inputRef.current.setCustomValidity("");
220
223
  }
221
224
  }
222
225
  }
@@ -215,6 +215,9 @@ function useInputTimeActions({ onChange, value, inputRef, onFocus, onBlur, onKey
215
215
  if (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) {
216
216
  if (!inputRef.current.checkValidity()) {
217
217
  inputRef.current.value = "";
218
+ inputRef.current.valueAsDate = null;
219
+ // Remove validation error. This is mainly needed for Safari
220
+ inputRef.current.setCustomValidity("");
218
221
  }
219
222
  }
220
223
  }
package/dist/styles.css CHANGED
@@ -939,15 +939,6 @@
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
-
951
942
  .hGr6YW4AeLM-:not(:has(.Dgk00tzlODA-)) .vtSDcuzNr9Q- {
952
943
  padding-top: var(--field--padding-top);
953
944
  }
@@ -1035,15 +1026,6 @@
1035
1026
  font-size: var(--typography--fontSize-small);
1036
1027
  }
1037
1028
 
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
-
1047
1029
  ._0pmqVa2zSE4-.Sw5O4I0lMJg-.F1t76G6bDKo-:focus-within:not(.Tz9LK9ABKMk-) .Dgk00tzlODA- {
1048
1030
  display: none;
1049
1031
  }
@@ -1117,16 +1099,6 @@
1117
1099
  padding-bottom: var(--field--padding-bottom);
1118
1100
  }
1119
1101
 
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
-
1130
1102
  .DHX5ijY3xIw- {
1131
1103
  margin-top: 4px;
1132
1104
  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-FIXfix-au-8f3c3ae.0+8f3c3ae07",
3
+ "version": "6.106.2",
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": "8f3c3ae074c7353aac7919e1a139091f599bb142"
541
+ "gitHead": "574461e3ae58ac360f42cc04994a9b4a12ec588f"
542
542
  }