@autoguru/overdrive 4.17.2 → 4.17.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/components/AutoSuggest/AutoSuggest.css.d.ts +1 -0
- package/dist/components/AutoSuggest/AutoSuggest.css.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.css.js +4 -0
- package/dist/components/AutoSuggest/AutoSuggest.d.ts.map +1 -1
- package/dist/components/AutoSuggest/AutoSuggest.js +11 -6
- package/dist/components/SelectInput/SelectInput.css.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInput.css.js +4 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export declare const suggestionList: {
|
|
|
5
5
|
inlineOptions: string;
|
|
6
6
|
inlineOptionsNoScroll: string;
|
|
7
7
|
};
|
|
8
|
+
export declare const inputPrimitive: string;
|
|
8
9
|
export declare const input: string;
|
|
9
10
|
export declare const fullScreenInput: string;
|
|
10
11
|
export declare const fullScreenCloseBtn: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.css.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,QAuBzB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;CAwB1B,CAAC;AAEF,eAAO,MAAM,KAAK,QAKhB,CAAC;AACH,eAAO,MAAM,eAAe,QAE1B,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAK7B,CAAC;AAEH,eAAO,MAAM,MAAM,QAEjB,CAAC;AAEH,eAAO,MAAM,UAAU,QAQrB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAO7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAG9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"AutoSuggest.css.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,QAuBzB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;CAwB1B,CAAC;AAEF,eAAO,MAAM,cAAc,QAGzB,CAAC;AACH,eAAO,MAAM,KAAK,QAKhB,CAAC;AACH,eAAO,MAAM,eAAe,QAE1B,CAAC;AAEH,eAAO,MAAM,kBAAkB,QAK7B,CAAC;AAEH,eAAO,MAAM,MAAM,QAEjB,CAAC;AAEH,eAAO,MAAM,UAAU,QAQrB,CAAC;AAEH,eAAO,MAAM,kBAAkB,uCAO7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAG9B,CAAC"}
|
|
@@ -51,6 +51,10 @@ export const suggestionList = {
|
|
|
51
51
|
maxHeight: 'none'
|
|
52
52
|
}, "suggestionList_inlineOptionsNoScroll")
|
|
53
53
|
};
|
|
54
|
+
export const inputPrimitive = style({
|
|
55
|
+
marginTop: "calc(-1 * ".concat(vars.border.width['1'], ")"),
|
|
56
|
+
marginBottom: "calc(-1 * ".concat(vars.border.width['1'], ")")
|
|
57
|
+
}, "inputPrimitive");
|
|
54
58
|
export const input = style({
|
|
55
59
|
position: 'sticky',
|
|
56
60
|
top: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../lib/components/AutoSuggest/AutoSuggest.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACN,wBAAwB,EAKxB,YAAY,EAEZ,GAAG,EAQH,MAAM,OAAO,CAAC;AAYf,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,MAAM,WAAW,gBAAgB,CAAC,WAAW;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;CACf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eAAO,MAAM,WAAW;;MA8FnB,YAAY,CAAC;AAwhBlB,eAAe,WAAW,CAAC"}
|
|
@@ -5,8 +5,9 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
5
5
|
const _excluded = ["autoFocus", "autoWidth", "inlineOptions", "fieldIcon", "suggestions", "value", "onChange", "onEnter", "itemRenderer", "onBlur", "onFocus", "onKeyDown", "onClick"],
|
|
6
6
|
_excluded2 = ["closeModal"],
|
|
7
7
|
_excluded3 = ["inlineOptions", "noScroll", "isFocused", "size", "fieldIcon", "isLoading", "autoFocus", "autoWidth", "suggestions", "value", "onChange", "itemRenderer", "onBlur", "onFocus", "onKeyDown", "onClick", "className"],
|
|
8
|
-
_excluded4 = ["
|
|
9
|
-
_excluded5 = ["
|
|
8
|
+
_excluded4 = ["className"],
|
|
9
|
+
_excluded5 = ["field", "eventHandlers", "validation", "suffixed", "prefixed", "isLoading", "fieldIcon", "isFocused", "className", "size"],
|
|
10
|
+
_excluded6 = ["onReset"];
|
|
10
11
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
12
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
13
|
import { ChevronDownIcon, CloseIcon } from '@autoguru/icons';
|
|
@@ -441,7 +442,9 @@ const SuggestionsList = _ref4 => {
|
|
|
441
442
|
};
|
|
442
443
|
const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
|
|
443
444
|
let {
|
|
444
|
-
field
|
|
445
|
+
field: {
|
|
446
|
+
className: fieldClassName
|
|
447
|
+
},
|
|
445
448
|
eventHandlers,
|
|
446
449
|
validation,
|
|
447
450
|
suffixed,
|
|
@@ -452,7 +455,8 @@ const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
|
|
|
452
455
|
className,
|
|
453
456
|
size
|
|
454
457
|
} = _ref5,
|
|
455
|
-
|
|
458
|
+
field = _objectWithoutProperties(_ref5.field, _excluded4),
|
|
459
|
+
rest = _objectWithoutProperties(_ref5, _excluded5);
|
|
456
460
|
let focusTimeout;
|
|
457
461
|
const ref = useRef(null);
|
|
458
462
|
const focusHandler = useCallback(() => {
|
|
@@ -462,7 +466,7 @@ const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
|
|
|
462
466
|
const {
|
|
463
467
|
onReset
|
|
464
468
|
} = eventHandlers,
|
|
465
|
-
inputEventHandlers = _objectWithoutProperties(eventHandlers,
|
|
469
|
+
inputEventHandlers = _objectWithoutProperties(eventHandlers, _excluded6);
|
|
466
470
|
const handleRef = useCallback(node => {
|
|
467
471
|
if (field.ref) setRef(field.ref, node);
|
|
468
472
|
setRef(ref, node);
|
|
@@ -508,7 +512,8 @@ const AutoSuggestInputPrimitive = withEnhancedInput(_ref5 => {
|
|
|
508
512
|
ref: handleRef,
|
|
509
513
|
autoCapitalize: "none",
|
|
510
514
|
spellCheck: "false",
|
|
511
|
-
autoComplete: "off"
|
|
515
|
+
autoComplete: "off",
|
|
516
|
+
className: [fieldClassName, styles.inputPrimitive]
|
|
512
517
|
}, rest), {}, {
|
|
513
518
|
type: "search"
|
|
514
519
|
})), suffix]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectInput.css.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"SelectInput.css.d.ts","sourceRoot":"","sources":["../../../lib/components/SelectInput/SelectInput.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,QAGhB,CAAC;AACH,eAAO,MAAM,WAAW,QAMtB,CAAC;AAEH,eAAO,MAAM,KAAK,QAGhB,CAAC"}
|
|
@@ -4,7 +4,10 @@ import * as __vanilla_filescope__ from '@vanilla-extract/css/fileScope';
|
|
|
4
4
|
__vanilla_filescope__.setFileScope("lib/components/SelectInput/SelectInput.css.ts", "@autoguru/overdrive");
|
|
5
5
|
import { style } from '@vanilla-extract/css';
|
|
6
6
|
import { themeContractVars as vars } from "../../themes/theme.css.js";
|
|
7
|
-
export const input = style({
|
|
7
|
+
export const input = style({
|
|
8
|
+
marginTop: "calc(-1 * ".concat(vars.border.width['1'], ")"),
|
|
9
|
+
marginBottom: "calc(-1 * ".concat(vars.border.width['1'], ")")
|
|
10
|
+
}, "input");
|
|
8
11
|
export const paddedInput = style({
|
|
9
12
|
selectors: {
|
|
10
13
|
["".concat(input, "&")]: {
|