@commercetools-frontend/experimental-components 5.4.0 → 5.4.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.
|
@@ -7630,10 +7630,12 @@ const CustomFieldsInternal = props => {
|
|
|
7630
7630
|
return jsxRuntime.jsx(formik.FastField, {
|
|
7631
7631
|
name: fieldName,
|
|
7632
7632
|
validate: validate,
|
|
7633
|
-
children: () => {
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7633
|
+
children: () => jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
7634
|
+
scale: "xs",
|
|
7635
|
+
children: jsxRuntime.jsxs("div", {
|
|
7636
|
+
"aria-invalid": _Object$keys__default["default"](fieldErrors !== null && fieldErrors !== void 0 ? fieldErrors : {}).length > 0,
|
|
7637
|
+
"aria-errormessage": "".concat(fieldName, "-error"),
|
|
7638
|
+
id: "".concat(fieldName, "-error"),
|
|
7637
7639
|
children: [jsxRuntime.jsx(CustomFieldsLabel, {
|
|
7638
7640
|
name: fieldName,
|
|
7639
7641
|
fieldDefinition: fieldDefinition
|
|
@@ -7648,26 +7650,22 @@ const CustomFieldsInternal = props => {
|
|
|
7648
7650
|
isReadOnly: props.isReadOnly,
|
|
7649
7651
|
onBlur: handleBlur,
|
|
7650
7652
|
setFieldValue: props.setFieldValue
|
|
7651
|
-
}) : jsxRuntime.jsx(
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
setFieldValue: props.setFieldValue,
|
|
7662
|
-
hasError: hasError
|
|
7663
|
-
})
|
|
7664
|
-
}, _concatInstanceProperty__default["default"](_context3 = "".concat(fieldName, "-")).call(_context3, index)), jsxRuntime.jsx(CustomFieldErrors, {
|
|
7653
|
+
}) : jsxRuntime.jsx(CustomFieldInput, {
|
|
7654
|
+
name: fieldName,
|
|
7655
|
+
value: value,
|
|
7656
|
+
fieldDefinition: fieldDefinition,
|
|
7657
|
+
isDisabled: props.isDisabled,
|
|
7658
|
+
isReadOnly: props.isReadOnly,
|
|
7659
|
+
onBlur: handleBlur,
|
|
7660
|
+
setFieldValue: props.setFieldValue,
|
|
7661
|
+
hasError: hasError
|
|
7662
|
+
}), jsxRuntime.jsx(CustomFieldErrors, {
|
|
7665
7663
|
isTouched: isTouched,
|
|
7666
7664
|
errors: fieldErrors
|
|
7667
7665
|
})]
|
|
7668
7666
|
})]
|
|
7669
|
-
})
|
|
7670
|
-
}
|
|
7667
|
+
})
|
|
7668
|
+
})
|
|
7671
7669
|
}, _concatInstanceProperty__default["default"](_context2 = "".concat(fieldName, "-")).call(_context2, index));
|
|
7672
7670
|
})
|
|
7673
7671
|
});
|
|
@@ -11341,6 +11339,10 @@ const ScrollToFieldError = () => {
|
|
|
11341
11339
|
const formik$1 = formik.useFormikContext();
|
|
11342
11340
|
const isValid = formik$1.isValid,
|
|
11343
11341
|
submitCount = formik$1.submitCount;
|
|
11342
|
+
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
11343
|
+
dataLocale: applicationContext.dataLocale
|
|
11344
|
+
})),
|
|
11345
|
+
dataLocale = _useApplicationContex.dataLocale;
|
|
11344
11346
|
React.useEffect(() => {
|
|
11345
11347
|
// Do not run the effect if the form hasn't been submitted yet.
|
|
11346
11348
|
if (submitCount === 0) return;
|
|
@@ -11348,17 +11350,23 @@ const ScrollToFieldError = () => {
|
|
|
11348
11350
|
if (isValid) return;
|
|
11349
11351
|
const firstErrorElement = document.querySelector('[aria-invalid="true"]');
|
|
11350
11352
|
if (firstErrorElement) {
|
|
11351
|
-
var _ref, _document$querySelect, _elementToScrollTo$sc;
|
|
11353
|
+
var _ref, _ref2, _document$querySelect, _elementToScrollTo$sc;
|
|
11352
11354
|
// Get a reference to the label.
|
|
11353
|
-
const
|
|
11355
|
+
const firstElementId = firstErrorElement.getAttribute('id');
|
|
11356
|
+
const localizedInputIndex = _indexOfInstanceProperty__default["default"](firstElementId).call(firstElementId, ".".concat(dataLocale));
|
|
11357
|
+
|
|
11358
|
+
// check if locale is appended then remove it from id
|
|
11359
|
+
const id = localizedInputIndex > -1 ? firstElementId.replace(".".concat(dataLocale), '') : firstElementId;
|
|
11354
11360
|
|
|
11355
11361
|
// Scroll to the label (if found), otherwise to the input element itself.
|
|
11356
|
-
|
|
11362
|
+
|
|
11363
|
+
const elementToScrollTo = // div is used only for custom fields
|
|
11364
|
+
(_ref = (_ref2 = (_document$querySelect = document.querySelector("div[aria-errormessage=\"".concat(firstElementId, "\"]"))) !== null && _document$querySelect !== void 0 ? _document$querySelect : document.querySelector("label[for=\"".concat(id, "\"]"))) !== null && _ref2 !== void 0 ? _ref2 : document.querySelector("label#".concat(id))) !== null && _ref !== void 0 ? _ref : firstErrorElement;
|
|
11357
11365
|
(_elementToScrollTo$sc = elementToScrollTo.scrollIntoView) === null || _elementToScrollTo$sc === void 0 || _elementToScrollTo$sc.call(elementToScrollTo, {
|
|
11358
11366
|
behavior: 'smooth'
|
|
11359
11367
|
});
|
|
11360
11368
|
}
|
|
11361
|
-
}, [isValid, submitCount]);
|
|
11369
|
+
}, [dataLocale, isValid, submitCount]);
|
|
11362
11370
|
return null;
|
|
11363
11371
|
};
|
|
11364
11372
|
|
|
@@ -7623,10 +7623,12 @@ const CustomFieldsInternal = props => {
|
|
|
7623
7623
|
return jsxRuntime.jsx(formik.FastField, {
|
|
7624
7624
|
name: fieldName,
|
|
7625
7625
|
validate: validate,
|
|
7626
|
-
children: () => {
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7626
|
+
children: () => jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
7627
|
+
scale: "xs",
|
|
7628
|
+
children: jsxRuntime.jsxs("div", {
|
|
7629
|
+
"aria-invalid": _Object$keys__default["default"](fieldErrors !== null && fieldErrors !== void 0 ? fieldErrors : {}).length > 0,
|
|
7630
|
+
"aria-errormessage": "".concat(fieldName, "-error"),
|
|
7631
|
+
id: "".concat(fieldName, "-error"),
|
|
7630
7632
|
children: [jsxRuntime.jsx(CustomFieldsLabel, {
|
|
7631
7633
|
name: fieldName,
|
|
7632
7634
|
fieldDefinition: fieldDefinition
|
|
@@ -7641,26 +7643,22 @@ const CustomFieldsInternal = props => {
|
|
|
7641
7643
|
isReadOnly: props.isReadOnly,
|
|
7642
7644
|
onBlur: handleBlur,
|
|
7643
7645
|
setFieldValue: props.setFieldValue
|
|
7644
|
-
}) : jsxRuntime.jsx(
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
setFieldValue: props.setFieldValue,
|
|
7655
|
-
hasError: hasError
|
|
7656
|
-
})
|
|
7657
|
-
}, _concatInstanceProperty__default["default"](_context3 = "".concat(fieldName, "-")).call(_context3, index)), jsxRuntime.jsx(CustomFieldErrors, {
|
|
7646
|
+
}) : jsxRuntime.jsx(CustomFieldInput, {
|
|
7647
|
+
name: fieldName,
|
|
7648
|
+
value: value,
|
|
7649
|
+
fieldDefinition: fieldDefinition,
|
|
7650
|
+
isDisabled: props.isDisabled,
|
|
7651
|
+
isReadOnly: props.isReadOnly,
|
|
7652
|
+
onBlur: handleBlur,
|
|
7653
|
+
setFieldValue: props.setFieldValue,
|
|
7654
|
+
hasError: hasError
|
|
7655
|
+
}), jsxRuntime.jsx(CustomFieldErrors, {
|
|
7658
7656
|
isTouched: isTouched,
|
|
7659
7657
|
errors: fieldErrors
|
|
7660
7658
|
})]
|
|
7661
7659
|
})]
|
|
7662
|
-
})
|
|
7663
|
-
}
|
|
7660
|
+
})
|
|
7661
|
+
})
|
|
7664
7662
|
}, _concatInstanceProperty__default["default"](_context2 = "".concat(fieldName, "-")).call(_context2, index));
|
|
7665
7663
|
})
|
|
7666
7664
|
});
|
|
@@ -11334,6 +11332,10 @@ const ScrollToFieldError = () => {
|
|
|
11334
11332
|
const formik$1 = formik.useFormikContext();
|
|
11335
11333
|
const isValid = formik$1.isValid,
|
|
11336
11334
|
submitCount = formik$1.submitCount;
|
|
11335
|
+
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
11336
|
+
dataLocale: applicationContext.dataLocale
|
|
11337
|
+
})),
|
|
11338
|
+
dataLocale = _useApplicationContex.dataLocale;
|
|
11337
11339
|
React.useEffect(() => {
|
|
11338
11340
|
// Do not run the effect if the form hasn't been submitted yet.
|
|
11339
11341
|
if (submitCount === 0) return;
|
|
@@ -11341,17 +11343,23 @@ const ScrollToFieldError = () => {
|
|
|
11341
11343
|
if (isValid) return;
|
|
11342
11344
|
const firstErrorElement = document.querySelector('[aria-invalid="true"]');
|
|
11343
11345
|
if (firstErrorElement) {
|
|
11344
|
-
var _ref, _document$querySelect, _elementToScrollTo$sc;
|
|
11346
|
+
var _ref, _ref2, _document$querySelect, _elementToScrollTo$sc;
|
|
11345
11347
|
// Get a reference to the label.
|
|
11346
|
-
const
|
|
11348
|
+
const firstElementId = firstErrorElement.getAttribute('id');
|
|
11349
|
+
const localizedInputIndex = _indexOfInstanceProperty__default["default"](firstElementId).call(firstElementId, ".".concat(dataLocale));
|
|
11350
|
+
|
|
11351
|
+
// check if locale is appended then remove it from id
|
|
11352
|
+
const id = localizedInputIndex > -1 ? firstElementId.replace(".".concat(dataLocale), '') : firstElementId;
|
|
11347
11353
|
|
|
11348
11354
|
// Scroll to the label (if found), otherwise to the input element itself.
|
|
11349
|
-
|
|
11355
|
+
|
|
11356
|
+
const elementToScrollTo = // div is used only for custom fields
|
|
11357
|
+
(_ref = (_ref2 = (_document$querySelect = document.querySelector("div[aria-errormessage=\"".concat(firstElementId, "\"]"))) !== null && _document$querySelect !== void 0 ? _document$querySelect : document.querySelector("label[for=\"".concat(id, "\"]"))) !== null && _ref2 !== void 0 ? _ref2 : document.querySelector("label#".concat(id))) !== null && _ref !== void 0 ? _ref : firstErrorElement;
|
|
11350
11358
|
(_elementToScrollTo$sc = elementToScrollTo.scrollIntoView) === null || _elementToScrollTo$sc === void 0 || _elementToScrollTo$sc.call(elementToScrollTo, {
|
|
11351
11359
|
behavior: 'smooth'
|
|
11352
11360
|
});
|
|
11353
11361
|
}
|
|
11354
|
-
}, [isValid, submitCount]);
|
|
11362
|
+
}, [dataLocale, isValid, submitCount]);
|
|
11355
11363
|
return null;
|
|
11356
11364
|
};
|
|
11357
11365
|
|
|
@@ -7547,10 +7547,12 @@ const CustomFieldsInternal = props => {
|
|
|
7547
7547
|
return jsx(FastField, {
|
|
7548
7548
|
name: fieldName,
|
|
7549
7549
|
validate: validate,
|
|
7550
|
-
children: () => {
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7550
|
+
children: () => jsx(Spacings.Stack, {
|
|
7551
|
+
scale: "xs",
|
|
7552
|
+
children: jsxs("div", {
|
|
7553
|
+
"aria-invalid": _Object$keys(fieldErrors !== null && fieldErrors !== void 0 ? fieldErrors : {}).length > 0,
|
|
7554
|
+
"aria-errormessage": "".concat(fieldName, "-error"),
|
|
7555
|
+
id: "".concat(fieldName, "-error"),
|
|
7554
7556
|
children: [jsx(CustomFieldsLabel, {
|
|
7555
7557
|
name: fieldName,
|
|
7556
7558
|
fieldDefinition: fieldDefinition
|
|
@@ -7565,26 +7567,22 @@ const CustomFieldsInternal = props => {
|
|
|
7565
7567
|
isReadOnly: props.isReadOnly,
|
|
7566
7568
|
onBlur: handleBlur,
|
|
7567
7569
|
setFieldValue: props.setFieldValue
|
|
7568
|
-
}) : jsx(
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
setFieldValue: props.setFieldValue,
|
|
7579
|
-
hasError: hasError
|
|
7580
|
-
})
|
|
7581
|
-
}, _concatInstanceProperty(_context3 = "".concat(fieldName, "-")).call(_context3, index)), jsx(CustomFieldErrors, {
|
|
7570
|
+
}) : jsx(CustomFieldInput, {
|
|
7571
|
+
name: fieldName,
|
|
7572
|
+
value: value,
|
|
7573
|
+
fieldDefinition: fieldDefinition,
|
|
7574
|
+
isDisabled: props.isDisabled,
|
|
7575
|
+
isReadOnly: props.isReadOnly,
|
|
7576
|
+
onBlur: handleBlur,
|
|
7577
|
+
setFieldValue: props.setFieldValue,
|
|
7578
|
+
hasError: hasError
|
|
7579
|
+
}), jsx(CustomFieldErrors, {
|
|
7582
7580
|
isTouched: isTouched,
|
|
7583
7581
|
errors: fieldErrors
|
|
7584
7582
|
})]
|
|
7585
7583
|
})]
|
|
7586
|
-
})
|
|
7587
|
-
}
|
|
7584
|
+
})
|
|
7585
|
+
})
|
|
7588
7586
|
}, _concatInstanceProperty(_context2 = "".concat(fieldName, "-")).call(_context2, index));
|
|
7589
7587
|
})
|
|
7590
7588
|
});
|
|
@@ -11258,6 +11256,10 @@ const ScrollToFieldError = () => {
|
|
|
11258
11256
|
const formik = useFormikContext();
|
|
11259
11257
|
const isValid = formik.isValid,
|
|
11260
11258
|
submitCount = formik.submitCount;
|
|
11259
|
+
const _useApplicationContex = useApplicationContext(applicationContext => ({
|
|
11260
|
+
dataLocale: applicationContext.dataLocale
|
|
11261
|
+
})),
|
|
11262
|
+
dataLocale = _useApplicationContex.dataLocale;
|
|
11261
11263
|
useEffect(() => {
|
|
11262
11264
|
// Do not run the effect if the form hasn't been submitted yet.
|
|
11263
11265
|
if (submitCount === 0) return;
|
|
@@ -11265,17 +11267,23 @@ const ScrollToFieldError = () => {
|
|
|
11265
11267
|
if (isValid) return;
|
|
11266
11268
|
const firstErrorElement = document.querySelector('[aria-invalid="true"]');
|
|
11267
11269
|
if (firstErrorElement) {
|
|
11268
|
-
var _ref, _document$querySelect, _elementToScrollTo$sc;
|
|
11270
|
+
var _ref, _ref2, _document$querySelect, _elementToScrollTo$sc;
|
|
11269
11271
|
// Get a reference to the label.
|
|
11270
|
-
const
|
|
11272
|
+
const firstElementId = firstErrorElement.getAttribute('id');
|
|
11273
|
+
const localizedInputIndex = _indexOfInstanceProperty(firstElementId).call(firstElementId, ".".concat(dataLocale));
|
|
11274
|
+
|
|
11275
|
+
// check if locale is appended then remove it from id
|
|
11276
|
+
const id = localizedInputIndex > -1 ? firstElementId.replace(".".concat(dataLocale), '') : firstElementId;
|
|
11271
11277
|
|
|
11272
11278
|
// Scroll to the label (if found), otherwise to the input element itself.
|
|
11273
|
-
|
|
11279
|
+
|
|
11280
|
+
const elementToScrollTo = // div is used only for custom fields
|
|
11281
|
+
(_ref = (_ref2 = (_document$querySelect = document.querySelector("div[aria-errormessage=\"".concat(firstElementId, "\"]"))) !== null && _document$querySelect !== void 0 ? _document$querySelect : document.querySelector("label[for=\"".concat(id, "\"]"))) !== null && _ref2 !== void 0 ? _ref2 : document.querySelector("label#".concat(id))) !== null && _ref !== void 0 ? _ref : firstErrorElement;
|
|
11274
11282
|
(_elementToScrollTo$sc = elementToScrollTo.scrollIntoView) === null || _elementToScrollTo$sc === void 0 || _elementToScrollTo$sc.call(elementToScrollTo, {
|
|
11275
11283
|
behavior: 'smooth'
|
|
11276
11284
|
});
|
|
11277
11285
|
}
|
|
11278
|
-
}, [isValid, submitCount]);
|
|
11286
|
+
}, [dataLocale, isValid, submitCount]);
|
|
11279
11287
|
return null;
|
|
11280
11288
|
};
|
|
11281
11289
|
|
package/dist/styles.css
CHANGED
|
@@ -1,130 +1,3 @@
|
|
|
1
|
-
/* imported from search-input.module.css */
|
|
2
|
-
|
|
3
|
-
.search-input-module__block___1uM-y {
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
align-items: flex-start;
|
|
7
|
-
width: 100%;
|
|
8
|
-
max-width: 800px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.search-input-module__container___9u6if {
|
|
12
|
-
position: relative;
|
|
13
|
-
flex-grow: 1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.search-input-module__input-container___mJnyZ {
|
|
17
|
-
border-color: var(--border-color-for-input);
|
|
18
|
-
height: var(--height-for-input);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.search-input-module__input-container___mJnyZ > input::placeholder {
|
|
22
|
-
font-weight: var(--font-weight-400);
|
|
23
|
-
font-size: var(--font-size-for-input);
|
|
24
|
-
font-family: var(--font-family);
|
|
25
|
-
color: var(--color-neutral-60);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.search-input-module__input-container___mJnyZ > input {
|
|
29
|
-
padding-right: calc(var(--spacing-xl) * 2);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.search-input-module__input-container-disabled___23jR8 > input {
|
|
33
|
-
border-color: var(--color-neutral);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.search-input-module__input-container-hoverable___1xjqn > input:hover {
|
|
37
|
-
border: var(--border-width-for-input) solid var(--border-color-for-input);
|
|
38
|
-
background-color: var(--background-color-for-input-when-hovered);
|
|
39
|
-
}
|
|
40
|
-
.search-input-module__input-container-hoverable___1xjqn > input:focus {
|
|
41
|
-
box-shadow: var(
|
|
42
|
-
--shadow-for-input-when-focused,
|
|
43
|
-
inset 0 0 0 1px var(--color-primary)
|
|
44
|
-
);
|
|
45
|
-
border-color: var(--border-color-for-input-when-focused);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.search-input-module__input-container-granular___33Pm- {
|
|
49
|
-
border-color: var(--color-primary);
|
|
50
|
-
position: relative;
|
|
51
|
-
right: 3px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.search-input-module__search-icon-container___cbHQY {
|
|
55
|
-
background-color: transparent;
|
|
56
|
-
border-color: transparent;
|
|
57
|
-
position: absolute;
|
|
58
|
-
right: 9px;
|
|
59
|
-
top: 8px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.search-input-module__clear-icon-container___3RQvu {
|
|
63
|
-
background-color: transparent;
|
|
64
|
-
border-color: transparent;
|
|
65
|
-
position: absolute;
|
|
66
|
-
right: 36px;
|
|
67
|
-
top: 11px;
|
|
68
|
-
z-index: 2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.search-input-module__clear-icon-container-granular___1mbin {
|
|
72
|
-
right: 41px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.search-input-module__search-icon-container-hoverable___1kTwJ {
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.search-input-module__search-icon-container-granular___3fAsR {
|
|
80
|
-
right: 15px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.search-input-module__hidden___z07GX {
|
|
84
|
-
display: none !important;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.search-input-module__action___1GqGT {
|
|
88
|
-
flex-shrink: 1;
|
|
89
|
-
margin-left: var(--spacing-s);
|
|
90
|
-
}
|
|
91
|
-
/* imported from required-indicator.module.css */
|
|
92
|
-
|
|
93
|
-
.required-indicator-module__colored____YUFm {
|
|
94
|
-
color: var(--color-warning);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.required-indicator-module__indicatorAsterisk___3lEdX {
|
|
98
|
-
font-style: normal;
|
|
99
|
-
margin-left: 2px;
|
|
100
|
-
}
|
|
101
|
-
/* imported from selectable-field-search-input.module.css */
|
|
102
|
-
|
|
103
|
-
.selectable-field-search-input-module__container___z2ltR {
|
|
104
|
-
width: 100%;
|
|
105
|
-
position: relative;
|
|
106
|
-
display: flex;
|
|
107
|
-
z-index: 3;
|
|
108
|
-
max-width: var(--constraint-15);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.selectable-field-search-input-module__search-mode-menu___Od6Le {
|
|
112
|
-
border-radius: var(--border-radius-6);
|
|
113
|
-
border: 1px solid var(--color-primary);
|
|
114
|
-
margin-top: 2px;
|
|
115
|
-
position: absolute;
|
|
116
|
-
}
|
|
117
|
-
/* imported from validated-input.module.css */
|
|
118
|
-
|
|
119
|
-
.validated-input-module__invalid___380EL {
|
|
120
|
-
/* this needs !important because react-select has a :focus style that
|
|
121
|
-
stops the border colour being set unless the element is blurred */
|
|
122
|
-
border-color: var(--color-error) !important;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.validated-input-module__container___3L2KB {
|
|
126
|
-
display: inline;
|
|
127
|
-
}
|
|
128
1
|
/* imported from label-range.module.css */
|
|
129
2
|
|
|
130
3
|
.label-range-module__label___3Tb0p {
|
|
@@ -261,41 +134,132 @@
|
|
|
261
134
|
border-bottom-left-radius: 0;
|
|
262
135
|
margin-left: 0;
|
|
263
136
|
}
|
|
264
|
-
/*
|
|
265
|
-
|
|
266
|
-
/** Button */
|
|
137
|
+
/* imported from search-input.module.css */
|
|
267
138
|
|
|
268
|
-
.
|
|
139
|
+
.search-input-module__block___1uM-y {
|
|
269
140
|
display: inline-flex;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
color: var(--color-solid);
|
|
275
|
-
height: var(--height-for-button-as-big);
|
|
276
|
-
font-size: var(--font-size-20);
|
|
277
|
-
font-weight: var(--font-weight-500);
|
|
278
|
-
align-items: center;
|
|
279
|
-
transition: background-color var(--transition-linear-80ms);
|
|
280
|
-
padding: 0 var(--spacing-m);
|
|
141
|
+
flex-direction: row;
|
|
142
|
+
align-items: flex-start;
|
|
143
|
+
width: 100%;
|
|
144
|
+
max-width: 800px;
|
|
281
145
|
}
|
|
282
146
|
|
|
283
|
-
.
|
|
284
|
-
|
|
147
|
+
.search-input-module__container___9u6if {
|
|
148
|
+
position: relative;
|
|
149
|
+
flex-grow: 1;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.search-input-module__input-container___mJnyZ {
|
|
153
|
+
border-color: var(--border-color-for-input);
|
|
154
|
+
height: var(--height-for-input);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.search-input-module__input-container___mJnyZ > input::placeholder {
|
|
158
|
+
font-weight: var(--font-weight-400);
|
|
159
|
+
font-size: var(--font-size-for-input);
|
|
160
|
+
font-family: var(--font-family);
|
|
161
|
+
color: var(--color-neutral-60);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.search-input-module__input-container___mJnyZ > input {
|
|
165
|
+
padding-right: calc(var(--spacing-xl) * 2);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.search-input-module__input-container-disabled___23jR8 > input {
|
|
169
|
+
border-color: var(--color-neutral);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.search-input-module__input-container-hoverable___1xjqn > input:hover {
|
|
173
|
+
border: var(--border-width-for-input) solid var(--border-color-for-input);
|
|
174
|
+
background-color: var(--background-color-for-input-when-hovered);
|
|
175
|
+
}
|
|
176
|
+
.search-input-module__input-container-hoverable___1xjqn > input:focus {
|
|
177
|
+
box-shadow: var(
|
|
178
|
+
--shadow-for-input-when-focused,
|
|
179
|
+
inset 0 0 0 1px var(--color-primary)
|
|
180
|
+
);
|
|
181
|
+
border-color: var(--border-color-for-input-when-focused);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.search-input-module__input-container-granular___33Pm- {
|
|
185
|
+
border-color: var(--color-primary);
|
|
186
|
+
position: relative;
|
|
187
|
+
right: 3px;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.search-input-module__search-icon-container___cbHQY {
|
|
191
|
+
background-color: transparent;
|
|
192
|
+
border-color: transparent;
|
|
193
|
+
position: absolute;
|
|
194
|
+
right: 9px;
|
|
195
|
+
top: 8px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.search-input-module__clear-icon-container___3RQvu {
|
|
199
|
+
background-color: transparent;
|
|
200
|
+
border-color: transparent;
|
|
201
|
+
position: absolute;
|
|
202
|
+
right: 36px;
|
|
203
|
+
top: 11px;
|
|
204
|
+
z-index: 2;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.search-input-module__clear-icon-container-granular___1mbin {
|
|
208
|
+
right: 41px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.search-input-module__search-icon-container-hoverable___1kTwJ {
|
|
285
212
|
cursor: pointer;
|
|
286
|
-
background-color: var(--background-color-for-button-when-hovered);
|
|
287
|
-
box-shadow: none;
|
|
288
213
|
}
|
|
289
214
|
|
|
290
|
-
.
|
|
291
|
-
|
|
292
|
-
background-color: var(--color-surface);
|
|
215
|
+
.search-input-module__search-icon-container-granular___3fAsR {
|
|
216
|
+
right: 15px;
|
|
293
217
|
}
|
|
294
218
|
|
|
295
|
-
.
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
219
|
+
.search-input-module__hidden___z07GX {
|
|
220
|
+
display: none !important;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.search-input-module__action___1GqGT {
|
|
224
|
+
flex-shrink: 1;
|
|
225
|
+
margin-left: var(--spacing-s);
|
|
226
|
+
}
|
|
227
|
+
/* imported from required-indicator.module.css */
|
|
228
|
+
|
|
229
|
+
.required-indicator-module__colored____YUFm {
|
|
230
|
+
color: var(--color-warning);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.required-indicator-module__indicatorAsterisk___3lEdX {
|
|
234
|
+
font-style: normal;
|
|
235
|
+
margin-left: 2px;
|
|
236
|
+
}
|
|
237
|
+
/* imported from selectable-field-search-input.module.css */
|
|
238
|
+
|
|
239
|
+
.selectable-field-search-input-module__container___z2ltR {
|
|
240
|
+
width: 100%;
|
|
241
|
+
position: relative;
|
|
242
|
+
display: flex;
|
|
243
|
+
z-index: 3;
|
|
244
|
+
max-width: var(--constraint-15);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.selectable-field-search-input-module__search-mode-menu___Od6Le {
|
|
248
|
+
border-radius: var(--border-radius-6);
|
|
249
|
+
border: 1px solid var(--color-primary);
|
|
250
|
+
margin-top: 2px;
|
|
251
|
+
position: absolute;
|
|
252
|
+
}
|
|
253
|
+
/* imported from validated-input.module.css */
|
|
254
|
+
|
|
255
|
+
.validated-input-module__invalid___380EL {
|
|
256
|
+
/* this needs !important because react-select has a :focus style that
|
|
257
|
+
stops the border colour being set unless the element is blurred */
|
|
258
|
+
border-color: var(--color-error) !important;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.validated-input-module__container___3L2KB {
|
|
262
|
+
display: inline;
|
|
299
263
|
}
|
|
300
264
|
/* imported from button.module.css */
|
|
301
265
|
|
|
@@ -500,6 +464,57 @@
|
|
|
500
464
|
.button-module__add-button___1f093 {
|
|
501
465
|
min-height: 32px;
|
|
502
466
|
}
|
|
467
|
+
/* imported from file-input.module.css */
|
|
468
|
+
|
|
469
|
+
/** Button */
|
|
470
|
+
|
|
471
|
+
.file-input-module__button___2KypN {
|
|
472
|
+
display: inline-flex;
|
|
473
|
+
background-color: var(--color-surface);
|
|
474
|
+
border: var(--border-for-button-as-secondary);
|
|
475
|
+
box-shadow: none;
|
|
476
|
+
border-radius: var(--border-radius-4);
|
|
477
|
+
color: var(--color-solid);
|
|
478
|
+
height: var(--height-for-button-as-big);
|
|
479
|
+
font-size: var(--font-size-20);
|
|
480
|
+
font-weight: var(--font-weight-500);
|
|
481
|
+
align-items: center;
|
|
482
|
+
transition: background-color var(--transition-linear-80ms);
|
|
483
|
+
padding: 0 var(--spacing-m);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.file-input-module__button___2KypN:hover,
|
|
487
|
+
.file-input-module__button___2KypN:focus {
|
|
488
|
+
cursor: pointer;
|
|
489
|
+
background-color: var(--background-color-for-button-when-hovered);
|
|
490
|
+
box-shadow: none;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.file-input-module__button___2KypN:active {
|
|
494
|
+
box-shadow: var(--shadow-9);
|
|
495
|
+
background-color: var(--color-surface);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.file-input-module__input___3MP4D {
|
|
499
|
+
visibility: hidden;
|
|
500
|
+
width: 1px;
|
|
501
|
+
height: 1px;
|
|
502
|
+
}
|
|
503
|
+
/* imported from reference-search.module.css */
|
|
504
|
+
|
|
505
|
+
.reference-search-module__container___3-iK3 {
|
|
506
|
+
width: 100%;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.reference-search-module__container___3-iK3 > div {
|
|
510
|
+
width: 100%;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.reference-search-module__missing-label___az9AO {
|
|
514
|
+
color: var(--color-warning);
|
|
515
|
+
font-size: 0.9rem;
|
|
516
|
+
margin-left: var(--spacing-xs);
|
|
517
|
+
}
|
|
503
518
|
/* imported from centered-loading-spinner.module.css */
|
|
504
519
|
|
|
505
520
|
.centered-loading-spinner-module__loading-container___3_9-h {
|
|
@@ -527,21 +542,6 @@
|
|
|
527
542
|
.divider-module__divider-dashed___2Em8A {
|
|
528
543
|
border-style: dashed;
|
|
529
544
|
}
|
|
530
|
-
/* imported from reference-search.module.css */
|
|
531
|
-
|
|
532
|
-
.reference-search-module__container___3-iK3 {
|
|
533
|
-
width: 100%;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.reference-search-module__container___3-iK3 > div {
|
|
537
|
-
width: 100%;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.reference-search-module__missing-label___az9AO {
|
|
541
|
-
color: var(--color-warning);
|
|
542
|
-
font-size: 0.9rem;
|
|
543
|
-
margin-left: var(--spacing-xs);
|
|
544
|
-
}
|
|
545
545
|
/* imported from custom-money-input.module.css */
|
|
546
546
|
|
|
547
547
|
.custom-money-input-module__container___1fdO2 {
|
|
@@ -556,23 +556,23 @@
|
|
|
556
556
|
.set-buttons-module__gap___38Qr0 {
|
|
557
557
|
padding: 20px;
|
|
558
558
|
}
|
|
559
|
-
/* imported from platform-limits-
|
|
559
|
+
/* imported from platform-limits-customers-status.module.css */
|
|
560
560
|
|
|
561
|
-
.platform-limits-
|
|
561
|
+
.platform-limits-customers-status-module__status___3rXYM {
|
|
562
562
|
min-width: max-content;
|
|
563
563
|
}
|
|
564
|
-
/* imported from platform-limits-
|
|
564
|
+
/* imported from platform-limits-customers-combined.module.css */
|
|
565
565
|
|
|
566
|
-
.platform-limits-
|
|
566
|
+
.platform-limits-customers-combined-module__combined___OszDd {
|
|
567
567
|
margin-bottom: var(--spacing-s);
|
|
568
568
|
}
|
|
569
|
-
/* imported from platform-limits-
|
|
569
|
+
/* imported from platform-limits-customer-groups-status.module.css */
|
|
570
570
|
|
|
571
|
-
.platform-limits-
|
|
571
|
+
.platform-limits-customer-groups-status-module__status___6099G {
|
|
572
572
|
min-width: max-content;
|
|
573
573
|
}
|
|
574
|
-
/* imported from platform-limits-
|
|
574
|
+
/* imported from platform-limits-customer-groups-combined.module.css */
|
|
575
575
|
|
|
576
|
-
.platform-limits-
|
|
576
|
+
.platform-limits-customer-groups-combined-module__combined___WjRoI {
|
|
577
577
|
margin-bottom: var(--spacing-s);
|
|
578
578
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/experimental-components",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/commercetools-frontend-experimental-components.cjs.js",
|
|
6
6
|
"module": "dist/commercetools-frontend-experimental-components.esm.js",
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
"@babel/core": "^7.22.11",
|
|
14
14
|
"@babel/runtime": "^7.21.0",
|
|
15
15
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
16
|
-
"@commercetools-frontend/actions-global": "^22.
|
|
17
|
-
"@commercetools-frontend/application-components": "^22.
|
|
18
|
-
"@commercetools-frontend/application-shell": "^22.
|
|
19
|
-
"@commercetools-frontend/application-shell-connectors": "^22.
|
|
20
|
-
"@commercetools-frontend/constants": "^22.
|
|
21
|
-
"@commercetools-frontend/l10n": "^22.
|
|
22
|
-
"@commercetools-frontend/sdk": "^22.
|
|
23
|
-
"@commercetools-frontend/sentry": "^22.
|
|
24
|
-
"@commercetools-frontend/ui-kit": "^16.7.
|
|
25
|
-
"@commercetools-uikit/design-system": "^16.7.
|
|
26
|
-
"@commercetools-uikit/select-utils": "^16.7.
|
|
27
|
-
"@commercetools-uikit/utils": "^16.7.
|
|
16
|
+
"@commercetools-frontend/actions-global": "^22.8.2",
|
|
17
|
+
"@commercetools-frontend/application-components": "^22.8.2",
|
|
18
|
+
"@commercetools-frontend/application-shell": "^22.8.2",
|
|
19
|
+
"@commercetools-frontend/application-shell-connectors": "^22.8.2",
|
|
20
|
+
"@commercetools-frontend/constants": "^22.8.2",
|
|
21
|
+
"@commercetools-frontend/l10n": "^22.8.2",
|
|
22
|
+
"@commercetools-frontend/sdk": "^22.8.2",
|
|
23
|
+
"@commercetools-frontend/sentry": "^22.8.2",
|
|
24
|
+
"@commercetools-frontend/ui-kit": "^16.7.5",
|
|
25
|
+
"@commercetools-uikit/design-system": "^16.7.5",
|
|
26
|
+
"@commercetools-uikit/select-utils": "^16.7.5",
|
|
27
|
+
"@commercetools-uikit/utils": "^16.7.5",
|
|
28
28
|
"@emotion/react": "^11.11.1",
|
|
29
29
|
"classnames": "2.3.2",
|
|
30
30
|
"cleave.js": "1.5.10",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"react-router-dom": "^5.3.4",
|
|
66
66
|
"react-test-renderer": "^17.0.2",
|
|
67
67
|
"redux": "^4.2.1",
|
|
68
|
-
"typescript": "5.
|
|
68
|
+
"typescript": "5.2.2",
|
|
69
69
|
"xhr-mock": "^2.5.1",
|
|
70
|
-
"@commercetools-local/test-data": "1.2.
|
|
71
|
-
"@commercetools-local/test-utils": "1.2.
|
|
70
|
+
"@commercetools-local/test-data": "1.2.3",
|
|
71
|
+
"@commercetools-local/test-utils": "1.2.3"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@apollo/client": "3.x",
|