@jobber/components 6.106.2 → 6.106.3
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/InputDate/index.cjs +1 -1
- package/dist/InputDate/index.mjs +1 -1
- package/dist/styles.css +47 -0
- package/package.json +2 -2
package/dist/InputDate/index.cjs
CHANGED
|
@@ -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, 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, 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 => {
|
|
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);
|
package/dist/InputDate/index.mjs
CHANGED
|
@@ -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, 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, 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 => {
|
|
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,22 @@
|
|
|
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):not(._0pmqVa2zSE4-) {
|
|
947
|
+
--field--placeholder-color: var(--color-text--secondary);
|
|
948
|
+
--field--placeholder-offset: var(--space-smallest);
|
|
949
|
+
--field--placeholder-transform: 0;
|
|
950
|
+
--field--padding-top: calc(var(--space-base) + var(--space-smaller));
|
|
951
|
+
--field--padding-bottom: var(--space-small);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:-webkit-autofill)._9tjyT9QUtP8-:not(._0pmqVa2zSE4-) {
|
|
955
|
+
--field--padding-top: calc(var(--space-large) + var(--space-smaller));
|
|
956
|
+
}
|
|
957
|
+
|
|
942
958
|
.hGr6YW4AeLM-:not(:has(.Dgk00tzlODA-)) .vtSDcuzNr9Q- {
|
|
943
959
|
padding-top: var(--field--padding-top);
|
|
944
960
|
}
|
|
@@ -1026,6 +1042,28 @@
|
|
|
1026
1042
|
font-size: var(--typography--fontSize-small);
|
|
1027
1043
|
}
|
|
1028
1044
|
|
|
1045
|
+
/* Apply miniLabel label styles when input has autofill */
|
|
1046
|
+
|
|
1047
|
+
/* Supports both -webkit-autofill (Chrome/Safari) and :autofill (Firefox) */
|
|
1048
|
+
|
|
1049
|
+
._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:-webkit-autofill) .Dgk00tzlODA- {
|
|
1050
|
+
font-size: 12px;
|
|
1051
|
+
font-size: var(--typography--fontSize-small);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:-webkit-autofill).Sw5O4I0lMJg- .Dgk00tzlODA- {
|
|
1055
|
+
display: none;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:-webkit-autofill).QmMiyoAWp-g- .Dgk00tzlODA- {
|
|
1059
|
+
padding-top: 2px;
|
|
1060
|
+
padding-top: var(--space-smallest);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:-webkit-autofill).hGr6YW4AeLM- .Dgk00tzlODA- {
|
|
1064
|
+
background-color: var(--field--background-color);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1029
1067
|
._0pmqVa2zSE4-.Sw5O4I0lMJg-.F1t76G6bDKo-:focus-within:not(.Tz9LK9ABKMk-) .Dgk00tzlODA- {
|
|
1030
1068
|
display: none;
|
|
1031
1069
|
}
|
|
@@ -1099,6 +1137,15 @@
|
|
|
1099
1137
|
padding-bottom: var(--field--padding-bottom);
|
|
1100
1138
|
}
|
|
1101
1139
|
|
|
1140
|
+
/* Apply affix label styles when input has autofill */
|
|
1141
|
+
|
|
1142
|
+
/* Supports both -webkit-autofill (Chrome/Safari) and :autofill (Firefox) */
|
|
1143
|
+
|
|
1144
|
+
._8lhbGTQ-hhg-:has(.vtSDcuzNr9Q-:-webkit-autofill):not(.Sw5O4I0lMJg-) .-Wzcb0pBh5I- {
|
|
1145
|
+
padding-top: var(--field--padding-top);
|
|
1146
|
+
padding-bottom: var(--field--padding-bottom);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1102
1149
|
.DHX5ijY3xIw- {
|
|
1103
1150
|
margin-top: 4px;
|
|
1104
1151
|
margin-top: var(--space-smaller);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.106.
|
|
3
|
+
"version": "6.106.3",
|
|
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": "
|
|
541
|
+
"gitHead": "32055bb77f35ebd11e476a2b377dcc7786a728c8"
|
|
542
542
|
}
|