@jobber/components 6.106.2 → 6.106.4-CLEANUPre-396e26e.1
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 -1
- package/package.json +2 -2
- package/rollup.config.mjs +18 -0
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);
|
|
@@ -6672,7 +6719,6 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
|
|
|
6672
6719
|
padding: var(--space-small) var(--space-base);
|
|
6673
6720
|
}
|
|
6674
6721
|
|
|
6675
|
-
@charset "UTF-8";
|
|
6676
6722
|
{
|
|
6677
6723
|
/* sr-only utility class for accessibility */
|
|
6678
6724
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.106.
|
|
3
|
+
"version": "6.106.4-CLEANUPre-396e26e.1+396e26e23",
|
|
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": "396e26e232b4b137526f428f34094f6b0eaf2c65"
|
|
542
542
|
}
|
package/rollup.config.mjs
CHANGED
|
@@ -21,6 +21,23 @@ import nodePolyfills from "rollup-plugin-polyfill-node";
|
|
|
21
21
|
*/
|
|
22
22
|
const PREBUILD_CSS = process.env.PREBUILD_CSS === "true";
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* PostCSS plugin to remove @charset declarations.
|
|
26
|
+
*
|
|
27
|
+
* The @charset rule (from react-datepicker) ends up in the middle of
|
|
28
|
+
* the bundled CSS when imported via postcss-import. Since @charset must be
|
|
29
|
+
* the first line of a CSS file to be valid, and it's unnecessary for
|
|
30
|
+
* HTTP-served content (Content-Type header takes precedence), we remove it.
|
|
31
|
+
*/
|
|
32
|
+
const removeCharset = {
|
|
33
|
+
postcssPlugin: "remove-charset",
|
|
34
|
+
AtRule: {
|
|
35
|
+
charset: atRule => {
|
|
36
|
+
atRule.remove();
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
24
41
|
export default {
|
|
25
42
|
input: PREBUILD_CSS ? "src/index.ts" : `src/**/index.{ts,tsx}`,
|
|
26
43
|
plugins: [
|
|
@@ -42,6 +59,7 @@ export default {
|
|
|
42
59
|
autoModules: false,
|
|
43
60
|
plugins: [
|
|
44
61
|
postcssimport,
|
|
62
|
+
removeCharset,
|
|
45
63
|
autoprefixer,
|
|
46
64
|
tools({
|
|
47
65
|
files: ["../design/dist/foundation.css"],
|