@commercetools-frontend/experimental-components 5.4.3 → 5.4.4

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.
@@ -72,8 +72,8 @@ var has = require('lodash/has');
72
72
  var _toArray = require('@babel/runtime-corejs3/helpers/toArray');
73
73
  var _reverseInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
74
74
  var sdk = require('@commercetools-frontend/sdk');
75
- var client = require('@apollo/client');
76
75
  var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
76
+ var client = require('@apollo/client');
77
77
  var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries');
78
78
  var _parseFloat = require('@babel/runtime-corejs3/core-js-stable/parse-float');
79
79
  var omit = require('lodash/omit');
@@ -3022,7 +3022,7 @@ const ChannelPickerInput = _ref => {
3022
3022
  const variables = React.useMemo(() => _objectSpread$1b({
3023
3023
  sortByNamePath: "name.".concat(dataLocale)
3024
3024
  }, role && {
3025
- where: "roles contains any (\"".concat(role, "\")")
3025
+ extraWhere: "roles contains any (\"".concat(role, "\")")
3026
3026
  }), [dataLocale, role]);
3027
3027
  const _useState = React.useState(),
3028
3028
  _useState2 = _slicedToArray(_useState, 2),
@@ -3730,8 +3730,9 @@ const useHandlers = onChange => {
3730
3730
  return [handleInputChange, handleChange];
3731
3731
  };
3732
3732
 
3733
+ const _excluded$1 = ["extraWhere"];
3733
3734
  function ownKeys$16(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3734
- function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$16(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$16(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3735
+ function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$16(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$16(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3735
3736
  const constructPrefixSearchPredicate = function () {
3736
3737
  let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3737
3738
  let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
@@ -3761,22 +3762,30 @@ const useLoadOptions = _ref => {
3761
3762
  const client$1 = client.useApolloClient();
3762
3763
  const loadOptions = React.useCallback(function () {
3763
3764
  let inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
3764
- const where = function () {
3765
- if (inputValue.length) {
3766
- if (isUUID(inputValue)) return "id = \"".concat(inputValue, "\"");else {
3767
- const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
3768
- _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
3769
- lowerBound = _getPrefixSearchBound2[0],
3770
- upperBound = _getPrefixSearchBound2[1];
3771
- return constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
3772
- }
3765
+ let where;
3766
+ if (inputValue.length) {
3767
+ if (isUUID(inputValue)) {
3768
+ where = "id = \"".concat(inputValue, "\"");
3769
+ } else {
3770
+ const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
3771
+ _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
3772
+ lowerBound = _getPrefixSearchBound2[0],
3773
+ upperBound = _getPrefixSearchBound2[1];
3774
+ where = constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
3773
3775
  }
3774
- }();
3776
+ }
3777
+ const _ref2 = variables !== null && variables !== void 0 ? variables : {},
3778
+ extraWhere = _ref2.extraWhere,
3779
+ restVariables = _objectWithoutProperties(_ref2, _excluded$1);
3780
+ if (typeof extraWhere === 'string') {
3781
+ var _context6;
3782
+ where = where ? _concatInstanceProperty__default["default"](_context6 = "(".concat(where, ") and ")).call(_context6, variables.extraWhere) : variables.extraWhere;
3783
+ }
3775
3784
  return client$1.query({
3776
3785
  query,
3777
3786
  variables: _objectSpread$16({
3778
3787
  where
3779
- }, variables),
3788
+ }, restVariables),
3780
3789
  context: {
3781
3790
  target: constants.MC_API_PROXY_TARGETS.COMMERCETOOLS_PLATFORM
3782
3791
  },
@@ -5419,7 +5428,7 @@ const DraggableWrapper = _ref => {
5419
5428
  children: jsxRuntime.jsxs(uiKit.Grid, {
5420
5429
  gridTemplateColumns: '1fr 20fr',
5421
5430
  gridTemplateRows: "auto 1fr auto",
5422
- gridGap: uiKit.customProperties.spacingL,
5431
+ gridGap: uiKit.customProperties.spacingM,
5423
5432
  children: [jsxRuntime.jsx(uiKit.Grid.Item, {
5424
5433
  children: jsxRuntime.jsx(DragHandle, _objectSpread$X({}, provided.dragHandleProps))
5425
5434
  }), jsxRuntime.jsx(uiKit.Grid.Item, {
@@ -7175,15 +7184,21 @@ CustomNestedInput.displayName = 'CustomNestedInput';
7175
7184
 
7176
7185
  var styles$d = {
7177
7186
  "divider": "divider-module__divider___4-vdy",
7187
+ "divider-horizontal": "divider-module__divider-horizontal___RuUcj",
7188
+ "divider-vertical": "divider-module__divider-vertical___32kJG",
7178
7189
  "divider-solid": "divider-module__divider-solid___3Fs4q divider-module__divider___4-vdy",
7179
7190
  "divider-dashed": "divider-module__divider-dashed___2Em8A divider-module__divider___4-vdy"
7180
7191
  };
7181
7192
  function Divider(_ref) {
7182
- let isDashed = _ref.isDashed;
7193
+ let isDashed = _ref.isDashed,
7194
+ _ref$orientation = _ref.orientation,
7195
+ orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation;
7183
7196
  return jsxRuntime.jsx("hr", {
7184
7197
  className: classnames__default["default"]({
7185
7198
  [styles$d['divider-solid']]: !isDashed,
7186
- [styles$d['divider-dashed']]: isDashed
7199
+ [styles$d['divider-dashed']]: isDashed,
7200
+ [styles$d['divider-horizontal']]: orientation === 'horizontal',
7201
+ [styles$d['divider-vertical']]: orientation === 'vertical'
7187
7202
  })
7188
7203
  });
7189
7204
  }
@@ -72,8 +72,8 @@ var has = require('lodash/has');
72
72
  var _toArray = require('@babel/runtime-corejs3/helpers/toArray');
73
73
  var _reverseInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/reverse');
74
74
  var sdk = require('@commercetools-frontend/sdk');
75
- var client = require('@apollo/client');
76
75
  var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
76
+ var client = require('@apollo/client');
77
77
  var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entries');
78
78
  var _parseFloat = require('@babel/runtime-corejs3/core-js-stable/parse-float');
79
79
  var omit = require('lodash/omit');
@@ -3021,7 +3021,7 @@ const ChannelPickerInput = _ref => {
3021
3021
  const variables = React.useMemo(() => _objectSpread$1b({
3022
3022
  sortByNamePath: "name.".concat(dataLocale)
3023
3023
  }, role && {
3024
- where: "roles contains any (\"".concat(role, "\")")
3024
+ extraWhere: "roles contains any (\"".concat(role, "\")")
3025
3025
  }), [dataLocale, role]);
3026
3026
  const _useState = React.useState(),
3027
3027
  _useState2 = _slicedToArray(_useState, 2),
@@ -3729,8 +3729,9 @@ const useHandlers = onChange => {
3729
3729
  return [handleInputChange, handleChange];
3730
3730
  };
3731
3731
 
3732
+ const _excluded$1 = ["extraWhere"];
3732
3733
  function ownKeys$16(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3733
- function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$16(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$16(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3734
+ function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$16(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$16(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3734
3735
  const constructPrefixSearchPredicate = function () {
3735
3736
  let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3736
3737
  let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
@@ -3760,22 +3761,30 @@ const useLoadOptions = _ref => {
3760
3761
  const client$1 = client.useApolloClient();
3761
3762
  const loadOptions = React.useCallback(function () {
3762
3763
  let inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
3763
- const where = function () {
3764
- if (inputValue.length) {
3765
- if (isUUID(inputValue)) return "id = \"".concat(inputValue, "\"");else {
3766
- const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
3767
- _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
3768
- lowerBound = _getPrefixSearchBound2[0],
3769
- upperBound = _getPrefixSearchBound2[1];
3770
- return constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
3771
- }
3764
+ let where;
3765
+ if (inputValue.length) {
3766
+ if (isUUID(inputValue)) {
3767
+ where = "id = \"".concat(inputValue, "\"");
3768
+ } else {
3769
+ const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
3770
+ _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
3771
+ lowerBound = _getPrefixSearchBound2[0],
3772
+ upperBound = _getPrefixSearchBound2[1];
3773
+ where = constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
3772
3774
  }
3773
- }();
3775
+ }
3776
+ const _ref2 = variables !== null && variables !== void 0 ? variables : {},
3777
+ extraWhere = _ref2.extraWhere,
3778
+ restVariables = _objectWithoutProperties(_ref2, _excluded$1);
3779
+ if (typeof extraWhere === 'string') {
3780
+ var _context6;
3781
+ where = where ? _concatInstanceProperty__default["default"](_context6 = "(".concat(where, ") and ")).call(_context6, variables.extraWhere) : variables.extraWhere;
3782
+ }
3774
3783
  return client$1.query({
3775
3784
  query,
3776
3785
  variables: _objectSpread$16({
3777
3786
  where
3778
- }, variables),
3787
+ }, restVariables),
3779
3788
  context: {
3780
3789
  target: constants.MC_API_PROXY_TARGETS.COMMERCETOOLS_PLATFORM
3781
3790
  },
@@ -5418,7 +5427,7 @@ const DraggableWrapper = _ref => {
5418
5427
  children: jsxRuntime.jsxs(uiKit.Grid, {
5419
5428
  gridTemplateColumns: '1fr 20fr',
5420
5429
  gridTemplateRows: "auto 1fr auto",
5421
- gridGap: uiKit.customProperties.spacingL,
5430
+ gridGap: uiKit.customProperties.spacingM,
5422
5431
  children: [jsxRuntime.jsx(uiKit.Grid.Item, {
5423
5432
  children: jsxRuntime.jsx(DragHandle, _objectSpread$X({}, provided.dragHandleProps))
5424
5433
  }), jsxRuntime.jsx(uiKit.Grid.Item, {
@@ -7174,15 +7183,21 @@ CustomNestedInput.displayName = 'CustomNestedInput';
7174
7183
 
7175
7184
  var styles$d = {
7176
7185
  "divider": "divider-module__divider___4-vdy",
7186
+ "divider-horizontal": "divider-module__divider-horizontal___RuUcj",
7187
+ "divider-vertical": "divider-module__divider-vertical___32kJG",
7177
7188
  "divider-solid": "divider-module__divider-solid___3Fs4q divider-module__divider___4-vdy",
7178
7189
  "divider-dashed": "divider-module__divider-dashed___2Em8A divider-module__divider___4-vdy"
7179
7190
  };
7180
7191
  function Divider(_ref) {
7181
- let isDashed = _ref.isDashed;
7192
+ let isDashed = _ref.isDashed,
7193
+ _ref$orientation = _ref.orientation,
7194
+ orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation;
7182
7195
  return jsxRuntime.jsx("hr", {
7183
7196
  className: classnames__default["default"]({
7184
7197
  [styles$d['divider-solid']]: !isDashed,
7185
- [styles$d['divider-dashed']]: isDashed
7198
+ [styles$d['divider-dashed']]: isDashed,
7199
+ [styles$d['divider-horizontal']]: orientation === 'horizontal',
7200
+ [styles$d['divider-vertical']]: orientation === 'vertical'
7186
7201
  })
7187
7202
  });
7188
7203
  }
@@ -68,8 +68,8 @@ import has from 'lodash/has';
68
68
  import _toArray from '@babel/runtime-corejs3/helpers/esm/toArray';
69
69
  import _reverseInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reverse';
70
70
  import { useAsyncDispatch, actions } from '@commercetools-frontend/sdk';
71
- import { useApolloClient as useApolloClient$1, useQuery as useQuery$2 } from '@apollo/client';
72
71
  import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
72
+ import { useApolloClient as useApolloClient$1, useQuery as useQuery$2 } from '@apollo/client';
73
73
  import _Object$entries from '@babel/runtime-corejs3/core-js-stable/object/entries';
74
74
  import _parseFloat from '@babel/runtime-corejs3/core-js-stable/parse-float';
75
75
  import omit from 'lodash/omit';
@@ -2939,7 +2939,7 @@ const ChannelPickerInput = _ref => {
2939
2939
  const variables = useMemo(() => _objectSpread$1b({
2940
2940
  sortByNamePath: "name.".concat(dataLocale)
2941
2941
  }, role && {
2942
- where: "roles contains any (\"".concat(role, "\")")
2942
+ extraWhere: "roles contains any (\"".concat(role, "\")")
2943
2943
  }), [dataLocale, role]);
2944
2944
  const _useState = useState(),
2945
2945
  _useState2 = _slicedToArray(_useState, 2),
@@ -3647,8 +3647,9 @@ const useHandlers = onChange => {
3647
3647
  return [handleInputChange, handleChange];
3648
3648
  };
3649
3649
 
3650
+ const _excluded$1 = ["extraWhere"];
3650
3651
  function ownKeys$16(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3651
- function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context6 = ownKeys$16(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context7 = ownKeys$16(Object(t))).call(_context7, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
3652
+ function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context7 = ownKeys$16(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$16(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
3652
3653
  const constructPrefixSearchPredicate = function () {
3653
3654
  let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3654
3655
  let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
@@ -3678,22 +3679,30 @@ const useLoadOptions = _ref => {
3678
3679
  const client = useApolloClient$1();
3679
3680
  const loadOptions = useCallback(function () {
3680
3681
  let inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
3681
- const where = function () {
3682
- if (inputValue.length) {
3683
- if (isUUID(inputValue)) return "id = \"".concat(inputValue, "\"");else {
3684
- const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
3685
- _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
3686
- lowerBound = _getPrefixSearchBound2[0],
3687
- upperBound = _getPrefixSearchBound2[1];
3688
- return constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
3689
- }
3682
+ let where;
3683
+ if (inputValue.length) {
3684
+ if (isUUID(inputValue)) {
3685
+ where = "id = \"".concat(inputValue, "\"");
3686
+ } else {
3687
+ const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
3688
+ _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
3689
+ lowerBound = _getPrefixSearchBound2[0],
3690
+ upperBound = _getPrefixSearchBound2[1];
3691
+ where = constructPrefixSearchPredicate(prefixSearchFields, lowerBound, upperBound);
3690
3692
  }
3691
- }();
3693
+ }
3694
+ const _ref2 = variables !== null && variables !== void 0 ? variables : {},
3695
+ extraWhere = _ref2.extraWhere,
3696
+ restVariables = _objectWithoutProperties(_ref2, _excluded$1);
3697
+ if (typeof extraWhere === 'string') {
3698
+ var _context6;
3699
+ where = where ? _concatInstanceProperty(_context6 = "(".concat(where, ") and ")).call(_context6, variables.extraWhere) : variables.extraWhere;
3700
+ }
3692
3701
  return client.query({
3693
3702
  query,
3694
3703
  variables: _objectSpread$16({
3695
3704
  where
3696
- }, variables),
3705
+ }, restVariables),
3697
3706
  context: {
3698
3707
  target: MC_API_PROXY_TARGETS.COMMERCETOOLS_PLATFORM
3699
3708
  },
@@ -5336,7 +5345,7 @@ const DraggableWrapper = _ref => {
5336
5345
  children: jsxs(Grid, {
5337
5346
  gridTemplateColumns: '1fr 20fr',
5338
5347
  gridTemplateRows: "auto 1fr auto",
5339
- gridGap: customProperties.spacingL,
5348
+ gridGap: customProperties.spacingM,
5340
5349
  children: [jsx(Grid.Item, {
5341
5350
  children: jsx(DragHandle, _objectSpread$X({}, provided.dragHandleProps))
5342
5351
  }), jsx(Grid.Item, {
@@ -7092,15 +7101,21 @@ CustomNestedInput.displayName = 'CustomNestedInput';
7092
7101
 
7093
7102
  var styles$d = {
7094
7103
  "divider": "divider-module__divider___4-vdy",
7104
+ "divider-horizontal": "divider-module__divider-horizontal___RuUcj",
7105
+ "divider-vertical": "divider-module__divider-vertical___32kJG",
7095
7106
  "divider-solid": "divider-module__divider-solid___3Fs4q divider-module__divider___4-vdy",
7096
7107
  "divider-dashed": "divider-module__divider-dashed___2Em8A divider-module__divider___4-vdy"
7097
7108
  };
7098
7109
  function Divider(_ref) {
7099
- let isDashed = _ref.isDashed;
7110
+ let isDashed = _ref.isDashed,
7111
+ _ref$orientation = _ref.orientation,
7112
+ orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation;
7100
7113
  return jsx("hr", {
7101
7114
  className: classnames({
7102
7115
  [styles$d['divider-solid']]: !isDashed,
7103
- [styles$d['divider-dashed']]: isDashed
7116
+ [styles$d['divider-dashed']]: isDashed,
7117
+ [styles$d['divider-horizontal']]: orientation === 'horizontal',
7118
+ [styles$d['divider-vertical']]: orientation === 'vertical'
7104
7119
  })
7105
7120
  });
7106
7121
  }
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,6 +134,169 @@
261
134
  border-bottom-left-radius: 0;
262
135
  margin-left: 0;
263
136
  }
137
+ /* imported from validated-input.module.css */
138
+
139
+ .validated-input-module__invalid___380EL {
140
+ /* this needs !important because react-select has a :focus style that
141
+ stops the border colour being set unless the element is blurred */
142
+ border-color: var(--color-error) !important;
143
+ }
144
+
145
+ .validated-input-module__container___3L2KB {
146
+ display: inline;
147
+ }
148
+ /* imported from search-input.module.css */
149
+
150
+ .search-input-module__block___1uM-y {
151
+ display: inline-flex;
152
+ flex-direction: row;
153
+ align-items: flex-start;
154
+ width: 100%;
155
+ max-width: 800px;
156
+ }
157
+
158
+ .search-input-module__container___9u6if {
159
+ position: relative;
160
+ flex-grow: 1;
161
+ }
162
+
163
+ .search-input-module__input-container___mJnyZ {
164
+ border-color: var(--border-color-for-input);
165
+ height: var(--height-for-input);
166
+ }
167
+
168
+ .search-input-module__input-container___mJnyZ > input::placeholder {
169
+ font-weight: var(--font-weight-400);
170
+ font-size: var(--font-size-for-input);
171
+ font-family: var(--font-family);
172
+ color: var(--color-neutral-60);
173
+ }
174
+
175
+ .search-input-module__input-container___mJnyZ > input {
176
+ padding-right: calc(var(--spacing-xl) * 2);
177
+ }
178
+
179
+ .search-input-module__input-container-disabled___23jR8 > input {
180
+ border-color: var(--color-neutral);
181
+ }
182
+
183
+ .search-input-module__input-container-hoverable___1xjqn > input:hover {
184
+ border: var(--border-width-for-input) solid var(--border-color-for-input);
185
+ background-color: var(--background-color-for-input-when-hovered);
186
+ }
187
+ .search-input-module__input-container-hoverable___1xjqn > input:focus {
188
+ box-shadow: var(
189
+ --shadow-for-input-when-focused,
190
+ inset 0 0 0 1px var(--color-primary)
191
+ );
192
+ border-color: var(--border-color-for-input-when-focused);
193
+ }
194
+
195
+ .search-input-module__input-container-granular___33Pm- {
196
+ border-color: var(--color-primary);
197
+ position: relative;
198
+ right: 3px;
199
+ }
200
+
201
+ .search-input-module__search-icon-container___cbHQY {
202
+ background-color: transparent;
203
+ border-color: transparent;
204
+ position: absolute;
205
+ right: 9px;
206
+ top: 8px;
207
+ }
208
+
209
+ .search-input-module__clear-icon-container___3RQvu {
210
+ background-color: transparent;
211
+ border-color: transparent;
212
+ position: absolute;
213
+ right: 36px;
214
+ top: 11px;
215
+ z-index: 2;
216
+ }
217
+
218
+ .search-input-module__clear-icon-container-granular___1mbin {
219
+ right: 41px;
220
+ }
221
+
222
+ .search-input-module__search-icon-container-hoverable___1kTwJ {
223
+ cursor: pointer;
224
+ }
225
+
226
+ .search-input-module__search-icon-container-granular___3fAsR {
227
+ right: 15px;
228
+ }
229
+
230
+ .search-input-module__hidden___z07GX {
231
+ display: none !important;
232
+ }
233
+
234
+ .search-input-module__action___1GqGT {
235
+ flex-shrink: 1;
236
+ margin-left: var(--spacing-s);
237
+ }
238
+ /* imported from required-indicator.module.css */
239
+
240
+ .required-indicator-module__colored____YUFm {
241
+ color: var(--color-warning);
242
+ }
243
+
244
+ .required-indicator-module__indicatorAsterisk___3lEdX {
245
+ font-style: normal;
246
+ margin-left: 2px;
247
+ }
248
+ /* imported from selectable-field-search-input.module.css */
249
+
250
+ .selectable-field-search-input-module__container___z2ltR {
251
+ width: 100%;
252
+ position: relative;
253
+ display: flex;
254
+ z-index: 3;
255
+ max-width: var(--constraint-15);
256
+ }
257
+
258
+ .selectable-field-search-input-module__search-mode-menu___Od6Le {
259
+ border-radius: var(--border-radius-6);
260
+ border: 1px solid var(--color-primary);
261
+ margin-top: 2px;
262
+ position: absolute;
263
+ }
264
+ /* imported from file-input.module.css */
265
+
266
+ /** Button */
267
+
268
+ .file-input-module__button___2KypN {
269
+ display: inline-flex;
270
+ background-color: var(--color-surface);
271
+ border: var(--border-for-button-as-secondary);
272
+ box-shadow: none;
273
+ border-radius: var(--border-radius-4);
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);
281
+ }
282
+
283
+ .file-input-module__button___2KypN:hover,
284
+ .file-input-module__button___2KypN:focus {
285
+ cursor: pointer;
286
+ background-color: var(--background-color-for-button-when-hovered);
287
+ box-shadow: none;
288
+ }
289
+
290
+ .file-input-module__button___2KypN:active {
291
+ box-shadow: var(--shadow-9);
292
+ background-color: var(--color-surface);
293
+ }
294
+
295
+ .file-input-module__input___3MP4D {
296
+ visibility: hidden;
297
+ width: 1px;
298
+ height: 1px;
299
+ }
264
300
  /* imported from button.module.css */
265
301
 
266
302
  /* Generic button */
@@ -464,57 +500,6 @@
464
500
  .button-module__add-button___1f093 {
465
501
  min-height: 32px;
466
502
  }
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
- }
518
503
  /* imported from centered-loading-spinner.module.css */
519
504
 
520
505
  .centered-loading-spinner-module__loading-container___3_9-h {
@@ -528,11 +513,20 @@
528
513
 
529
514
  .divider-module__divider___4-vdy {
530
515
  box-sizing: border-box;
531
- width: 100%;
532
516
  margin: 0;
533
517
  border: 0;
518
+ border-color: var(--color-neutral-90);
519
+ }
520
+
521
+ .divider-module__divider-horizontal___RuUcj {
522
+ width: 100%;
534
523
  border-top-width: 1px;
535
- border-top-color: var(--color-neutral-90);
524
+ }
525
+
526
+ .divider-module__divider-vertical___32kJG {
527
+ width: 1px;
528
+ height: 2vmax;
529
+ border-left-width: 1px;
536
530
  }
537
531
 
538
532
  .divider-module__divider-solid___3Fs4q {
@@ -542,6 +536,21 @@
542
536
  .divider-module__divider-dashed___2Em8A {
543
537
  border-style: dashed;
544
538
  }
539
+ /* imported from reference-search.module.css */
540
+
541
+ .reference-search-module__container___3-iK3 {
542
+ width: 100%;
543
+ }
544
+
545
+ .reference-search-module__container___3-iK3 > div {
546
+ width: 100%;
547
+ }
548
+
549
+ .reference-search-module__missing-label___az9AO {
550
+ color: var(--color-warning);
551
+ font-size: 0.9rem;
552
+ margin-left: var(--spacing-xs);
553
+ }
545
554
  /* imported from custom-money-input.module.css */
546
555
 
547
556
  .custom-money-input-module__container___1fdO2 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/experimental-components",
3
- "version": "5.4.3",
3
+ "version": "5.4.4",
4
4
  "description": "",
5
5
  "main": "dist/commercetools-frontend-experimental-components.cjs.js",
6
6
  "module": "dist/commercetools-frontend-experimental-components.esm.js",