@wix/entity-advanced-permissions 1.1096.0 → 1.1098.0
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/statics/entity-advanced-permissions.umd.js +758 -600
- package/dist/statics/entity-advanced-permissions.umd.js.map +1 -1
- package/dist/statics/entity-advanced-permissions.umd.min.js +7 -7
- package/dist/statics/entity-advanced-permissions.umd.min.js.map +1 -1
- package/dist/statics/manifest.json +2 -2
- package/dist/statics/manifest.min.json +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -1073,75 +1073,6 @@ if ($defineProperty) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
1075
|
|
|
1076
|
-
/***/ }),
|
|
1077
|
-
|
|
1078
|
-
/***/ 841:
|
|
1079
|
-
/*!*************************************************!*\
|
|
1080
|
-
!*** ../../../node_modules/classnames/index.js ***!
|
|
1081
|
-
\*************************************************/
|
|
1082
|
-
/***/ ((module, exports) => {
|
|
1083
|
-
|
|
1084
|
-
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
1085
|
-
Copyright (c) 2018 Jed Watson.
|
|
1086
|
-
Licensed under the MIT License (MIT), see
|
|
1087
|
-
http://jedwatson.github.io/classnames
|
|
1088
|
-
*/
|
|
1089
|
-
/* global define */
|
|
1090
|
-
|
|
1091
|
-
(function () {
|
|
1092
|
-
'use strict';
|
|
1093
|
-
|
|
1094
|
-
var hasOwn = {}.hasOwnProperty;
|
|
1095
|
-
var nativeCodeString = '[native code]';
|
|
1096
|
-
|
|
1097
|
-
function classNames() {
|
|
1098
|
-
var classes = [];
|
|
1099
|
-
|
|
1100
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
1101
|
-
var arg = arguments[i];
|
|
1102
|
-
if (!arg) continue;
|
|
1103
|
-
|
|
1104
|
-
var argType = typeof arg;
|
|
1105
|
-
|
|
1106
|
-
if (argType === 'string' || argType === 'number') {
|
|
1107
|
-
classes.push(arg);
|
|
1108
|
-
} else if (Array.isArray(arg)) {
|
|
1109
|
-
if (arg.length) {
|
|
1110
|
-
var inner = classNames.apply(null, arg);
|
|
1111
|
-
if (inner) {
|
|
1112
|
-
classes.push(inner);
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
} else if (argType === 'object') {
|
|
1116
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
1117
|
-
classes.push(arg.toString());
|
|
1118
|
-
continue;
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
for (var key in arg) {
|
|
1122
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
1123
|
-
classes.push(key);
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
return classes.join(' ');
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
if ( true && module.exports) {
|
|
1133
|
-
classNames.default = classNames;
|
|
1134
|
-
module.exports = classNames;
|
|
1135
|
-
} else if (true) {
|
|
1136
|
-
// register as 'classnames', consistent with npm package name
|
|
1137
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
|
1138
|
-
return classNames;
|
|
1139
|
-
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
|
1140
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1141
|
-
} else {}
|
|
1142
|
-
}());
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
1076
|
/***/ }),
|
|
1146
1077
|
|
|
1147
1078
|
/***/ 1126:
|
|
@@ -33257,6 +33188,92 @@ function _extends() {
|
|
|
33257
33188
|
}
|
|
33258
33189
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
33259
33190
|
|
|
33191
|
+
/***/ }),
|
|
33192
|
+
|
|
33193
|
+
/***/ 5685:
|
|
33194
|
+
/*!*************************************************!*\
|
|
33195
|
+
!*** ../../../node_modules/classnames/index.js ***!
|
|
33196
|
+
\*************************************************/
|
|
33197
|
+
/***/ ((module, exports) => {
|
|
33198
|
+
|
|
33199
|
+
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
33200
|
+
Copyright (c) 2018 Jed Watson.
|
|
33201
|
+
Licensed under the MIT License (MIT), see
|
|
33202
|
+
http://jedwatson.github.io/classnames
|
|
33203
|
+
*/
|
|
33204
|
+
/* global define */
|
|
33205
|
+
|
|
33206
|
+
(function () {
|
|
33207
|
+
'use strict';
|
|
33208
|
+
|
|
33209
|
+
var hasOwn = {}.hasOwnProperty;
|
|
33210
|
+
|
|
33211
|
+
function classNames () {
|
|
33212
|
+
var classes = '';
|
|
33213
|
+
|
|
33214
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
33215
|
+
var arg = arguments[i];
|
|
33216
|
+
if (arg) {
|
|
33217
|
+
classes = appendClass(classes, parseValue(arg));
|
|
33218
|
+
}
|
|
33219
|
+
}
|
|
33220
|
+
|
|
33221
|
+
return classes;
|
|
33222
|
+
}
|
|
33223
|
+
|
|
33224
|
+
function parseValue (arg) {
|
|
33225
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
33226
|
+
return arg;
|
|
33227
|
+
}
|
|
33228
|
+
|
|
33229
|
+
if (typeof arg !== 'object') {
|
|
33230
|
+
return '';
|
|
33231
|
+
}
|
|
33232
|
+
|
|
33233
|
+
if (Array.isArray(arg)) {
|
|
33234
|
+
return classNames.apply(null, arg);
|
|
33235
|
+
}
|
|
33236
|
+
|
|
33237
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
33238
|
+
return arg.toString();
|
|
33239
|
+
}
|
|
33240
|
+
|
|
33241
|
+
var classes = '';
|
|
33242
|
+
|
|
33243
|
+
for (var key in arg) {
|
|
33244
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
33245
|
+
classes = appendClass(classes, key);
|
|
33246
|
+
}
|
|
33247
|
+
}
|
|
33248
|
+
|
|
33249
|
+
return classes;
|
|
33250
|
+
}
|
|
33251
|
+
|
|
33252
|
+
function appendClass (value, newClass) {
|
|
33253
|
+
if (!newClass) {
|
|
33254
|
+
return value;
|
|
33255
|
+
}
|
|
33256
|
+
|
|
33257
|
+
if (value) {
|
|
33258
|
+
return value + ' ' + newClass;
|
|
33259
|
+
}
|
|
33260
|
+
|
|
33261
|
+
return value + newClass;
|
|
33262
|
+
}
|
|
33263
|
+
|
|
33264
|
+
if ( true && module.exports) {
|
|
33265
|
+
classNames.default = classNames;
|
|
33266
|
+
module.exports = classNames;
|
|
33267
|
+
} else if (true) {
|
|
33268
|
+
// register as 'classnames', consistent with npm package name
|
|
33269
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
|
33270
|
+
return classNames;
|
|
33271
|
+
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
|
33272
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
33273
|
+
} else {}
|
|
33274
|
+
}());
|
|
33275
|
+
|
|
33276
|
+
|
|
33260
33277
|
/***/ })
|
|
33261
33278
|
|
|
33262
33279
|
/******/ });
|
|
@@ -33476,7 +33493,7 @@ var __webpack_exports__ = {};
|
|
|
33476
33493
|
(() => {
|
|
33477
33494
|
"use strict";
|
|
33478
33495
|
/*!********************************!*\
|
|
33479
|
-
!*** ./index.ts +
|
|
33496
|
+
!*** ./index.ts + 449 modules ***!
|
|
33480
33497
|
\********************************/
|
|
33481
33498
|
// ESM COMPAT FLAG
|
|
33482
33499
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -33950,7 +33967,7 @@ var ButtonSize;
|
|
|
33950
33967
|
})(ButtonSize || (ButtonSize = {}));
|
|
33951
33968
|
//# sourceMappingURL=types.js.map
|
|
33952
33969
|
// EXTERNAL MODULE: ../../../node_modules/classnames/index.js
|
|
33953
|
-
var classnames = __webpack_require__(
|
|
33970
|
+
var classnames = __webpack_require__(5685);
|
|
33954
33971
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
33955
33972
|
// EXTERNAL MODULE: ../../../node_modules/wix-ui-tpa/dist/esm/components/Button/Button.deprecated.st.css
|
|
33956
33973
|
var Button_deprecated_st = __webpack_require__(8308);
|
|
@@ -34852,7 +34869,7 @@ function injectCSS(id, css, depth, runtimeId) {
|
|
|
34852
34869
|
|
|
34853
34870
|
|
|
34854
34871
|
|
|
34855
|
-
var _namespace_ = "
|
|
34872
|
+
var _namespace_ = "wds_1_98_0_newColorsBranding";
|
|
34856
34873
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
34857
34874
|
|
|
34858
34875
|
var newColorsBranding_st_css_cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -34860,7 +34877,7 @@ var newColorsBranding_st_css_style = (/* unused pure expression or super */ null
|
|
|
34860
34877
|
var newColorsBranding_st_css_st = _style_;
|
|
34861
34878
|
|
|
34862
34879
|
var newColorsBranding_st_css_namespace = (/* unused pure expression or super */ null && (_namespace_));
|
|
34863
|
-
var newColorsBranding_st_css_classes = {"root":"
|
|
34880
|
+
var newColorsBranding_st_css_classes = {"root":"wds_1_98_0_newColorsBranding__root"};
|
|
34864
34881
|
var newColorsBranding_st_css_keyframes = {};
|
|
34865
34882
|
var newColorsBranding_st_css_layers = {};
|
|
34866
34883
|
var containers = {};
|
|
@@ -34878,7 +34895,7 @@ var newColorsBranding_st_css_vars = {};
|
|
|
34878
34895
|
|
|
34879
34896
|
|
|
34880
34897
|
|
|
34881
|
-
var madefor_st_css_namespace_ = "
|
|
34898
|
+
var madefor_st_css_namespace_ = "wds_1_98_0_madefor";
|
|
34882
34899
|
var madefor_st_css_style_ = classesRuntime.bind(null, madefor_st_css_namespace_);
|
|
34883
34900
|
|
|
34884
34901
|
var madefor_st_css_cssStates = statesRuntime.bind(null, madefor_st_css_namespace_);
|
|
@@ -34886,7 +34903,7 @@ var madefor_st_css_style = (/* unused pure expression or super */ null && (madef
|
|
|
34886
34903
|
var madefor_st_css_st = (/* unused pure expression or super */ null && (madefor_st_css_style_));
|
|
34887
34904
|
|
|
34888
34905
|
var madefor_st_css_namespace = (/* unused pure expression or super */ null && (madefor_st_css_namespace_));
|
|
34889
|
-
var madefor_st_css_classes = {"root":"
|
|
34906
|
+
var madefor_st_css_classes = {"root":"wds_1_98_0_madefor__root","madefor":"wds_1_98_0_madefor__madefor"};
|
|
34890
34907
|
var madefor_st_css_keyframes = {};
|
|
34891
34908
|
var madefor_st_css_layers = {};
|
|
34892
34909
|
var madefor_st_css_containers = {};
|
|
@@ -34909,12 +34926,15 @@ const WixDesignSystemContext = external_React_default().createContext({
|
|
|
34909
34926
|
|
|
34910
34927
|
|
|
34911
34928
|
|
|
34912
|
-
|
|
34913
|
-
const WixDesignSystemProvider = (_a) => {
|
|
34914
|
-
var { dataHook, className, as = 'span', children, theme, features = {} } = _a, rest = __rest(_a, ["dataHook", "className", "as", "children", "theme", "features"]);
|
|
34929
|
+
const WixDesignSystemProvider = ({ dataHook, className, as = 'span', children, theme, features = {}, ...rest }) => {
|
|
34915
34930
|
const { newColorsBranding } = features;
|
|
34916
34931
|
const newBrandingClass = newColorsBranding && newColorsBranding_st_css_classes.root;
|
|
34917
|
-
return (external_React_default().createElement(WixDesignSystemContext.Provider, { value: { newBrandingClass, newColorsBranding } }, external_React_default().createElement(as,
|
|
34932
|
+
return (external_React_default().createElement(WixDesignSystemContext.Provider, { value: { newBrandingClass, newColorsBranding } }, external_React_default().createElement(as, {
|
|
34933
|
+
...rest,
|
|
34934
|
+
'data-hook': dataHook,
|
|
34935
|
+
'data-newcolorsbranding': newColorsBranding,
|
|
34936
|
+
className: newColorsBranding_st_css_st(className, newBrandingClass, madefor_st_css_classes.madefor, theme?.className),
|
|
34937
|
+
}, children)));
|
|
34918
34938
|
};
|
|
34919
34939
|
/* harmony default export */ const WixDesignSystemProvider_WixDesignSystemProvider = (WixDesignSystemProvider);
|
|
34920
34940
|
//# sourceMappingURL=WixDesignSystemProvider.js.map
|
|
@@ -34931,7 +34951,7 @@ var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty);
|
|
|
34931
34951
|
|
|
34932
34952
|
|
|
34933
34953
|
|
|
34934
|
-
var typography_st_css_namespace_ = "
|
|
34954
|
+
var typography_st_css_namespace_ = "wds_1_98_0_StylableTypography";
|
|
34935
34955
|
var typography_st_css_style_ = classesRuntime.bind(null, typography_st_css_namespace_);
|
|
34936
34956
|
|
|
34937
34957
|
var typography_st_css_cssStates = statesRuntime.bind(null, typography_st_css_namespace_);
|
|
@@ -34939,7 +34959,7 @@ var typography_st_css_style = (/* unused pure expression or super */ null && (ty
|
|
|
34939
34959
|
var typography_st_css_st = (/* unused pure expression or super */ null && (typography_st_css_style_));
|
|
34940
34960
|
|
|
34941
34961
|
var typography_st_css_namespace = (/* unused pure expression or super */ null && (typography_st_css_namespace_));
|
|
34942
|
-
var typography_st_css_classes = {"root":"
|
|
34962
|
+
var typography_st_css_classes = {"root":"wds_1_98_0_StylableTypography__root","text-extra-tiny-thin":"wds_1_98_0_StylableTypography__text-extra-tiny-thin","text-extra-tiny-normal":"wds_1_98_0_StylableTypography__text-extra-tiny-normal","text-extra-tiny-bold":"wds_1_98_0_StylableTypography__text-extra-tiny-bold","text-tiny-thin":"wds_1_98_0_StylableTypography__text-tiny-thin","text-tiny-normal":"wds_1_98_0_StylableTypography__text-tiny-normal","text-tiny-bold":"wds_1_98_0_StylableTypography__text-tiny-bold","text-small-thin":"wds_1_98_0_StylableTypography__text-small-thin","text-small-normal":"wds_1_98_0_StylableTypography__text-small-normal","text-small-bold":"wds_1_98_0_StylableTypography__text-small-bold","text-medium-thin":"wds_1_98_0_StylableTypography__text-medium-thin","text-medium-normal":"wds_1_98_0_StylableTypography__text-medium-normal","text-medium-bold":"wds_1_98_0_StylableTypography__text-medium-bold","heading-h1":"wds_1_98_0_StylableTypography__heading-h1","heading-h2":"wds_1_98_0_StylableTypography__heading-h2","heading-h3":"wds_1_98_0_StylableTypography__heading-h3","heading-h4":"wds_1_98_0_StylableTypography__heading-h4","heading-h5":"wds_1_98_0_StylableTypography__heading-h5","heading-h6":"wds_1_98_0_StylableTypography__heading-h6","heading-xl":"wds_1_98_0_StylableTypography__heading-xl","heading-l":"wds_1_98_0_StylableTypography__heading-l","heading-m":"wds_1_98_0_StylableTypography__heading-m","heading-s":"wds_1_98_0_StylableTypography__heading-s","heading-t":"wds_1_98_0_StylableTypography__heading-t","heading-xt":"wds_1_98_0_StylableTypography__heading-xt","caption-1":"wds_1_98_0_StylableTypography__caption-1"};
|
|
34943
34963
|
var typography_st_css_keyframes = {};
|
|
34944
34964
|
var typography_st_css_layers = {};
|
|
34945
34965
|
var typography_st_css_containers = {};
|
|
@@ -34957,7 +34977,7 @@ var typography_st_css_vars = {"wds-font-family-default":"--wds-font-family-defau
|
|
|
34957
34977
|
|
|
34958
34978
|
|
|
34959
34979
|
|
|
34960
|
-
var colors_st_css_namespace_ = "
|
|
34980
|
+
var colors_st_css_namespace_ = "wds_1_98_0_colors";
|
|
34961
34981
|
var colors_st_css_style_ = classesRuntime.bind(null, colors_st_css_namespace_);
|
|
34962
34982
|
|
|
34963
34983
|
var colors_st_css_cssStates = statesRuntime.bind(null, colors_st_css_namespace_);
|
|
@@ -34965,7 +34985,7 @@ var colors_st_css_style = (/* unused pure expression or super */ null && (colors
|
|
|
34965
34985
|
var colors_st_css_st = (/* unused pure expression or super */ null && (colors_st_css_style_));
|
|
34966
34986
|
|
|
34967
34987
|
var colors_st_css_namespace = (/* unused pure expression or super */ null && (colors_st_css_namespace_));
|
|
34968
|
-
var colors_st_css_classes = {"root":"
|
|
34988
|
+
var colors_st_css_classes = {"root":"wds_1_98_0_colors__root"};
|
|
34969
34989
|
var colors_st_css_keyframes = {};
|
|
34970
34990
|
var colors_st_css_layers = {};
|
|
34971
34991
|
var colors_st_css_containers = {};
|
|
@@ -34985,7 +35005,7 @@ var colors_st_css_vars = {"wsr-color-D10":"--wsr-color-D10","wsr-color-D20":"--w
|
|
|
34985
35005
|
|
|
34986
35006
|
|
|
34987
35007
|
|
|
34988
|
-
var Text_st_css_namespace_ = "
|
|
35008
|
+
var Text_st_css_namespace_ = "wds_1_98_0_Text";
|
|
34989
35009
|
var Text_st_css_style_ = classesRuntime.bind(null, Text_st_css_namespace_);
|
|
34990
35010
|
|
|
34991
35011
|
var Text_st_css_cssStates = statesRuntime.bind(null, Text_st_css_namespace_);
|
|
@@ -34993,7 +35013,7 @@ var Text_st_css_style = (/* unused pure expression or super */ null && (Text_st_
|
|
|
34993
35013
|
var Text_st_css_st = Text_st_css_style_;
|
|
34994
35014
|
|
|
34995
35015
|
var Text_st_css_namespace = (/* unused pure expression or super */ null && (Text_st_css_namespace_));
|
|
34996
|
-
var Text_st_css_classes = {"root":"
|
|
35016
|
+
var Text_st_css_classes = {"root":"wds_1_98_0_Text__root","text-tiny-thin":"wds_1_98_0_StylableTypography__text-tiny-thin","text-tiny-normal":"wds_1_98_0_StylableTypography__text-tiny-normal","text-tiny-bold":"wds_1_98_0_StylableTypography__text-tiny-bold","text-small-thin":"wds_1_98_0_StylableTypography__text-small-thin","text-small-normal":"wds_1_98_0_StylableTypography__text-small-normal","text-small-bold":"wds_1_98_0_StylableTypography__text-small-bold","text-medium-thin":"wds_1_98_0_StylableTypography__text-medium-thin","text-medium-normal":"wds_1_98_0_StylableTypography__text-medium-normal","text-medium-bold":"wds_1_98_0_StylableTypography__text-medium-bold"};
|
|
34997
35017
|
var Text_st_css_keyframes = {};
|
|
34998
35018
|
var Text_st_css_layers = {};
|
|
34999
35019
|
var Text_st_css_containers = {};
|
|
@@ -35013,7 +35033,6 @@ const WixStyleReactMaskingContext = external_React_default().createContext({});
|
|
|
35013
35033
|
|
|
35014
35034
|
|
|
35015
35035
|
|
|
35016
|
-
|
|
35017
35036
|
const getStyleDataAttributes = styleAttributes => Object.keys(styleAttributes).reduce((acc, styleKey) => {
|
|
35018
35037
|
acc[`data-${styleKey}`] = styleAttributes[styleKey];
|
|
35019
35038
|
return acc;
|
|
@@ -35028,10 +35047,9 @@ const RawTextDefaultProps = {
|
|
|
35028
35047
|
listStyle: 'checkmark',
|
|
35029
35048
|
widows: false,
|
|
35030
35049
|
};
|
|
35031
|
-
const RawText = external_React_default().forwardRef((
|
|
35032
|
-
var { size = RawTextDefaultProps.size, secondary = RawTextDefaultProps.secondary, skin = RawTextDefaultProps.skin, light = RawTextDefaultProps.light, weight = RawTextDefaultProps.weight, tagName = RawTextDefaultProps.tagName, children, ellipsis, showDelay, hideDelay, appendTo, flip, fixed, placement, timeout, maxWidth, zIndex, showTooltip, listStyle = RawTextDefaultProps.listStyle, id, widows = RawTextDefaultProps.widows } = _a, rest = __rest(_a, ["size", "secondary", "skin", "light", "weight", "tagName", "children", "ellipsis", "showDelay", "hideDelay", "appendTo", "flip", "fixed", "placement", "timeout", "maxWidth", "zIndex", "showTooltip", "listStyle", "id", "widows"]);
|
|
35050
|
+
const RawText = external_React_default().forwardRef(({ size = RawTextDefaultProps.size, secondary = RawTextDefaultProps.secondary, skin = RawTextDefaultProps.skin, light = RawTextDefaultProps.light, weight = RawTextDefaultProps.weight, tagName = RawTextDefaultProps.tagName, children, ellipsis, showDelay, hideDelay, appendTo, flip, fixed, placement, timeout, maxWidth, zIndex, showTooltip, listStyle = RawTextDefaultProps.listStyle, id, widows = RawTextDefaultProps.widows, ...rest }, ref) => {
|
|
35033
35051
|
/* eslint-disable no-unused-vars */
|
|
35034
|
-
const { dataHook, className
|
|
35052
|
+
const { dataHook, className, ...textProps } = rest;
|
|
35035
35053
|
const styleAttributes = {
|
|
35036
35054
|
size,
|
|
35037
35055
|
secondary,
|
|
@@ -35054,8 +35072,15 @@ const RawText = external_React_default().forwardRef((_a, ref) => {
|
|
|
35054
35072
|
newChildrenArr.push(textArray[arrLength - 2] + '\u00A0' + textArray[arrLength - 1]);
|
|
35055
35073
|
return newChildrenArr.join(' ');
|
|
35056
35074
|
}, [children, widows]);
|
|
35057
|
-
return (external_React_default().createElement(WixStyleReactMaskingContext.Consumer, null, ({ maskingClassNames }) => external_React_default().createElement(tagName,
|
|
35058
|
-
|
|
35075
|
+
return (external_React_default().createElement(WixStyleReactMaskingContext.Consumer, null, ({ maskingClassNames }) => external_React_default().createElement(tagName, {
|
|
35076
|
+
ref,
|
|
35077
|
+
id,
|
|
35078
|
+
...textProps,
|
|
35079
|
+
'data-hook': dataHook,
|
|
35080
|
+
'data-mask': !!maskingClassNames,
|
|
35081
|
+
className: Text_st_css_st(Text_st_css_classes.root, styleAttributes, className, maskingClassNames),
|
|
35082
|
+
...styleDataAttributes,
|
|
35083
|
+
}, childrenWidows)));
|
|
35059
35084
|
});
|
|
35060
35085
|
RawText.displayName = 'Text';
|
|
35061
35086
|
RawText.propTypes = {
|
|
@@ -35106,7 +35131,7 @@ var shallowequal_default = /*#__PURE__*/__webpack_require__.n(shallowequal);
|
|
|
35106
35131
|
|
|
35107
35132
|
|
|
35108
35133
|
|
|
35109
|
-
var shadows_st_css_namespace_ = "
|
|
35134
|
+
var shadows_st_css_namespace_ = "wds_1_98_0_shadows";
|
|
35110
35135
|
var shadows_st_css_style_ = classesRuntime.bind(null, shadows_st_css_namespace_);
|
|
35111
35136
|
|
|
35112
35137
|
var shadows_st_css_cssStates = statesRuntime.bind(null, shadows_st_css_namespace_);
|
|
@@ -35114,7 +35139,7 @@ var shadows_st_css_style = (/* unused pure expression or super */ null && (shado
|
|
|
35114
35139
|
var shadows_st_css_st = (/* unused pure expression or super */ null && (shadows_st_css_style_));
|
|
35115
35140
|
|
|
35116
35141
|
var shadows_st_css_namespace = (/* unused pure expression or super */ null && (shadows_st_css_namespace_));
|
|
35117
|
-
var shadows_st_css_classes = {"root":"
|
|
35142
|
+
var shadows_st_css_classes = {"root":"wds_1_98_0_shadows__root"};
|
|
35118
35143
|
var shadows_st_css_keyframes = {};
|
|
35119
35144
|
var shadows_st_css_layers = {};
|
|
35120
35145
|
var shadows_st_css_containers = {};
|
|
@@ -35132,7 +35157,7 @@ var shadows_st_css_vars = {"wsr-shadow10":"--wsr-shadow10","wsr-shadow20":"--wsr
|
|
|
35132
35157
|
|
|
35133
35158
|
|
|
35134
35159
|
|
|
35135
|
-
var easing_st_css_namespace_ = "
|
|
35160
|
+
var easing_st_css_namespace_ = "wds_1_98_0_easing";
|
|
35136
35161
|
var easing_st_css_style_ = classesRuntime.bind(null, easing_st_css_namespace_);
|
|
35137
35162
|
|
|
35138
35163
|
var easing_st_css_cssStates = statesRuntime.bind(null, easing_st_css_namespace_);
|
|
@@ -35140,7 +35165,7 @@ var easing_st_css_style = (/* unused pure expression or super */ null && (easing
|
|
|
35140
35165
|
var easing_st_css_st = (/* unused pure expression or super */ null && (easing_st_css_style_));
|
|
35141
35166
|
|
|
35142
35167
|
var easing_st_css_namespace = (/* unused pure expression or super */ null && (easing_st_css_namespace_));
|
|
35143
|
-
var easing_st_css_classes = {"root":"
|
|
35168
|
+
var easing_st_css_classes = {"root":"wds_1_98_0_easing__root"};
|
|
35144
35169
|
var easing_st_css_keyframes = {};
|
|
35145
35170
|
var easing_st_css_layers = {};
|
|
35146
35171
|
var easing_st_css_containers = {};
|
|
@@ -35161,7 +35186,7 @@ var easing_st_css_vars = {};
|
|
|
35161
35186
|
|
|
35162
35187
|
|
|
35163
35188
|
|
|
35164
|
-
var Popover_st_css_namespace_ = "
|
|
35189
|
+
var Popover_st_css_namespace_ = "wds_1_98_0_Popover";
|
|
35165
35190
|
var Popover_st_css_style_ = classesRuntime.bind(null, Popover_st_css_namespace_);
|
|
35166
35191
|
|
|
35167
35192
|
var Popover_st_css_cssStates = statesRuntime.bind(null, Popover_st_css_namespace_);
|
|
@@ -35169,7 +35194,7 @@ var Popover_st_css_style = (/* unused pure expression or super */ null && (Popov
|
|
|
35169
35194
|
var Popover_st_css_st = Popover_st_css_style_;
|
|
35170
35195
|
|
|
35171
35196
|
var Popover_st_css_namespace = (/* unused pure expression or super */ null && (Popover_st_css_namespace_));
|
|
35172
|
-
var Popover_st_css_classes = {"root":"
|
|
35197
|
+
var Popover_st_css_classes = {"root":"wds_1_98_0_Popover__root","content":"wds_1_98_0_Popover__content","arrow":"wds_1_98_0_Popover__arrow","element":"wds_1_98_0_Popover__element","animationEnter":"wds_1_98_0_Popover__animationEnter","animationEnterActive":"wds_1_98_0_Popover__animationEnterActive","animationExit":"wds_1_98_0_Popover__animationExit","animationExitActive":"wds_1_98_0_Popover__animationExitActive"};
|
|
35173
35198
|
var Popover_st_css_keyframes = {};
|
|
35174
35199
|
var Popover_st_css_layers = {};
|
|
35175
35200
|
var Popover_st_css_containers = {};
|
|
@@ -35189,7 +35214,7 @@ var Popover_st_css_vars = {"wds-popover-border":"--wds-popover-border","wds-shad
|
|
|
35189
35214
|
|
|
35190
35215
|
|
|
35191
35216
|
|
|
35192
|
-
var Tooltip_st_css_namespace_ = "
|
|
35217
|
+
var Tooltip_st_css_namespace_ = "wds_1_98_0_Tooltip";
|
|
35193
35218
|
var Tooltip_st_css_style_ = classesRuntime.bind(null, Tooltip_st_css_namespace_);
|
|
35194
35219
|
|
|
35195
35220
|
var Tooltip_st_css_cssStates = statesRuntime.bind(null, Tooltip_st_css_namespace_);
|
|
@@ -35197,7 +35222,7 @@ var Tooltip_st_css_style = (/* unused pure expression or super */ null && (Toolt
|
|
|
35197
35222
|
var Tooltip_st_css_st = Tooltip_st_css_style_;
|
|
35198
35223
|
|
|
35199
35224
|
var Tooltip_st_css_namespace = (/* unused pure expression or super */ null && (Tooltip_st_css_namespace_));
|
|
35200
|
-
var Tooltip_st_css_classes = {"root":"
|
|
35225
|
+
var Tooltip_st_css_classes = {"root":"wds_1_98_0_Tooltip__root","text-small-normal":"wds_1_98_0_StylableTypography__text-small-normal","text-tiny-thin":"wds_1_98_0_StylableTypography__text-tiny-thin","text":"wds_1_98_0_Tooltip__text"};
|
|
35201
35226
|
var Tooltip_st_css_keyframes = {};
|
|
35202
35227
|
var Tooltip_st_css_layers = {};
|
|
35203
35228
|
var Tooltip_st_css_containers = {};
|
|
@@ -35215,7 +35240,7 @@ var Tooltip_st_css_vars = {};
|
|
|
35215
35240
|
|
|
35216
35241
|
|
|
35217
35242
|
|
|
35218
|
-
var Ellipsis_st_css_namespace_ = "
|
|
35243
|
+
var Ellipsis_st_css_namespace_ = "wds_1_98_0_Ellipsis";
|
|
35219
35244
|
var Ellipsis_st_css_style_ = classesRuntime.bind(null, Ellipsis_st_css_namespace_);
|
|
35220
35245
|
|
|
35221
35246
|
var Ellipsis_st_css_cssStates = statesRuntime.bind(null, Ellipsis_st_css_namespace_);
|
|
@@ -35223,12 +35248,12 @@ var Ellipsis_st_css_style = (/* unused pure expression or super */ null && (Elli
|
|
|
35223
35248
|
var Ellipsis_st_css_st = Ellipsis_st_css_style_;
|
|
35224
35249
|
|
|
35225
35250
|
var Ellipsis_st_css_namespace = (/* unused pure expression or super */ null && (Ellipsis_st_css_namespace_));
|
|
35226
|
-
var Ellipsis_st_css_classes = {"root":"
|
|
35251
|
+
var Ellipsis_st_css_classes = {"root":"wds_1_98_0_Ellipsis__root","tooltip":"wds_1_98_0_Ellipsis__tooltip"};
|
|
35227
35252
|
var Ellipsis_st_css_keyframes = {};
|
|
35228
35253
|
var Ellipsis_st_css_layers = {};
|
|
35229
35254
|
var Ellipsis_st_css_containers = {};
|
|
35230
35255
|
var Ellipsis_st_css_stVars = {};
|
|
35231
|
-
var Ellipsis_st_css_vars = {"maxLines":"--
|
|
35256
|
+
var Ellipsis_st_css_vars = {"maxLines":"--wds_1_98_0_Ellipsis-maxLines"};
|
|
35232
35257
|
|
|
35233
35258
|
|
|
35234
35259
|
|
|
@@ -39242,7 +39267,7 @@ const calculateOffset = ({ moveBy, placement, }) => {
|
|
|
39242
39267
|
* will be the height.
|
|
39243
39268
|
*
|
|
39244
39269
|
*/
|
|
39245
|
-
if (
|
|
39270
|
+
if (placement?.includes('right') || placement?.includes('left')) {
|
|
39246
39271
|
return `${moveBy ? moveBy.y : 0}px, ${moveBy ? moveBy.x : 0}px`;
|
|
39247
39272
|
}
|
|
39248
39273
|
return `${moveBy ? moveBy.x : 0}px, ${moveBy ? moveBy.y : 0}px`;
|
|
@@ -39277,12 +39302,15 @@ const createModifiers = ({ width, moveBy, appendTo, shouldAnimate, flip, fixed,
|
|
|
39277
39302
|
fn: data => {
|
|
39278
39303
|
const { width: referenceWidth } = data.offsets.reference;
|
|
39279
39304
|
// @ts-ignore
|
|
39280
|
-
data.styles =
|
|
39281
|
-
|
|
39282
|
-
|
|
39283
|
-
|
|
39284
|
-
|
|
39285
|
-
|
|
39305
|
+
data.styles = {
|
|
39306
|
+
...data.styles,
|
|
39307
|
+
...resolveWidth({
|
|
39308
|
+
width,
|
|
39309
|
+
referenceWidth,
|
|
39310
|
+
minWidth,
|
|
39311
|
+
dynamicWidth,
|
|
39312
|
+
}),
|
|
39313
|
+
};
|
|
39286
39314
|
return data;
|
|
39287
39315
|
},
|
|
39288
39316
|
};
|
|
@@ -39291,9 +39319,11 @@ const createModifiers = ({ width, moveBy, appendTo, shouldAnimate, flip, fixed,
|
|
|
39291
39319
|
modifiers.computeStyle = { enabled: false };
|
|
39292
39320
|
}
|
|
39293
39321
|
if (appendTo) {
|
|
39294
|
-
modifiers.preventOverflow =
|
|
39322
|
+
modifiers.preventOverflow = {
|
|
39323
|
+
...modifiers.preventOverflow,
|
|
39295
39324
|
// @ts-ignore
|
|
39296
|
-
boundariesElement: appendTo
|
|
39325
|
+
boundariesElement: appendTo,
|
|
39326
|
+
};
|
|
39297
39327
|
}
|
|
39298
39328
|
return modifiers;
|
|
39299
39329
|
};
|
|
@@ -39593,7 +39623,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
39593
39623
|
};
|
|
39594
39624
|
const popperWithArrow = (external_React_default().createElement(Popper_Popper, { modifiers: modifiers, placement: placement }, ({ ref, style: popperStyles, placement: popperPlacement, arrowProps, scheduleUpdate, }) => {
|
|
39595
39625
|
this.popperScheduleUpdate = scheduleUpdate;
|
|
39596
|
-
return (external_React_default().createElement("div", { "data-hook": "popover-content", className: Popover_st_css_st(this.clickOutsideClass, this.context.newBrandingClass), "data-content-element": this.contentHook, ref: ref, style:
|
|
39626
|
+
return (external_React_default().createElement("div", { "data-hook": "popover-content", className: Popover_st_css_st(this.clickOutsideClass, this.context.newBrandingClass), "data-content-element": this.contentHook, ref: ref, style: { ...popperStyles, zIndex } },
|
|
39597
39627
|
showArrow &&
|
|
39598
39628
|
this.renderArrow(arrowProps, moveArrowTo, popperPlacement || placement, customArrow),
|
|
39599
39629
|
external_React_default().createElement("div", { id: id, role: role, tabIndex: tabIndex, ref: this.popoverContentRef, style: { maxWidth }, className: Popover_st_css_st(Popover_st_css_classes.content, {
|
|
@@ -39607,7 +39637,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
39607
39637
|
return (external_React_default().createElement("div", { id: id, ref: mergeRefs(ref, this.popoverContentRef), role: role, tabIndex: tabIndex, className: Popover_st_css_st(Popover_st_css_classes.content, {
|
|
39608
39638
|
skin: theme,
|
|
39609
39639
|
placement: popperPlacement || placement,
|
|
39610
|
-
}, this.clickOutsideClass, this.context.newBrandingClass), "data-hook": "popover-content", style:
|
|
39640
|
+
}, this.clickOutsideClass, this.context.newBrandingClass), "data-hook": "popover-content", style: { ...popperStyles, zIndex, maxWidth }, "data-content-element": this.contentHook, onKeyDown: shown && onEscPress ? this._onKeyDown : undefined, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedBy }, childrenObject.Content));
|
|
39611
39641
|
}));
|
|
39612
39642
|
return this.wrapWithAnimations(showArrow ? popperWithArrow : popper);
|
|
39613
39643
|
}
|
|
@@ -39642,12 +39672,15 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
39642
39672
|
ref: arrowProps.ref,
|
|
39643
39673
|
key: 'popover-arrow',
|
|
39644
39674
|
'data-hook': 'popover-arrow',
|
|
39645
|
-
style:
|
|
39675
|
+
style: {
|
|
39676
|
+
...arrowProps.style,
|
|
39677
|
+
...getArrowShift(moveArrowTo, placement),
|
|
39678
|
+
},
|
|
39646
39679
|
};
|
|
39647
39680
|
if (customArrow) {
|
|
39648
39681
|
return customArrow(placement, commonProps);
|
|
39649
39682
|
}
|
|
39650
|
-
return (external_React_default().createElement("div",
|
|
39683
|
+
return (external_React_default().createElement("div", { ...commonProps, className: Popover_st_css_st(Popover_st_css_classes.arrow, { skin: theme, placement }) }));
|
|
39651
39684
|
}
|
|
39652
39685
|
componentDidMount() {
|
|
39653
39686
|
const { shown, onTabOut } = this.props;
|
|
@@ -39707,12 +39740,12 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
39707
39740
|
if (hideDelay) {
|
|
39708
39741
|
this._hideTimeout = setTimeout(() => {
|
|
39709
39742
|
this.setState({ shown: false });
|
|
39710
|
-
onHide
|
|
39743
|
+
onHide?.();
|
|
39711
39744
|
}, hideDelay);
|
|
39712
39745
|
}
|
|
39713
39746
|
else {
|
|
39714
39747
|
this.setState({ shown: false });
|
|
39715
|
-
onHide
|
|
39748
|
+
onHide?.();
|
|
39716
39749
|
}
|
|
39717
39750
|
}
|
|
39718
39751
|
showPopover() {
|
|
@@ -39731,12 +39764,12 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
39731
39764
|
if (showDelay) {
|
|
39732
39765
|
this._showTimeout = setTimeout(() => {
|
|
39733
39766
|
this.setState({ shown: true });
|
|
39734
|
-
onShow
|
|
39767
|
+
onShow?.();
|
|
39735
39768
|
}, showDelay);
|
|
39736
39769
|
}
|
|
39737
39770
|
else {
|
|
39738
39771
|
this.setState({ shown: true });
|
|
39739
|
-
onShow
|
|
39772
|
+
onShow?.();
|
|
39740
39773
|
}
|
|
39741
39774
|
}
|
|
39742
39775
|
componentWillUnmount() {
|
|
@@ -39797,7 +39830,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
39797
39830
|
external_React_default().createElement(ClickOutside, { rootRef: this.clickOutsideRef, onClickOutside: shown ? this._handleClickOutside : undefined, excludeClass: excludeClass
|
|
39798
39831
|
? [this.clickOutsideClass, excludeClass]
|
|
39799
39832
|
: this.clickOutsideClass },
|
|
39800
|
-
external_React_default().createElement("div",
|
|
39833
|
+
external_React_default().createElement("div", { ref: this.clickOutsideRef, style: style, "data-hook": dataHook, "data-content-hook": this.contentHook, className: Popover_st_css_st(Popover_st_css_classes.root, { fluid, skin }, className), onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, "data-zindex": zIndex, ...filter_data_props_filterDataProps(this.props) },
|
|
39801
39834
|
external_React_default().createElement(Reference, { innerRef: r => (this.targetRef = r) }, ({ ref }) => (external_React_default().createElement("div", { ref: ref, className: Popover_st_css_classes.element, "data-hook": "popover-element", onClick: onClick, onKeyDown: onKeyDown }, childrenObject.Element))),
|
|
39802
39835
|
shouldRenderPopper && this.renderPopperContent(childrenObject)))));
|
|
39803
39836
|
}
|
|
@@ -39840,7 +39873,6 @@ const constants_placements = [
|
|
|
39840
39873
|
|
|
39841
39874
|
|
|
39842
39875
|
|
|
39843
|
-
|
|
39844
39876
|
/**
|
|
39845
39877
|
* This has been added in order to fix jsdom not having requestAnimation frame
|
|
39846
39878
|
* installed. Jest by default has this polyfilled, but mocha fails on it.
|
|
@@ -39850,11 +39882,11 @@ const ANIMATION_ENTER = 150;
|
|
|
39850
39882
|
const ANIMATION_EXIT = 100;
|
|
39851
39883
|
class Popover extends external_React_.PureComponent {
|
|
39852
39884
|
render() {
|
|
39853
|
-
const
|
|
39885
|
+
const { animate, ...rest } = this.props;
|
|
39854
39886
|
const timeout = animate
|
|
39855
39887
|
? { enter: ANIMATION_ENTER, exit: ANIMATION_EXIT }
|
|
39856
39888
|
: undefined;
|
|
39857
|
-
return external_React_default().createElement(PopoverCore,
|
|
39889
|
+
return external_React_default().createElement(PopoverCore, { timeout: timeout, ...rest });
|
|
39858
39890
|
}
|
|
39859
39891
|
}
|
|
39860
39892
|
Popover.displayName = 'Popover';
|
|
@@ -39988,26 +40020,21 @@ const SIZES = { small: 'small', medium: 'medium' };
|
|
|
39988
40020
|
|
|
39989
40021
|
|
|
39990
40022
|
|
|
39991
|
-
|
|
39992
|
-
const Tooltip = (0,external_React_.forwardRef)((_a, ref) => {
|
|
39993
|
-
var { onShow = () => ({}), onHide = () => ({}), size = 'medium', className, placement = 'top', exitDelay = 0, enterDelay = 0, moveArrowTo, appendTo = 'window', flip = true, fixed = false, maxWidth = 204, fluid, moveBy, disabled, children, zIndex = 6000, textAlign = 'start', content = '', inline, 'aria-describedby': ariaDescribedBy, 'aria-labelledby': ariaLabelledBy } = _a, rest = __rest(_a, ["onShow", "onHide", "size", "className", "placement", "exitDelay", "enterDelay", "moveArrowTo", "appendTo", "flip", "fixed", "maxWidth", "fluid", "moveBy", "disabled", "children", "zIndex", "textAlign", "content", "inline", 'aria-describedby', 'aria-labelledby']);
|
|
40023
|
+
const Tooltip = (0,external_React_.forwardRef)(({ onShow = () => ({}), onHide = () => ({}), size = 'medium', className, placement = 'top', exitDelay = 0, enterDelay = 0, moveArrowTo, appendTo = 'window', flip = true, fixed = false, maxWidth = 204, fluid, moveBy, disabled, children, zIndex = 6000, textAlign = 'start', content = '', inline, 'aria-describedby': ariaDescribedBy, 'aria-labelledby': ariaLabelledBy, ...rest }, ref) => {
|
|
39994
40024
|
const [shown, setShown] = (0,external_React_.useState)(false);
|
|
39995
40025
|
(0,external_React_.useImperativeHandle)(ref, () => ({ open, close }));
|
|
39996
40026
|
const open = (0,external_React_.useCallback)(() => {
|
|
39997
40027
|
setShown(true);
|
|
39998
|
-
onShow
|
|
40028
|
+
onShow?.();
|
|
39999
40029
|
}, [onShow]);
|
|
40000
40030
|
const close = (0,external_React_.useCallback)(() => {
|
|
40001
40031
|
setShown(false);
|
|
40002
|
-
onHide
|
|
40032
|
+
onHide?.();
|
|
40003
40033
|
}, [onHide]);
|
|
40004
|
-
const isDisabled = (0,external_React_.useMemo)(() =>
|
|
40005
|
-
|
|
40006
|
-
|
|
40007
|
-
|
|
40008
|
-
(children === null || children === void 0 ? void 0 : children.props) && ((_a = children === null || children === void 0 ? void 0 : children.props) === null || _a === void 0 ? void 0 : _a.disabled)
|
|
40009
|
-
: disabled;
|
|
40010
|
-
}, [children, disabled]);
|
|
40034
|
+
const isDisabled = (0,external_React_.useMemo)(() => disabled === undefined
|
|
40035
|
+
? // @ts-expect-error
|
|
40036
|
+
children?.props && children?.props?.disabled
|
|
40037
|
+
: disabled, [children, disabled]);
|
|
40011
40038
|
const onFocus = (0,external_React_.useCallback)((event, handlers) => {
|
|
40012
40039
|
const focusableHOC = handlers && handlers.focus;
|
|
40013
40040
|
const target = event.target;
|
|
@@ -40015,7 +40042,7 @@ const Tooltip = (0,external_React_.forwardRef)((_a, ref) => {
|
|
|
40015
40042
|
if ( true &&
|
|
40016
40043
|
target instanceof Element &&
|
|
40017
40044
|
!target.matches(':focus-visible')) {
|
|
40018
|
-
handlers
|
|
40045
|
+
handlers?.blur();
|
|
40019
40046
|
return;
|
|
40020
40047
|
}
|
|
40021
40048
|
}
|
|
@@ -40035,9 +40062,13 @@ const Tooltip = (0,external_React_.forwardRef)((_a, ref) => {
|
|
|
40035
40062
|
return children;
|
|
40036
40063
|
}
|
|
40037
40064
|
if (external_React_default().isValidElement(children)) {
|
|
40038
|
-
return external_React_default().cloneElement(children,
|
|
40039
|
-
?
|
|
40040
|
-
:
|
|
40065
|
+
return external_React_default().cloneElement(children, {
|
|
40066
|
+
onFocus: isDisabled ? undefined : onFocus,
|
|
40067
|
+
onBlur: isDisabled ? undefined : onBlur,
|
|
40068
|
+
...(ariaLabelledBy
|
|
40069
|
+
? { 'aria-labelledby': ariaLabelledBy }
|
|
40070
|
+
: { 'aria-describedby': ariaDescribedBy }),
|
|
40071
|
+
});
|
|
40041
40072
|
}
|
|
40042
40073
|
if (typeof children === 'function') {
|
|
40043
40074
|
return children({
|
|
@@ -40061,7 +40092,7 @@ const Tooltip = (0,external_React_.forwardRef)((_a, ref) => {
|
|
|
40061
40092
|
// @ts-ignore
|
|
40062
40093
|
external_React_default().createElement(Text_RawText, { dataHook: constants_dataHooks.tooltipText, size: textSize, weight: textWeight, light: true, className: Tooltip_st_css_classes.text }, content)) : (content)));
|
|
40063
40094
|
}, [content, textAlign, size]);
|
|
40064
|
-
return (external_React_default().createElement(Popover_Popover,
|
|
40095
|
+
return (external_React_default().createElement(Popover_Popover, { role: "tooltip", showArrow: size !== 'small', className: Tooltip_st_css_st(Tooltip_st_css_classes.root, { size, inline }, className), placement: placement, shown: isDisabled ? false : shown, onMouseEnter: isDisabled ? undefined : open, onMouseLeave: close, onClickOutside: close, "data-size": size, hideDelay: exitDelay, showDelay: enterDelay, moveBy: moveBy, moveArrowTo: moveArrowTo, appendTo: appendTo, id: ariaLabelledBy || ariaDescribedBy, flip: flip, fixed: fixed, maxWidth: maxWidth, fluid: fluid, disableClickOutsideWhenClosed: true, zIndex: zIndex, ...rest, theme: "dark", timeout: TIMEOUT },
|
|
40065
40096
|
external_React_default().createElement(Popover_Popover.Element, null, triggerElement),
|
|
40066
40097
|
external_React_default().createElement(Popover_Popover.Content, null, contentElement)));
|
|
40067
40098
|
});
|
|
@@ -40212,7 +40243,7 @@ const TooltipCommonProps = {
|
|
|
40212
40243
|
|
|
40213
40244
|
|
|
40214
40245
|
|
|
40215
|
-
var TextComponent_st_css_namespace_ = "
|
|
40246
|
+
var TextComponent_st_css_namespace_ = "wds_1_98_0_TextComponent";
|
|
40216
40247
|
var TextComponent_st_css_style_ = classesRuntime.bind(null, TextComponent_st_css_namespace_);
|
|
40217
40248
|
|
|
40218
40249
|
var TextComponent_st_css_cssStates = statesRuntime.bind(null, TextComponent_st_css_namespace_);
|
|
@@ -40220,12 +40251,12 @@ var TextComponent_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
40220
40251
|
var TextComponent_st_css_st = TextComponent_st_css_style_;
|
|
40221
40252
|
|
|
40222
40253
|
var TextComponent_st_css_namespace = (/* unused pure expression or super */ null && (TextComponent_st_css_namespace_));
|
|
40223
|
-
var TextComponent_st_css_classes = {"root":"
|
|
40254
|
+
var TextComponent_st_css_classes = {"root":"wds_1_98_0_TextComponent__root","text":"wds_1_98_0_TextComponent__text"};
|
|
40224
40255
|
var TextComponent_st_css_keyframes = {};
|
|
40225
40256
|
var TextComponent_st_css_layers = {};
|
|
40226
40257
|
var TextComponent_st_css_containers = {};
|
|
40227
40258
|
var TextComponent_st_css_stVars = {};
|
|
40228
|
-
var TextComponent_st_css_vars = {"maxLines":"--
|
|
40259
|
+
var TextComponent_st_css_vars = {"maxLines":"--wds_1_98_0_TextComponent-maxLines"};
|
|
40229
40260
|
|
|
40230
40261
|
|
|
40231
40262
|
|
|
@@ -40317,10 +40348,14 @@ class Ellipsis extends (external_React_default()).PureComponent {
|
|
|
40317
40348
|
const { isActive, textContent } = this.state;
|
|
40318
40349
|
const newTextContent = this._getTextContent();
|
|
40319
40350
|
const shouldBeActive = this._checkShouldBeActive();
|
|
40320
|
-
const newState =
|
|
40321
|
-
|
|
40322
|
-
|
|
40323
|
-
|
|
40351
|
+
const newState = {
|
|
40352
|
+
textRendered: true,
|
|
40353
|
+
...(newTextContent !== textContent
|
|
40354
|
+
? { textContent: newTextContent }
|
|
40355
|
+
: {}),
|
|
40356
|
+
...(shouldBeActive !== isActive ? { isActive: shouldBeActive } : {}),
|
|
40357
|
+
};
|
|
40358
|
+
this.setState(oldState => ({ ...oldState, ...newState }));
|
|
40324
40359
|
};
|
|
40325
40360
|
/**
|
|
40326
40361
|
* An ellipsis is considered active when either the text's scroll width/height is wider than it's container or itself.
|
|
@@ -40339,20 +40374,18 @@ class Ellipsis extends (external_React_default()).PureComponent {
|
|
|
40339
40374
|
};
|
|
40340
40375
|
this._checkShouldBeActive = () => this._isOverflowingHorizontally() || this._isOverflowingVertically();
|
|
40341
40376
|
this._isOverflowingHorizontally = () => {
|
|
40342
|
-
var _a;
|
|
40343
40377
|
const { current: textElement } = this.ref;
|
|
40344
40378
|
const { ellipsis } = this.props;
|
|
40345
|
-
const parentWidth =
|
|
40379
|
+
const parentWidth = textElement?.parentElement?.offsetWidth;
|
|
40346
40380
|
return !!(ellipsis &&
|
|
40347
40381
|
textElement &&
|
|
40348
40382
|
((parentWidth && textElement.scrollWidth - parentWidth > 1) ||
|
|
40349
40383
|
textElement.offsetWidth < textElement.scrollWidth));
|
|
40350
40384
|
};
|
|
40351
40385
|
this._isOverflowingVertically = () => {
|
|
40352
|
-
var _a;
|
|
40353
40386
|
const { current: textElement } = this.ref;
|
|
40354
40387
|
const { ellipsis, maxLines } = this.props;
|
|
40355
|
-
const parentHeight =
|
|
40388
|
+
const parentHeight = textElement?.parentElement?.offsetHeight;
|
|
40356
40389
|
return !!(maxLines &&
|
|
40357
40390
|
maxLines > 1 &&
|
|
40358
40391
|
ellipsis &&
|
|
@@ -40425,17 +40458,20 @@ class Ellipsis extends (external_React_default()).PureComponent {
|
|
|
40425
40458
|
window.removeEventListener('resize', this._debouncedUpdate);
|
|
40426
40459
|
}
|
|
40427
40460
|
}
|
|
40428
|
-
Ellipsis.propTypes =
|
|
40461
|
+
Ellipsis.propTypes = {
|
|
40429
40462
|
/** When true, text that is longer than it's container will be truncated to a single line followed by ellipsis. Otherwise the text will break into several lines. */
|
|
40430
|
-
ellipsis: (prop_types_default()).bool,
|
|
40463
|
+
ellipsis: (prop_types_default()).bool,
|
|
40431
40464
|
/** True by default, set it to false in order to show ellipsis without a tooltip. */
|
|
40432
|
-
showTooltip: (prop_types_default()).bool,
|
|
40465
|
+
showTooltip: (prop_types_default()).bool,
|
|
40433
40466
|
/** A className to be applied to the Ellipsis wrapper. */
|
|
40434
|
-
wrapperClassName: (prop_types_default()).string,
|
|
40467
|
+
wrapperClassName: (prop_types_default()).string,
|
|
40435
40468
|
/** The render function, use it to render a text you want to truncate with ellipsis. */
|
|
40436
|
-
render: (prop_types_default()).func,
|
|
40469
|
+
render: (prop_types_default()).func,
|
|
40437
40470
|
/** maxLines truncates text at a specific number of lines. */
|
|
40438
|
-
maxLines: (prop_types_default()).number
|
|
40471
|
+
maxLines: (prop_types_default()).number,
|
|
40472
|
+
// Tooltip props
|
|
40473
|
+
...TooltipCommonProps,
|
|
40474
|
+
};
|
|
40439
40475
|
Ellipsis.defaultProps = {
|
|
40440
40476
|
ellipsis: false,
|
|
40441
40477
|
appendTo: 'window',
|
|
@@ -40450,13 +40486,11 @@ Ellipsis.defaultProps = {
|
|
|
40450
40486
|
/* harmony default export */ const Ellipsis_Ellipsis = (Ellipsis);
|
|
40451
40487
|
//# sourceMappingURL=Ellipsis.js.map
|
|
40452
40488
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/common/Ellipsis/EllipsisUtils.js
|
|
40453
|
-
|
|
40454
40489
|
/**
|
|
40455
40490
|
* A utility function that extracts Ellipsis relevant props and wrapped Component relevant props
|
|
40456
40491
|
* @returns {{ellipsisProps: *, componentProps: *}}
|
|
40457
40492
|
*/
|
|
40458
|
-
const extractEllipsisProps = (
|
|
40459
|
-
var { appendTo, disabled, ellipsis, enterDelay, exitDelay, fixed, flip, maxWidth, moveArrowTo, onHide, onShow, placement, showTooltip, textAlign, zIndex, maxLines } = _a, componentProps = __rest(_a, ["appendTo", "disabled", "ellipsis", "enterDelay", "exitDelay", "fixed", "flip", "maxWidth", "moveArrowTo", "onHide", "onShow", "placement", "showTooltip", "textAlign", "zIndex", "maxLines"]);
|
|
40493
|
+
const extractEllipsisProps = ({ appendTo, disabled, ellipsis, enterDelay, exitDelay, fixed, flip, maxWidth, moveArrowTo, onHide, onShow, placement, showTooltip, textAlign, zIndex, maxLines, ...componentProps }) => {
|
|
40460
40494
|
return {
|
|
40461
40495
|
ellipsisProps: {
|
|
40462
40496
|
appendTo,
|
|
@@ -40487,10 +40521,11 @@ const extractEllipsisProps = (_a) => {
|
|
|
40487
40521
|
|
|
40488
40522
|
|
|
40489
40523
|
|
|
40490
|
-
|
|
40491
|
-
const
|
|
40492
|
-
|
|
40493
|
-
|
|
40524
|
+
const TextWithEllipsis = ({ ellipsis = false, appendTo = Ellipsis_Ellipsis.defaultProps.appendTo, flip = Ellipsis_Ellipsis.defaultProps.flip, fixed = Ellipsis_Ellipsis.defaultProps.fixed, placement = Ellipsis_Ellipsis.defaultProps.placement, zIndex = Ellipsis_Ellipsis.defaultProps.zIndex, enterDelay = Ellipsis_Ellipsis.defaultProps.enterDelay, exitDelay = Ellipsis_Ellipsis.defaultProps.exitDelay, showTooltip = Ellipsis_Ellipsis.defaultProps.showTooltip, size = RawTextDefaultProps.size, secondary = RawTextDefaultProps.secondary, skin = RawTextDefaultProps.skin, light = RawTextDefaultProps.light, weight = RawTextDefaultProps.weight, tagName = RawTextDefaultProps.tagName, listStyle = RawTextDefaultProps.listStyle, widows = RawTextDefaultProps.widows, id, ...propsWithNoDefaults }) => {
|
|
40525
|
+
const { className, tooltipProps, ...props } = {
|
|
40526
|
+
...RawTextDefaultProps,
|
|
40527
|
+
...Ellipsis_Ellipsis.defaultProps,
|
|
40528
|
+
ellipsis,
|
|
40494
40529
|
appendTo,
|
|
40495
40530
|
flip,
|
|
40496
40531
|
fixed,
|
|
@@ -40507,13 +40542,15 @@ const TextWithEllipsis = (_a) => {
|
|
|
40507
40542
|
tagName,
|
|
40508
40543
|
listStyle,
|
|
40509
40544
|
id,
|
|
40510
|
-
widows
|
|
40545
|
+
widows,
|
|
40546
|
+
...propsWithNoDefaults,
|
|
40547
|
+
};
|
|
40511
40548
|
const { ellipsisProps, componentProps } = extractEllipsisProps(props);
|
|
40512
|
-
return (external_React_default().createElement(Ellipsis_Ellipsis,
|
|
40549
|
+
return (external_React_default().createElement(Ellipsis_Ellipsis, { ...ellipsisProps, ...tooltipProps, wrapperClassName: Text_st_css_st(Text_st_css_classes.root, {
|
|
40513
40550
|
size: props.size,
|
|
40514
40551
|
weight: props.weight,
|
|
40515
40552
|
listStyle: props.listStyle,
|
|
40516
|
-
}), render: ({ ref, ellipsisClasses, ellipsisInlineStyle }) => (external_React_default().createElement(Text_RawText,
|
|
40553
|
+
}), render: ({ ref, ellipsisClasses, ellipsisInlineStyle }) => (external_React_default().createElement(Text_RawText, { ...componentProps, ref: ref, className: ellipsisClasses(className), style: ellipsisInlineStyle })) }));
|
|
40517
40554
|
};
|
|
40518
40555
|
TextWithEllipsis.displayName = 'Text';
|
|
40519
40556
|
TextWithEllipsis.propTypes = {
|
|
@@ -40601,7 +40638,10 @@ TextWithEllipsis.propTypes = {
|
|
|
40601
40638
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/utils/generateDataAttr.js
|
|
40602
40639
|
const generateDataAttr = (props, filter) => Object.entries(props)
|
|
40603
40640
|
.filter(([key]) => filter && filter.includes(key))
|
|
40604
|
-
.reduce((output, [key, value]) => (
|
|
40641
|
+
.reduce((output, [key, value]) => ({
|
|
40642
|
+
...output,
|
|
40643
|
+
[`data-${key.toLowerCase()}`]: value,
|
|
40644
|
+
}), {});
|
|
40605
40645
|
//# sourceMappingURL=generateDataAttr.js.map
|
|
40606
40646
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/common/Focusable/Focusable.st.css.js
|
|
40607
40647
|
|
|
@@ -40610,7 +40650,7 @@ const generateDataAttr = (props, filter) => Object.entries(props)
|
|
|
40610
40650
|
|
|
40611
40651
|
|
|
40612
40652
|
|
|
40613
|
-
var Focusable_st_css_namespace_ = "
|
|
40653
|
+
var Focusable_st_css_namespace_ = "wds_1_98_0_Focusable";
|
|
40614
40654
|
var Focusable_st_css_style_ = classesRuntime.bind(null, Focusable_st_css_namespace_);
|
|
40615
40655
|
|
|
40616
40656
|
var Focusable_st_css_cssStates = statesRuntime.bind(null, Focusable_st_css_namespace_);
|
|
@@ -40618,7 +40658,7 @@ var Focusable_st_css_style = (/* unused pure expression or super */ null && (Foc
|
|
|
40618
40658
|
var Focusable_st_css_st = Focusable_st_css_style_;
|
|
40619
40659
|
|
|
40620
40660
|
var Focusable_st_css_namespace = (/* unused pure expression or super */ null && (Focusable_st_css_namespace_));
|
|
40621
|
-
var Focusable_st_css_classes = {"root":"
|
|
40661
|
+
var Focusable_st_css_classes = {"root":"wds_1_98_0_Focusable__root","focus-box":"wds_1_98_0_Focusable__focus-box","focus-box-error":"wds_1_98_0_Focusable__focus-box-error"};
|
|
40622
40662
|
var Focusable_st_css_keyframes = {};
|
|
40623
40663
|
var Focusable_st_css_layers = {};
|
|
40624
40664
|
var Focusable_st_css_containers = {};
|
|
@@ -40636,7 +40676,7 @@ var Focusable_st_css_vars = {};
|
|
|
40636
40676
|
|
|
40637
40677
|
|
|
40638
40678
|
|
|
40639
|
-
var ButtonCore_st_css_namespace_ = "
|
|
40679
|
+
var ButtonCore_st_css_namespace_ = "wds_1_98_0_ButtonCore";
|
|
40640
40680
|
var ButtonCore_st_css_style_ = classesRuntime.bind(null, ButtonCore_st_css_namespace_);
|
|
40641
40681
|
|
|
40642
40682
|
var ButtonCore_st_css_cssStates = statesRuntime.bind(null, ButtonCore_st_css_namespace_);
|
|
@@ -40644,7 +40684,7 @@ var ButtonCore_st_css_style = (/* unused pure expression or super */ null && (Bu
|
|
|
40644
40684
|
var ButtonCore_st_css_st = ButtonCore_st_css_style_;
|
|
40645
40685
|
|
|
40646
40686
|
var ButtonCore_st_css_namespace = (/* unused pure expression or super */ null && (ButtonCore_st_css_namespace_));
|
|
40647
|
-
var ButtonCore_st_css_classes = {"root":"
|
|
40687
|
+
var ButtonCore_st_css_classes = {"root":"wds_1_98_0_ButtonCore__root","content":"wds_1_98_0_ButtonCore__content","prefix":"wds_1_98_0_ButtonCore__prefix","suffix":"wds_1_98_0_ButtonCore__suffix"};
|
|
40648
40688
|
var ButtonCore_st_css_keyframes = {};
|
|
40649
40689
|
var ButtonCore_st_css_layers = {};
|
|
40650
40690
|
var ButtonCore_st_css_containers = {};
|
|
@@ -40666,7 +40706,7 @@ var ButtonCore_st_css_vars = {};
|
|
|
40666
40706
|
|
|
40667
40707
|
|
|
40668
40708
|
|
|
40669
|
-
var TextButton_st_css_namespace_ = "
|
|
40709
|
+
var TextButton_st_css_namespace_ = "wds_1_98_0_TextButton";
|
|
40670
40710
|
var TextButton_st_css_style_ = classesRuntime.bind(null, TextButton_st_css_namespace_);
|
|
40671
40711
|
|
|
40672
40712
|
var TextButton_st_css_cssStates = statesRuntime.bind(null, TextButton_st_css_namespace_);
|
|
@@ -40674,7 +40714,7 @@ var TextButton_st_css_style = (/* unused pure expression or super */ null && (Te
|
|
|
40674
40714
|
var TextButton_st_css_st = TextButton_st_css_style_;
|
|
40675
40715
|
|
|
40676
40716
|
var TextButton_st_css_namespace = (/* unused pure expression or super */ null && (TextButton_st_css_namespace_));
|
|
40677
|
-
var TextButton_st_css_classes = {"root":"
|
|
40717
|
+
var TextButton_st_css_classes = {"root":"wds_1_98_0_TextButton__root","text-tiny-thin":"wds_1_98_0_StylableTypography__text-tiny-thin","text-tiny-normal":"wds_1_98_0_StylableTypography__text-tiny-normal","text-small-thin":"wds_1_98_0_StylableTypography__text-small-thin","text-small-normal":"wds_1_98_0_StylableTypography__text-small-normal","text-medium-thin":"wds_1_98_0_StylableTypography__text-medium-thin","text-medium-normal":"wds_1_98_0_StylableTypography__text-medium-normal"};
|
|
40678
40718
|
var TextButton_st_css_keyframes = {};
|
|
40679
40719
|
var TextButton_st_css_layers = {};
|
|
40680
40720
|
var TextButton_st_css_containers = {};
|
|
@@ -40772,8 +40812,7 @@ function Focusable_withFocusable(Component, options = {}) {
|
|
|
40772
40812
|
focusVisible: false,
|
|
40773
40813
|
};
|
|
40774
40814
|
this.focus = () => {
|
|
40775
|
-
|
|
40776
|
-
if ((_a = this.wrappedComponentRef) === null || _a === void 0 ? void 0 : _a.focus) {
|
|
40815
|
+
if (this.wrappedComponentRef?.focus) {
|
|
40777
40816
|
this.wrappedComponentRef.focus();
|
|
40778
40817
|
}
|
|
40779
40818
|
};
|
|
@@ -40829,10 +40868,10 @@ function Focusable_withFocusable(Component, options = {}) {
|
|
|
40829
40868
|
: (ref) => {
|
|
40830
40869
|
this.wrappedComponentRef = ref;
|
|
40831
40870
|
};
|
|
40832
|
-
return (external_React_default().createElement(Component,
|
|
40871
|
+
return (external_React_default().createElement(Component, { ...this.props, ref: reference, focusableOnFocus: this.onFocus, focusableOnBlur: this.onBlur, className: Focusable_st_css_st(Focusable_st_css_classes.root, {
|
|
40833
40872
|
focus: this.state.focus,
|
|
40834
40873
|
'focus-visible': this.state.focusVisible,
|
|
40835
|
-
}, this.props.className) }))
|
|
40874
|
+
}, this.props.className) }));
|
|
40836
40875
|
}
|
|
40837
40876
|
}
|
|
40838
40877
|
Focusable.displayName = hocUtils_getDisplayName(Component);
|
|
@@ -40864,7 +40903,6 @@ const ButtonCore_utils_isStatelessComponent = (Component) => !(Component.prototy
|
|
|
40864
40903
|
|
|
40865
40904
|
|
|
40866
40905
|
|
|
40867
|
-
|
|
40868
40906
|
const ButtonCore_addAffix = (Affix, styleClass, dataHook) => Affix &&
|
|
40869
40907
|
external_React_.cloneElement(Affix, {
|
|
40870
40908
|
className: classnames_default()(ButtonCore_st_css_classes[styleClass], Affix.props.className),
|
|
@@ -40884,7 +40922,7 @@ class ButtonCore extends external_React_.Component {
|
|
|
40884
40922
|
}
|
|
40885
40923
|
}
|
|
40886
40924
|
render() {
|
|
40887
|
-
const
|
|
40925
|
+
const { as: Component, suffixIcon, prefixIcon, children, disabled, focusableOnFocus, focusableOnBlur, href, contentClassName, contentRef, ...rest } = this.props;
|
|
40888
40926
|
const htmlTabIndex = disabled ? -1 : rest.tabIndex || 0;
|
|
40889
40927
|
const htmlHref = disabled ? undefined : href;
|
|
40890
40928
|
const reference = ButtonCore_utils_isStatelessComponent(Component) && typeof Component !== 'string'
|
|
@@ -40893,7 +40931,7 @@ class ButtonCore extends external_React_.Component {
|
|
|
40893
40931
|
if (!Component) {
|
|
40894
40932
|
return null;
|
|
40895
40933
|
}
|
|
40896
|
-
return (external_React_.createElement(Component,
|
|
40934
|
+
return (external_React_.createElement(Component, { "data-hook": ButtonCore_constants_dataHooks.button, ...rest, onFocus: focusableOnFocus, onBlur: focusableOnBlur, disabled: href ? undefined : disabled, href: htmlHref, ref: reference, tabIndex: htmlTabIndex, "aria-disabled": disabled, className: ButtonCore_st_css_st(ButtonCore_st_css_classes.root, { disabled }, this.props.className) },
|
|
40897
40935
|
prefixIcon && ButtonCore_addAffix(prefixIcon, 'prefix', ButtonCore_constants_dataHooks.prefixIcon),
|
|
40898
40936
|
external_React_.createElement("span", { className: ButtonCore_st_css_st(ButtonCore_st_css_classes.content, contentClassName), ref: contentRef }, children),
|
|
40899
40937
|
suffixIcon && ButtonCore_addAffix(suffixIcon, 'suffix', ButtonCore_constants_dataHooks.suffixIcon)));
|
|
@@ -40914,7 +40952,6 @@ ButtonCore.displayName = 'ButtonCore';
|
|
|
40914
40952
|
|
|
40915
40953
|
|
|
40916
40954
|
|
|
40917
|
-
|
|
40918
40955
|
class TextButton_TextButton extends external_React_.PureComponent {
|
|
40919
40956
|
constructor(props) {
|
|
40920
40957
|
super(props);
|
|
@@ -40927,13 +40964,13 @@ class TextButton_TextButton extends external_React_.PureComponent {
|
|
|
40927
40964
|
this.button = external_React_default().createRef();
|
|
40928
40965
|
}
|
|
40929
40966
|
render() {
|
|
40930
|
-
const
|
|
40931
|
-
return (external_React_default().createElement(Ellipsis_Ellipsis,
|
|
40932
|
-
|
|
40933
|
-
|
|
40934
|
-
|
|
40935
|
-
|
|
40936
|
-
|
|
40967
|
+
const { skin, underline, weight, size, children, className, dataHook, fluid, ellipsis, showTooltip, tooltipProps, ariaLabel, ariaLabelledBy, ariaHaspopup, ariaExpanded, ...rest } = this.props;
|
|
40968
|
+
return (external_React_default().createElement(Ellipsis_Ellipsis, { ellipsis: ellipsis, showTooltip: showTooltip, ...tooltipProps, render: ({ ref, ellipsisClasses }) => (external_React_default().createElement(ButtonCore_ButtonCore, { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-haspopup": ariaHaspopup, "aria-expanded": ariaExpanded, ...rest, ...generateDataAttr(this.props, [
|
|
40969
|
+
'skin',
|
|
40970
|
+
'size',
|
|
40971
|
+
'weight',
|
|
40972
|
+
'underline',
|
|
40973
|
+
]), ref: this.button, className: TextButton_st_css_st(TextButton_st_css_classes.root, { skin, underline, weight, size, fluid, ellipsis }, className), "data-hook": dataHook, contentClassName: ellipsisClasses(), contentRef: ref }, children)) }));
|
|
40937
40974
|
}
|
|
40938
40975
|
}
|
|
40939
40976
|
TextButton_TextButton.displayName = 'TextButton';
|
|
@@ -41015,7 +41052,7 @@ TextButton_TextButton.defaultProps = {
|
|
|
41015
41052
|
|
|
41016
41053
|
|
|
41017
41054
|
|
|
41018
|
-
var Button_st_css_namespace_ = "
|
|
41055
|
+
var Button_st_css_namespace_ = "wds_1_98_0_Button";
|
|
41019
41056
|
var Button_st_css_style_ = classesRuntime.bind(null, Button_st_css_namespace_);
|
|
41020
41057
|
|
|
41021
41058
|
var Button_st_css_cssStates = statesRuntime.bind(null, Button_st_css_namespace_);
|
|
@@ -41023,7 +41060,7 @@ var Button_st_css_style = (/* unused pure expression or super */ null && (Button
|
|
|
41023
41060
|
var Button_st_css_st = Button_st_css_style_;
|
|
41024
41061
|
|
|
41025
41062
|
var Button_st_css_namespace = (/* unused pure expression or super */ null && (Button_st_css_namespace_));
|
|
41026
|
-
var Button_st_css_classes = {"root":"
|
|
41063
|
+
var Button_st_css_classes = {"root":"wds_1_98_0_Button__root","text-tiny-normal":"wds_1_98_0_StylableTypography__text-tiny-normal","text-small-normal":"wds_1_98_0_StylableTypography__text-small-normal","text-medium-normal":"wds_1_98_0_StylableTypography__text-medium-normal","text-tiny-bold":"wds_1_98_0_StylableTypography__text-tiny-bold"};
|
|
41027
41064
|
var Button_st_css_keyframes = {};
|
|
41028
41065
|
var Button_st_css_layers = {};
|
|
41029
41066
|
var Button_st_css_containers = {};
|
|
@@ -41069,7 +41106,6 @@ if (false) {}
|
|
|
41069
41106
|
|
|
41070
41107
|
|
|
41071
41108
|
|
|
41072
|
-
|
|
41073
41109
|
class Button_Button extends external_React_.PureComponent {
|
|
41074
41110
|
constructor(props) {
|
|
41075
41111
|
super(props);
|
|
@@ -41087,15 +41123,18 @@ class Button_Button extends external_React_.PureComponent {
|
|
|
41087
41123
|
render() {
|
|
41088
41124
|
const { button: buttonPropsDefaults } = this
|
|
41089
41125
|
.context;
|
|
41090
|
-
const
|
|
41091
|
-
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(Ellipsis_Ellipsis,
|
|
41126
|
+
const { skin = 'standard', priority = 'primary', size = buttonPropsDefaults.size, className, fullWidth, children, dataHook, ellipsis, showTooltip, tooltipProps = {}, ...rest } = this.props;
|
|
41127
|
+
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(Ellipsis_Ellipsis, { ellipsis: ellipsis, showTooltip: showTooltip, ...tooltipProps, render: ({ ref, ellipsisClasses }) => (external_React_default().createElement(ButtonCore_ButtonCore, { ...rest, ...generateDataAttr({
|
|
41128
|
+
...this.props,
|
|
41129
|
+
size,
|
|
41130
|
+
}, ['skin', 'size', 'priority']), ref: this.button, className: Button_st_css_st(Button_st_css_classes.root, {
|
|
41092
41131
|
fluid: !!fullWidth,
|
|
41093
41132
|
skin,
|
|
41094
41133
|
priority,
|
|
41095
41134
|
size,
|
|
41096
41135
|
ellipsis: !!ellipsis,
|
|
41097
41136
|
newColorsBranding,
|
|
41098
|
-
}, className), "data-hook": dataHook, contentClassName: ellipsisClasses(), contentRef: ref }
|
|
41137
|
+
}, className), "data-hook": dataHook, contentClassName: ellipsisClasses(), contentRef: ref }, children)) }))));
|
|
41099
41138
|
}
|
|
41100
41139
|
}
|
|
41101
41140
|
Button_Button.contextType = WixStyleReactDefaultsOverrideContext;
|
|
@@ -41140,7 +41179,6 @@ const ThemeContext_ThemeContext = external_React_default().createContext();
|
|
|
41140
41179
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/ThemeProvider/ThemeProviderConsumerBackwardCompatible.js
|
|
41141
41180
|
|
|
41142
41181
|
|
|
41143
|
-
|
|
41144
41182
|
/**
|
|
41145
41183
|
* This is a utility for every component that uses an icon to declare its defaults but also replace it with the theme context
|
|
41146
41184
|
* Usage Example:
|
|
@@ -41160,14 +41198,11 @@ const ThemeContext_ThemeContext = external_React_default().createContext();
|
|
|
41160
41198
|
* Note that this implementation is temporary and needed only to preserve backwards compatability for components with built-in icons (like CloseButton).
|
|
41161
41199
|
* It will be removed in the future once a <ThemeProvider/> will be required on the top of any theme, including the default one.
|
|
41162
41200
|
* This will assist in creating smaller bundle size for themes that would override the default icons. */
|
|
41163
|
-
const ThemeProviderConsumerBackwardCompatible = (
|
|
41164
|
-
|
|
41165
|
-
|
|
41166
|
-
|
|
41167
|
-
|
|
41168
|
-
} },
|
|
41169
|
-
external_React_default().createElement(ThemeContext_ThemeContext.Consumer, Object.assign({}, rest))))));
|
|
41170
|
-
};
|
|
41201
|
+
const ThemeProviderConsumerBackwardCompatible = ({ defaultIcons = {}, ...rest }) => (external_React_default().createElement(ThemeContext_ThemeContext.Consumer, null, context => (external_React_default().createElement(ThemeContext_ThemeContext.Provider, { value: {
|
|
41202
|
+
icons: { ...defaultIcons, ...(context && context.icons) },
|
|
41203
|
+
className: context && context.className,
|
|
41204
|
+
} },
|
|
41205
|
+
external_React_default().createElement(ThemeContext_ThemeContext.Consumer, { ...rest })))));
|
|
41171
41206
|
//# sourceMappingURL=ThemeProviderConsumerBackwardCompatible.js.map
|
|
41172
41207
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/wix-ui-icons-common/dist/esm/system/dist/components/Close.js
|
|
41173
41208
|
const o=({size:e,...s})=>external_React_.createElement("svg",{viewBox:"0 0 6 6",fill:"currentColor",width:e||"6",height:e||"6",...s},external_React_.createElement("path",{d:"M5.2 0 3 2.2.8 0 0 .8 2.2 3 0 5.3.8 6 3 3.8 5.2 6 6 5.3 3.8 3 6 .8z"}));o.displayName="Close";var Close_r=o;
|
|
@@ -41201,7 +41236,7 @@ const constants_SIZES = {
|
|
|
41201
41236
|
|
|
41202
41237
|
|
|
41203
41238
|
|
|
41204
|
-
var CloseButton_st_css_namespace_ = "
|
|
41239
|
+
var CloseButton_st_css_namespace_ = "wds_1_98_0_CloseButton";
|
|
41205
41240
|
var CloseButton_st_css_style_ = classesRuntime.bind(null, CloseButton_st_css_namespace_);
|
|
41206
41241
|
|
|
41207
41242
|
var CloseButton_st_css_cssStates = statesRuntime.bind(null, CloseButton_st_css_namespace_);
|
|
@@ -41209,7 +41244,7 @@ var CloseButton_st_css_style = (/* unused pure expression or super */ null && (C
|
|
|
41209
41244
|
var CloseButton_st_css_st = CloseButton_st_css_style_;
|
|
41210
41245
|
|
|
41211
41246
|
var CloseButton_st_css_namespace = (/* unused pure expression or super */ null && (CloseButton_st_css_namespace_));
|
|
41212
|
-
var CloseButton_st_css_classes = {"root":"
|
|
41247
|
+
var CloseButton_st_css_classes = {"root":"wds_1_98_0_CloseButton__root"};
|
|
41213
41248
|
var CloseButton_st_css_keyframes = {};
|
|
41214
41249
|
var CloseButton_st_css_layers = {};
|
|
41215
41250
|
var CloseButton_st_css_containers = {};
|
|
@@ -41229,7 +41264,6 @@ var CloseButton_st_css_vars = {"wds-border-radius-full":"--wds-border-radius-ful
|
|
|
41229
41264
|
|
|
41230
41265
|
|
|
41231
41266
|
|
|
41232
|
-
|
|
41233
41267
|
const childSize = '18px';
|
|
41234
41268
|
class CloseButton extends external_React_.PureComponent {
|
|
41235
41269
|
_renderCloseIcon(Icon, size) {
|
|
@@ -41247,8 +41281,8 @@ class CloseButton extends external_React_.PureComponent {
|
|
|
41247
41281
|
return CloseIcon;
|
|
41248
41282
|
}
|
|
41249
41283
|
render() {
|
|
41250
|
-
const
|
|
41251
|
-
return (external_React_default().createElement(ButtonCore_ButtonCore,
|
|
41284
|
+
const { skin, size, className, dataHook, children, ...rest } = this.props;
|
|
41285
|
+
return (external_React_default().createElement(ButtonCore_ButtonCore, { ...rest, className: CloseButton_st_css_st(CloseButton_st_css_classes.root, { skin, size }, className), ...generateDataAttr(this.props, ['skin', 'size']), "data-hook": dataHook }, children ? (external_React_default().cloneElement(children, {
|
|
41252
41286
|
size: childSize,
|
|
41253
41287
|
width: childSize,
|
|
41254
41288
|
height: childSize,
|
|
@@ -41323,7 +41357,7 @@ const FloatingNotification_constants_dataHooks = {
|
|
|
41323
41357
|
|
|
41324
41358
|
|
|
41325
41359
|
|
|
41326
|
-
var FloatingNotification_st_css_namespace_ = "
|
|
41360
|
+
var FloatingNotification_st_css_namespace_ = "wds_1_98_0_FloatingNotification";
|
|
41327
41361
|
var FloatingNotification_st_css_style_ = classesRuntime.bind(null, FloatingNotification_st_css_namespace_);
|
|
41328
41362
|
|
|
41329
41363
|
var FloatingNotification_st_css_cssStates = statesRuntime.bind(null, FloatingNotification_st_css_namespace_);
|
|
@@ -41331,7 +41365,7 @@ var FloatingNotification_st_css_style = (/* unused pure expression or super */ n
|
|
|
41331
41365
|
var FloatingNotification_st_css_st = FloatingNotification_st_css_style_;
|
|
41332
41366
|
|
|
41333
41367
|
var FloatingNotification_st_css_namespace = (/* unused pure expression or super */ null && (FloatingNotification_st_css_namespace_));
|
|
41334
|
-
var FloatingNotification_st_css_classes = {"root":"
|
|
41368
|
+
var FloatingNotification_st_css_classes = {"root":"wds_1_98_0_FloatingNotification__root","icon":"wds_1_98_0_FloatingNotification__icon","text":"wds_1_98_0_FloatingNotification__text","textButton":"wds_1_98_0_FloatingNotification__textButton","button":"wds_1_98_0_FloatingNotification__button","gap":"wds_1_98_0_FloatingNotification__gap","close":"wds_1_98_0_FloatingNotification__close"};
|
|
41335
41369
|
var FloatingNotification_st_css_keyframes = {};
|
|
41336
41370
|
var FloatingNotification_st_css_layers = {};
|
|
41337
41371
|
var FloatingNotification_st_css_containers = {};
|
|
@@ -41353,7 +41387,6 @@ var FloatingNotification_st_css_vars = {};
|
|
|
41353
41387
|
|
|
41354
41388
|
|
|
41355
41389
|
|
|
41356
|
-
|
|
41357
41390
|
const buttonPropTypes = prop_types_default().shape({
|
|
41358
41391
|
label: (prop_types_default()).node,
|
|
41359
41392
|
as: (prop_types_default()).node,
|
|
@@ -41391,13 +41424,13 @@ class FloatingNotification extends (external_React_default()).PureComponent {
|
|
|
41391
41424
|
}
|
|
41392
41425
|
_getTextButton() {
|
|
41393
41426
|
const { textButtonProps, type } = this.props;
|
|
41394
|
-
const { label
|
|
41395
|
-
return !isEmpty_default()(textButtonProps) ? (external_React_default().createElement(esm_TextButton_TextButton,
|
|
41427
|
+
const { label, ...rest } = textButtonProps;
|
|
41428
|
+
return !isEmpty_default()(textButtonProps) ? (external_React_default().createElement(esm_TextButton_TextButton, { ...rest, underline: "always", skin: type !== TYPES.dark ? 'dark' : 'light', size: "small", className: FloatingNotification_st_css_classes.textButton, dataHook: FloatingNotification_constants_dataHooks.textButton }, label)) : null;
|
|
41396
41429
|
}
|
|
41397
41430
|
_getButton() {
|
|
41398
41431
|
const { buttonProps, type } = this.props;
|
|
41399
|
-
const { label
|
|
41400
|
-
return !isEmpty_default()(buttonProps) ? (external_React_default().createElement(esm_Button_Button,
|
|
41432
|
+
const { label, ...rest } = buttonProps;
|
|
41433
|
+
return !isEmpty_default()(buttonProps) ? (external_React_default().createElement(esm_Button_Button, { ...rest, className: FloatingNotification_st_css_classes.button, size: "tiny", priority: type !== TYPES.dark ? 'secondary' : 'primary', skin: type !== TYPES.dark ? 'dark' : 'standard', dataHook: FloatingNotification_constants_dataHooks.button }, label)) : null;
|
|
41401
41434
|
}
|
|
41402
41435
|
_getClose() {
|
|
41403
41436
|
const { showCloseButton, onClose, type } = this.props;
|
|
@@ -41452,7 +41485,7 @@ FloatingNotification.defaultProps = {
|
|
|
41452
41485
|
|
|
41453
41486
|
|
|
41454
41487
|
|
|
41455
|
-
var Divider_st_css_namespace_ = "
|
|
41488
|
+
var Divider_st_css_namespace_ = "wds_1_98_0_Divider";
|
|
41456
41489
|
var Divider_st_css_style_ = classesRuntime.bind(null, Divider_st_css_namespace_);
|
|
41457
41490
|
|
|
41458
41491
|
var Divider_st_css_cssStates = statesRuntime.bind(null, Divider_st_css_namespace_);
|
|
@@ -41460,7 +41493,7 @@ var Divider_st_css_style = (/* unused pure expression or super */ null && (Divid
|
|
|
41460
41493
|
var Divider_st_css_st = Divider_st_css_style_;
|
|
41461
41494
|
|
|
41462
41495
|
var Divider_st_css_namespace = (/* unused pure expression or super */ null && (Divider_st_css_namespace_));
|
|
41463
|
-
var Divider_st_css_classes = {"root":"
|
|
41496
|
+
var Divider_st_css_classes = {"root":"wds_1_98_0_Divider__root"};
|
|
41464
41497
|
var Divider_st_css_keyframes = {};
|
|
41465
41498
|
var Divider_st_css_layers = {};
|
|
41466
41499
|
var Divider_st_css_containers = {};
|
|
@@ -41536,7 +41569,7 @@ const FormFieldError_o=({size:r,...t})=>external_React_.createElement("svg",{vie
|
|
|
41536
41569
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/wix-ui-icons-common/dist/esm/system/dist/components/FormFieldErrorSmall.js
|
|
41537
41570
|
const FormFieldErrorSmall_l=({size:r,...o})=>external_React_.createElement("svg",{viewBox:"0 0 2 10",fill:"currentColor",width:r||"2",height:r||"10",...o},external_React_.createElement("path",{fillRule:"evenodd",d:"M1,0 C1.55228475,0 2,0.44771525 2,1 L2,5 C2,5.55228475 1.55228475,6 1,6 C0.44771525,6 0,5.55228475 0,5 L0,1 C0,0.44771525 0.44771525,0 1,0 L1,0 Z M1,8 C1.55228475,8 2,8.44771525 2,9 C2,9.55228475 1.55228475,10 1,10 C0.44771525,10 0,9.55228475 0,9 C0,8.44771525 0.44771525,8 1,8 L1,8 Z"}));FormFieldErrorSmall_l.displayName="FormFieldErrorSmall";var FormFieldErrorSmall_t=FormFieldErrorSmall_l;
|
|
41538
41571
|
|
|
41539
|
-
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/Loader/Arc.js
|
|
41572
|
+
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/Loader/components/Arc.js
|
|
41540
41573
|
|
|
41541
41574
|
|
|
41542
41575
|
// taken from https://stackoverflow.com/a/18473154
|
|
@@ -41547,12 +41580,11 @@ function polarToCartesian(centerX, centerY, radius, angleInDegrees) {
|
|
|
41547
41580
|
y: centerY + radius * Math.sin(angleInRadians),
|
|
41548
41581
|
};
|
|
41549
41582
|
}
|
|
41550
|
-
/* eslint-disable max-params */
|
|
41551
41583
|
function describeArc(x, y, radius, startAngle, endAngle) {
|
|
41552
41584
|
const start = polarToCartesian(x, y, radius, endAngle);
|
|
41553
41585
|
const end = polarToCartesian(x, y, radius, startAngle);
|
|
41554
41586
|
const largeArcFlag = endAngle - startAngle <= 180 ? '0' : '1';
|
|
41555
|
-
|
|
41587
|
+
return [
|
|
41556
41588
|
'M',
|
|
41557
41589
|
start.x,
|
|
41558
41590
|
start.y,
|
|
@@ -41565,10 +41597,8 @@ function describeArc(x, y, radius, startAngle, endAngle) {
|
|
|
41565
41597
|
end.x,
|
|
41566
41598
|
end.y,
|
|
41567
41599
|
].join(' ');
|
|
41568
|
-
return d;
|
|
41569
41600
|
}
|
|
41570
|
-
|
|
41571
|
-
const Arc = ({ className, strokeWidth, viewBoxSize, angle }) => {
|
|
41601
|
+
const Arc = ({ className, strokeWidth, viewBoxSize, angle, }) => {
|
|
41572
41602
|
const d = describeArc(0, 0, (viewBoxSize - strokeWidth) / 2, 0, angle);
|
|
41573
41603
|
const viewBox = `-${viewBoxSize / 2} -${viewBoxSize / 2} ${viewBoxSize} ${viewBoxSize}`;
|
|
41574
41604
|
return (external_React_default().createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: viewBox, className: className },
|
|
@@ -41581,7 +41611,7 @@ Arc.propTypes = {
|
|
|
41581
41611
|
viewBoxSize: (prop_types_default()).number,
|
|
41582
41612
|
};
|
|
41583
41613
|
Arc.displayName = 'Arc';
|
|
41584
|
-
/* harmony default export */ const
|
|
41614
|
+
/* harmony default export */ const components_Arc = (Arc);
|
|
41585
41615
|
//# sourceMappingURL=Arc.js.map
|
|
41586
41616
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/Heading/Heading.st.css.js
|
|
41587
41617
|
|
|
@@ -41592,7 +41622,7 @@ Arc.displayName = 'Arc';
|
|
|
41592
41622
|
|
|
41593
41623
|
|
|
41594
41624
|
|
|
41595
|
-
var Heading_st_css_namespace_ = "
|
|
41625
|
+
var Heading_st_css_namespace_ = "wds_1_98_0_Heading";
|
|
41596
41626
|
var Heading_st_css_style_ = classesRuntime.bind(null, Heading_st_css_namespace_);
|
|
41597
41627
|
|
|
41598
41628
|
var Heading_st_css_cssStates = statesRuntime.bind(null, Heading_st_css_namespace_);
|
|
@@ -41600,7 +41630,7 @@ var Heading_st_css_style = (/* unused pure expression or super */ null && (Headi
|
|
|
41600
41630
|
var Heading_st_css_st = Heading_st_css_style_;
|
|
41601
41631
|
|
|
41602
41632
|
var Heading_st_css_namespace = (/* unused pure expression or super */ null && (Heading_st_css_namespace_));
|
|
41603
|
-
var Heading_st_css_classes = {"root":"
|
|
41633
|
+
var Heading_st_css_classes = {"root":"wds_1_98_0_Heading__root","heading-h1":"wds_1_98_0_StylableTypography__heading-h1","heading-h2":"wds_1_98_0_StylableTypography__heading-h2","heading-h3":"wds_1_98_0_StylableTypography__heading-h3","heading-h4":"wds_1_98_0_StylableTypography__heading-h4","heading-h5":"wds_1_98_0_StylableTypography__heading-h5","heading-h6":"wds_1_98_0_StylableTypography__heading-h6","heading-xl":"wds_1_98_0_StylableTypography__heading-xl","heading-l":"wds_1_98_0_StylableTypography__heading-l","heading-m":"wds_1_98_0_StylableTypography__heading-m","heading-s":"wds_1_98_0_StylableTypography__heading-s","heading-t":"wds_1_98_0_StylableTypography__heading-t","heading-xt":"wds_1_98_0_StylableTypography__heading-xt"};
|
|
41604
41634
|
var Heading_st_css_keyframes = {};
|
|
41605
41635
|
var Heading_st_css_layers = {};
|
|
41606
41636
|
var Heading_st_css_containers = {};
|
|
@@ -41614,7 +41644,11 @@ var Heading_st_css_vars = {"wds-color-text-standard-primary":"--wds-color-text-s
|
|
|
41614
41644
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/common/PropTypes/EllipsisCommon.js
|
|
41615
41645
|
|
|
41616
41646
|
|
|
41617
|
-
const EllipsisCommonProps =
|
|
41647
|
+
const EllipsisCommonProps = {
|
|
41648
|
+
ellipsis: Ellipsis_Ellipsis.propTypes['ellipsis'],
|
|
41649
|
+
showTooltip: Ellipsis_Ellipsis.propTypes['showTooltip'],
|
|
41650
|
+
...TooltipCommonProps,
|
|
41651
|
+
};
|
|
41618
41652
|
//# sourceMappingURL=EllipsisCommon.js.map
|
|
41619
41653
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/Heading/Heading.js
|
|
41620
41654
|
|
|
@@ -41626,7 +41660,6 @@ const EllipsisCommonProps = Object.assign({ ellipsis: Ellipsis_Ellipsis.propType
|
|
|
41626
41660
|
|
|
41627
41661
|
|
|
41628
41662
|
|
|
41629
|
-
|
|
41630
41663
|
const APPEARANCES = {
|
|
41631
41664
|
H1: 'H1',
|
|
41632
41665
|
H2: 'H2',
|
|
@@ -41651,9 +41684,10 @@ const sizeToAppearance = {
|
|
|
41651
41684
|
[SIZE.TINY]: APPEARANCES.H5,
|
|
41652
41685
|
[SIZE.EXTRA_TINY]: APPEARANCES.H6,
|
|
41653
41686
|
};
|
|
41654
|
-
const Heading = (
|
|
41655
|
-
|
|
41656
|
-
|
|
41687
|
+
const Heading = ({ light = false, ellipsis = false, appendTo = Ellipsis_Ellipsis.defaultProps.appendTo, flip = Ellipsis_Ellipsis.defaultProps.flip, fixed = Ellipsis_Ellipsis.defaultProps.fixed, placement = Ellipsis_Ellipsis.defaultProps.placement, zIndex = Ellipsis_Ellipsis.defaultProps.zIndex, enterDelay = Ellipsis_Ellipsis.defaultProps.enterDelay, exitDelay = Ellipsis_Ellipsis.defaultProps.exitDelay, showTooltip = Ellipsis_Ellipsis.defaultProps.showTooltip, ...propsWithNoDefaults }) => {
|
|
41688
|
+
const props = {
|
|
41689
|
+
...Ellipsis_Ellipsis.defaultProps,
|
|
41690
|
+
light,
|
|
41657
41691
|
ellipsis,
|
|
41658
41692
|
appendTo,
|
|
41659
41693
|
flip,
|
|
@@ -41662,45 +41696,92 @@ const Heading = (_a) => {
|
|
|
41662
41696
|
zIndex,
|
|
41663
41697
|
enterDelay,
|
|
41664
41698
|
exitDelay,
|
|
41665
|
-
showTooltip
|
|
41699
|
+
showTooltip,
|
|
41700
|
+
...propsWithNoDefaults,
|
|
41701
|
+
};
|
|
41666
41702
|
const { ellipsisProps, componentProps } = extractEllipsisProps(props);
|
|
41667
|
-
const { appearance, as, children, dataHook, size, id, light: _light
|
|
41703
|
+
const { appearance, as, children, dataHook, size, id, light: _light, ...headingProps } = componentProps;
|
|
41668
41704
|
(0,external_React_.useEffect)(() => {
|
|
41669
41705
|
if (appearance) {
|
|
41670
41706
|
utils_deprecationLog('<Heading/> - prop "appearance" is deprecated and will be removed in next major release, please use "size" property instead.');
|
|
41671
41707
|
}
|
|
41672
41708
|
}, [appearance]);
|
|
41673
41709
|
const headingType = sizeToAppearance[size] || appearance || sizeToAppearance[SIZE.EXTRA_LARGE];
|
|
41674
|
-
return (external_React_default().createElement(WixStyleReactMaskingContext.Consumer, null, ({ maskingClassNames }) => (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(Ellipsis_Ellipsis,
|
|
41710
|
+
return (external_React_default().createElement(WixStyleReactMaskingContext.Consumer, null, ({ maskingClassNames }) => (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(Ellipsis_Ellipsis, { ...ellipsisProps, wrapperClassName: Heading_st_css_st(Heading_st_css_classes.root, {
|
|
41675
41711
|
appearance: headingType,
|
|
41676
41712
|
size: newColorsBranding ? size : undefined,
|
|
41677
|
-
}), render: ({ ref, ellipsisClasses, ellipsisInlineStyle }) => external_React_default().createElement(as || headingType.toLowerCase(),
|
|
41678
|
-
|
|
41713
|
+
}), render: ({ ref, ellipsisClasses, ellipsisInlineStyle }) => external_React_default().createElement(as || headingType.toLowerCase(), {
|
|
41714
|
+
...headingProps,
|
|
41715
|
+
id,
|
|
41716
|
+
ref,
|
|
41717
|
+
style: ellipsisInlineStyle,
|
|
41718
|
+
'data-hook': dataHook,
|
|
41719
|
+
className: Heading_st_css_st(Heading_st_css_classes.root, { light, appearance: headingType, newColorsBranding }, ellipsisClasses(props.className), maskingClassNames),
|
|
41720
|
+
'data-appearance': appearance,
|
|
41721
|
+
'data-size': size,
|
|
41722
|
+
'data-light': light,
|
|
41723
|
+
'data-mask': !!maskingClassNames,
|
|
41724
|
+
'data-id': id,
|
|
41725
|
+
}, children) }))))));
|
|
41679
41726
|
};
|
|
41680
41727
|
Heading.displayName = 'Heading';
|
|
41681
|
-
Heading.propTypes =
|
|
41728
|
+
Heading.propTypes = {
|
|
41729
|
+
...EllipsisCommonProps,
|
|
41682
41730
|
/** When true, text that is longer than it's container will be truncated to a single line followed by ellipsis. Otherwise the text will break into several lines. */
|
|
41683
|
-
ellipsis: (prop_types_default()).bool,
|
|
41731
|
+
ellipsis: (prop_types_default()).bool,
|
|
41684
41732
|
/** maxLines truncates text at a specific number of lines. */
|
|
41685
|
-
maxLines: (prop_types_default()).number,
|
|
41733
|
+
maxLines: (prop_types_default()).number,
|
|
41686
41734
|
/** Applies a data-hook HTML attribute that can be used in the tests. */
|
|
41687
|
-
dataHook: (prop_types_default()).string,
|
|
41735
|
+
dataHook: (prop_types_default()).string,
|
|
41688
41736
|
/** Renders any kind of content within a heading. Usually it’s a text string. */
|
|
41689
|
-
children: (prop_types_default()).any,
|
|
41737
|
+
children: (prop_types_default()).any,
|
|
41690
41738
|
/** Invert heading style so it can be used on a dark or image background. */
|
|
41691
|
-
light: (prop_types_default()).bool,
|
|
41739
|
+
light: (prop_types_default()).bool,
|
|
41692
41740
|
/** this prop is deprecated and should not be used
|
|
41693
41741
|
* @deprecated
|
|
41694
41742
|
*/
|
|
41695
|
-
appearance: prop_types_default().oneOf(Object.keys(APPEARANCES)),
|
|
41743
|
+
appearance: prop_types_default().oneOf(Object.keys(APPEARANCES)),
|
|
41696
41744
|
/** Renders the heading as any other given HTML tag */
|
|
41697
|
-
as: (prop_types_default()).string,
|
|
41745
|
+
as: (prop_types_default()).string,
|
|
41698
41746
|
/** Controls the heading's visual size and HTML tag appearance. HTML tag can be overridden with ‘as’ prop. */
|
|
41699
|
-
size: prop_types_default().oneOf(Object.values(SIZE)),
|
|
41747
|
+
size: prop_types_default().oneOf(Object.values(SIZE)),
|
|
41700
41748
|
/** Identifies the element that labels or describes the text element */
|
|
41701
|
-
id: (prop_types_default()).string
|
|
41749
|
+
id: (prop_types_default()).string,
|
|
41750
|
+
};
|
|
41702
41751
|
/* harmony default export */ const Heading_Heading = (Heading);
|
|
41703
41752
|
//# sourceMappingURL=Heading.js.map
|
|
41753
|
+
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/Loader/Loader.constants.js
|
|
41754
|
+
const SIZES_TO_PIXELS_MAP = {
|
|
41755
|
+
tiny: 18,
|
|
41756
|
+
small: 30,
|
|
41757
|
+
medium: 54,
|
|
41758
|
+
large: 102,
|
|
41759
|
+
};
|
|
41760
|
+
const SIZE_TO_STROKE_WIDTH_MAP = {
|
|
41761
|
+
tiny: 3,
|
|
41762
|
+
small: 4,
|
|
41763
|
+
medium: 4,
|
|
41764
|
+
large: 4,
|
|
41765
|
+
};
|
|
41766
|
+
const SIZE_TO_ARC_ANGLE_MAP = {
|
|
41767
|
+
tiny: {
|
|
41768
|
+
light: 216,
|
|
41769
|
+
dark: 144,
|
|
41770
|
+
},
|
|
41771
|
+
small: {
|
|
41772
|
+
light: 216,
|
|
41773
|
+
dark: 144,
|
|
41774
|
+
},
|
|
41775
|
+
medium: {
|
|
41776
|
+
light: 108,
|
|
41777
|
+
dark: 108,
|
|
41778
|
+
},
|
|
41779
|
+
large: {
|
|
41780
|
+
light: 180,
|
|
41781
|
+
dark: 180,
|
|
41782
|
+
},
|
|
41783
|
+
};
|
|
41784
|
+
//# sourceMappingURL=Loader.constants.js.map
|
|
41704
41785
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/Loader/Loader.st.css.js
|
|
41705
41786
|
|
|
41706
41787
|
|
|
@@ -41709,7 +41790,7 @@ Heading.propTypes = Object.assign(Object.assign({}, EllipsisCommonProps), {
|
|
|
41709
41790
|
|
|
41710
41791
|
|
|
41711
41792
|
|
|
41712
|
-
var Loader_st_css_namespace_ = "
|
|
41793
|
+
var Loader_st_css_namespace_ = "wds_1_98_0_Loader";
|
|
41713
41794
|
var Loader_st_css_style_ = classesRuntime.bind(null, Loader_st_css_namespace_);
|
|
41714
41795
|
|
|
41715
41796
|
var Loader_st_css_cssStates = statesRuntime.bind(null, Loader_st_css_namespace_);
|
|
@@ -41717,8 +41798,8 @@ var Loader_st_css_style = (/* unused pure expression or super */ null && (Loader
|
|
|
41717
41798
|
var Loader_st_css_st = Loader_st_css_style_;
|
|
41718
41799
|
|
|
41719
41800
|
var Loader_st_css_namespace = (/* unused pure expression or super */ null && (Loader_st_css_namespace_));
|
|
41720
|
-
var Loader_st_css_classes = {"root":"
|
|
41721
|
-
var Loader_st_css_keyframes = {"rotation":"
|
|
41801
|
+
var Loader_st_css_classes = {"root":"wds_1_98_0_Loader__root","statusIndicator":"wds_1_98_0_Loader__statusIndicator","arcsContainer":"wds_1_98_0_Loader__arcsContainer","darkArc":"wds_1_98_0_Loader__darkArc","lightArc":"wds_1_98_0_Loader__lightArc","text":"wds_1_98_0_Loader__text"};
|
|
41802
|
+
var Loader_st_css_keyframes = {"rotation":"wds_1_98_0_Loader__rotation","staggered-rotation":"wds_1_98_0_Loader__staggered-rotation"};
|
|
41722
41803
|
var Loader_st_css_layers = {};
|
|
41723
41804
|
var Loader_st_css_containers = {};
|
|
41724
41805
|
var Loader_st_css_stVars = {};
|
|
@@ -41736,99 +41817,56 @@ var Loader_st_css_vars = {};
|
|
|
41736
41817
|
|
|
41737
41818
|
|
|
41738
41819
|
|
|
41739
|
-
|
|
41740
|
-
tiny: {
|
|
41741
|
-
light: 216,
|
|
41742
|
-
dark: 144,
|
|
41743
|
-
},
|
|
41744
|
-
small: {
|
|
41745
|
-
light: 216,
|
|
41746
|
-
dark: 144,
|
|
41747
|
-
},
|
|
41748
|
-
medium: {
|
|
41749
|
-
light: 108,
|
|
41750
|
-
dark: 108,
|
|
41751
|
-
},
|
|
41752
|
-
large: {
|
|
41753
|
-
light: 180,
|
|
41754
|
-
dark: 180,
|
|
41755
|
-
},
|
|
41756
|
-
};
|
|
41757
|
-
const strokeWidths = {
|
|
41758
|
-
tiny: 3,
|
|
41759
|
-
small: 4,
|
|
41760
|
-
medium: 4,
|
|
41761
|
-
large: 4,
|
|
41762
|
-
};
|
|
41763
|
-
const sizesInPx = {
|
|
41764
|
-
tiny: 18,
|
|
41765
|
-
small: 30,
|
|
41766
|
-
medium: 54,
|
|
41767
|
-
large: 102,
|
|
41768
|
-
};
|
|
41820
|
+
|
|
41769
41821
|
const FULL_CIRCLE_ANGLE = 359;
|
|
41770
|
-
const
|
|
41822
|
+
const sizeToSuccessIconMap = {
|
|
41771
41823
|
tiny: external_React_default().createElement(g, null),
|
|
41772
41824
|
small: external_React_default().createElement(a, null),
|
|
41773
41825
|
medium: external_React_default().createElement(CircleLoaderCheck_o, null),
|
|
41774
41826
|
large: external_React_default().createElement(CircleLoaderCheck_o, null),
|
|
41775
41827
|
};
|
|
41776
|
-
const
|
|
41828
|
+
const sizeToErrorIconMap = {
|
|
41777
41829
|
tiny: external_React_default().createElement(C, null),
|
|
41778
41830
|
small: external_React_default().createElement(FormFieldErrorSmall_t, null),
|
|
41779
41831
|
medium: external_React_default().createElement(C, null),
|
|
41780
41832
|
large: external_React_default().createElement(C, null),
|
|
41781
41833
|
};
|
|
41782
|
-
|
|
41783
|
-
|
|
41784
|
-
const
|
|
41785
|
-
const
|
|
41834
|
+
const Loader = ({ size = 'medium', color = 'blue', text, status = 'loading', statusMessage, dataHook, }) => {
|
|
41835
|
+
const loader = (0,external_React_.useMemo)(() => {
|
|
41836
|
+
const successIcon = sizeToSuccessIconMap[size];
|
|
41837
|
+
const errorIcon = sizeToErrorIconMap[size];
|
|
41838
|
+
const strokeWidth = SIZE_TO_STROKE_WIDTH_MAP[size];
|
|
41839
|
+
const sizeInPx = SIZES_TO_PIXELS_MAP[size];
|
|
41786
41840
|
const shouldShowFullCircle = status !== 'loading';
|
|
41787
|
-
const lightArcAngle =
|
|
41788
|
-
?
|
|
41789
|
-
:
|
|
41790
|
-
const darkArcAngle =
|
|
41791
|
-
?
|
|
41792
|
-
:
|
|
41793
|
-
|
|
41794
|
-
const successIcon = sizeToSuccessIcon[size];
|
|
41795
|
-
const errorIcon = sizeToErrorIcon[size];
|
|
41796
|
-
const strokeWidth = strokeWidths[size];
|
|
41797
|
-
const loader = (external_React_default().createElement("div", { className: Loader_st_css_classes.arcsContainer, style: {
|
|
41841
|
+
const lightArcAngle = shouldShowFullCircle
|
|
41842
|
+
? FULL_CIRCLE_ANGLE
|
|
41843
|
+
: SIZE_TO_ARC_ANGLE_MAP[size].light;
|
|
41844
|
+
const darkArcAngle = shouldShowFullCircle
|
|
41845
|
+
? FULL_CIRCLE_ANGLE
|
|
41846
|
+
: SIZE_TO_ARC_ANGLE_MAP[size].dark;
|
|
41847
|
+
return (external_React_default().createElement("div", { className: Loader_st_css_classes.arcsContainer, style: {
|
|
41798
41848
|
width: `${sizeInPx}px`,
|
|
41799
41849
|
height: `${sizeInPx}px`,
|
|
41800
41850
|
} },
|
|
41801
|
-
external_React_default().createElement(
|
|
41802
|
-
external_React_default().createElement(
|
|
41851
|
+
external_React_default().createElement(components_Arc, { angle: lightArcAngle, className: Loader_st_css_classes.lightArc, strokeWidth: strokeWidth, viewBoxSize: sizeInPx }),
|
|
41852
|
+
external_React_default().createElement(components_Arc, { angle: darkArcAngle, className: Loader_st_css_classes.darkArc, strokeWidth: strokeWidth, viewBoxSize: sizeInPx }),
|
|
41803
41853
|
status !== 'loading' && (external_React_default().createElement("div", { className: Loader_st_css_classes.statusIndicator },
|
|
41804
41854
|
status === 'success' && successIcon,
|
|
41805
41855
|
status === 'error' && errorIcon))));
|
|
41806
|
-
|
|
41807
|
-
|
|
41808
|
-
|
|
41809
|
-
|
|
41810
|
-
|
|
41811
|
-
}
|
|
41812
|
-
Loader.displayName = 'Loader';
|
|
41856
|
+
}, [status, size]);
|
|
41857
|
+
return (external_React_default().createElement("div", { className: Loader_st_css_st(Loader_st_css_classes.root, { size, color, status }), "data-hook": dataHook, "data-size": size, "data-color": color, "data-status": status },
|
|
41858
|
+
statusMessage ? (external_React_default().createElement(Tooltip_Tooltip, { content: statusMessage, appendTo: "window", dataHook: "loader-tooltip" }, loader)) : (loader),
|
|
41859
|
+
size !== 'tiny' && text && (external_React_default().createElement("div", { className: Loader_st_css_classes.text },
|
|
41860
|
+
external_React_default().createElement(Heading_Heading, { size: "extraTiny", dataHook: "loader-text" }, text)))));
|
|
41861
|
+
};
|
|
41813
41862
|
Loader.propTypes = {
|
|
41814
|
-
/** Applies a data-hook HTML attribute to be used in the tests */
|
|
41815
41863
|
dataHook: (prop_types_default()).string,
|
|
41816
|
-
/** Controls the size of the loader */
|
|
41817
41864
|
size: prop_types_default().oneOf(['tiny', 'small', 'medium', 'large']),
|
|
41818
|
-
/** Controls the skin of the loader */
|
|
41819
41865
|
color: prop_types_default().oneOf(['blue', 'white']),
|
|
41820
|
-
/** Defines a text message to show below the loader */
|
|
41821
41866
|
text: (prop_types_default()).node,
|
|
41822
|
-
/** Specifies the status of a loader */
|
|
41823
41867
|
status: prop_types_default().oneOf(['loading', 'success', 'error']),
|
|
41824
|
-
/** Defines the message that explains the current status of the loader. Message will be displayed on loader hover. If not given or empty there will be no tooltip. */
|
|
41825
41868
|
statusMessage: (prop_types_default()).string,
|
|
41826
41869
|
};
|
|
41827
|
-
Loader.defaultProps = {
|
|
41828
|
-
size: 'medium',
|
|
41829
|
-
color: 'blue',
|
|
41830
|
-
status: 'loading',
|
|
41831
|
-
};
|
|
41832
41870
|
/* harmony default export */ const Loader_Loader = (Loader);
|
|
41833
41871
|
//# sourceMappingURL=Loader.js.map
|
|
41834
41872
|
// EXTERNAL MODULE: ../../../node_modules/@babel/runtime/helpers/extends.js
|
|
@@ -43515,7 +43553,7 @@ var he_default = /*#__PURE__*/__webpack_require__.n(he);
|
|
|
43515
43553
|
|
|
43516
43554
|
|
|
43517
43555
|
|
|
43518
|
-
var ListItemSelect_st_css_namespace_ = "
|
|
43556
|
+
var ListItemSelect_st_css_namespace_ = "wds_1_98_0_ListItemSelect";
|
|
43519
43557
|
var ListItemSelect_st_css_style_ = classesRuntime.bind(null, ListItemSelect_st_css_namespace_);
|
|
43520
43558
|
|
|
43521
43559
|
var ListItemSelect_st_css_cssStates = statesRuntime.bind(null, ListItemSelect_st_css_namespace_);
|
|
@@ -43523,7 +43561,7 @@ var ListItemSelect_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
43523
43561
|
var ListItemSelect_st_css_st = ListItemSelect_st_css_style_;
|
|
43524
43562
|
|
|
43525
43563
|
var ListItemSelect_st_css_namespace = (/* unused pure expression or super */ null && (ListItemSelect_st_css_namespace_));
|
|
43526
|
-
var ListItemSelect_st_css_classes = {"root":"
|
|
43564
|
+
var ListItemSelect_st_css_classes = {"root":"wds_1_98_0_ListItemSelect__root","fullWidthContent":"wds_1_98_0_ListItemSelect__fullWidthContent","textsWrapper":"wds_1_98_0_ListItemSelect__textsWrapper","titleWrapper":"wds_1_98_0_ListItemSelect__titleWrapper","title":"wds_1_98_0_ListItemSelect__title","prefix":"wds_1_98_0_ListItemSelect__prefix","suffix":"wds_1_98_0_ListItemSelect__suffix","subtitle":"wds_1_98_0_ListItemSelect__subtitle"};
|
|
43527
43565
|
var ListItemSelect_st_css_keyframes = {};
|
|
43528
43566
|
var ListItemSelect_st_css_layers = {};
|
|
43529
43567
|
var ListItemSelect_st_css_containers = {};
|
|
@@ -43549,7 +43587,7 @@ const CheckboxChecked_o=({size:e,...h})=>external_React_.createElement("svg",{vi
|
|
|
43549
43587
|
|
|
43550
43588
|
|
|
43551
43589
|
|
|
43552
|
-
var Checkbox_st_css_namespace_ = "
|
|
43590
|
+
var Checkbox_st_css_namespace_ = "wds_1_98_0_Checkbox";
|
|
43553
43591
|
var Checkbox_st_css_style_ = classesRuntime.bind(null, Checkbox_st_css_namespace_);
|
|
43554
43592
|
|
|
43555
43593
|
var Checkbox_st_css_cssStates = statesRuntime.bind(null, Checkbox_st_css_namespace_);
|
|
@@ -43557,7 +43595,7 @@ var Checkbox_st_css_style = (/* unused pure expression or super */ null && (Chec
|
|
|
43557
43595
|
var Checkbox_st_css_st = Checkbox_st_css_style_;
|
|
43558
43596
|
|
|
43559
43597
|
var Checkbox_st_css_namespace = (/* unused pure expression or super */ null && (Checkbox_st_css_namespace_));
|
|
43560
|
-
var Checkbox_st_css_classes = {"root":"
|
|
43598
|
+
var Checkbox_st_css_classes = {"root":"wds_1_98_0_Checkbox__root","label":"wds_1_98_0_Checkbox__label","labelInner":"wds_1_98_0_Checkbox__labelInner","children":"wds_1_98_0_Checkbox__children","checkbox":"wds_1_98_0_Checkbox__checkbox","inner":"wds_1_98_0_Checkbox__inner","outer":"wds_1_98_0_Checkbox__outer"};
|
|
43561
43599
|
var Checkbox_st_css_keyframes = {};
|
|
43562
43600
|
var Checkbox_st_css_layers = {};
|
|
43563
43601
|
var Checkbox_st_css_containers = {};
|
|
@@ -43635,12 +43673,11 @@ class Checkbox extends external_React_.PureComponent {
|
|
|
43635
43673
|
this.checkboxRef.current && this.checkboxRef.current.focus();
|
|
43636
43674
|
};
|
|
43637
43675
|
this._handleKeyDown = (event) => {
|
|
43638
|
-
var _a, _b;
|
|
43639
43676
|
if (event.keyCode === 32 && this.inputRef.current) {
|
|
43640
43677
|
const onChangeEvent = {
|
|
43641
43678
|
target: { checked: !this.inputRef.current.checked },
|
|
43642
43679
|
};
|
|
43643
|
-
|
|
43680
|
+
this.props.onChange?.(onChangeEvent);
|
|
43644
43681
|
event.preventDefault();
|
|
43645
43682
|
}
|
|
43646
43683
|
};
|
|
@@ -43662,7 +43699,7 @@ class Checkbox extends external_React_.PureComponent {
|
|
|
43662
43699
|
const isTooltipDisabled = (tooltipProps && tooltipProps.disabled) ||
|
|
43663
43700
|
disabled ||
|
|
43664
43701
|
(!tooltipContent && (!hasError || !errorMessage));
|
|
43665
|
-
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement("div",
|
|
43702
|
+
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement("div", { "data-hook": dataHook, className: Checkbox_st_css_st(Checkbox_st_css_classes.root, {
|
|
43666
43703
|
vAlign,
|
|
43667
43704
|
selectionArea,
|
|
43668
43705
|
selectionAreaSkin,
|
|
@@ -43676,11 +43713,11 @@ class Checkbox extends external_React_.PureComponent {
|
|
|
43676
43713
|
indeterminate,
|
|
43677
43714
|
newColorsBranding,
|
|
43678
43715
|
ellipsis,
|
|
43679
|
-
}, className), onFocus: focusableOnFocus, onBlur: focusableOnBlur, tabIndex: disabled ? undefined : 0
|
|
43716
|
+
}, className), onFocus: focusableOnFocus, onBlur: focusableOnBlur, tabIndex: disabled ? undefined : 0, ...this._getDataAttributes(), role: "checkbox", "aria-checked": checked, ref: this.checkboxRef, onKeyDown: disabled ? undefined : this._handleKeyDown },
|
|
43680
43717
|
external_React_default().createElement("input", { ref: this.inputRef, "data-hook": Checkbox_constants_dataHooks.input, type: "checkbox", id: id, tabIndex: disabled ? undefined : 0, checked: checked, disabled: disabled, onChange: disabled ? undefined : onChange, style: { display: 'none' } }),
|
|
43681
43718
|
external_React_default().createElement("label", { htmlFor: id, "data-hook": Checkbox_constants_dataHooks.label, className: Checkbox_st_css_classes.label },
|
|
43682
43719
|
external_React_default().createElement("div", { className: Checkbox_st_css_classes.labelInner, style: { padding: selectionAreaPadding } },
|
|
43683
|
-
external_React_default().createElement(Tooltip_Tooltip,
|
|
43720
|
+
external_React_default().createElement(Tooltip_Tooltip, { dataHook: Checkbox_constants_dataHooks.boxTooltip, disabled: isTooltipDisabled, content: tooltipContent || errorMessage || ' ', textAlign: "center", maxWidth: 230, exitDelay: 150, zIndex: 10000, ...tooltipProps },
|
|
43684
43721
|
external_React_default().createElement("div", { className: Checkbox_st_css_classes.outer },
|
|
43685
43722
|
external_React_default().createElement("div", { "data-hook": Checkbox_constants_dataHooks.box, className: Checkbox_st_css_classes.checkbox },
|
|
43686
43723
|
external_React_default().createElement("div", { className: Checkbox_st_css_classes.inner, onClick: e => e.stopPropagation() }, indeterminate ? (external_React_default().createElement(CheckboxIndeterminate_o, null)) : (external_React_default().createElement(CheckboxChecked_r, null)))))),
|
|
@@ -43729,7 +43766,7 @@ Checkbox.defaultProps = {
|
|
|
43729
43766
|
|
|
43730
43767
|
|
|
43731
43768
|
|
|
43732
|
-
var default_scroll_bar_st_css_namespace_ = "
|
|
43769
|
+
var default_scroll_bar_st_css_namespace_ = "wds_1_98_0_defaultscrollbar";
|
|
43733
43770
|
var default_scroll_bar_st_css_style_ = classesRuntime.bind(null, default_scroll_bar_st_css_namespace_);
|
|
43734
43771
|
|
|
43735
43772
|
var default_scroll_bar_st_css_cssStates = statesRuntime.bind(null, default_scroll_bar_st_css_namespace_);
|
|
@@ -43737,7 +43774,7 @@ var default_scroll_bar_st_css_style = (/* unused pure expression or super */ nul
|
|
|
43737
43774
|
var default_scroll_bar_st_css_st = (/* unused pure expression or super */ null && (default_scroll_bar_st_css_style_));
|
|
43738
43775
|
|
|
43739
43776
|
var default_scroll_bar_st_css_namespace = (/* unused pure expression or super */ null && (default_scroll_bar_st_css_namespace_));
|
|
43740
|
-
var default_scroll_bar_st_css_classes = {"root":"
|
|
43777
|
+
var default_scroll_bar_st_css_classes = {"root":"wds_1_98_0_defaultscrollbar__root","defaultScrollBar":"wds_1_98_0_defaultscrollbar__defaultScrollBar"};
|
|
43741
43778
|
var default_scroll_bar_st_css_keyframes = {};
|
|
43742
43779
|
var default_scroll_bar_st_css_layers = {};
|
|
43743
43780
|
var default_scroll_bar_st_css_containers = {};
|
|
@@ -43755,7 +43792,7 @@ var default_scroll_bar_st_css_vars = {"wds-color-blue-100":"--wds-color-blue-100
|
|
|
43755
43792
|
|
|
43756
43793
|
|
|
43757
43794
|
|
|
43758
|
-
var Box_st_css_namespace_ = "
|
|
43795
|
+
var Box_st_css_namespace_ = "wds_1_98_0_Box";
|
|
43759
43796
|
var Box_st_css_style_ = classesRuntime.bind(null, Box_st_css_namespace_);
|
|
43760
43797
|
|
|
43761
43798
|
var Box_st_css_cssStates = statesRuntime.bind(null, Box_st_css_namespace_);
|
|
@@ -43763,12 +43800,12 @@ var Box_st_css_style = (/* unused pure expression or super */ null && (Box_st_cs
|
|
|
43763
43800
|
var Box_st_css_st = Box_st_css_style_;
|
|
43764
43801
|
|
|
43765
43802
|
var Box_st_css_namespace = (/* unused pure expression or super */ null && (Box_st_css_namespace_));
|
|
43766
|
-
var Box_st_css_classes = {"root":"
|
|
43803
|
+
var Box_st_css_classes = {"root":"wds_1_98_0_Box__root","defaultScrollBar":"wds_1_98_0_defaultscrollbar__defaultScrollBar"};
|
|
43767
43804
|
var Box_st_css_keyframes = {};
|
|
43768
43805
|
var Box_st_css_layers = {};
|
|
43769
43806
|
var Box_st_css_containers = {};
|
|
43770
43807
|
var Box_st_css_stVars = {};
|
|
43771
|
-
var Box_st_css_vars = {"gap":"--
|
|
43808
|
+
var Box_st_css_vars = {"gap":"--wds_1_98_0_Box-gap"};
|
|
43772
43809
|
|
|
43773
43810
|
|
|
43774
43811
|
|
|
@@ -43781,7 +43818,7 @@ var Box_st_css_vars = {"gap":"--wds_1_95_1_Box-gap"};
|
|
|
43781
43818
|
|
|
43782
43819
|
|
|
43783
43820
|
|
|
43784
|
-
var spacing_st_css_namespace_ = "
|
|
43821
|
+
var spacing_st_css_namespace_ = "wds_1_98_0_spacing";
|
|
43785
43822
|
var spacing_st_css_style_ = classesRuntime.bind(null, spacing_st_css_namespace_);
|
|
43786
43823
|
|
|
43787
43824
|
var spacing_st_css_cssStates = statesRuntime.bind(null, spacing_st_css_namespace_);
|
|
@@ -43789,7 +43826,7 @@ var spacing_st_css_style = (/* unused pure expression or super */ null && (spaci
|
|
|
43789
43826
|
var spacing_st_css_st = (/* unused pure expression or super */ null && (spacing_st_css_style_));
|
|
43790
43827
|
|
|
43791
43828
|
var spacing_st_css_namespace = (/* unused pure expression or super */ null && (spacing_st_css_namespace_));
|
|
43792
|
-
var spacing_st_css_classes = {"root":"
|
|
43829
|
+
var spacing_st_css_classes = {"root":"wds_1_98_0_spacing__root"};
|
|
43793
43830
|
var spacing_st_css_keyframes = {};
|
|
43794
43831
|
var spacing_st_css_layers = {};
|
|
43795
43832
|
var spacing_st_css_containers = {};
|
|
@@ -43852,7 +43889,6 @@ const spacingValues = {
|
|
|
43852
43889
|
|
|
43853
43890
|
|
|
43854
43891
|
|
|
43855
|
-
|
|
43856
43892
|
/** In case the value is a number, it's multiplied by the defined spacing unit.
|
|
43857
43893
|
* Otherwise - there are three options:
|
|
43858
43894
|
* 1. A Spacing Token - SP1, SP2, etc. - where the number is multiplied by the spacing unit.
|
|
@@ -43883,11 +43919,13 @@ const formatSizeValue = value => {
|
|
|
43883
43919
|
if (typeof value !== 'undefined')
|
|
43884
43920
|
return isFinite(value) ? `${value}px` : `${value}`;
|
|
43885
43921
|
};
|
|
43886
|
-
const Box = (0,external_React_.forwardRef)((
|
|
43887
|
-
|
|
43888
|
-
|
|
43889
|
-
|
|
43890
|
-
|
|
43922
|
+
const Box = (0,external_React_.forwardRef)(({ dataHook, gap, children, className, style, inline = false, direction = 'horizontal', align, verticalAlign, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginTop, marginRight, marginBottom, marginLeft, minWidth, maxWidth, width, minHeight, maxHeight, height, color, backgroundColor, border, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor,
|
|
43923
|
+
// Excluded props (which are handled above and should not be spread into `style`)
|
|
43924
|
+
'data-hook': dataHookByKebabCase, flexDirection, justifyContent, alignItems, ...nativeStyles }, ref) => {
|
|
43925
|
+
const complexSpacingValues = (0,external_React_.useMemo)(() => Object.entries({ padding, margin }).reduce((accu, [key, value]) => ({
|
|
43926
|
+
...accu,
|
|
43927
|
+
[key]: formatComplexSpacingValue(value),
|
|
43928
|
+
}), {}), [padding, margin]);
|
|
43891
43929
|
const singleSpacingValues = (0,external_React_.useMemo)(() => Object.entries({
|
|
43892
43930
|
paddingTop,
|
|
43893
43931
|
paddingRight,
|
|
@@ -43897,7 +43935,10 @@ const Box = (0,external_React_.forwardRef)((_a, ref) => {
|
|
|
43897
43935
|
marginRight,
|
|
43898
43936
|
marginBottom,
|
|
43899
43937
|
marginLeft,
|
|
43900
|
-
}).reduce((accu, [key, value]) => (
|
|
43938
|
+
}).reduce((accu, [key, value]) => ({
|
|
43939
|
+
...accu,
|
|
43940
|
+
[key]: formatSingleSpacingValue(value),
|
|
43941
|
+
}), {}), [
|
|
43901
43942
|
paddingTop,
|
|
43902
43943
|
paddingRight,
|
|
43903
43944
|
paddingBottom,
|
|
@@ -43914,26 +43955,47 @@ const Box = (0,external_React_.forwardRef)((_a, ref) => {
|
|
|
43914
43955
|
minHeight,
|
|
43915
43956
|
maxHeight,
|
|
43916
43957
|
height,
|
|
43917
|
-
}).reduce((accu, [key, value]) => (
|
|
43958
|
+
}).reduce((accu, [key, value]) => ({
|
|
43959
|
+
...accu,
|
|
43960
|
+
[key]: formatSizeValue(value),
|
|
43961
|
+
}), {}), [minWidth, maxWidth, width, minHeight, maxHeight, height]);
|
|
43918
43962
|
const rootClassNames = Box_st_css_st(Box_st_css_classes.root, {
|
|
43919
43963
|
inline,
|
|
43920
43964
|
direction,
|
|
43921
43965
|
alignItems: align,
|
|
43922
43966
|
justifyContent: verticalAlign,
|
|
43923
43967
|
}, className);
|
|
43924
|
-
const rootStyles =
|
|
43968
|
+
const rootStyles = {
|
|
43969
|
+
...style,
|
|
43970
|
+
// Spacing
|
|
43971
|
+
...singleSpacingValues,
|
|
43972
|
+
...complexSpacingValues,
|
|
43973
|
+
// Sizing
|
|
43974
|
+
...sizeValues,
|
|
43925
43975
|
// Styling
|
|
43926
|
-
color: colors_st_css_stVars[color] || color,
|
|
43927
|
-
|
|
43928
|
-
|
|
43929
|
-
|
|
43930
|
-
|
|
43931
|
-
|
|
43932
|
-
|
|
43933
|
-
|
|
43934
|
-
|
|
43935
|
-
|
|
43936
|
-
|
|
43976
|
+
color: colors_st_css_stVars[color] || color,
|
|
43977
|
+
backgroundColor: colors_st_css_stVars[backgroundColor] || backgroundColor,
|
|
43978
|
+
border, // Must be assigned before the border color props (otherwise it would override them)
|
|
43979
|
+
// Props which are spread just in case these are actually defined
|
|
43980
|
+
...(borderColor && {
|
|
43981
|
+
borderColor: colors_st_css_stVars[borderColor] || borderColor,
|
|
43982
|
+
}),
|
|
43983
|
+
...(borderTopColor && {
|
|
43984
|
+
borderTopColor: colors_st_css_stVars[borderTopColor] || borderTopColor,
|
|
43985
|
+
}),
|
|
43986
|
+
...(borderRightColor && {
|
|
43987
|
+
borderRightColor: colors_st_css_stVars[borderRightColor] || borderRightColor,
|
|
43988
|
+
}),
|
|
43989
|
+
...(borderBottomColor && {
|
|
43990
|
+
borderBottomColor: colors_st_css_stVars[borderBottomColor] || borderBottomColor,
|
|
43991
|
+
}),
|
|
43992
|
+
...(borderLeftColor && {
|
|
43993
|
+
borderLeftColor: colors_st_css_stVars[borderLeftColor] || borderLeftColor,
|
|
43994
|
+
}),
|
|
43995
|
+
// All other props which are passed (without those that are specified above)
|
|
43996
|
+
...nativeStyles,
|
|
43997
|
+
[Box_st_css_vars['gap']]: formatSingleSpacingValue(gap) || 0,
|
|
43998
|
+
};
|
|
43937
43999
|
// Filter undefined values
|
|
43938
44000
|
const rootStylesFiltered = filterObject(rootStyles, (key, value) => typeof value !== 'undefined');
|
|
43939
44001
|
return (external_React_default().createElement("div", { "data-hook": dataHook, className: rootClassNames, style: rootStylesFiltered, ref: ref }, children));
|
|
@@ -44051,7 +44113,7 @@ var escapeRegExp_default = /*#__PURE__*/__webpack_require__.n(lodash_escapeRegEx
|
|
|
44051
44113
|
|
|
44052
44114
|
|
|
44053
44115
|
|
|
44054
|
-
var Highlighter_st_css_namespace_ = "
|
|
44116
|
+
var Highlighter_st_css_namespace_ = "wds_1_98_0_Highlighter";
|
|
44055
44117
|
var Highlighter_st_css_style_ = classesRuntime.bind(null, Highlighter_st_css_namespace_);
|
|
44056
44118
|
|
|
44057
44119
|
var Highlighter_st_css_cssStates = statesRuntime.bind(null, Highlighter_st_css_namespace_);
|
|
@@ -44059,7 +44121,7 @@ var Highlighter_st_css_style = (/* unused pure expression or super */ null && (H
|
|
|
44059
44121
|
var Highlighter_st_css_st = Highlighter_st_css_style_;
|
|
44060
44122
|
|
|
44061
44123
|
var Highlighter_st_css_namespace = (/* unused pure expression or super */ null && (Highlighter_st_css_namespace_));
|
|
44062
|
-
var Highlighter_st_css_classes = {"root":"
|
|
44124
|
+
var Highlighter_st_css_classes = {"root":"wds_1_98_0_Highlighter__root"};
|
|
44063
44125
|
var Highlighter_st_css_keyframes = {};
|
|
44064
44126
|
var Highlighter_st_css_layers = {};
|
|
44065
44127
|
var Highlighter_st_css_containers = {};
|
|
@@ -44188,7 +44250,7 @@ const highlight = (element, match, nextChildKey, props) => {
|
|
|
44188
44250
|
[ELEM_TYPES.STRING]: (elem, _match) => (external_React_default().createElement(Highlighter_HighlightedItem, { key: nextChildKey(), match: _match, emphasize: props.emphasize }, elem)),
|
|
44189
44251
|
[ELEM_TYPES.REACT_ELEMENT]: elem => {
|
|
44190
44252
|
if (elem.props.children) {
|
|
44191
|
-
return external_React_default().cloneElement(elem,
|
|
44253
|
+
return external_React_default().cloneElement(elem, { ...elem.props, key: nextChildKey() }, highlight(elem.props.children, match, nextChildKey, props));
|
|
44192
44254
|
}
|
|
44193
44255
|
return elem;
|
|
44194
44256
|
},
|
|
@@ -44231,7 +44293,6 @@ Highlighter.displayName = 'Highlighter';
|
|
|
44231
44293
|
|
|
44232
44294
|
|
|
44233
44295
|
|
|
44234
|
-
|
|
44235
44296
|
const ListItemSelect_SIZES = {
|
|
44236
44297
|
small: 'small',
|
|
44237
44298
|
medium: 'medium',
|
|
@@ -44244,7 +44305,7 @@ class ListItemSelect extends (external_React_default()).PureComponent {
|
|
|
44244
44305
|
}
|
|
44245
44306
|
_renderTitle(textProps) {
|
|
44246
44307
|
const { title } = this.props;
|
|
44247
|
-
const titleElement = (external_React_default().createElement(Text,
|
|
44308
|
+
const titleElement = (external_React_default().createElement(Text, { className: ListItemSelect_st_css_classes.title, dataHook: ListItemSelect_constants_dataHooks.TITLE, ...textProps }, title));
|
|
44248
44309
|
return (external_React_default().createElement(InputWithOptions_HighlightContext.Consumer, null, ({ highlight, match }) => highlight ? (external_React_default().createElement(Highlighter_Highlighter, { match: match }, titleElement)) : (titleElement)));
|
|
44249
44310
|
}
|
|
44250
44311
|
_renderContent() {
|
|
@@ -44259,15 +44320,19 @@ class ListItemSelect extends (external_React_default()).PureComponent {
|
|
|
44259
44320
|
weight: 'thin',
|
|
44260
44321
|
light: selected && !checkbox,
|
|
44261
44322
|
};
|
|
44262
|
-
const secondaryTextProps =
|
|
44323
|
+
const secondaryTextProps = {
|
|
44324
|
+
...textProps,
|
|
44325
|
+
light: !disabled,
|
|
44326
|
+
secondary: !selected || checkbox,
|
|
44327
|
+
};
|
|
44263
44328
|
return (external_React_default().createElement(Box_Box, { width: "100%", className: ListItemSelect_st_css_classes.textsWrapper },
|
|
44264
|
-
prefix && (external_React_default().createElement(Text,
|
|
44329
|
+
prefix && (external_React_default().createElement(Text, { className: ListItemSelect_st_css_st(ListItemSelect_st_css_classes.prefix, {
|
|
44265
44330
|
subtitle: Boolean(subtitle),
|
|
44266
|
-
}), dataHook: ListItemSelect_constants_dataHooks.PREFIX
|
|
44331
|
+
}), dataHook: ListItemSelect_constants_dataHooks.PREFIX, ...textProps, ellipsis: false }, prefix)),
|
|
44267
44332
|
external_React_default().createElement("div", { className: ListItemSelect_st_css_st(ListItemSelect_st_css_classes.titleWrapper, { subtitle: Boolean(subtitle) }) },
|
|
44268
44333
|
this._renderTitle(textProps),
|
|
44269
|
-
subtitle && (external_React_default().createElement(Text,
|
|
44270
|
-
suffix && (external_React_default().createElement(Text,
|
|
44334
|
+
subtitle && (external_React_default().createElement(Text, { className: ListItemSelect_st_css_classes.subtitle, dataHook: ListItemSelect_constants_dataHooks.SUBTITLE, secondary: true, ...secondaryTextProps, size: ListItemSelect_SIZES.small }, subtitle))),
|
|
44335
|
+
suffix && (external_React_default().createElement(Text, { dataHook: ListItemSelect_constants_dataHooks.SUFFIX, className: ListItemSelect_st_css_classes.suffix, ...secondaryTextProps }, suffix))));
|
|
44271
44336
|
}
|
|
44272
44337
|
}
|
|
44273
44338
|
ListItemSelect.displayName = 'ListItemSelect';
|
|
@@ -44318,10 +44383,7 @@ const listItemSelectBuilder = ({ id, className, checkbox, prefix, title, label,
|
|
|
44318
44383
|
disabled,
|
|
44319
44384
|
overrideOptionStyle: true,
|
|
44320
44385
|
label,
|
|
44321
|
-
value: (
|
|
44322
|
-
var { selected, hovered } = _a, rest = __rest(_a, ["selected", "hovered"]);
|
|
44323
|
-
return (external_React_default().createElement(ListItemSelect, Object.assign({ dataHook: dataHook, className: className, checkbox: checkbox, prefix: prefix, title: title, subtitle: subtitle, suffix: suffix, size: size, ellipsis: ellipsis, selected: selected, highlighted: hovered, tooltipProps: tooltipProps }, rest)));
|
|
44324
|
-
},
|
|
44386
|
+
value: ({ selected, hovered, ...rest }) => (external_React_default().createElement(ListItemSelect, { dataHook: dataHook, className: className, checkbox: checkbox, prefix: prefix, title: title, subtitle: subtitle, suffix: suffix, size: size, ellipsis: ellipsis, selected: selected, highlighted: hovered, tooltipProps: tooltipProps, ...rest })),
|
|
44325
44387
|
});
|
|
44326
44388
|
//# sourceMappingURL=ListItemSelect.js.map
|
|
44327
44389
|
// EXTERNAL MODULE: ../../../node_modules/lodash/defaultTo.js
|
|
@@ -44340,7 +44402,7 @@ var sortBy_default = /*#__PURE__*/__webpack_require__.n(sortBy);
|
|
|
44340
44402
|
|
|
44341
44403
|
|
|
44342
44404
|
|
|
44343
|
-
var border_st_css_namespace_ = "
|
|
44405
|
+
var border_st_css_namespace_ = "wds_1_98_0_border";
|
|
44344
44406
|
var border_st_css_style_ = classesRuntime.bind(null, border_st_css_namespace_);
|
|
44345
44407
|
|
|
44346
44408
|
var border_st_css_cssStates = statesRuntime.bind(null, border_st_css_namespace_);
|
|
@@ -44348,7 +44410,7 @@ var border_st_css_style = (/* unused pure expression or super */ null && (border
|
|
|
44348
44410
|
var border_st_css_st = (/* unused pure expression or super */ null && (border_st_css_style_));
|
|
44349
44411
|
|
|
44350
44412
|
var border_st_css_namespace = (/* unused pure expression or super */ null && (border_st_css_namespace_));
|
|
44351
|
-
var border_st_css_classes = {"root":"
|
|
44413
|
+
var border_st_css_classes = {"root":"wds_1_98_0_border__root"};
|
|
44352
44414
|
var border_st_css_keyframes = {};
|
|
44353
44415
|
var border_st_css_layers = {};
|
|
44354
44416
|
var border_st_css_containers = {};
|
|
@@ -44371,7 +44433,7 @@ var border_st_css_vars = {"wsr-border-radius-02":"--wsr-border-radius-02","wsr-b
|
|
|
44371
44433
|
|
|
44372
44434
|
|
|
44373
44435
|
|
|
44374
|
-
var Input_st_css_namespace_ = "
|
|
44436
|
+
var Input_st_css_namespace_ = "wds_1_98_0_Input";
|
|
44375
44437
|
var Input_st_css_style_ = classesRuntime.bind(null, Input_st_css_namespace_);
|
|
44376
44438
|
|
|
44377
44439
|
var Input_st_css_cssStates = statesRuntime.bind(null, Input_st_css_namespace_);
|
|
@@ -44379,12 +44441,12 @@ var Input_st_css_style = (/* unused pure expression or super */ null && (Input_s
|
|
|
44379
44441
|
var Input_st_css_st = Input_st_css_style_;
|
|
44380
44442
|
|
|
44381
44443
|
var Input_st_css_namespace = (/* unused pure expression or super */ null && (Input_st_css_namespace_));
|
|
44382
|
-
var Input_st_css_classes = {"root":"
|
|
44444
|
+
var Input_st_css_classes = {"root":"wds_1_98_0_Input__root","text-tiny-thin":"wds_1_98_0_StylableTypography__text-tiny-thin","text-small-thin":"wds_1_98_0_StylableTypography__text-small-thin","text-medium-thin":"wds_1_98_0_StylableTypography__text-medium-thin","wrapper":"wds_1_98_0_Input__wrapper","input":"wds_1_98_0_Input__input","disabled":"wds_1_98_0_Input__disabled","readOnly":"wds_1_98_0_Input__readOnly","suffixes":"wds_1_98_0_Input__suffixes","suffix":"wds_1_98_0_Input__suffix","statusWrapper":"wds_1_98_0_Input__statusWrapper","clearButtonWrapper":"wds_1_98_0_Input__clearButtonWrapper","menuArrow":"wds_1_98_0_Input__menuArrow","clearButton":"wds_1_98_0_Input__clearButton"};
|
|
44383
44445
|
var Input_st_css_keyframes = {};
|
|
44384
44446
|
var Input_st_css_layers = {};
|
|
44385
44447
|
var Input_st_css_containers = {};
|
|
44386
44448
|
var Input_st_css_stVars = {};
|
|
44387
|
-
var Input_st_css_vars = {"wds-color-border-destructive-secondary-active":"--wds-color-border-destructive-secondary-active","wds-color-border-destructive-secondary-hover":"--wds-color-border-destructive-secondary-hover","wds-color-border-destructive-tertiary-hover":"--wds-color-border-destructive-tertiary-hover","wds-color-border-standard-secondary":"--wds-color-border-standard-secondary","wds-color-border-standard-secondary-active":"--wds-color-border-standard-secondary-active","wds-color-border-standard-secondary-disabled":"--wds-color-border-standard-secondary-disabled","wds-color-border-standard-secondary-hover":"--wds-color-border-standard-secondary-hover","wds-color-border-standard-secondary-readonly":"--wds-color-border-standard-secondary-readonly","wds-color-border-warning-secondary-active":"--wds-color-border-warning-secondary-active","wds-color-border-warning-secondary-hover":"--wds-color-border-warning-secondary-hover","wds-color-border-warning-tertiary-hover":"--wds-color-border-warning-tertiary-hover","wds-color-fill-standard-secondary":"--wds-color-fill-standard-secondary","wds-color-fill-standard-tertiary":"--wds-color-fill-standard-tertiary","wds-color-fill-standard-tertiary-disabled":"--wds-color-fill-standard-tertiary-disabled","wds-color-fill-standard-tertiary-hover":"--wds-color-fill-standard-tertiary-hover","wds-color-fill-standard-tertiary-readonly":"--wds-color-fill-standard-tertiary-readonly","wds-color-text-disabled":"--wds-color-text-disabled","wds-color-text-placeholder":"--wds-color-text-placeholder","wds-color-text-primary":"--wds-color-text-primary","wds-color-text-standard-primary":"--wds-color-text-standard-primary","wds-input-border-radius-default-tiny":"--wds-input-border-radius-default-tiny","wds-input-border-radius-default-small":"--wds-input-border-radius-default-small","wds-input-border-radius-default-medium":"--wds-input-border-radius-default-medium","wds-input-border-radius-default-large":"--wds-input-border-radius-default-large","wds-input-border-radius-round-tiny":"--wds-input-border-radius-round-tiny","wds-input-border-radius-round-small":"--wds-input-border-radius-round-small","wds-input-border-radius-round-medium":"--wds-input-border-radius-round-medium","wds-input-border-radius-round-large":"--wds-input-border-radius-round-large","wds-input-padding-horizontal-large":"--wds-input-padding-horizontal-large","wds-input-padding-horizontal-medium":"--wds-input-padding-horizontal-medium","wds-input-padding-horizontal-small":"--wds-input-padding-horizontal-small","wds-input-padding-horizontal-tiny":"--wds-input-padding-horizontal-tiny","wds-input-padding-vertical-large":"--wds-input-padding-vertical-large","wds-input-padding-vertical-medium":"--wds-input-padding-vertical-medium","wds-input-padding-vertical-small":"--wds-input-padding-vertical-small","wds-input-padding-vertical-tiny":"--wds-input-padding-vertical-tiny","wds-input-size-large":"--wds-input-size-large","wds-input-size-medium":"--wds-input-size-medium","wds-input-size-small":"--wds-input-size-small","wds-input-size-tiny":"--wds-input-size-tiny","wds-input-value-font-line-height-tiny":"--wds-input-value-font-line-height-tiny","wds-input-value-font-line-height-small":"--wds-input-value-font-line-height-small","wds-input-value-font-line-height-medium":"--wds-input-value-font-line-height-medium","wds-input-value-font-line-height-large":"--wds-input-value-font-line-height-large","wds-input-value-font-size-tiny":"--wds-input-value-font-size-tiny","wds-input-value-font-size-small":"--wds-input-value-font-size-small","wds-input-value-font-size-medium":"--wds-input-value-font-size-medium","wds-input-value-font-size-large":"--wds-input-value-font-size-large","wds-shadow-focus-destructive":"--wds-shadow-focus-destructive","wds-shadow-focus-standard":"--wds-shadow-focus-standard","wds-shadow-focus-warning":"--wds-shadow-focus-warning","wds-space-0":"--wds-space-0","wds-space-50":"--wds-space-50","wds-space-100":"--wds-space-100","border-color-hover":"--
|
|
44449
|
+
var Input_st_css_vars = {"wds-color-border-destructive-secondary-active":"--wds-color-border-destructive-secondary-active","wds-color-border-destructive-secondary-hover":"--wds-color-border-destructive-secondary-hover","wds-color-border-destructive-tertiary-hover":"--wds-color-border-destructive-tertiary-hover","wds-color-border-standard-secondary":"--wds-color-border-standard-secondary","wds-color-border-standard-secondary-active":"--wds-color-border-standard-secondary-active","wds-color-border-standard-secondary-disabled":"--wds-color-border-standard-secondary-disabled","wds-color-border-standard-secondary-hover":"--wds-color-border-standard-secondary-hover","wds-color-border-standard-secondary-readonly":"--wds-color-border-standard-secondary-readonly","wds-color-border-warning-secondary-active":"--wds-color-border-warning-secondary-active","wds-color-border-warning-secondary-hover":"--wds-color-border-warning-secondary-hover","wds-color-border-warning-tertiary-hover":"--wds-color-border-warning-tertiary-hover","wds-color-fill-standard-secondary":"--wds-color-fill-standard-secondary","wds-color-fill-standard-tertiary":"--wds-color-fill-standard-tertiary","wds-color-fill-standard-tertiary-disabled":"--wds-color-fill-standard-tertiary-disabled","wds-color-fill-standard-tertiary-hover":"--wds-color-fill-standard-tertiary-hover","wds-color-fill-standard-tertiary-readonly":"--wds-color-fill-standard-tertiary-readonly","wds-color-text-disabled":"--wds-color-text-disabled","wds-color-text-placeholder":"--wds-color-text-placeholder","wds-color-text-primary":"--wds-color-text-primary","wds-color-text-standard-primary":"--wds-color-text-standard-primary","wds-input-border-radius-default-tiny":"--wds-input-border-radius-default-tiny","wds-input-border-radius-default-small":"--wds-input-border-radius-default-small","wds-input-border-radius-default-medium":"--wds-input-border-radius-default-medium","wds-input-border-radius-default-large":"--wds-input-border-radius-default-large","wds-input-border-radius-round-tiny":"--wds-input-border-radius-round-tiny","wds-input-border-radius-round-small":"--wds-input-border-radius-round-small","wds-input-border-radius-round-medium":"--wds-input-border-radius-round-medium","wds-input-border-radius-round-large":"--wds-input-border-radius-round-large","wds-input-padding-horizontal-large":"--wds-input-padding-horizontal-large","wds-input-padding-horizontal-medium":"--wds-input-padding-horizontal-medium","wds-input-padding-horizontal-small":"--wds-input-padding-horizontal-small","wds-input-padding-horizontal-tiny":"--wds-input-padding-horizontal-tiny","wds-input-padding-vertical-large":"--wds-input-padding-vertical-large","wds-input-padding-vertical-medium":"--wds-input-padding-vertical-medium","wds-input-padding-vertical-small":"--wds-input-padding-vertical-small","wds-input-padding-vertical-tiny":"--wds-input-padding-vertical-tiny","wds-input-size-large":"--wds-input-size-large","wds-input-size-medium":"--wds-input-size-medium","wds-input-size-small":"--wds-input-size-small","wds-input-size-tiny":"--wds-input-size-tiny","wds-input-value-font-line-height-tiny":"--wds-input-value-font-line-height-tiny","wds-input-value-font-line-height-small":"--wds-input-value-font-line-height-small","wds-input-value-font-line-height-medium":"--wds-input-value-font-line-height-medium","wds-input-value-font-line-height-large":"--wds-input-value-font-line-height-large","wds-input-value-font-size-tiny":"--wds-input-value-font-size-tiny","wds-input-value-font-size-small":"--wds-input-value-font-size-small","wds-input-value-font-size-medium":"--wds-input-value-font-size-medium","wds-input-value-font-size-large":"--wds-input-value-font-size-large","wds-shadow-focus-destructive":"--wds-shadow-focus-destructive","wds-shadow-focus-standard":"--wds-shadow-focus-standard","wds-shadow-focus-warning":"--wds-shadow-focus-warning","wds-space-0":"--wds-space-0","wds-space-50":"--wds-space-50","wds-space-100":"--wds-space-100","border-color-hover":"--wds_1_98_0_Input-border-color-hover","border-color-hover-destructive":"--wds_1_98_0_Input-border-color-hover-destructive","border-color-hover-warning":"--wds_1_98_0_Input-border-color-hover-warning"};
|
|
44388
44450
|
|
|
44389
44451
|
|
|
44390
44452
|
|
|
@@ -44438,7 +44500,7 @@ const FormFieldSpinnerDown_n=({size:e,...o})=>external_React_.createElement("svg
|
|
|
44438
44500
|
|
|
44439
44501
|
|
|
44440
44502
|
|
|
44441
|
-
var Ticker_st_css_namespace_ = "
|
|
44503
|
+
var Ticker_st_css_namespace_ = "wds_1_98_0_Ticker";
|
|
44442
44504
|
var Ticker_st_css_style_ = classesRuntime.bind(null, Ticker_st_css_namespace_);
|
|
44443
44505
|
|
|
44444
44506
|
var Ticker_st_css_cssStates = statesRuntime.bind(null, Ticker_st_css_namespace_);
|
|
@@ -44446,7 +44508,7 @@ var Ticker_st_css_style = (/* unused pure expression or super */ null && (Ticker
|
|
|
44446
44508
|
var Ticker_st_css_st = Ticker_st_css_style_;
|
|
44447
44509
|
|
|
44448
44510
|
var Ticker_st_css_namespace = (/* unused pure expression or super */ null && (Ticker_st_css_namespace_));
|
|
44449
|
-
var Ticker_st_css_classes = {"root":"
|
|
44511
|
+
var Ticker_st_css_classes = {"root":"wds_1_98_0_Ticker__root","up":"wds_1_98_0_Ticker__up","down":"wds_1_98_0_Ticker__down"};
|
|
44450
44512
|
var Ticker_st_css_keyframes = {};
|
|
44451
44513
|
var Ticker_st_css_layers = {};
|
|
44452
44514
|
var Ticker_st_css_containers = {};
|
|
@@ -44520,7 +44582,7 @@ Ticker.propTypes = {
|
|
|
44520
44582
|
|
|
44521
44583
|
|
|
44522
44584
|
|
|
44523
|
-
var IconAffix_st_css_namespace_ = "
|
|
44585
|
+
var IconAffix_st_css_namespace_ = "wds_1_98_0_IconAffix";
|
|
44524
44586
|
var IconAffix_st_css_style_ = classesRuntime.bind(null, IconAffix_st_css_namespace_);
|
|
44525
44587
|
|
|
44526
44588
|
var IconAffix_st_css_cssStates = statesRuntime.bind(null, IconAffix_st_css_namespace_);
|
|
@@ -44528,7 +44590,7 @@ var IconAffix_st_css_style = (/* unused pure expression or super */ null && (Ico
|
|
|
44528
44590
|
var IconAffix_st_css_st = IconAffix_st_css_style_;
|
|
44529
44591
|
|
|
44530
44592
|
var IconAffix_st_css_namespace = (/* unused pure expression or super */ null && (IconAffix_st_css_namespace_));
|
|
44531
|
-
var IconAffix_st_css_classes = {"root":"
|
|
44593
|
+
var IconAffix_st_css_classes = {"root":"wds_1_98_0_IconAffix__root"};
|
|
44532
44594
|
var IconAffix_st_css_keyframes = {};
|
|
44533
44595
|
var IconAffix_st_css_layers = {};
|
|
44534
44596
|
var IconAffix_st_css_containers = {};
|
|
@@ -44569,7 +44631,7 @@ IconAffix.propTypes = {
|
|
|
44569
44631
|
|
|
44570
44632
|
|
|
44571
44633
|
|
|
44572
|
-
var Affix_st_css_namespace_ = "
|
|
44634
|
+
var Affix_st_css_namespace_ = "wds_1_98_0_Affix";
|
|
44573
44635
|
var Affix_st_css_style_ = classesRuntime.bind(null, Affix_st_css_namespace_);
|
|
44574
44636
|
|
|
44575
44637
|
var Affix_st_css_cssStates = statesRuntime.bind(null, Affix_st_css_namespace_);
|
|
@@ -44577,7 +44639,7 @@ var Affix_st_css_style = (/* unused pure expression or super */ null && (Affix_s
|
|
|
44577
44639
|
var Affix_st_css_st = Affix_st_css_style_;
|
|
44578
44640
|
|
|
44579
44641
|
var Affix_st_css_namespace = (/* unused pure expression or super */ null && (Affix_st_css_namespace_));
|
|
44580
|
-
var Affix_st_css_classes = {"root":"
|
|
44642
|
+
var Affix_st_css_classes = {"root":"wds_1_98_0_Affix__root","text-tiny-thin":"wds_1_98_0_StylableTypography__text-tiny-thin","text-small-normal":"wds_1_98_0_StylableTypography__text-small-normal","text-small-thin":"wds_1_98_0_StylableTypography__text-small-thin","text-medium-normal":"wds_1_98_0_StylableTypography__text-medium-normal","text-medium-thin":"wds_1_98_0_StylableTypography__text-medium-thin"};
|
|
44581
44643
|
var Affix_st_css_keyframes = {};
|
|
44582
44644
|
var Affix_st_css_layers = {};
|
|
44583
44645
|
var Affix_st_css_containers = {};
|
|
@@ -44614,7 +44676,7 @@ Affix.propTypes = {
|
|
|
44614
44676
|
|
|
44615
44677
|
|
|
44616
44678
|
|
|
44617
|
-
var Group_st_css_namespace_ = "
|
|
44679
|
+
var Group_st_css_namespace_ = "wds_1_98_0_Group";
|
|
44618
44680
|
var Group_st_css_style_ = classesRuntime.bind(null, Group_st_css_namespace_);
|
|
44619
44681
|
|
|
44620
44682
|
var Group_st_css_cssStates = statesRuntime.bind(null, Group_st_css_namespace_);
|
|
@@ -44622,7 +44684,7 @@ var Group_st_css_style = (/* unused pure expression or super */ null && (Group_s
|
|
|
44622
44684
|
var Group_st_css_st = (/* unused pure expression or super */ null && (Group_st_css_style_));
|
|
44623
44685
|
|
|
44624
44686
|
var Group_st_css_namespace = (/* unused pure expression or super */ null && (Group_st_css_namespace_));
|
|
44625
|
-
var Group_st_css_classes = {"root":"
|
|
44687
|
+
var Group_st_css_classes = {"root":"wds_1_98_0_Group__root"};
|
|
44626
44688
|
var Group_st_css_keyframes = {};
|
|
44627
44689
|
var Group_st_css_layers = {};
|
|
44628
44690
|
var Group_st_css_containers = {};
|
|
@@ -44655,7 +44717,7 @@ const DropDownArrow_t=({size:r,...e})=>external_React_.createElement("svg",{view
|
|
|
44655
44717
|
|
|
44656
44718
|
|
|
44657
44719
|
|
|
44658
|
-
var StatusIndicator_st_css_namespace_ = "
|
|
44720
|
+
var StatusIndicator_st_css_namespace_ = "wds_1_98_0_StatusIndicator";
|
|
44659
44721
|
var StatusIndicator_st_css_style_ = classesRuntime.bind(null, StatusIndicator_st_css_namespace_);
|
|
44660
44722
|
|
|
44661
44723
|
var StatusIndicator_st_css_cssStates = statesRuntime.bind(null, StatusIndicator_st_css_namespace_);
|
|
@@ -44663,7 +44725,7 @@ var StatusIndicator_st_css_style = (/* unused pure expression or super */ null &
|
|
|
44663
44725
|
var StatusIndicator_st_css_st = StatusIndicator_st_css_style_;
|
|
44664
44726
|
|
|
44665
44727
|
var StatusIndicator_st_css_namespace = (/* unused pure expression or super */ null && (StatusIndicator_st_css_namespace_));
|
|
44666
|
-
var StatusIndicator_st_css_classes = {"root":"
|
|
44728
|
+
var StatusIndicator_st_css_classes = {"root":"wds_1_98_0_StatusIndicator__root"};
|
|
44667
44729
|
var StatusIndicator_st_css_keyframes = {};
|
|
44668
44730
|
var StatusIndicator_st_css_layers = {};
|
|
44669
44731
|
var StatusIndicator_st_css_containers = {};
|
|
@@ -44749,7 +44811,7 @@ const getVisibleSuffixCount = args => Object.keys(suffixRules)
|
|
|
44749
44811
|
.map(key => suffixRules[key])
|
|
44750
44812
|
.map(fn => fn(args))
|
|
44751
44813
|
.filter(x => x).length;
|
|
44752
|
-
const getComponentWithTooltip = (component, content, ...tooltipProps) => content ? (external_React_default().createElement(Tooltip_Tooltip,
|
|
44814
|
+
const getComponentWithTooltip = (component, content, ...tooltipProps) => content ? (external_React_default().createElement(Tooltip_Tooltip, { ...tooltipProps, content: content, dataHook: Input_constants_dataHooks.tooltip }, component)) : (component);
|
|
44753
44815
|
const InputSuffix = ({ statusMessage, status, disabled, onIconClicked, isClearButtonVisible, onClear, clearButtonSize, menuArrow, suffix, tooltipPlacement, clearButtonTooltipContent, clearButtonTooltipProps, }) => {
|
|
44754
44816
|
const suffixes = [
|
|
44755
44817
|
{
|
|
@@ -44807,7 +44869,10 @@ const StatusContext = external_React_default().createContext({
|
|
|
44807
44869
|
ariaDescribedBy: null,
|
|
44808
44870
|
});
|
|
44809
44871
|
const getStatusFromContext = ({ status }, propsStatus) => propsStatus || status;
|
|
44810
|
-
const getAriaAttributesFromContext = ({ ariaLabelledBy, ariaDescribedBy, }) => (
|
|
44872
|
+
const getAriaAttributesFromContext = ({ ariaLabelledBy, ariaDescribedBy, }) => ({
|
|
44873
|
+
...(ariaLabelledBy && { 'aria-labelledby': ariaLabelledBy }),
|
|
44874
|
+
...(ariaDescribedBy && { 'aria-describedby': ariaDescribedBy }),
|
|
44875
|
+
});
|
|
44811
44876
|
//# sourceMappingURL=StatusContext.js.map
|
|
44812
44877
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/Input/Input.js
|
|
44813
44878
|
|
|
@@ -44824,7 +44889,6 @@ const getAriaAttributesFromContext = ({ ariaLabelledBy, ariaDescribedBy, }) => (
|
|
|
44824
44889
|
|
|
44825
44890
|
|
|
44826
44891
|
|
|
44827
|
-
|
|
44828
44892
|
const clearButtonSizeMap = {
|
|
44829
44893
|
[Input_constants_SIZES.small]: 'small',
|
|
44830
44894
|
[Input_constants_SIZES.medium]: 'medium',
|
|
@@ -44926,9 +44990,12 @@ class Input extends external_React_.Component {
|
|
|
44926
44990
|
}
|
|
44927
44991
|
};
|
|
44928
44992
|
this._renderInput = props => {
|
|
44929
|
-
const { customInput: CustomInputComponent, ref
|
|
44930
|
-
const inputProps =
|
|
44931
|
-
|
|
44993
|
+
const { customInput: CustomInputComponent, ref, ...rest } = props;
|
|
44994
|
+
const inputProps = {
|
|
44995
|
+
...(CustomInputComponent
|
|
44996
|
+
? { ref, ...rest, 'data-hook': 'wsr-custom-input' }
|
|
44997
|
+
: { ref, ...rest }),
|
|
44998
|
+
};
|
|
44932
44999
|
return external_React_default().cloneElement(CustomInputComponent ? external_React_default().createElement(CustomInputComponent, null) : external_React_default().createElement("input", null), inputProps);
|
|
44933
45000
|
};
|
|
44934
45001
|
this._shouldShowStatusSuffix = ({ finalStatus, statusFromProp }) => !this.props.hideStatusSuffix &&
|
|
@@ -45032,27 +45099,54 @@ class Input extends external_React_.Component {
|
|
|
45032
45099
|
.map(key => (ariaAttribute['aria-' + key.substr(4).toLowerCase()] =
|
|
45033
45100
|
this.props[key]));
|
|
45034
45101
|
/* eslint-disable no-unused-vars */
|
|
45035
|
-
const { className
|
|
45036
|
-
const inputElement = (external_React_default().createElement(WixStyleReactMaskingContext.Consumer, null, ({ maskingClassNames }) => (external_React_default().createElement(StatusContext.Consumer, null, statusContext => this._renderInput(
|
|
45102
|
+
const { className, ...inputElementProps } = props;
|
|
45103
|
+
const inputElement = (external_React_default().createElement(WixStyleReactMaskingContext.Consumer, null, ({ maskingClassNames }) => (external_React_default().createElement(StatusContext.Consumer, null, statusContext => this._renderInput({
|
|
45104
|
+
min,
|
|
45037
45105
|
max,
|
|
45038
|
-
step,
|
|
45106
|
+
step,
|
|
45107
|
+
'data-hook': 'wsr-input',
|
|
45108
|
+
'data-mask': !!maskingClassNames,
|
|
45109
|
+
style: { textOverflow },
|
|
45110
|
+
ref: this._extractRef,
|
|
45111
|
+
className: Input_st_css_st(Input_st_css_classes.input, {}, maskingClassNames),
|
|
45112
|
+
id,
|
|
45039
45113
|
name,
|
|
45040
45114
|
disabled,
|
|
45041
45115
|
defaultValue,
|
|
45042
|
-
value,
|
|
45116
|
+
value,
|
|
45117
|
+
onChange: this._onChange,
|
|
45118
|
+
onKeyPress: this._onKeyPress,
|
|
45119
|
+
maxLength,
|
|
45120
|
+
onFocus: this._onFocus,
|
|
45121
|
+
onBlur: this._onBlur,
|
|
45122
|
+
onWheel: () => {
|
|
45043
45123
|
// Although it's opposed to the native behavior, we decided to blur an input type="number" on wheel event in order to prevent change in value.
|
|
45044
45124
|
if (type === 'number')
|
|
45045
45125
|
this.blur();
|
|
45046
|
-
},
|
|
45126
|
+
},
|
|
45127
|
+
onKeyDown: this._onKeyDown,
|
|
45128
|
+
onPaste,
|
|
45047
45129
|
placeholder,
|
|
45048
45130
|
tabIndex,
|
|
45049
|
-
autoFocus,
|
|
45050
|
-
|
|
45051
|
-
|
|
45131
|
+
autoFocus,
|
|
45132
|
+
onClick: this._onClick,
|
|
45133
|
+
onKeyUp,
|
|
45134
|
+
readOnly: readOnly || disableEditing,
|
|
45135
|
+
type,
|
|
45136
|
+
required,
|
|
45137
|
+
autoComplete: autocomplete,
|
|
45138
|
+
onCompositionStart: () => this._onCompositionChange(true),
|
|
45139
|
+
onCompositionEnd: () => this._onCompositionChange(false),
|
|
45140
|
+
customInput,
|
|
45141
|
+
pattern,
|
|
45142
|
+
...getAriaAttributesFromContext(statusContext),
|
|
45143
|
+
...ariaAttribute,
|
|
45144
|
+
...inputElementProps,
|
|
45145
|
+
})))));
|
|
45052
45146
|
return (external_React_default().createElement("div", { className: Input_st_css_classes.wrapper },
|
|
45053
|
-
prefix && (external_React_default().createElement(InputContext.Provider, { value:
|
|
45147
|
+
prefix && (external_React_default().createElement(InputContext.Provider, { value: { ...this.props, size, inPrefix: true } }, prefix)),
|
|
45054
45148
|
inputElement,
|
|
45055
|
-
external_React_default().createElement(InputContext.Provider, { value:
|
|
45149
|
+
external_React_default().createElement(InputContext.Provider, { value: { ...this.props, size, inSuffix: true } },
|
|
45056
45150
|
external_React_default().createElement(StatusContext.Consumer, null, statusContext => {
|
|
45057
45151
|
const status = getStatusFromContext(statusContext, statusProp);
|
|
45058
45152
|
return (shouldRenderSuffix({
|
|
@@ -45245,7 +45339,7 @@ class ThemedInput extends Input_Input {
|
|
|
45245
45339
|
const { input: inputPropsDefaults } = this.context;
|
|
45246
45340
|
const { size = inputPropsDefaults.size, dataHook, rtl, status, disabled, forceHover, forceFocus, border, className, noLeftBorderRadius, noRightBorderRadius, readOnly, } = this.props;
|
|
45247
45341
|
const placeholder = this.props.placeholder;
|
|
45248
|
-
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(StatusContext.Consumer, null, statusContext => (external_React_default().createElement("div",
|
|
45342
|
+
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(StatusContext.Consumer, null, statusContext => (external_React_default().createElement("div", { className: Input_st_css_st(Input_st_css_classes.root, {
|
|
45249
45343
|
size,
|
|
45250
45344
|
hasFocus: forceFocus || this.state.focus,
|
|
45251
45345
|
status: getStatusFromContext(statusContext, status),
|
|
@@ -45256,11 +45350,13 @@ class ThemedInput extends Input_Input {
|
|
|
45256
45350
|
noRightBorderRadius,
|
|
45257
45351
|
noLeftBorderRadius,
|
|
45258
45352
|
newColorsBranding,
|
|
45259
|
-
}, className), dir: rtl ? 'rtl' : null, "data-hook": dataHook
|
|
45353
|
+
}, className), dir: rtl ? 'rtl' : null, "data-hook": dataHook, ...this._getDataAttr({ statusContext }) }, super.render({ placeholder })))))));
|
|
45260
45354
|
}
|
|
45261
45355
|
}
|
|
45262
45356
|
ThemedInput.contextType = WixStyleReactDefaultsOverrideContext;
|
|
45263
|
-
ThemedInput.propTypes =
|
|
45357
|
+
ThemedInput.propTypes = {
|
|
45358
|
+
...Input_Input.propTypes,
|
|
45359
|
+
};
|
|
45264
45360
|
/* harmony default export */ const Input_ThemedInput = (ThemedInput);
|
|
45265
45361
|
//# sourceMappingURL=ThemedInput.js.map
|
|
45266
45362
|
// EXTERNAL MODULE: ../../../node_modules/omit/index.js
|
|
@@ -45277,25 +45373,23 @@ class InfiniteScroll extends external_React_.Component {
|
|
|
45277
45373
|
this.scrollListener = this.scrollListener.bind(this);
|
|
45278
45374
|
}
|
|
45279
45375
|
componentDidMount() {
|
|
45280
|
-
var _a, _b;
|
|
45281
45376
|
this.pageLoaded = this.props.pageStart;
|
|
45282
45377
|
this.attachScrollListener();
|
|
45283
45378
|
if (this.props.initialLoad) {
|
|
45284
45379
|
this.scrollListener();
|
|
45285
45380
|
}
|
|
45286
45381
|
// when component mounts try to load more only when initial data was already rendered
|
|
45287
|
-
else if (
|
|
45288
|
-
|
|
45382
|
+
else if (this.props.data?.length && this.props.hasMore) {
|
|
45383
|
+
this.scrollComponent?.scrollHeight && this.scrollListener();
|
|
45289
45384
|
}
|
|
45290
45385
|
}
|
|
45291
45386
|
componentDidUpdate(prevProps) {
|
|
45292
|
-
var _a, _b, _c;
|
|
45293
45387
|
this.attachScrollListener();
|
|
45294
45388
|
// scroll element might be not scrollable - trigger scroll listener when new data changes the scroll element height
|
|
45295
|
-
if (
|
|
45389
|
+
if (prevProps.data?.length !== this.props.data?.length &&
|
|
45296
45390
|
this.props.hasMore) {
|
|
45297
45391
|
// To avoid infinite loop of `loadMore` in `jsdom` we require the scroll element to have height before we trigger `scrollListener` as a reaction to new `props.data`.
|
|
45298
|
-
|
|
45392
|
+
this.scrollComponent?.scrollHeight && this.scrollListener();
|
|
45299
45393
|
}
|
|
45300
45394
|
}
|
|
45301
45395
|
render() {
|
|
@@ -45470,7 +45564,7 @@ const DROPDOWN_LAYOUT_DIRECTIONS = {
|
|
|
45470
45564
|
|
|
45471
45565
|
|
|
45472
45566
|
|
|
45473
|
-
var DropdownLayout_st_css_namespace_ = "
|
|
45567
|
+
var DropdownLayout_st_css_namespace_ = "wds_1_98_0_DropdownLayout";
|
|
45474
45568
|
var DropdownLayout_st_css_style_ = classesRuntime.bind(null, DropdownLayout_st_css_namespace_);
|
|
45475
45569
|
|
|
45476
45570
|
var DropdownLayout_st_css_cssStates = statesRuntime.bind(null, DropdownLayout_st_css_namespace_);
|
|
@@ -45478,7 +45572,7 @@ var DropdownLayout_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
45478
45572
|
var DropdownLayout_st_css_st = DropdownLayout_st_css_style_;
|
|
45479
45573
|
|
|
45480
45574
|
var DropdownLayout_st_css_namespace = (/* unused pure expression or super */ null && (DropdownLayout_st_css_namespace_));
|
|
45481
|
-
var DropdownLayout_st_css_classes = {"root":"
|
|
45575
|
+
var DropdownLayout_st_css_classes = {"root":"wds_1_98_0_DropdownLayout__root","heading-h6":"wds_1_98_0_StylableTypography__heading-h6","text-medium-normal":"wds_1_98_0_StylableTypography__text-medium-normal","defaultScrollBar":"wds_1_98_0_defaultscrollbar__defaultScrollBar","contentContainer":"wds_1_98_0_DropdownLayout__contentContainer","options":"wds_1_98_0_DropdownLayout__options","option":"wds_1_98_0_DropdownLayout__option","selectableOption":"wds_1_98_0_DropdownLayout__selectableOption","arrow":"wds_1_98_0_DropdownLayout__arrow","loader":"wds_1_98_0_DropdownLayout__loader","linkItem":"wds_1_98_0_DropdownLayout__linkItem"};
|
|
45482
45576
|
var DropdownLayout_st_css_keyframes = {};
|
|
45483
45577
|
var DropdownLayout_st_css_layers = {};
|
|
45484
45578
|
var DropdownLayout_st_css_containers = {};
|
|
@@ -45497,7 +45591,7 @@ var DropdownLayout_st_css_vars = {"wds-input-value-font-size-medium":"--wds-inpu
|
|
|
45497
45591
|
|
|
45498
45592
|
|
|
45499
45593
|
|
|
45500
|
-
var ListItemSection_st_css_namespace_ = "
|
|
45594
|
+
var ListItemSection_st_css_namespace_ = "wds_1_98_0_ListItemSection";
|
|
45501
45595
|
var ListItemSection_st_css_style_ = classesRuntime.bind(null, ListItemSection_st_css_namespace_);
|
|
45502
45596
|
|
|
45503
45597
|
var ListItemSection_st_css_cssStates = statesRuntime.bind(null, ListItemSection_st_css_namespace_);
|
|
@@ -45505,7 +45599,7 @@ var ListItemSection_st_css_style = (/* unused pure expression or super */ null &
|
|
|
45505
45599
|
var ListItemSection_st_css_st = ListItemSection_st_css_style_;
|
|
45506
45600
|
|
|
45507
45601
|
var ListItemSection_st_css_namespace = (/* unused pure expression or super */ null && (ListItemSection_st_css_namespace_));
|
|
45508
|
-
var ListItemSection_st_css_classes = {"root":"
|
|
45602
|
+
var ListItemSection_st_css_classes = {"root":"wds_1_98_0_ListItemSection__root","title":"wds_1_98_0_ListItemSection__title","titleWrapper":"wds_1_98_0_ListItemSection__titleWrapper","suffixWrapper":"wds_1_98_0_ListItemSection__suffixWrapper","suffix":"wds_1_98_0_ListItemSection__suffix"};
|
|
45509
45603
|
var ListItemSection_st_css_keyframes = {};
|
|
45510
45604
|
var ListItemSection_st_css_layers = {};
|
|
45511
45605
|
var ListItemSection_st_css_containers = {};
|
|
@@ -45645,7 +45739,7 @@ const listItemSectionBuilder = ({ id, className, dataHook, type, title, suffix,
|
|
|
45645
45739
|
id,
|
|
45646
45740
|
overrideOptionStyle: true,
|
|
45647
45741
|
disabled: true,
|
|
45648
|
-
value: props => (external_React_default().createElement(ListItemSection,
|
|
45742
|
+
value: props => (external_React_default().createElement(ListItemSection, { className: className, dataHook: dataHook, type: type, title: title, suffix: suffix, ellipsis: ellipsis, ...props })),
|
|
45649
45743
|
});
|
|
45650
45744
|
//# sourceMappingURL=ListItemSection.js.map
|
|
45651
45745
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/ListItemAction/ListItemAction.st.css.js
|
|
@@ -45657,7 +45751,7 @@ const listItemSectionBuilder = ({ id, className, dataHook, type, title, suffix,
|
|
|
45657
45751
|
|
|
45658
45752
|
|
|
45659
45753
|
|
|
45660
|
-
var ListItemAction_st_css_namespace_ = "
|
|
45754
|
+
var ListItemAction_st_css_namespace_ = "wds_1_98_0_ListItemAction";
|
|
45661
45755
|
var ListItemAction_st_css_style_ = classesRuntime.bind(null, ListItemAction_st_css_namespace_);
|
|
45662
45756
|
|
|
45663
45757
|
var ListItemAction_st_css_cssStates = statesRuntime.bind(null, ListItemAction_st_css_namespace_);
|
|
@@ -45665,7 +45759,7 @@ var ListItemAction_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
45665
45759
|
var ListItemAction_st_css_st = ListItemAction_st_css_style_;
|
|
45666
45760
|
|
|
45667
45761
|
var ListItemAction_st_css_namespace = (/* unused pure expression or super */ null && (ListItemAction_st_css_namespace_));
|
|
45668
|
-
var ListItemAction_st_css_classes = {"root":"
|
|
45762
|
+
var ListItemAction_st_css_classes = {"root":"wds_1_98_0_ListItemAction__root","text":"wds_1_98_0_ListItemAction__text","prefixIcon":"wds_1_98_0_ListItemAction__prefixIcon","suffixIcon":"wds_1_98_0_ListItemAction__suffixIcon","textBox":"wds_1_98_0_ListItemAction__textBox","suffix":"wds_1_98_0_ListItemAction__suffix"};
|
|
45669
45763
|
var ListItemAction_st_css_keyframes = {};
|
|
45670
45764
|
var ListItemAction_st_css_layers = {};
|
|
45671
45765
|
var ListItemAction_st_css_containers = {};
|
|
@@ -45695,7 +45789,6 @@ const ListItemAction_constants_dataHooks = {
|
|
|
45695
45789
|
|
|
45696
45790
|
|
|
45697
45791
|
|
|
45698
|
-
|
|
45699
45792
|
/** ListItemAction */
|
|
45700
45793
|
class ListItemActionComponent extends (external_React_default()).PureComponent {
|
|
45701
45794
|
constructor() {
|
|
@@ -45703,7 +45796,7 @@ class ListItemActionComponent extends (external_React_default()).PureComponent {
|
|
|
45703
45796
|
this._renderText = () => {
|
|
45704
45797
|
const { title, size, ellipsis, tooltipModifiers, subtitle, disabled } = this.props;
|
|
45705
45798
|
return (external_React_default().createElement(Box_Box, { direction: "vertical", className: ListItemAction_st_css_classes.textBox, width: "100%" },
|
|
45706
|
-
external_React_default().createElement(Text,
|
|
45799
|
+
external_React_default().createElement(Text, { className: ListItemAction_st_css_st(ListItemAction_st_css_classes.text, { subtitle: Boolean(subtitle) }), dataHook: ListItemAction_constants_dataHooks.title, size: size, ellipsis: ellipsis, weight: "thin", placement: "right", skin: disabled ? 'disabled' : 'standard', ...tooltipModifiers }, title),
|
|
45707
45800
|
subtitle && (external_React_default().createElement(Text, { dataHook: ListItemAction_constants_dataHooks.subtitle, secondary: true, size: "small", ellipsis: ellipsis, weight: "thin", placement: "right", skin: disabled ? 'disabled' : 'standard', light: !disabled }, subtitle))));
|
|
45708
45801
|
};
|
|
45709
45802
|
this._renderPrefix = () => {
|
|
@@ -45743,10 +45836,10 @@ class ListItemActionComponent extends (external_React_default()).PureComponent {
|
|
|
45743
45836
|
}
|
|
45744
45837
|
}
|
|
45745
45838
|
render() {
|
|
45746
|
-
const
|
|
45839
|
+
const { dataHook, disabled, skin, prefixIcon, onClick, focusableOnFocus, focusableOnBlur, as: Component, tabIndex, onKeyDown, autoFocus, highlighted, className, subtitle, suffix, suffixIcon, ...others } = this.props;
|
|
45747
45840
|
// since we're spreading the "rest" props, we don't want to pass
|
|
45748
|
-
const { selected, hovered, ellipsis, title, shouldFocusWithoutScroll
|
|
45749
|
-
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(Component,
|
|
45841
|
+
const { selected, hovered, ellipsis, title, shouldFocusWithoutScroll, ...rest } = others;
|
|
45842
|
+
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(Component, { ...rest, className: ListItemAction_st_css_st(ListItemAction_st_css_classes.root, { skin, disabled, highlighted, ellipsis, newColorsBranding }, className), "data-skin": skin, "data-disabled": disabled, tabIndex: tabIndex, ref: ref => (this.innerComponentRef = ref), autoFocus: autoFocus, onFocus: focusableOnFocus, onBlur: focusableOnBlur, type: Component === 'button' ? 'button' : undefined, "data-hook": dataHook, onKeyDown: !disabled ? onKeyDown : undefined, onClick: !disabled ? onClick : undefined },
|
|
45750
45843
|
prefixIcon && this._renderPrefix(),
|
|
45751
45844
|
this._renderText(),
|
|
45752
45845
|
suffix && this._renderSuffix(),
|
|
@@ -45797,15 +45890,12 @@ ListItemActionComponent.defaultProps = {
|
|
|
45797
45890
|
highlighted: false,
|
|
45798
45891
|
};
|
|
45799
45892
|
const ListItemAction = Focusable_withFocusable(ListItemActionComponent);
|
|
45800
|
-
const listItemActionBuilder = (
|
|
45801
|
-
|
|
45802
|
-
|
|
45803
|
-
|
|
45804
|
-
|
|
45805
|
-
|
|
45806
|
-
value: ({ hovered }) => (external_React_default().createElement(ListItemAction, Object.assign({}, rest, { ellipsis: ellipsis, className: className, autoFocus: autoFocus, tabIndex: tabIndex, as: as, onClick: onClick, dataHook: dataHook, title: title, prefixIcon: prefixIcon, skin: skin, size: size, highlighted: hovered, disabled: disabled, subtitle: subtitle, suffix: suffix }))),
|
|
45807
|
-
});
|
|
45808
|
-
};
|
|
45893
|
+
const listItemActionBuilder = ({ title, prefixIcon, onClick, id, disabled, skin, size, dataHook, as, tabIndex, autoFocus, className, ellipsis, subtitle, suffix, ...rest }) => ({
|
|
45894
|
+
id,
|
|
45895
|
+
disabled,
|
|
45896
|
+
overrideOptionStyle: true,
|
|
45897
|
+
value: ({ hovered }) => (external_React_default().createElement(ListItemAction, { ...rest, ellipsis: ellipsis, className: className, autoFocus: autoFocus, tabIndex: tabIndex, as: as, onClick: onClick, dataHook: dataHook, title: title, prefixIcon: prefixIcon, skin: skin, size: size, highlighted: hovered, disabled: disabled, subtitle: subtitle, suffix: suffix })),
|
|
45898
|
+
});
|
|
45809
45899
|
//# sourceMappingURL=ListItemAction.js.map
|
|
45810
45900
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/DropdownLayout/DropdownLayout.js
|
|
45811
45901
|
|
|
@@ -45821,7 +45911,6 @@ const listItemActionBuilder = (_a) => {
|
|
|
45821
45911
|
|
|
45822
45912
|
|
|
45823
45913
|
|
|
45824
|
-
|
|
45825
45914
|
const MOUSE_EVENTS_SUPPORTED = ['mouseup', 'touchend'];
|
|
45826
45915
|
const KEY = {
|
|
45827
45916
|
arrowLeft: 'ArrowLeft',
|
|
@@ -46172,8 +46261,16 @@ class DropdownLayout extends (external_React_default()).PureComponent {
|
|
|
46172
46261
|
}
|
|
46173
46262
|
}
|
|
46174
46263
|
_convertOptionToListItemActionBuilder({ option, idx }) {
|
|
46175
|
-
const { id, value, disabled, optionTitle, title
|
|
46176
|
-
return listItemActionBuilder(
|
|
46264
|
+
const { id, value, disabled, optionTitle, title, ...rest } = option;
|
|
46265
|
+
return listItemActionBuilder({
|
|
46266
|
+
id: id !== undefined ? id : idx,
|
|
46267
|
+
ref: ref => (this.children[id] = ref),
|
|
46268
|
+
tabIndex: id === this.state.focusedItemId && !disabled ? '0' : '-1',
|
|
46269
|
+
disabled,
|
|
46270
|
+
title: optionTitle,
|
|
46271
|
+
role: 'menuitem',
|
|
46272
|
+
...rest,
|
|
46273
|
+
});
|
|
46177
46274
|
}
|
|
46178
46275
|
_isControlled() {
|
|
46179
46276
|
return (typeof this.props.selectedId !== 'undefined' &&
|
|
@@ -46322,10 +46419,14 @@ class DropdownLayout extends (external_React_default()).PureComponent {
|
|
|
46322
46419
|
this.focusableItemsIdsList = [...this.focusableItemsIdsList, id];
|
|
46323
46420
|
}
|
|
46324
46421
|
const isActionItem = listType === ListType.action;
|
|
46325
|
-
return (external_React_default().createElement("div",
|
|
46422
|
+
return (external_React_default().createElement("div", { "aria-selected": hasLink || isActionItem || disabled ? undefined : optionState.selected, "aria-hidden": disabled, ...this._getItemDataAttr({ ...optionState }), role: hasLink || isActionItem ? undefined : 'option', className: overrideOptionStyle
|
|
46326
46423
|
? null
|
|
46327
|
-
: DropdownLayout_st_css_st(DropdownLayout_st_css_classes.option,
|
|
46328
|
-
|
|
46424
|
+
: DropdownLayout_st_css_st(DropdownLayout_st_css_classes.option, {
|
|
46425
|
+
...optionState,
|
|
46426
|
+
selected: optionState.selected && selectedHighlight,
|
|
46427
|
+
itemHeight,
|
|
46428
|
+
overrideStyle,
|
|
46429
|
+
}), ref: node => this._setSelectedOptionNode(node, option), onClick: !disabled ? e => this._onSelect(idx, e) : null, key: idx, onMouseEnter: () => this._onMouseEnter(idx), onMouseLeave: this._onMouseLeave, "data-hook": `dropdown-item-${id}`, onKeyDown: e => this._onActionListKeyDown(e, id) }, option.value(optionState)));
|
|
46329
46430
|
}
|
|
46330
46431
|
_markOptionByProperty(props) {
|
|
46331
46432
|
if (this.state.hovered === DropdownLayout_NOT_HOVERED_INDEX && props.markedOption) {
|
|
@@ -46363,11 +46464,11 @@ class DropdownLayout extends (external_React_default()).PureComponent {
|
|
|
46363
46464
|
: DROPDOWN_LAYOUT_DIRECTIONS.DOWN,
|
|
46364
46465
|
containerStyles: !inContainer,
|
|
46365
46466
|
}, className), tabIndex: tabIndex, onKeyDown: this._onSelectListKeyDown, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onMouseDown: onMouseDown, ref: this.containerRef },
|
|
46366
|
-
external_React_default().createElement("div",
|
|
46467
|
+
external_React_default().createElement("div", { ...this._getDataAttributes(), className: DropdownLayout_st_css_classes.contentContainer, style: {
|
|
46367
46468
|
overflow,
|
|
46368
46469
|
maxHeight: DropdownLayout_getUnit(maxHeightPixels),
|
|
46369
46470
|
minWidth: DropdownLayout_getUnit(minWidthPixels),
|
|
46370
|
-
} }
|
|
46471
|
+
} },
|
|
46371
46472
|
this._renderNode(fixedHeader),
|
|
46372
46473
|
external_React_default().createElement("div", { className: DropdownLayout_st_css_classes.options, style: {
|
|
46373
46474
|
maxHeight: DropdownLayout_getUnit(parseInt(maxHeightPixels, 10) - 35),
|
|
@@ -46511,7 +46612,7 @@ DropdownLayout.NONE_SELECTED_ID = DropdownLayout_NOT_HOVERED_INDEX;
|
|
|
46511
46612
|
|
|
46512
46613
|
|
|
46513
46614
|
|
|
46514
|
-
var DropdownBase_st_css_namespace_ = "
|
|
46615
|
+
var DropdownBase_st_css_namespace_ = "wds_1_98_0_DropdownBase";
|
|
46515
46616
|
var DropdownBase_st_css_style_ = classesRuntime.bind(null, DropdownBase_st_css_namespace_);
|
|
46516
46617
|
|
|
46517
46618
|
var DropdownBase_st_css_cssStates = statesRuntime.bind(null, DropdownBase_st_css_namespace_);
|
|
@@ -46519,7 +46620,7 @@ var DropdownBase_st_css_style = (/* unused pure expression or super */ null && (
|
|
|
46519
46620
|
var DropdownBase_st_css_st = DropdownBase_st_css_style_;
|
|
46520
46621
|
|
|
46521
46622
|
var DropdownBase_st_css_namespace = (/* unused pure expression or super */ null && (DropdownBase_st_css_namespace_));
|
|
46522
|
-
var DropdownBase_st_css_classes = {"root":"
|
|
46623
|
+
var DropdownBase_st_css_classes = {"root":"wds_1_98_0_DropdownBase__root","list":"wds_1_98_0_DropdownBase__list"};
|
|
46523
46624
|
var DropdownBase_st_css_keyframes = {};
|
|
46524
46625
|
var DropdownBase_st_css_layers = {};
|
|
46525
46626
|
var DropdownBase_st_css_containers = {};
|
|
@@ -46538,7 +46639,8 @@ var DropdownBase_st_css_vars = {};
|
|
|
46538
46639
|
|
|
46539
46640
|
|
|
46540
46641
|
|
|
46541
|
-
|
|
46642
|
+
|
|
46643
|
+
var InputWithOptions_st_css_namespace_ = "wds_1_98_0_InputWithOptions";
|
|
46542
46644
|
var InputWithOptions_st_css_style_ = classesRuntime.bind(null, InputWithOptions_st_css_namespace_);
|
|
46543
46645
|
|
|
46544
46646
|
var InputWithOptions_st_css_cssStates = statesRuntime.bind(null, InputWithOptions_st_css_namespace_);
|
|
@@ -46546,7 +46648,7 @@ var InputWithOptions_st_css_style = (/* unused pure expression or super */ null
|
|
|
46546
46648
|
var InputWithOptions_st_css_st = InputWithOptions_st_css_style_;
|
|
46547
46649
|
|
|
46548
46650
|
var InputWithOptions_st_css_namespace = (/* unused pure expression or super */ null && (InputWithOptions_st_css_namespace_));
|
|
46549
|
-
var InputWithOptions_st_css_classes = {"root":"
|
|
46651
|
+
var InputWithOptions_st_css_classes = {"root":"wds_1_98_0_InputWithOptions__root","nativeSelectWrapper":"wds_1_98_0_InputWithOptions__nativeSelectWrapper","nativeSelect":"wds_1_98_0_InputWithOptions__nativeSelect","nativeOption":"wds_1_98_0_InputWithOptions__nativeOption"};
|
|
46550
46652
|
var InputWithOptions_st_css_keyframes = {};
|
|
46551
46653
|
var InputWithOptions_st_css_layers = {};
|
|
46552
46654
|
var InputWithOptions_st_css_containers = {};
|
|
@@ -46697,7 +46799,19 @@ class InputWithOptions extends external_React_.Component {
|
|
|
46697
46799
|
'className',
|
|
46698
46800
|
], this.props), inputAdditionalProps);
|
|
46699
46801
|
const { inputElement } = inputProps;
|
|
46700
|
-
return external_React_default().cloneElement(inputElement,
|
|
46802
|
+
return external_React_default().cloneElement(inputElement, {
|
|
46803
|
+
menuArrow: true,
|
|
46804
|
+
ref: this.input,
|
|
46805
|
+
...inputProps,
|
|
46806
|
+
onChange: this._onChange,
|
|
46807
|
+
onInputClicked: this._onInputClicked,
|
|
46808
|
+
onFocus: this._onFocus,
|
|
46809
|
+
onBlur: this._onBlur,
|
|
46810
|
+
onCompositionChange: this.onCompositionChange,
|
|
46811
|
+
width: inputElement.props.width,
|
|
46812
|
+
textOverflow: this.props.textOverflow || inputElement.props.textOverflow,
|
|
46813
|
+
tabIndex: this.props.native ? -1 : 0,
|
|
46814
|
+
});
|
|
46701
46815
|
}
|
|
46702
46816
|
_renderDropdownLayout() {
|
|
46703
46817
|
const { highlight, value } = this.props;
|
|
@@ -46706,7 +46820,7 @@ class InputWithOptions extends external_React_.Component {
|
|
|
46706
46820
|
const customStyle = { marginLeft: this.props.dropdownOffsetLeft };
|
|
46707
46821
|
return (external_React_default().createElement("div", { className: `${this.uniqueId} ${this.dropdownClasses()}`, style: customStyle, "data-hook": "dropdown-layout-wrapper" },
|
|
46708
46822
|
external_React_default().createElement(InputWithOptions_HighlightContext.Provider, { value: { highlight, match: value } },
|
|
46709
|
-
external_React_default().createElement(DropdownLayout_DropdownLayout,
|
|
46823
|
+
external_React_default().createElement(DropdownLayout_DropdownLayout, { ref: dropdownLayout => (this.dropdownLayout = dropdownLayout), ...dropdownProps, dataHook: "inputwithoptions-dropdownlayout", visible: true, onClose: this.hideOptions, onSelect: this._onSelect, isComposing: this.state.isComposing, inContainer: true, tabIndex: -1 }))));
|
|
46710
46824
|
}
|
|
46711
46825
|
_renderNativeSelect() {
|
|
46712
46826
|
const { options, onSelect, disabled } = this.props;
|
|
@@ -46719,12 +46833,11 @@ class InputWithOptions extends external_React_.Component {
|
|
|
46719
46833
|
} }, options.map((option, index) => (external_React_default().createElement("option", { "data-hook": `native-option-${option.id}`, "data-index": index, key: option.id, value: option.value, className: InputWithOptions_st_css_classes.nativeOption }, option.value))))));
|
|
46720
46834
|
}
|
|
46721
46835
|
render() {
|
|
46722
|
-
var _a;
|
|
46723
46836
|
const { native, dataHook, popoverProps, dropDirectionUp, dropdownWidth, className, } = this.props;
|
|
46724
46837
|
const placement = dropDirectionUp ? 'top' : popoverProps.placement;
|
|
46725
46838
|
const body = popoverProps.appendTo === 'window';
|
|
46726
46839
|
const rootProps = this.rootAdditionalProps();
|
|
46727
|
-
return !native ? (external_React_default().createElement(Popover_Popover,
|
|
46840
|
+
return !native ? (external_React_default().createElement(Popover_Popover, { className: InputWithOptions_st_css_st(InputWithOptions_st_css_classes.root, { size: 'medium' }, rootProps.className ?? className), ...DEFAULT_POPOVER_PROPS, dynamicWidth: body, excludeClass: this.uniqueId, ...popoverProps, width: dropdownWidth, placement: placement, dataHook: dataHook, onKeyDown: this._onKeyDown, onClickOutside: this.onClickOutside, shown: this.isDropdownLayoutVisible() },
|
|
46728
46841
|
external_React_default().createElement(Popover_Popover.Element, null,
|
|
46729
46842
|
external_React_default().createElement("div", { "data-input-parent": true, className: this.inputClasses() }, this.renderInput())),
|
|
46730
46843
|
external_React_default().createElement(Popover_Popover.Content, null, this._renderDropdownLayout()))) : (this._renderNativeSelect());
|
|
@@ -46913,32 +47026,48 @@ class InputWithOptions extends external_React_.Component {
|
|
|
46913
47026
|
this.input.current && this.input.current.select();
|
|
46914
47027
|
}
|
|
46915
47028
|
}
|
|
46916
|
-
InputWithOptions.defaultProps =
|
|
46917
|
-
|
|
47029
|
+
InputWithOptions.defaultProps = {
|
|
47030
|
+
...Input_ThemedInput.defaultProps,
|
|
47031
|
+
...DropdownLayout_DropdownLayout.defaultProps,
|
|
47032
|
+
onSelect: () => { },
|
|
47033
|
+
options: [],
|
|
47034
|
+
closeOnSelect: true,
|
|
47035
|
+
inputElement: external_React_default().createElement(Input_ThemedInput, null),
|
|
47036
|
+
valueParser: DEFAULT_VALUE_PARSER,
|
|
47037
|
+
dropdownWidth: null,
|
|
47038
|
+
popoverProps: DEFAULT_POPOVER_PROPS,
|
|
47039
|
+
dropdownOffsetLeft: '0',
|
|
47040
|
+
showOptionsIfEmptyInput: true,
|
|
47041
|
+
autocomplete: 'off,chrome-off',
|
|
47042
|
+
native: false,
|
|
47043
|
+
};
|
|
47044
|
+
InputWithOptions.propTypes = {
|
|
47045
|
+
...Input_ThemedInput.propTypes,
|
|
47046
|
+
...DropdownLayout_DropdownLayout.propTypes,
|
|
46918
47047
|
/** Use a customized input component instead of the default @wix/design-system `<Input/>` component */
|
|
46919
|
-
inputElement: (prop_types_default()).element,
|
|
47048
|
+
inputElement: (prop_types_default()).element,
|
|
46920
47049
|
/** Closes DropdownLayout on option selection */
|
|
46921
|
-
closeOnSelect: (prop_types_default()).bool,
|
|
47050
|
+
closeOnSelect: (prop_types_default()).bool,
|
|
46922
47051
|
/** A callback which is called when the user performs a Submit-Action.
|
|
46923
47052
|
* Submit-Action triggers are: "Enter", "Tab", [typing any defined delimiters], Paste action.
|
|
46924
47053
|
* `onManuallyInput(values: Array<string>): void - The array of strings is the result of splitting the input value by the given delimiters */
|
|
46925
|
-
onManuallyInput: (prop_types_default()).func,
|
|
47054
|
+
onManuallyInput: (prop_types_default()).func,
|
|
46926
47055
|
/** A callback which is called when options dropdown is shown */
|
|
46927
|
-
onOptionsShow: (prop_types_default()).func,
|
|
47056
|
+
onOptionsShow: (prop_types_default()).func,
|
|
46928
47057
|
/** A callback which is called when options dropdown is hidden */
|
|
46929
|
-
onOptionsHide: (prop_types_default()).func,
|
|
47058
|
+
onOptionsHide: (prop_types_default()).func,
|
|
46930
47059
|
/** Function that receives an option, and should return the value to be displayed. */
|
|
46931
|
-
valueParser: (prop_types_default()).func,
|
|
47060
|
+
valueParser: (prop_types_default()).func,
|
|
46932
47061
|
/** Sets the width of the dropdown */
|
|
46933
|
-
dropdownWidth: (prop_types_default()).string,
|
|
47062
|
+
dropdownWidth: (prop_types_default()).string,
|
|
46934
47063
|
/** Sets the offset of the dropdown from the left */
|
|
46935
|
-
dropdownOffsetLeft: (prop_types_default()).string,
|
|
47064
|
+
dropdownOffsetLeft: (prop_types_default()).string,
|
|
46936
47065
|
/** Controls whether to show options if input is empty */
|
|
46937
|
-
showOptionsIfEmptyInput: (prop_types_default()).bool,
|
|
47066
|
+
showOptionsIfEmptyInput: (prop_types_default()).bool,
|
|
46938
47067
|
/** Mark in bold word parts based on search pattern */
|
|
46939
|
-
highlight: (prop_types_default()).bool,
|
|
47068
|
+
highlight: (prop_types_default()).bool,
|
|
46940
47069
|
/** Indicates whether to render using the native select element */
|
|
46941
|
-
native: (prop_types_default()).bool,
|
|
47070
|
+
native: (prop_types_default()).bool,
|
|
46942
47071
|
/** common popover props */
|
|
46943
47072
|
popoverProps: prop_types_default().shape({
|
|
46944
47073
|
appendTo: prop_types_default().oneOf(['window', 'scrollParent', 'parent', 'viewport']),
|
|
@@ -46964,7 +47093,8 @@ InputWithOptions.propTypes = Object.assign(Object.assign(Object.assign({}, Input
|
|
|
46964
47093
|
'left-start',
|
|
46965
47094
|
]),
|
|
46966
47095
|
dynamicWidth: (prop_types_default()).bool,
|
|
46967
|
-
})
|
|
47096
|
+
}),
|
|
47097
|
+
};
|
|
46968
47098
|
InputWithOptions.displayName = 'InputWithOptions';
|
|
46969
47099
|
/* harmony default export */ const InputWithOptions_InputWithOptions = (InputWithOptions);
|
|
46970
47100
|
//# sourceMappingURL=InputWithOptions.js.map
|
|
@@ -46975,7 +47105,7 @@ InputWithOptions.displayName = 'InputWithOptions';
|
|
|
46975
47105
|
|
|
46976
47106
|
|
|
46977
47107
|
|
|
46978
|
-
var Dropdown_st_css_namespace_ = "
|
|
47108
|
+
var Dropdown_st_css_namespace_ = "wds_1_98_0_Dropdown";
|
|
46979
47109
|
var Dropdown_st_css_style_ = classesRuntime.bind(null, Dropdown_st_css_namespace_);
|
|
46980
47110
|
|
|
46981
47111
|
var Dropdown_st_css_cssStates = statesRuntime.bind(null, Dropdown_st_css_namespace_);
|
|
@@ -46983,7 +47113,7 @@ var Dropdown_st_css_style = (/* unused pure expression or super */ null && (Drop
|
|
|
46983
47113
|
var Dropdown_st_css_st = Dropdown_st_css_style_;
|
|
46984
47114
|
|
|
46985
47115
|
var Dropdown_st_css_namespace = (/* unused pure expression or super */ null && (Dropdown_st_css_namespace_));
|
|
46986
|
-
var Dropdown_st_css_classes = {"root":"
|
|
47116
|
+
var Dropdown_st_css_classes = {"root":"wds_1_98_0_Dropdown__root","input":"wds_1_98_0_Input__input","showPointer":"wds_1_98_0_Dropdown__showPointer"};
|
|
46987
47117
|
var Dropdown_st_css_keyframes = {};
|
|
46988
47118
|
var Dropdown_st_css_layers = {};
|
|
46989
47119
|
var Dropdown_st_css_containers = {};
|
|
@@ -47007,7 +47137,11 @@ const NO_SELECTED_ID = null;
|
|
|
47007
47137
|
class Dropdown extends InputWithOptions_InputWithOptions {
|
|
47008
47138
|
constructor(props) {
|
|
47009
47139
|
super(props);
|
|
47010
|
-
this.state =
|
|
47140
|
+
this.state = {
|
|
47141
|
+
value: '',
|
|
47142
|
+
selectedId: NO_SELECTED_ID,
|
|
47143
|
+
...Dropdown.getNextState(props, defaultTo_default()(props.selectedId, props.initialSelectedId)),
|
|
47144
|
+
};
|
|
47011
47145
|
}
|
|
47012
47146
|
isSelectedIdControlled() {
|
|
47013
47147
|
return typeof this.props.selectedId !== 'undefined';
|
|
@@ -47274,16 +47408,14 @@ Dropdown.displayName = 'Dropdown';
|
|
|
47274
47408
|
|
|
47275
47409
|
|
|
47276
47410
|
|
|
47277
|
-
|
|
47278
47411
|
class DropdownBase extends (external_React_default()).PureComponent {
|
|
47279
47412
|
constructor(props) {
|
|
47280
|
-
var _a, _b;
|
|
47281
47413
|
super(props);
|
|
47282
47414
|
this._dropdownLayoutRef = null;
|
|
47283
47415
|
this._shouldCloseOnMouseLeave = false;
|
|
47284
47416
|
this.state = {
|
|
47285
47417
|
open: this.props.open,
|
|
47286
|
-
selectedId:
|
|
47418
|
+
selectedId: this.props.selectedId ?? this.props.initialSelectedId ?? -1,
|
|
47287
47419
|
listAutoFocus: false,
|
|
47288
47420
|
};
|
|
47289
47421
|
/**
|
|
@@ -47463,10 +47595,10 @@ class DropdownBase extends (external_React_default()).PureComponent {
|
|
|
47463
47595
|
render() {
|
|
47464
47596
|
const { dataHook, placement, appendTo, showArrow, zIndex, moveBy, options, minWidth, maxWidth, fixed, flip, tabIndex, overflow, dynamicWidth, maxHeight, fluid, animate, className, focusOnSelectedOption, infiniteScroll, loadMore, hasMore, focusOnOption, scrollToOption, markedOption, onMouseDown, listType, fixedHeader, fixedFooter, autoFocus, } = this.props;
|
|
47465
47597
|
const { open, selectedId } = this.state;
|
|
47466
|
-
const
|
|
47467
|
-
return (external_React_default().createElement(Popover_Popover,
|
|
47598
|
+
const { onShow, onHide, ...popoverProps } = this.props;
|
|
47599
|
+
return (external_React_default().createElement(Popover_Popover, { "data-list-type": listType, ...popoverProps, animate: animate, dataHook: dataHook, shown: open, placement: placement, dynamicWidth: dynamicWidth, appendTo: appendTo, showArrow: showArrow, zIndex: zIndex, moveBy: moveBy, onKeyDown: this._handleKeyDown, onMouseEnter: this._handlePopoverMouseEnter, onMouseLeave: this._handlePopoverMouseLeave, onClickOutside: this._handleClickOutside, fixed: fixed, flip: flip, fluid: fluid, className: DropdownBase_st_css_st(DropdownBase_st_css_classes.root, {
|
|
47468
47600
|
withWidth: Boolean(minWidth || maxWidth),
|
|
47469
|
-
}, className) }
|
|
47601
|
+
}, className) },
|
|
47470
47602
|
external_React_default().createElement(Popover_Popover.Element, null, this._renderChildren()),
|
|
47471
47603
|
external_React_default().createElement(Popover_Popover.Content, null,
|
|
47472
47604
|
external_React_default().createElement("div", { style: {
|
|
@@ -59990,7 +60122,7 @@ const testDataHooks = {
|
|
|
59990
60122
|
|
|
59991
60123
|
|
|
59992
60124
|
|
|
59993
|
-
var IconButton_st_css_namespace_ = "
|
|
60125
|
+
var IconButton_st_css_namespace_ = "wds_1_98_0_IconButton";
|
|
59994
60126
|
var IconButton_st_css_style_ = classesRuntime.bind(null, IconButton_st_css_namespace_);
|
|
59995
60127
|
|
|
59996
60128
|
var IconButton_st_css_cssStates = statesRuntime.bind(null, IconButton_st_css_namespace_);
|
|
@@ -59998,7 +60130,7 @@ var IconButton_st_css_style = (/* unused pure expression or super */ null && (Ic
|
|
|
59998
60130
|
var IconButton_st_css_st = IconButton_st_css_style_;
|
|
59999
60131
|
|
|
60000
60132
|
var IconButton_st_css_namespace = (/* unused pure expression or super */ null && (IconButton_st_css_namespace_));
|
|
60001
|
-
var IconButton_st_css_classes = {"root":"
|
|
60133
|
+
var IconButton_st_css_classes = {"root":"wds_1_98_0_IconButton__root"};
|
|
60002
60134
|
var IconButton_st_css_keyframes = {};
|
|
60003
60135
|
var IconButton_st_css_layers = {};
|
|
60004
60136
|
var IconButton_st_css_containers = {};
|
|
@@ -60019,7 +60151,6 @@ var IconButton_st_css_vars = {"wds-button-border-radius-tiny":"--wds-button-bord
|
|
|
60019
60151
|
|
|
60020
60152
|
|
|
60021
60153
|
|
|
60022
|
-
|
|
60023
60154
|
class IconButton extends external_React_.PureComponent {
|
|
60024
60155
|
constructor(props) {
|
|
60025
60156
|
super(props);
|
|
@@ -60036,9 +60167,12 @@ class IconButton extends external_React_.PureComponent {
|
|
|
60036
60167
|
}
|
|
60037
60168
|
render() {
|
|
60038
60169
|
const { button: buttonPropsDefaults } = this.context;
|
|
60039
|
-
const
|
|
60170
|
+
const { skin, className, priority, size = buttonPropsDefaults.size, children, dataHook, ariaLabel, ariaLabelledBy, ...rest } = this.props;
|
|
60040
60171
|
const childSize = iconChildSize[size];
|
|
60041
|
-
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(ButtonCore_ButtonCore,
|
|
60172
|
+
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement(ButtonCore_ButtonCore, { ...rest, ref: this.button, className: IconButton_st_css_st(IconButton_st_css_classes.root, { skin, priority, size, newColorsBranding }, className), ...generateDataAttr({
|
|
60173
|
+
...this.props,
|
|
60174
|
+
size,
|
|
60175
|
+
}, ['skin', 'size', 'priority']), "data-hook": dataHook, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, children &&
|
|
60042
60176
|
external_React_default().cloneElement(children, {
|
|
60043
60177
|
size: childSize,
|
|
60044
60178
|
width: childSize,
|
|
@@ -60113,7 +60247,7 @@ const Avatar_constants_dataHooks = {
|
|
|
60113
60247
|
|
|
60114
60248
|
|
|
60115
60249
|
|
|
60116
|
-
var AvatarCore_st_css_namespace_ = "
|
|
60250
|
+
var AvatarCore_st_css_namespace_ = "wds_1_98_0_AvatarCore";
|
|
60117
60251
|
var AvatarCore_st_css_style_ = classesRuntime.bind(null, AvatarCore_st_css_namespace_);
|
|
60118
60252
|
|
|
60119
60253
|
var AvatarCore_st_css_cssStates = statesRuntime.bind(null, AvatarCore_st_css_namespace_);
|
|
@@ -60121,7 +60255,7 @@ var AvatarCore_st_css_style = (/* unused pure expression or super */ null && (Av
|
|
|
60121
60255
|
var AvatarCore_st_css_st = AvatarCore_st_css_style_;
|
|
60122
60256
|
|
|
60123
60257
|
var AvatarCore_st_css_namespace = (/* unused pure expression or super */ null && (AvatarCore_st_css_namespace_));
|
|
60124
|
-
var AvatarCore_st_css_classes = {"root":"
|
|
60258
|
+
var AvatarCore_st_css_classes = {"root":"wds_1_98_0_AvatarCore__root","content":"wds_1_98_0_AvatarCore__content"};
|
|
60125
60259
|
var AvatarCore_st_css_keyframes = {};
|
|
60126
60260
|
var AvatarCore_st_css_layers = {};
|
|
60127
60261
|
var AvatarCore_st_css_containers = {};
|
|
@@ -60139,7 +60273,7 @@ var AvatarCore_st_css_vars = {};
|
|
|
60139
60273
|
|
|
60140
60274
|
|
|
60141
60275
|
|
|
60142
|
-
var gradients_st_css_namespace_ = "
|
|
60276
|
+
var gradients_st_css_namespace_ = "wds_1_98_0_gradients";
|
|
60143
60277
|
var gradients_st_css_style_ = classesRuntime.bind(null, gradients_st_css_namespace_);
|
|
60144
60278
|
|
|
60145
60279
|
var gradients_st_css_cssStates = statesRuntime.bind(null, gradients_st_css_namespace_);
|
|
@@ -60147,7 +60281,7 @@ var gradients_st_css_style = (/* unused pure expression or super */ null && (gra
|
|
|
60147
60281
|
var gradients_st_css_st = (/* unused pure expression or super */ null && (gradients_st_css_style_));
|
|
60148
60282
|
|
|
60149
60283
|
var gradients_st_css_namespace = (/* unused pure expression or super */ null && (gradients_st_css_namespace_));
|
|
60150
|
-
var gradients_st_css_classes = {"root":"
|
|
60284
|
+
var gradients_st_css_classes = {"root":"wds_1_98_0_gradients__root"};
|
|
60151
60285
|
var gradients_st_css_keyframes = {};
|
|
60152
60286
|
var gradients_st_css_layers = {};
|
|
60153
60287
|
var gradients_st_css_containers = {};
|
|
@@ -60171,7 +60305,7 @@ var gradients_st_css_vars = {};
|
|
|
60171
60305
|
|
|
60172
60306
|
|
|
60173
60307
|
|
|
60174
|
-
var Avatar_st_css_namespace_ = "
|
|
60308
|
+
var Avatar_st_css_namespace_ = "wds_1_98_0_Avatar";
|
|
60175
60309
|
var Avatar_st_css_style_ = classesRuntime.bind(null, Avatar_st_css_namespace_);
|
|
60176
60310
|
|
|
60177
60311
|
var Avatar_st_css_cssStates = statesRuntime.bind(null, Avatar_st_css_namespace_);
|
|
@@ -60179,7 +60313,7 @@ var Avatar_st_css_style = (/* unused pure expression or super */ null && (Avatar
|
|
|
60179
60313
|
var Avatar_st_css_st = Avatar_st_css_style_;
|
|
60180
60314
|
|
|
60181
60315
|
var Avatar_st_css_namespace = (/* unused pure expression or super */ null && (Avatar_st_css_namespace_));
|
|
60182
|
-
var Avatar_st_css_classes = {"root":"
|
|
60316
|
+
var Avatar_st_css_classes = {"root":"wds_1_98_0_Avatar__root","text-small-bold":"wds_1_98_0_StylableTypography__text-small-bold","text-tiny-normal":"wds_1_98_0_StylableTypography__text-tiny-normal","text-medium-normal":"wds_1_98_0_StylableTypography__text-medium-normal","text-medium-bold":"wds_1_98_0_StylableTypography__text-medium-bold","text-tiny-bold":"wds_1_98_0_StylableTypography__text-tiny-bold","placeholder":"wds_1_98_0_Avatar__placeholder","avatarContainer":"wds_1_98_0_Avatar__avatarContainer","coreAvatar":"wds_1_98_0_Avatar__coreAvatar","avatar":"wds_1_98_0_Avatar__avatar","presence":"wds_1_98_0_Avatar__presence","indication":"wds_1_98_0_Avatar__indication","iconButtonShadow":"wds_1_98_0_Avatar__iconButtonShadow","colorA1":"wds_1_98_0_Avatar__colorA1","colorA2":"wds_1_98_0_Avatar__colorA2","colorA3":"wds_1_98_0_Avatar__colorA3","colorA4":"wds_1_98_0_Avatar__colorA4","colorA5":"wds_1_98_0_Avatar__colorA5","colorA6":"wds_1_98_0_Avatar__colorA6","loaderContainer":"wds_1_98_0_Avatar__loaderContainer","overlay":"wds_1_98_0_Avatar__overlay","loader":"wds_1_98_0_Avatar__loader"};
|
|
60183
60317
|
var Avatar_st_css_keyframes = {};
|
|
60184
60318
|
var Avatar_st_css_layers = {};
|
|
60185
60319
|
var Avatar_st_css_containers = {};
|
|
@@ -60289,7 +60423,6 @@ function utils_nameToInitials(name, limit = 2) {
|
|
|
60289
60423
|
|
|
60290
60424
|
|
|
60291
60425
|
|
|
60292
|
-
|
|
60293
60426
|
const DEFAULT_CONTENT_TYPE = 'placeholder';
|
|
60294
60427
|
/**
|
|
60295
60428
|
* AvatarCore is a type of element that visually represents a user, either as an image, placeholder or text.
|
|
@@ -60304,13 +60437,12 @@ class AvatarCore extends external_React_.Component {
|
|
|
60304
60437
|
this.state = { imgLoaded: false };
|
|
60305
60438
|
this.img = undefined;
|
|
60306
60439
|
this.loadImg = () => {
|
|
60307
|
-
var _a, _b;
|
|
60308
60440
|
this.img = new Image();
|
|
60309
60441
|
this.img.onload = () => {
|
|
60310
60442
|
// don't set state after unmount
|
|
60311
60443
|
this.img && this.setState({ imgLoaded: true });
|
|
60312
60444
|
};
|
|
60313
|
-
this.img.src =
|
|
60445
|
+
this.img.src = this.props.imgProps?.src ?? '';
|
|
60314
60446
|
};
|
|
60315
60447
|
this.unloadImg = () => {
|
|
60316
60448
|
// TODO: Is this necessary? It is taken from https://github.com/mbrevda/react-image/blob/c402ed3f5d54b88e51eca3326a1e81d964995795/src/index.js#L146
|
|
@@ -60401,8 +60533,8 @@ class AvatarCore extends external_React_.Component {
|
|
|
60401
60533
|
if (!this.props.imgProps) {
|
|
60402
60534
|
return null;
|
|
60403
60535
|
}
|
|
60404
|
-
const
|
|
60405
|
-
return (external_React_.createElement("img",
|
|
60536
|
+
const { alt, className, ...rest } = this.props.imgProps;
|
|
60537
|
+
return (external_React_.createElement("img", { "data-hook": "content", className: classnames_default()(AvatarCore_st_css_classes.content, className), alt: alt ? alt : this.props.name, ...rest }));
|
|
60406
60538
|
}
|
|
60407
60539
|
default: {
|
|
60408
60540
|
return null;
|
|
@@ -60419,10 +60551,10 @@ class AvatarCore extends external_React_.Component {
|
|
|
60419
60551
|
onKeyDown: this._handleKeyDown,
|
|
60420
60552
|
tabIndex: 0,
|
|
60421
60553
|
};
|
|
60422
|
-
return (external_React_.createElement("div",
|
|
60554
|
+
return (external_React_.createElement("div", { "data-content-type": contentType, "data-img-loaded": this.state.imgLoaded, title: title || name, "aria-label": ariaLabel || name, onClick: onClick, ...focusProps, className: AvatarCore_st_css_st(AvatarCore_st_css_classes.root, {
|
|
60423
60555
|
imgLoaded: this.state.imgLoaded,
|
|
60424
60556
|
contentType,
|
|
60425
|
-
}, this.props.className)
|
|
60557
|
+
}, this.props.className), ...propsUtils_filterDataProps(this.props) }, this.getContent(contentType)));
|
|
60426
60558
|
}
|
|
60427
60559
|
}
|
|
60428
60560
|
AvatarCore.displayName = 'AvatarCore';
|
|
@@ -60443,7 +60575,6 @@ AvatarCore.defaultProps = {
|
|
|
60443
60575
|
|
|
60444
60576
|
|
|
60445
60577
|
|
|
60446
|
-
|
|
60447
60578
|
const getSizeNumber = size => Number(size.substring(4));
|
|
60448
60579
|
const defaultSize = 48;
|
|
60449
60580
|
const minSmallIconButton = 60;
|
|
@@ -60470,7 +60601,7 @@ class Avatar_Avatar extends (external_React_default()).PureComponent {
|
|
|
60470
60601
|
};
|
|
60471
60602
|
}
|
|
60472
60603
|
render() {
|
|
60473
|
-
const
|
|
60604
|
+
const { size, presence, indication, color, customIndication, onIndicationClick, dataHook, className, shape, text, placeholder, name, onClick, showIndicationOnHover, loading, ...rest } = this.props;
|
|
60474
60605
|
const { fadeIndication, showIndication } = this.state;
|
|
60475
60606
|
const calculatedColor = color || string_to_color(text || name); // if color is provided as a prop use it, otherwise, generate a color based on the text
|
|
60476
60607
|
const sizeNumber = getSizeNumber(size);
|
|
@@ -60492,7 +60623,7 @@ class Avatar_Avatar extends (external_React_default()).PureComponent {
|
|
|
60492
60623
|
newColorsBranding,
|
|
60493
60624
|
}) },
|
|
60494
60625
|
external_React_default().createElement("div", { className: Avatar_st_css_classes.coreAvatar },
|
|
60495
|
-
external_React_default().createElement(AvatarCore_AvatarCore,
|
|
60626
|
+
external_React_default().createElement(AvatarCore_AvatarCore, { ...rest, placeholder: placeholder ?? (external_React_default().createElement(AvatarDefaultPlaceholder, { shape: shape, size: size })), text: text, name: name, onClick: onClick, initialsLimit: sizeNumber < 30 ? 1 : undefined, "data-hook": Avatar_constants_dataHooks.avatarCore, className: Avatar_st_css_st(Avatar_st_css_classes.avatar, Avatar_st_css_classes[`color${capitalize(calculatedColor)}`]) })),
|
|
60496
60627
|
renderLoader && [
|
|
60497
60628
|
external_React_default().createElement("div", { key: "overlay", className: Avatar_st_css_st(Avatar_st_css_classes.loaderContainer, Avatar_st_css_classes.overlay) }),
|
|
60498
60629
|
external_React_default().createElement("div", { key: "loader", className: Avatar_st_css_st(Avatar_st_css_classes.loaderContainer, Avatar_st_css_classes.loader) },
|
|
@@ -60531,7 +60662,8 @@ const CoreAvatarPropTypes = {
|
|
|
60531
60662
|
onClick: (prop_types_default()).func,
|
|
60532
60663
|
};
|
|
60533
60664
|
Avatar_Avatar.displayName = 'Avatar';
|
|
60534
|
-
Avatar_Avatar.propTypes =
|
|
60665
|
+
Avatar_Avatar.propTypes = {
|
|
60666
|
+
...CoreAvatarPropTypes,
|
|
60535
60667
|
/** Controls the size of an avatar. */
|
|
60536
60668
|
size: prop_types_default().oneOf([
|
|
60537
60669
|
'size90',
|
|
@@ -60542,33 +60674,34 @@ Avatar_Avatar.propTypes = Object.assign(Object.assign({}, CoreAvatarPropTypes),
|
|
|
60542
60674
|
'size30',
|
|
60543
60675
|
'size24',
|
|
60544
60676
|
'size18',
|
|
60545
|
-
]),
|
|
60677
|
+
]),
|
|
60546
60678
|
/**
|
|
60547
60679
|
* Controls the background color of the avatar. If not provided,
|
|
60548
60680
|
* color is determined by the provided text or name so that each name will receive a different color.
|
|
60549
60681
|
*/
|
|
60550
|
-
color: prop_types_default().oneOf(['A1', 'A2', 'A3', 'A4', 'A5', 'A6']),
|
|
60682
|
+
color: prop_types_default().oneOf(['A1', 'A2', 'A3', 'A4', 'A5', 'A6']),
|
|
60551
60683
|
/** Controls the shape of the image. */
|
|
60552
|
-
shape: prop_types_default().oneOf(['circle', 'square']),
|
|
60684
|
+
shape: prop_types_default().oneOf(['circle', 'square']),
|
|
60553
60685
|
/** Specifies a CSS class name to be appended to the component’s root element. */
|
|
60554
|
-
className: (prop_types_default()).string,
|
|
60686
|
+
className: (prop_types_default()).string,
|
|
60555
60687
|
/** Applies a data-hook HTML attribute that can be used in the tests. */
|
|
60556
|
-
dataHook: (prop_types_default()).string,
|
|
60688
|
+
dataHook: (prop_types_default()).string,
|
|
60557
60689
|
/** Sets the presence status of an avatar. */
|
|
60558
|
-
presence: prop_types_default().oneOf(['online', 'offline', 'busy']),
|
|
60690
|
+
presence: prop_types_default().oneOf(['online', 'offline', 'busy']),
|
|
60559
60691
|
/** Accept any content to render as an indication item. */
|
|
60560
|
-
indication: (prop_types_default()).node,
|
|
60692
|
+
indication: (prop_types_default()).node,
|
|
60561
60693
|
/**
|
|
60562
60694
|
* Accept any content to render as a custom indication item. This indication element will not be wrapped by an IconButton.
|
|
60563
60695
|
* It could be rendered in other shapes (such as square).
|
|
60564
60696
|
* */
|
|
60565
|
-
customIndication: (prop_types_default()).node,
|
|
60697
|
+
customIndication: (prop_types_default()).node,
|
|
60566
60698
|
/** Defines a callback function which is called every time indication element is clicked. */
|
|
60567
|
-
onIndicationClick: (prop_types_default()).func,
|
|
60699
|
+
onIndicationClick: (prop_types_default()).func,
|
|
60568
60700
|
/** Shows indication element on hover. */
|
|
60569
|
-
showIndicationOnHover: (prop_types_default()).bool,
|
|
60701
|
+
showIndicationOnHover: (prop_types_default()).bool,
|
|
60570
60702
|
/** Shows a loader on top of an avatar. */
|
|
60571
|
-
loading: (prop_types_default()).bool
|
|
60703
|
+
loading: (prop_types_default()).bool,
|
|
60704
|
+
};
|
|
60572
60705
|
Avatar_Avatar.defaultProps = {
|
|
60573
60706
|
size: 'size48',
|
|
60574
60707
|
shape: 'circle',
|
|
@@ -60673,7 +60806,7 @@ const customStyles=(props,rtl)=>{return{valueContainer:provided=>({...provided,p
|
|
|
60673
60806
|
|
|
60674
60807
|
|
|
60675
60808
|
|
|
60676
|
-
var Tag_st_css_namespace_ = "
|
|
60809
|
+
var Tag_st_css_namespace_ = "wds_1_98_0_Tag";
|
|
60677
60810
|
var Tag_st_css_style_ = classesRuntime.bind(null, Tag_st_css_namespace_);
|
|
60678
60811
|
|
|
60679
60812
|
var Tag_st_css_cssStates = statesRuntime.bind(null, Tag_st_css_namespace_);
|
|
@@ -60681,7 +60814,7 @@ var Tag_st_css_style = (/* unused pure expression or super */ null && (Tag_st_cs
|
|
|
60681
60814
|
var Tag_st_css_st = Tag_st_css_style_;
|
|
60682
60815
|
|
|
60683
60816
|
var Tag_st_css_namespace = (/* unused pure expression or super */ null && (Tag_st_css_namespace_));
|
|
60684
|
-
var Tag_st_css_classes = {"root":"
|
|
60817
|
+
var Tag_st_css_classes = {"root":"wds_1_98_0_Tag__root","thumb":"wds_1_98_0_Tag__thumb","removeButton":"wds_1_98_0_Tag__removeButton","text":"wds_1_98_0_Tag__text"};
|
|
60685
60818
|
var Tag_st_css_keyframes = {};
|
|
60686
60819
|
var Tag_st_css_layers = {};
|
|
60687
60820
|
var Tag_st_css_containers = {};
|
|
@@ -60764,7 +60897,7 @@ class Tag extends (external_React_default()).PureComponent {
|
|
|
60764
60897
|
const { id, onClick, maxWidth, dataHook, size, disabled, theme, thumb, removable, className, } = this.props;
|
|
60765
60898
|
const clickable = !!onClick;
|
|
60766
60899
|
const hoverable = !disabled && !!onClick;
|
|
60767
|
-
return (external_React_default().createElement("span",
|
|
60900
|
+
return (external_React_default().createElement("span", { className: Tag_st_css_st(Tag_st_css_classes.root, {
|
|
60768
60901
|
withRemoveButton: removable,
|
|
60769
60902
|
withThumb: !!thumb,
|
|
60770
60903
|
disabled,
|
|
@@ -60772,15 +60905,15 @@ class Tag extends (external_React_default()).PureComponent {
|
|
|
60772
60905
|
hoverable,
|
|
60773
60906
|
size,
|
|
60774
60907
|
theme,
|
|
60775
|
-
}, className)
|
|
60776
|
-
|
|
60777
|
-
|
|
60778
|
-
|
|
60779
|
-
|
|
60780
|
-
|
|
60781
|
-
|
|
60908
|
+
}, className), ...generateDataAttr({ ...this.props, hoverable, clickable }, [
|
|
60909
|
+
'size',
|
|
60910
|
+
'disabled',
|
|
60911
|
+
'theme',
|
|
60912
|
+
'hoverable',
|
|
60913
|
+
'clickable',
|
|
60914
|
+
]), "data-hook": dataHook, id: id, onClick: this._handleOnClick, style: {
|
|
60782
60915
|
maxWidth: typeof maxWidth === 'string' ? maxWidth : `${maxWidth}px`,
|
|
60783
|
-
} }
|
|
60916
|
+
} },
|
|
60784
60917
|
this._renderThumb(),
|
|
60785
60918
|
this._renderText(),
|
|
60786
60919
|
this._renderRemoveButton()));
|
|
@@ -60843,7 +60976,7 @@ Tag.defaultProps = {
|
|
|
60843
60976
|
|
|
60844
60977
|
|
|
60845
60978
|
|
|
60846
|
-
var InputWithTags_st_css_namespace_ = "
|
|
60979
|
+
var InputWithTags_st_css_namespace_ = "wds_1_98_0_InputWithTags";
|
|
60847
60980
|
var InputWithTags_st_css_style_ = classesRuntime.bind(null, InputWithTags_st_css_namespace_);
|
|
60848
60981
|
|
|
60849
60982
|
var InputWithTags_st_css_cssStates = statesRuntime.bind(null, InputWithTags_st_css_namespace_);
|
|
@@ -60851,7 +60984,7 @@ var InputWithTags_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
60851
60984
|
var InputWithTags_st_css_st = InputWithTags_st_css_style_;
|
|
60852
60985
|
|
|
60853
60986
|
var InputWithTags_st_css_namespace = (/* unused pure expression or super */ null && (InputWithTags_st_css_namespace_));
|
|
60854
|
-
var InputWithTags_st_css_classes = {"root":"
|
|
60987
|
+
var InputWithTags_st_css_classes = {"root":"wds_1_98_0_InputWithTags__root","text-medium-normal":"wds_1_98_0_StylableTypography__text-medium-normal","inputWrapper":"wds_1_98_0_InputWithTags__inputWrapper","emptyInput":"wds_1_98_0_InputWithTags__emptyInput","selectMode":"wds_1_98_0_InputWithTags__selectMode","inputSuffix":"wds_1_98_0_InputWithTags__inputSuffix","menuArrow":"wds_1_98_0_InputWithTags__menuArrow","statusIndicator":"wds_1_98_0_InputWithTags__statusIndicator","suffixes":"wds_1_98_0_InputWithTags__suffixes","hiddenDiv":"wds_1_98_0_InputWithTags__hiddenDiv","hasMaxHeight":"wds_1_98_0_InputWithTags__hasMaxHeight","customSuffix":"wds_1_98_0_InputWithTags__customSuffix","tagsContainer":"wds_1_98_0_InputWithTags__tagsContainer","draggedTag":"wds_1_98_0_InputWithTags__draggedTag","draggedTagPlaceholder":"wds_1_98_0_InputWithTags__draggedTagPlaceholder","input":"wds_1_98_0_InputWithTags__input"};
|
|
60855
60988
|
var InputWithTags_st_css_keyframes = {};
|
|
60856
60989
|
var InputWithTags_st_css_layers = {};
|
|
60857
60990
|
var InputWithTags_st_css_containers = {};
|
|
@@ -60905,7 +61038,11 @@ class CustomDragLayer extends (external_React_default()).Component {
|
|
|
60905
61038
|
};
|
|
60906
61039
|
this.renderPreview = () => {
|
|
60907
61040
|
const { offsetOfHandle } = this.props;
|
|
60908
|
-
const styles =
|
|
61041
|
+
const styles = {
|
|
61042
|
+
...layerStyles,
|
|
61043
|
+
left: -offsetOfHandle.x,
|
|
61044
|
+
top: -offsetOfHandle.y,
|
|
61045
|
+
};
|
|
60909
61046
|
return (external_React_default().createElement("div", { style: styles, ref: node => (dragPreviewRef = node) }, this.props.renderPreview({})));
|
|
60910
61047
|
};
|
|
60911
61048
|
this.renderPreviewInPortal = () => {
|
|
@@ -61012,7 +61149,7 @@ const source = {
|
|
|
61012
61149
|
index,
|
|
61013
61150
|
containerId,
|
|
61014
61151
|
groupName,
|
|
61015
|
-
originalIndex: index,
|
|
61152
|
+
originalIndex: index, // as index is mutable during d&d, we need another storage for original index
|
|
61016
61153
|
originalItem: item,
|
|
61017
61154
|
onMoveOut,
|
|
61018
61155
|
realTime: {
|
|
@@ -61041,10 +61178,10 @@ const source = {
|
|
|
61041
61178
|
const isSameContainer = containerId === monitor.getDropResult().containerId;
|
|
61042
61179
|
if (isSameGroup || isSameContainer) {
|
|
61043
61180
|
onDrop({
|
|
61044
|
-
payload: monitor.getItem().originalItem,
|
|
61045
|
-
removedIndex: monitor.getItem().originalIndex,
|
|
61046
|
-
addedIndex: monitor.getItem().index,
|
|
61047
|
-
addedToContainerId: monitor.getDropResult().containerId,
|
|
61181
|
+
payload: monitor.getItem().originalItem, // original item
|
|
61182
|
+
removedIndex: monitor.getItem().originalIndex, // original item index
|
|
61183
|
+
addedIndex: monitor.getItem().index, // new item index
|
|
61184
|
+
addedToContainerId: monitor.getDropResult().containerId, // new container for item
|
|
61048
61185
|
removedFromContainerId: containerId, // original item container
|
|
61049
61186
|
});
|
|
61050
61187
|
}
|
|
@@ -61097,7 +61234,7 @@ class DraggableSource extends (external_React_default()).Component {
|
|
|
61097
61234
|
return renderItem({
|
|
61098
61235
|
id,
|
|
61099
61236
|
item,
|
|
61100
|
-
previewStyles:
|
|
61237
|
+
previewStyles: { width: this.state.itemWidth, ...previewStyles },
|
|
61101
61238
|
isPreview: true,
|
|
61102
61239
|
connectHandle: (noop_default()),
|
|
61103
61240
|
delayed,
|
|
@@ -61196,9 +61333,9 @@ class DraggableSource extends (external_React_default()).Component {
|
|
|
61196
61333
|
}
|
|
61197
61334
|
}
|
|
61198
61335
|
DraggableSource.propTypes = {
|
|
61199
|
-
isDragging: (prop_types_default()).bool,
|
|
61200
|
-
connectDragSource: (prop_types_default()).func,
|
|
61201
|
-
connectDragPreview: (prop_types_default()).func,
|
|
61336
|
+
isDragging: (prop_types_default()).bool, // from react-dnd
|
|
61337
|
+
connectDragSource: (prop_types_default()).func, // from react-dnd
|
|
61338
|
+
connectDragPreview: (prop_types_default()).func, // from react-dnd
|
|
61202
61339
|
usePortal: (prop_types_default()).bool,
|
|
61203
61340
|
groupName: (prop_types_default()).string,
|
|
61204
61341
|
containerId: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
|
|
@@ -61322,7 +61459,7 @@ DraggableTarget.defaultProps = {
|
|
|
61322
61459
|
DraggableTarget.propTypes = {
|
|
61323
61460
|
dataHook: (prop_types_default()).string,
|
|
61324
61461
|
children: (prop_types_default()).any,
|
|
61325
|
-
connectDropTarget: (prop_types_default()).func,
|
|
61462
|
+
connectDropTarget: (prop_types_default()).func, // from react-dnd
|
|
61326
61463
|
containerId: (prop_types_default()).string,
|
|
61327
61464
|
droppable: (prop_types_default()).bool,
|
|
61328
61465
|
groupName: (prop_types_default()).string,
|
|
@@ -62327,7 +62464,6 @@ DraggableManager.propTypes = {
|
|
|
62327
62464
|
|
|
62328
62465
|
|
|
62329
62466
|
|
|
62330
|
-
|
|
62331
62467
|
class Draggable extends (external_React_default()).Component {
|
|
62332
62468
|
constructor() {
|
|
62333
62469
|
super(...arguments);
|
|
@@ -62381,9 +62517,8 @@ class Draggable extends (external_React_default()).Component {
|
|
|
62381
62517
|
return canDragByDelay && propsCanDrag;
|
|
62382
62518
|
};
|
|
62383
62519
|
}
|
|
62384
|
-
shouldComponentUpdate(
|
|
62385
|
-
|
|
62386
|
-
const _b = this.props, { listOfPropsThatAffectItems: prevListOfPropsThatAffectItems } = _b, prevProps = __rest(_b, ["listOfPropsThatAffectItems"]);
|
|
62520
|
+
shouldComponentUpdate({ listOfPropsThatAffectItems, ...nextProps }, nextState) {
|
|
62521
|
+
const { listOfPropsThatAffectItems: prevListOfPropsThatAffectItems, ...prevProps } = this.props;
|
|
62387
62522
|
if (!shallowequal_default()(nextProps, prevProps) ||
|
|
62388
62523
|
!shallowequal_default()(listOfPropsThatAffectItems, prevListOfPropsThatAffectItems)) {
|
|
62389
62524
|
return true;
|
|
@@ -62397,10 +62532,10 @@ class Draggable extends (external_React_default()).Component {
|
|
|
62397
62532
|
this.resetDelayTimer();
|
|
62398
62533
|
}
|
|
62399
62534
|
render() {
|
|
62400
|
-
const
|
|
62401
|
-
return (external_React_default().createElement(components_DraggableTarget,
|
|
62535
|
+
const { hasDragged, ...restProps } = this.props;
|
|
62536
|
+
return (external_React_default().createElement(components_DraggableTarget, { ...restProps },
|
|
62402
62537
|
external_React_default().createElement("div", { onMouseDown: this.countDelay, onMouseUp: this.resetDelayState, "data-hook": "delay-wrapper" },
|
|
62403
|
-
external_React_default().createElement(components_DraggableSource,
|
|
62538
|
+
external_React_default().createElement(components_DraggableSource, { ...restProps, ignoreMouseEvents: hasDragged, onDragStart: this.onDragStart, onDragEnd: this.onDragEnd, canDrag: this.canDrag, delayed: !!this.props.delay && this.state.delayed }))));
|
|
62404
62539
|
}
|
|
62405
62540
|
}
|
|
62406
62541
|
Draggable.defaultProps = {
|
|
@@ -62602,7 +62737,7 @@ function identity(value) {
|
|
|
62602
62737
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/utils/operators/range.js
|
|
62603
62738
|
function range(start, end) {
|
|
62604
62739
|
const itemsAmount = Math.abs(start - end);
|
|
62605
|
-
const _range = Array.
|
|
62740
|
+
const _range = Array.from({ length: itemsAmount }, (_, index) => index);
|
|
62606
62741
|
if (start < end) {
|
|
62607
62742
|
return _range.map(item => item + start);
|
|
62608
62743
|
}
|
|
@@ -62634,7 +62769,7 @@ const SortableListBase_constants_dataHooks = {
|
|
|
62634
62769
|
/* harmony default export */ const withDNDContext = (Component => {
|
|
62635
62770
|
const withDNDContext = props => (external_React_default().createElement("div", { "data-hook": props.dataHook },
|
|
62636
62771
|
external_React_default().createElement(Draggable_Draggable.Manager, { dataHook: SortableListBase_constants_dataHooks.provider },
|
|
62637
|
-
external_React_default().createElement(Component,
|
|
62772
|
+
external_React_default().createElement(Component, { ...props }))));
|
|
62638
62773
|
withDNDContext.displayName = Component.displayName;
|
|
62639
62774
|
return withDNDContext;
|
|
62640
62775
|
});
|
|
@@ -62667,7 +62802,7 @@ class SortableListBase extends (external_React_default()).PureComponent {
|
|
|
62667
62802
|
this.wrapperNodes[index] = { node, index, item };
|
|
62668
62803
|
};
|
|
62669
62804
|
this.reSetAnimationState = (overrides = {}) => {
|
|
62670
|
-
this.setState(
|
|
62805
|
+
this.setState({ animationShifts: {}, draggedId: null, ...overrides });
|
|
62671
62806
|
};
|
|
62672
62807
|
this.handleMoveOut = id => {
|
|
62673
62808
|
this.reSetAnimationState({
|
|
@@ -62791,7 +62926,10 @@ class SortableListBase extends (external_React_default()).PureComponent {
|
|
|
62791
62926
|
else {
|
|
62792
62927
|
const moveToIndex = Math.min(items.length - 1, indexToInsert);
|
|
62793
62928
|
const shiftForward = moveToIndex > originalIndex;
|
|
62794
|
-
animationShifts =
|
|
62929
|
+
animationShifts = {
|
|
62930
|
+
...this.getAnimationShifts(originalIndex, moveToIndex, shiftForward),
|
|
62931
|
+
[originalIndex]: this.getPlaceholderShift(originalIndex, moveToIndex, shiftForward),
|
|
62932
|
+
};
|
|
62795
62933
|
}
|
|
62796
62934
|
return { items, animationShifts, draggedId };
|
|
62797
62935
|
});
|
|
@@ -62832,14 +62970,20 @@ class SortableListBase extends (external_React_default()).PureComponent {
|
|
|
62832
62970
|
this.renderItem = args => {
|
|
62833
62971
|
const dropped = this.context.dragDropManager.monitor.didDrop();
|
|
62834
62972
|
const dragging = this.context.dragDropManager.monitor.isDragging();
|
|
62835
|
-
return this.props.renderItem(
|
|
62973
|
+
return this.props.renderItem({
|
|
62974
|
+
...args,
|
|
62975
|
+
isListInDragState: dragging && !dropped,
|
|
62976
|
+
});
|
|
62836
62977
|
};
|
|
62837
62978
|
}
|
|
62838
62979
|
UNSAFE_componentWillReceiveProps({ items, style }) {
|
|
62839
62980
|
// We clear state on drag end if element was dragged from another list,
|
|
62840
62981
|
// `onDragEnd` will be called on "source" list, not "target" one.
|
|
62841
62982
|
this.reSetAnimationState({ items: items ? items : this.state.items });
|
|
62842
|
-
this.noUserSelectionStyle =
|
|
62983
|
+
this.noUserSelectionStyle = {
|
|
62984
|
+
...noUserSelect,
|
|
62985
|
+
...style,
|
|
62986
|
+
};
|
|
62843
62987
|
}
|
|
62844
62988
|
renderPreview() {
|
|
62845
62989
|
const { className, contentClassName, renderItem } = this.props;
|
|
@@ -62866,9 +63010,9 @@ class SortableListBase extends (external_React_default()).PureComponent {
|
|
|
62866
63010
|
if (dragPreview) {
|
|
62867
63011
|
return this.renderPreview();
|
|
62868
63012
|
}
|
|
62869
|
-
return (external_React_default().createElement(components_Container,
|
|
63013
|
+
return (external_React_default().createElement(components_Container, { className: className, onDrop: this.handleDrop, total: this.state.items.length, style: isTextSelectionEnabled ? this.noUserSelectionStyle : style, ...common },
|
|
62870
63014
|
external_React_default().createElement("div", { className: contentClassName }, items.map((item, index) => {
|
|
62871
|
-
return (external_React_default().createElement(Draggable_Draggable,
|
|
63015
|
+
return (external_React_default().createElement(Draggable_Draggable, { dataHook: item.dataHook, key: `${item.id}-${containerId}`, shift: animationShifts[index], hasDragged: !!draggedId && draggedId !== item.id, setWrapperNode: this.setWrapperNode, animationDuration: animationDuration, animationTiming: animationTiming, ...common, id: item.id, index: index, item: item, renderItem: this.renderItem, withHandle: withHandle, usePortal: usePortal, onDrop: this.handleDrop, onDragStart: this.handleDragStart, onDragEnd: this.handleDragEnd, canDrag: this.props.canDrag, delay: this.props.delay, listOfPropsThatAffectItems: this.props.listOfPropsThatAffectItems }));
|
|
62872
63016
|
}))));
|
|
62873
63017
|
}
|
|
62874
63018
|
}
|
|
@@ -62882,37 +63026,38 @@ SortableListBase.displayName = 'SortableListBase';
|
|
|
62882
63026
|
SortableListBase.contextTypes = {
|
|
62883
63027
|
dragDropManager: (prop_types_default()).object,
|
|
62884
63028
|
};
|
|
62885
|
-
SortableListBase.propTypes =
|
|
63029
|
+
SortableListBase.propTypes = {
|
|
62886
63030
|
/** indicates if user can drop item in the list by default it's true */
|
|
62887
|
-
droppable: (prop_types_default()).bool
|
|
63031
|
+
droppable: (prop_types_default()).bool,
|
|
63032
|
+
...Draggable_Draggable.propTypes,
|
|
62888
63033
|
/** function that specifying where the item can be inserted */
|
|
62889
|
-
insertPosition: prop_types_default().oneOf(['start', 'end', 'any']),
|
|
63034
|
+
insertPosition: prop_types_default().oneOf(['start', 'end', 'any']),
|
|
62890
63035
|
/** in case of wrong position of item during drag you can force SortableListBase to use portals */
|
|
62891
|
-
usePortal: (prop_types_default()).bool,
|
|
63036
|
+
usePortal: (prop_types_default()).bool,
|
|
62892
63037
|
/**
|
|
62893
63038
|
if you are having nested SortableListBases,
|
|
62894
63039
|
list that you are currently dragging need to be marked as dragPreview
|
|
62895
63040
|
inside of renderItem callback
|
|
62896
63041
|
*/
|
|
62897
|
-
dragPreview: (prop_types_default()).bool,
|
|
63042
|
+
dragPreview: (prop_types_default()).bool,
|
|
62898
63043
|
/** list of items with {id: any} */
|
|
62899
|
-
items: (prop_types_default()).array,
|
|
63044
|
+
items: (prop_types_default()).array,
|
|
62900
63045
|
/** callback for drag start */
|
|
62901
|
-
onDragStart: (prop_types_default()).func,
|
|
63046
|
+
onDragStart: (prop_types_default()).func,
|
|
62902
63047
|
/** callback for drag end */
|
|
62903
|
-
onDragEnd: (prop_types_default()).func,
|
|
63048
|
+
onDragEnd: (prop_types_default()).func,
|
|
62904
63049
|
/** className of the root container */
|
|
62905
|
-
className: (prop_types_default()).string,
|
|
63050
|
+
className: (prop_types_default()).string,
|
|
62906
63051
|
/** className of the first items parent container */
|
|
62907
|
-
contentClassName: (prop_types_default()).string,
|
|
63052
|
+
contentClassName: (prop_types_default()).string,
|
|
62908
63053
|
/** animation duration in ms, default = 0 - disabled */
|
|
62909
|
-
animationDuration: (prop_types_default()).number,
|
|
63054
|
+
animationDuration: (prop_types_default()).number,
|
|
62910
63055
|
/** animation timing function, default = '' (ease) */
|
|
62911
|
-
animationTiming: (prop_types_default()).string,
|
|
63056
|
+
animationTiming: (prop_types_default()).string,
|
|
62912
63057
|
/** callback that could prevent item from dragging */
|
|
62913
|
-
canDrag: (prop_types_default()).func,
|
|
63058
|
+
canDrag: (prop_types_default()).func,
|
|
62914
63059
|
/** number in seconds to add delay between initial mouseDown and drag start */
|
|
62915
|
-
delay: (prop_types_default()).number,
|
|
63060
|
+
delay: (prop_types_default()).number,
|
|
62916
63061
|
/**
|
|
62917
63062
|
In case that you are using some external props inside of renderItems method,
|
|
62918
63063
|
you need to define them here.
|
|
@@ -62928,7 +63073,8 @@ SortableListBase.propTypes = Object.assign(Object.assign({
|
|
|
62928
63073
|
)
|
|
62929
63074
|
}
|
|
62930
63075
|
*/
|
|
62931
|
-
listOfPropsThatAffectItems: (prop_types_default()).array
|
|
63076
|
+
listOfPropsThatAffectItems: (prop_types_default()).array,
|
|
63077
|
+
};
|
|
62932
63078
|
/* harmony default export */ const SortableListBase_SortableListBase = (withDNDContext(SortableListBase));
|
|
62933
63079
|
//# sourceMappingURL=SortableListBase.js.map
|
|
62934
63080
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/dnd-styles/dnd-styles.st.css.js
|
|
@@ -62938,7 +63084,7 @@ SortableListBase.propTypes = Object.assign(Object.assign({
|
|
|
62938
63084
|
|
|
62939
63085
|
|
|
62940
63086
|
|
|
62941
|
-
var dnd_styles_st_css_namespace_ = "
|
|
63087
|
+
var dnd_styles_st_css_namespace_ = "wds_1_98_0_dndstyles";
|
|
62942
63088
|
var dnd_styles_st_css_style_ = classesRuntime.bind(null, dnd_styles_st_css_namespace_);
|
|
62943
63089
|
|
|
62944
63090
|
var dnd_styles_st_css_cssStates = statesRuntime.bind(null, dnd_styles_st_css_namespace_);
|
|
@@ -62946,7 +63092,7 @@ var dnd_styles_st_css_style = (/* unused pure expression or super */ null && (dn
|
|
|
62946
63092
|
var dnd_styles_st_css_st = (/* unused pure expression or super */ null && (dnd_styles_st_css_style_));
|
|
62947
63093
|
|
|
62948
63094
|
var dnd_styles_st_css_namespace = (/* unused pure expression or super */ null && (dnd_styles_st_css_namespace_));
|
|
62949
|
-
var dnd_styles_st_css_classes = {"root":"
|
|
63095
|
+
var dnd_styles_st_css_classes = {"root":"wds_1_98_0_dndstyles__root","item":"wds_1_98_0_dndstyles__item","itemPlaceholder":"wds_1_98_0_dndstyles__itemPlaceholder","itemPreview":"wds_1_98_0_dndstyles__itemPreview","list":"wds_1_98_0_dndstyles__list","gridItemPlaceholder":"wds_1_98_0_dndstyles__gridItemPlaceholder","isInitialPositionToDrop":"wds_1_98_0_dndstyles__isInitialPositionToDrop","withGridItemStrip":"wds_1_98_0_dndstyles__withGridItemStrip","withGridItemStripRight":"wds_1_98_0_dndstyles__withGridItemStripRight","gridItemPreview":"wds_1_98_0_dndstyles__gridItemPreview"};
|
|
62950
63096
|
var dnd_styles_st_css_keyframes = {};
|
|
62951
63097
|
var dnd_styles_st_css_layers = {};
|
|
62952
63098
|
var dnd_styles_st_css_containers = {};
|
|
@@ -62985,7 +63131,6 @@ var dnd_styles_st_css_vars = {};
|
|
|
62985
63131
|
|
|
62986
63132
|
|
|
62987
63133
|
|
|
62988
|
-
|
|
62989
63134
|
class InputWithTags extends (external_React_default()).Component {
|
|
62990
63135
|
constructor(props) {
|
|
62991
63136
|
super(props);
|
|
@@ -63040,9 +63185,9 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
63040
63185
|
}, ...appliedClasses);
|
|
63041
63186
|
}
|
|
63042
63187
|
render() {
|
|
63043
|
-
const
|
|
63188
|
+
const { tags, onRemoveTag, onReorder, placeholder, status, statusMessage, disabled, readOnly, delimiters, mode, size = 'medium', border, className, ...inputProps } = this.props;
|
|
63044
63189
|
/* eslint-disable no-unused-vars */
|
|
63045
|
-
const { onManuallyInput, inputElement, closeOnSelect, predicate, onClickOutside, fixedHeader, fixedFooter, dataHook, onFocus, withSelection, onBlur, menuArrow, onInputClicked
|
|
63190
|
+
const { onManuallyInput, inputElement, closeOnSelect, predicate, onClickOutside, fixedHeader, fixedFooter, dataHook, onFocus, withSelection, onBlur, menuArrow, onInputClicked, ...desiredProps } = inputProps;
|
|
63046
63191
|
let rowMultiplier;
|
|
63047
63192
|
if (tags.length && tags[0].size === 'large') {
|
|
63048
63193
|
rowMultiplier = 47;
|
|
@@ -63054,21 +63199,18 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
63054
63199
|
this.props.maxNumRows * rowMultiplier ||
|
|
63055
63200
|
'initial';
|
|
63056
63201
|
const finalStatus = getStatusFromContext(this.context, status);
|
|
63057
|
-
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement("div",
|
|
63058
|
-
onReorder ? (external_React_default().createElement(SortableListBase_SortableListBase, { contentClassName: InputWithTags_st_css_classes.tagsContainer, items: tags, onDrop: onReorder, renderItem: this.renderReorderableTag })) : (tags.map((
|
|
63059
|
-
var { label } = _a, rest = __rest(_a, ["label"]);
|
|
63060
|
-
return (external_React_default().createElement(Tag_Tag, Object.assign({ key: rest.id, dataHook: "tag", disabled: disabled, onRemove: onRemoveTag }, rest), label));
|
|
63061
|
-
})),
|
|
63202
|
+
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => (external_React_default().createElement("div", { className: this._getRootClassName(newColorsBranding), style: { maxHeight }, onClick: this.handleClick, "data-hook": this.props.dataHook, "data-focus": this._hasFocus() || null, "data-status": finalStatus, ...getAriaAttributesFromContext(this.context) },
|
|
63203
|
+
onReorder ? (external_React_default().createElement(SortableListBase_SortableListBase, { contentClassName: InputWithTags_st_css_classes.tagsContainer, items: tags, onDrop: onReorder, renderItem: this.renderReorderableTag })) : (tags.map(({ label, ...rest }) => (external_React_default().createElement(Tag_Tag, { key: rest.id, dataHook: "tag", disabled: disabled, onRemove: onRemoveTag, ...rest }, label)))),
|
|
63062
63204
|
external_React_default().createElement("span", { className: classnames_default()(InputWithTags_st_css_classes.inputWrapper, !tags.length), "data-hook": "inner-input-with-tags" },
|
|
63063
63205
|
external_React_default().createElement("div", { className: classnames_default()(InputWithTags_st_css_classes.hiddenDiv) }, this.state.inputValue),
|
|
63064
|
-
external_React_default().createElement(Input_ThemedInput,
|
|
63206
|
+
external_React_default().createElement(Input_ThemedInput, { className: InputWithTags_st_css_classes.input, size: size, width: this.props.width, ref: input => (this.input = input), onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, placeholder: tags.length === 0 ? placeholder : '', ...desiredProps, dataHook: "inputWithTags-input", disabled: disabled, readOnly: readOnly, disableEditing: this._isSelectMode(), onChange: e => {
|
|
63065
63207
|
if (!delimiters.includes(e.target.value)) {
|
|
63066
63208
|
this.setState({ inputValue: e.target.value });
|
|
63067
63209
|
desiredProps.onChange && desiredProps.onChange(e);
|
|
63068
63210
|
}
|
|
63069
63211
|
}, withSelection: true, prefix: this.props.customSuffix &&
|
|
63070
63212
|
!this.props.hideCustomSuffix &&
|
|
63071
|
-
!this.state.inputHasFocus && (external_React_default().createElement("span", { "data-hook": "custom-suffix", className: InputWithTags_st_css_classes.customSuffix }, this.props.customSuffix)), hideStatusSuffix: true }))
|
|
63213
|
+
!this.state.inputHasFocus && (external_React_default().createElement("span", { "data-hook": "custom-suffix", className: InputWithTags_st_css_classes.customSuffix }, this.props.customSuffix)), hideStatusSuffix: true })),
|
|
63072
63214
|
external_React_default().createElement("div", { className: InputWithTags_st_css_classes.inputSuffix },
|
|
63073
63215
|
!disabled &&
|
|
63074
63216
|
(['error', 'warning', 'loading'].includes(status) ||
|
|
@@ -63077,8 +63219,7 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
63077
63219
|
this._isSelectMode() && (external_React_default().createElement("div", { className: InputWithTags_st_css_classes.menuArrow, "data-hook": "input-menu-arrow" },
|
|
63078
63220
|
external_React_default().createElement(DropDownArrow_p, null))))))));
|
|
63079
63221
|
}
|
|
63080
|
-
renderReorderableTag(
|
|
63081
|
-
var _b = _a.item, { id, label } = _b, itemProps = __rest(_b, ["id", "label"]), { previewStyles, isPlaceholder, isPreview } = _a, rest = __rest(_a, ["item", "previewStyles", "isPlaceholder", "isPreview"]);
|
|
63222
|
+
renderReorderableTag({ item: { id, label, ...itemProps }, previewStyles, isPlaceholder, isPreview, ...rest }) {
|
|
63082
63223
|
const { onRemoveTag, disabled } = this.props;
|
|
63083
63224
|
const _classes = classnames_default()({
|
|
63084
63225
|
[dnd_styles.itemPlaceholder]: isPlaceholder,
|
|
@@ -63087,7 +63228,7 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
63087
63228
|
[InputWithTags_st_css_classes.draggedTag]: isPreview,
|
|
63088
63229
|
});
|
|
63089
63230
|
return (external_React_default().createElement("div", { style: previewStyles },
|
|
63090
|
-
external_React_default().createElement(Tag_Tag,
|
|
63231
|
+
external_React_default().createElement(Tag_Tag, { id: id, dataHook: "tag", disabled: disabled, className: _classes, onRemove: onRemoveTag, ...itemProps, ...rest }, label)));
|
|
63091
63232
|
}
|
|
63092
63233
|
focus() {
|
|
63093
63234
|
this.input.focus();
|
|
@@ -63149,7 +63290,7 @@ var difference_default = /*#__PURE__*/__webpack_require__.n(difference);
|
|
|
63149
63290
|
|
|
63150
63291
|
|
|
63151
63292
|
|
|
63152
|
-
var MultiSelect_st_css_namespace_ = "
|
|
63293
|
+
var MultiSelect_st_css_namespace_ = "wds_1_98_0_MultiSelect";
|
|
63153
63294
|
var MultiSelect_st_css_style_ = classesRuntime.bind(null, MultiSelect_st_css_namespace_);
|
|
63154
63295
|
|
|
63155
63296
|
var MultiSelect_st_css_cssStates = statesRuntime.bind(null, MultiSelect_st_css_namespace_);
|
|
@@ -63157,7 +63298,7 @@ var MultiSelect_st_css_style = (/* unused pure expression or super */ null && (M
|
|
|
63157
63298
|
var MultiSelect_st_css_st = MultiSelect_st_css_style_;
|
|
63158
63299
|
|
|
63159
63300
|
var MultiSelect_st_css_namespace = (/* unused pure expression or super */ null && (MultiSelect_st_css_namespace_));
|
|
63160
|
-
var MultiSelect_st_css_classes = {"root":"
|
|
63301
|
+
var MultiSelect_st_css_classes = {"root":"wds_1_98_0_MultiSelect__root","inputWithTags":"wds_1_98_0_MultiSelect__inputWithTags","autoSizeInput":"wds_1_98_0_MultiSelect__autoSizeInput"};
|
|
63161
63302
|
var MultiSelect_st_css_keyframes = {};
|
|
63162
63303
|
var MultiSelect_st_css_layers = {};
|
|
63163
63304
|
var MultiSelect_st_css_containers = {};
|
|
@@ -63177,14 +63318,13 @@ var MultiSelect_st_css_vars = {};
|
|
|
63177
63318
|
|
|
63178
63319
|
|
|
63179
63320
|
|
|
63180
|
-
|
|
63181
63321
|
class MultiSelect extends InputWithOptions_InputWithOptions {
|
|
63182
63322
|
constructor(props) {
|
|
63183
63323
|
super(props);
|
|
63184
63324
|
this.onKeyDown = this.onKeyDown.bind(this);
|
|
63185
63325
|
this.onPaste = this.onPaste.bind(this);
|
|
63186
63326
|
this._onBlur = this._onBlur.bind(this);
|
|
63187
|
-
this.state =
|
|
63327
|
+
this.state = { ...this.state, pasteDetected: false };
|
|
63188
63328
|
}
|
|
63189
63329
|
hideOptions() {
|
|
63190
63330
|
super.hideOptions();
|
|
@@ -63310,7 +63450,7 @@ class MultiSelect extends InputWithOptions_InputWithOptions {
|
|
|
63310
63450
|
}
|
|
63311
63451
|
}
|
|
63312
63452
|
optionToTag({ id, value, tag, theme }) {
|
|
63313
|
-
return tag ?
|
|
63453
|
+
return tag ? { id, ...tag } : { id, label: value, theme };
|
|
63314
63454
|
}
|
|
63315
63455
|
onSelect(option) {
|
|
63316
63456
|
this.clearInput();
|
|
@@ -63335,16 +63475,14 @@ class MultiSelect extends InputWithOptions_InputWithOptions {
|
|
|
63335
63475
|
}
|
|
63336
63476
|
}
|
|
63337
63477
|
}
|
|
63338
|
-
MultiSelect.autoSizeInput = (
|
|
63339
|
-
var { className, 'data-ref': dataRef } = _a, rest = __rest(_a, ["className", 'data-ref']);
|
|
63478
|
+
MultiSelect.autoSizeInput = ({ className, 'data-ref': dataRef, ...rest }) => {
|
|
63340
63479
|
const inputClassName = classnames_default()(className, MultiSelect_st_css_classes.autoSizeInput);
|
|
63341
|
-
return external_React_default().createElement("input",
|
|
63480
|
+
return external_React_default().createElement("input", { ...rest, ref: dataRef, className: inputClassName });
|
|
63342
63481
|
};
|
|
63343
|
-
MultiSelect.autoSizeInputWithRef = () => external_React_default().forwardRef((props, ref) => ((
|
|
63344
|
-
var { className, ref } = _a, rest = __rest(_a, ["className", "ref"]);
|
|
63482
|
+
MultiSelect.autoSizeInputWithRef = () => external_React_default().forwardRef((props, ref) => (({ className, ref, ...rest }) => {
|
|
63345
63483
|
const inputClassName = classnames_default()(className, MultiSelect_st_css_classes.autoSizeInput);
|
|
63346
|
-
return external_React_default().createElement("input",
|
|
63347
|
-
})(
|
|
63484
|
+
return external_React_default().createElement("input", { ...rest, ref: ref, className: inputClassName });
|
|
63485
|
+
})({ ...props, ref }));
|
|
63348
63486
|
MultiSelect.displayName = 'MultiSelect';
|
|
63349
63487
|
MultiSelect.propTypes = {
|
|
63350
63488
|
/** Associate a control with the regions that it controls.*/
|
|
@@ -63440,7 +63578,14 @@ MultiSelect.propTypes = {
|
|
|
63440
63578
|
(prop_types_default()).number,
|
|
63441
63579
|
]),
|
|
63442
63580
|
};
|
|
63443
|
-
MultiSelect.defaultProps =
|
|
63581
|
+
MultiSelect.defaultProps = {
|
|
63582
|
+
...InputWithOptions_InputWithOptions.defaultProps,
|
|
63583
|
+
predicate: () => true,
|
|
63584
|
+
tags: [],
|
|
63585
|
+
delimiters: [','],
|
|
63586
|
+
clearOnBlur: true,
|
|
63587
|
+
customInput: MultiSelect.autoSizeInputWithRef(),
|
|
63588
|
+
};
|
|
63444
63589
|
/* harmony default export */ const MultiSelect_MultiSelect = (MultiSelect);
|
|
63445
63590
|
//# sourceMappingURL=MultiSelect.js.map
|
|
63446
63591
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/MultiSelect/index.js
|
|
@@ -63493,7 +63638,7 @@ if(false /* HMR */) {}
|
|
|
63493
63638
|
|
|
63494
63639
|
|
|
63495
63640
|
|
|
63496
|
-
var EmptyState_st_css_namespace_ = "
|
|
63641
|
+
var EmptyState_st_css_namespace_ = "wds_1_98_0_EmptyState";
|
|
63497
63642
|
var EmptyState_st_css_style_ = classesRuntime.bind(null, EmptyState_st_css_namespace_);
|
|
63498
63643
|
|
|
63499
63644
|
var EmptyState_st_css_cssStates = statesRuntime.bind(null, EmptyState_st_css_namespace_);
|
|
@@ -63501,7 +63646,7 @@ var EmptyState_st_css_style = (/* unused pure expression or super */ null && (Em
|
|
|
63501
63646
|
var EmptyState_st_css_st = EmptyState_st_css_style_;
|
|
63502
63647
|
|
|
63503
63648
|
var EmptyState_st_css_namespace = (/* unused pure expression or super */ null && (EmptyState_st_css_namespace_));
|
|
63504
|
-
var EmptyState_st_css_classes = {"root":"
|
|
63649
|
+
var EmptyState_st_css_classes = {"root":"wds_1_98_0_EmptyState__root","imageContainer":"wds_1_98_0_EmptyState__imageContainer","childrenContainer":"wds_1_98_0_EmptyState__childrenContainer","container":"wds_1_98_0_EmptyState__container","imageElement":"wds_1_98_0_EmptyState__imageElement","titleContainer":"wds_1_98_0_EmptyState__titleContainer","title":"wds_1_98_0_EmptyState__title","sectionTitle":"wds_1_98_0_EmptyState__sectionTitle","subtitle":"wds_1_98_0_EmptyState__subtitle","subtitleContainer":"wds_1_98_0_EmptyState__subtitleContainer"};
|
|
63505
63650
|
var EmptyState_st_css_keyframes = {};
|
|
63506
63651
|
var EmptyState_st_css_layers = {};
|
|
63507
63652
|
var EmptyState_st_css_containers = {};
|
|
@@ -64298,7 +64443,7 @@ const InfoIcon_constants_dataHooks = {
|
|
|
64298
64443
|
|
|
64299
64444
|
|
|
64300
64445
|
|
|
64301
|
-
var InfoIcon_st_css_namespace_ = "
|
|
64446
|
+
var InfoIcon_st_css_namespace_ = "wds_1_98_0_InfoIcon";
|
|
64302
64447
|
var InfoIcon_st_css_style_ = classesRuntime.bind(null, InfoIcon_st_css_namespace_);
|
|
64303
64448
|
|
|
64304
64449
|
var InfoIcon_st_css_cssStates = statesRuntime.bind(null, InfoIcon_st_css_namespace_);
|
|
@@ -64306,7 +64451,7 @@ var InfoIcon_st_css_style = (/* unused pure expression or super */ null && (Info
|
|
|
64306
64451
|
var InfoIcon_st_css_st = InfoIcon_st_css_style_;
|
|
64307
64452
|
|
|
64308
64453
|
var InfoIcon_st_css_namespace = (/* unused pure expression or super */ null && (InfoIcon_st_css_namespace_));
|
|
64309
|
-
var InfoIcon_st_css_classes = {"root":"
|
|
64454
|
+
var InfoIcon_st_css_classes = {"root":"wds_1_98_0_InfoIcon__root","icon":"wds_1_98_0_InfoIcon__icon"};
|
|
64310
64455
|
var InfoIcon_st_css_keyframes = {};
|
|
64311
64456
|
var InfoIcon_st_css_layers = {};
|
|
64312
64457
|
var InfoIcon_st_css_containers = {};
|
|
@@ -64332,7 +64477,7 @@ const iconComponentBySizeMap = {
|
|
|
64332
64477
|
const InfoIcon = ({ dataHook, content, size = 'medium', tooltipProps, className, }) => {
|
|
64333
64478
|
const Icon = iconComponentBySizeMap[size];
|
|
64334
64479
|
return (external_React_default().createElement("div", { className: InfoIcon_st_css_st(InfoIcon_st_css_classes.root, className), "data-size": size, "data-hook": dataHook },
|
|
64335
|
-
external_React_default().createElement(Tooltip_Tooltip,
|
|
64480
|
+
external_React_default().createElement(Tooltip_Tooltip, { ...tooltipProps, content: content, dataHook: InfoIcon_constants_dataHooks.tooltip },
|
|
64336
64481
|
external_React_default().createElement(Icon, { className: InfoIcon_st_css_classes.icon }))));
|
|
64337
64482
|
};
|
|
64338
64483
|
InfoIcon.displayName = 'InfoIcon';
|
|
@@ -64376,7 +64521,7 @@ const FormField_constants_dataHooks = {
|
|
|
64376
64521
|
|
|
64377
64522
|
|
|
64378
64523
|
|
|
64379
|
-
var FormField_st_css_namespace_ = "
|
|
64524
|
+
var FormField_st_css_namespace_ = "wds_1_98_0_FormField";
|
|
64380
64525
|
var FormField_st_css_style_ = classesRuntime.bind(null, FormField_st_css_namespace_);
|
|
64381
64526
|
|
|
64382
64527
|
var FormField_st_css_cssStates = statesRuntime.bind(null, FormField_st_css_namespace_);
|
|
@@ -64384,7 +64529,7 @@ var FormField_st_css_style = (/* unused pure expression or super */ null && (For
|
|
|
64384
64529
|
var FormField_st_css_st = FormField_st_css_style_;
|
|
64385
64530
|
|
|
64386
64531
|
var FormField_st_css_namespace = (/* unused pure expression or super */ null && (FormField_st_css_namespace_));
|
|
64387
|
-
var FormField_st_css_classes = {"root":"
|
|
64532
|
+
var FormField_st_css_classes = {"root":"wds_1_98_0_FormField__root","text-small-thin":"wds_1_98_0_StylableTypography__text-small-thin","text-tiny-thin":"wds_1_98_0_StylableTypography__text-tiny-thin","label":"wds_1_98_0_FormField__label","labelIndicators":"wds_1_98_0_FormField__labelIndicators","children":"wds_1_98_0_FormField__children","statusMessage":"wds_1_98_0_FormField__statusMessage","suffix":"wds_1_98_0_FormField__suffix","labelRow":"wds_1_98_0_FormField__labelRow","labelRowMain":"wds_1_98_0_FormField__labelRowMain","asterisk":"wds_1_98_0_FormField__asterisk","charCount":"wds_1_98_0_FormField__charCount","infoIcon":"wds_1_98_0_FormField__infoIcon","statusIcon":"wds_1_98_0_FormField__statusIcon"};
|
|
64388
64533
|
var FormField_st_css_keyframes = {};
|
|
64389
64534
|
var FormField_st_css_layers = {};
|
|
64390
64535
|
var FormField_st_css_containers = {};
|
|
@@ -64401,6 +64546,13 @@ const StatusAlertFilledSmall_e=({size:t,...r})=>external_React_.createElement("s
|
|
|
64401
64546
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/wix-ui-icons-common/dist/esm/general/dist/components/StatusWarningFilledSmall.js
|
|
64402
64547
|
const StatusWarningFilledSmall_a=({size:t,...e})=>external_React_.createElement("svg",{viewBox:"0 0 18 18",fill:"currentColor",width:t||"18",height:t||"18",...e},external_React_.createElement("path",{d:"M10.7037499,3.9623322 L15.7092882,11.9592754 C15.9070807,12.2850514 16.000829,12.6448689 16.000061,13 C15.9984263,13.6741191 15.6560657,14.3313518 15.0376694,14.7068067 C14.7247801,14.8967752 14.3657565,14.9972317 13.9997131,14.9972317 L4,14.9999236 C2.8954305,14.9999236 2,14.1045695 2,13 C2,12.6339566 2.10045645,12.2749331 2.29042497,11.9620437 L7.28459986,3.9623322 C7.66164996,3.34130849 8.32287747,2.99867105 9,2.99992355 C9.35233944,3.00069152 9.70898264,3.09451612 10.0321312,3.29071343 C10.3066867,3.45740786 10.5370555,3.68777667 10.7037499,3.9623322 Z M9,6 C8.44771525,6 8,6.44771525 8,7 L8,9 C8,9.55228475 8.44771525,10 9,10 C9.55228475,10 10,9.55228475 10,9 L10,7 C10,6.44771525 9.55228475,6 9,6 Z M9,11 C8.44771525,11 8,11.4477153 8,12 C8,12.5522847 8.44771525,13 9,13 C9.55228475,13 10,12.5522847 10,12 C10,11.4477153 9.55228475,11 9,11 Z"}));StatusWarningFilledSmall_a.displayName="StatusWarningFilledSmall";var StatusWarningFilledSmall_C=StatusWarningFilledSmall_a;
|
|
64403
64548
|
|
|
64549
|
+
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/FieldSet/FieldSet.context.js
|
|
64550
|
+
|
|
64551
|
+
const FieldSetContext = external_React_default().createContext({
|
|
64552
|
+
status: null,
|
|
64553
|
+
statusId: null,
|
|
64554
|
+
});
|
|
64555
|
+
//# sourceMappingURL=FieldSet.context.js.map
|
|
64404
64556
|
;// CONCATENATED MODULE: ../../../node_modules/@wix/design-system/dist/esm/FormField/FormField.js
|
|
64405
64557
|
|
|
64406
64558
|
|
|
@@ -64412,6 +64564,7 @@ const StatusWarningFilledSmall_a=({size:t,...e})=>external_React_.createElement(
|
|
|
64412
64564
|
|
|
64413
64565
|
|
|
64414
64566
|
|
|
64567
|
+
|
|
64415
64568
|
const PLACEMENT = {
|
|
64416
64569
|
top: 'top',
|
|
64417
64570
|
right: 'right',
|
|
@@ -64446,7 +64599,7 @@ class FormField extends (external_React_default()).Component {
|
|
|
64446
64599
|
const colorProps = lengthLeft >= 0
|
|
64447
64600
|
? { light: true, secondary: true }
|
|
64448
64601
|
: { skin: constants_SKINS.error };
|
|
64449
|
-
return (external_React_default().createElement(Text,
|
|
64602
|
+
return (external_React_default().createElement(Text, { className: FormField_st_css_st(FormField_st_css_classes.charCount, { labelSize }), size: Text_constants_SIZES.small, weight: WEIGHTS.normal, ...colorProps, dataHook: FormField_constants_dataHooks.counter, children: lengthLeft }));
|
|
64450
64603
|
};
|
|
64451
64604
|
this._renderCharCounter = () => {
|
|
64452
64605
|
if (!this._hasCharCounter()) {
|
|
@@ -64534,7 +64687,7 @@ class FormField extends (external_React_default()).Component {
|
|
|
64534
64687
|
minLabelHeight: !children,
|
|
64535
64688
|
};
|
|
64536
64689
|
const hasInlineElements = this._hasInlineElements(label, labelPlacement);
|
|
64537
|
-
return (external_React_default().createElement("div", { "data-hook": dataHook, "data-status": status, className: FormField_st_css_st(FormField_st_css_classes.root,
|
|
64690
|
+
return (external_React_default().createElement("div", { "data-hook": dataHook, "data-status": status, className: FormField_st_css_st(FormField_st_css_classes.root, { ...rootStyles, ...(label ? { labelSize } : {}), hasInlineElements }, classNames) },
|
|
64538
64691
|
label && labelPlacement === PLACEMENT.top && (external_React_default().createElement("div", { className: FormField_st_css_classes.labelRow },
|
|
64539
64692
|
external_React_default().createElement("div", { className: FormField_st_css_classes.labelRowMain },
|
|
64540
64693
|
this._renderLabel({ trimLongText: true, labelSize }),
|
|
@@ -64546,11 +64699,16 @@ class FormField extends (external_React_default()).Component {
|
|
|
64546
64699
|
}) },
|
|
64547
64700
|
(!label || labelPlacement !== PLACEMENT.top) &&
|
|
64548
64701
|
this._renderSuffix(),
|
|
64549
|
-
external_React_default().createElement(StatusContext.Provider, { value: {
|
|
64702
|
+
external_React_default().createElement(FieldSetContext.Consumer, null, fieldSet => (external_React_default().createElement(StatusContext.Provider, { value: {
|
|
64550
64703
|
status,
|
|
64551
64704
|
ariaLabelledBy: this.labelId,
|
|
64552
|
-
ariaDescribedBy:
|
|
64553
|
-
|
|
64705
|
+
ariaDescribedBy: [
|
|
64706
|
+
this.statusId,
|
|
64707
|
+
status === fieldSet.status && fieldSet.statusId,
|
|
64708
|
+
]
|
|
64709
|
+
.filter(Boolean)
|
|
64710
|
+
.join(' '),
|
|
64711
|
+
} }, this._renderChildren()))))),
|
|
64554
64712
|
hasInlineElements && this._renderLabelWithIndicators({ labelSize }),
|
|
64555
64713
|
statusMessage && this._renderStatusMessage()));
|
|
64556
64714
|
}
|
|
@@ -64632,7 +64790,7 @@ var isNaN_default = /*#__PURE__*/__webpack_require__.n(lodash_isNaN);
|
|
|
64632
64790
|
|
|
64633
64791
|
|
|
64634
64792
|
|
|
64635
|
-
var InputArea_st_css_namespace_ = "
|
|
64793
|
+
var InputArea_st_css_namespace_ = "wds_1_98_0_InputArea";
|
|
64636
64794
|
var InputArea_st_css_style_ = classesRuntime.bind(null, InputArea_st_css_namespace_);
|
|
64637
64795
|
|
|
64638
64796
|
var InputArea_st_css_cssStates = statesRuntime.bind(null, InputArea_st_css_namespace_);
|
|
@@ -64640,12 +64798,12 @@ var InputArea_st_css_style = (/* unused pure expression or super */ null && (Inp
|
|
|
64640
64798
|
var InputArea_st_css_st = InputArea_st_css_style_;
|
|
64641
64799
|
|
|
64642
64800
|
var InputArea_st_css_namespace = (/* unused pure expression or super */ null && (InputArea_st_css_namespace_));
|
|
64643
|
-
var InputArea_st_css_classes = {"root":"
|
|
64801
|
+
var InputArea_st_css_classes = {"root":"wds_1_98_0_InputArea__root","text-small-thin":"wds_1_98_0_StylableTypography__text-small-thin","text-medium-thin":"wds_1_98_0_StylableTypography__text-medium-thin","defaultScrollBar":"wds_1_98_0_defaultscrollbar__defaultScrollBar","inputArea":"wds_1_98_0_InputArea__inputArea","counter":"wds_1_98_0_InputArea__counter","status":"wds_1_98_0_InputArea__status","disabled":"wds_1_98_0_InputArea__disabled","readOnly":"wds_1_98_0_InputArea__readOnly"};
|
|
64644
64802
|
var InputArea_st_css_keyframes = {};
|
|
64645
64803
|
var InputArea_st_css_layers = {};
|
|
64646
64804
|
var InputArea_st_css_containers = {};
|
|
64647
64805
|
var InputArea_st_css_stVars = {};
|
|
64648
|
-
var InputArea_st_css_vars = {"wds-font-size-body-small":"--wds-font-size-body-small","wds-color-blue-500":"--wds-color-blue-500","wds-color-text-standard-primary":"--wds-color-text-standard-primary","wds-color-text-disabled":"--wds-color-text-disabled","wds-color-text-placeholder":"--wds-color-text-placeholder","wds-color-fill-standard-tertiary":"--wds-color-fill-standard-tertiary","wds-color-fill-standard-tertiary-hover":"--wds-color-fill-standard-tertiary-hover","wds-color-border-standard-secondary":"--wds-color-border-standard-secondary","wds-color-border-destructive-secondary-active":"--wds-color-border-destructive-secondary-active","wds-color-border-warning-secondary-active":"--wds-color-border-warning-secondary-active","wds-color-border-standard-secondary-active":"--wds-color-border-standard-secondary-active","wds-color-border-standard-secondary-readonly":"--wds-color-border-standard-secondary-readonly","wds-color-border-standard-secondary-disabled":"--wds-color-border-standard-secondary-disabled","wds-color-border-standard-secondary-hover":"--wds-color-border-standard-secondary-hover","wds-color-fill-standard-tertiary-readonly":"--wds-color-fill-standard-tertiary-readonly","wds-shadow-focus-standard":"--wds-shadow-focus-standard","wds-shadow-focus-destructive":"--wds-shadow-focus-destructive","wds-shadow-focus-warning":"--wds-shadow-focus-warning","wds-space-100":"--wds-space-100","wds-input-area-padding-vertical-small":"--wds-input-area-padding-vertical-small","wds-input-area-padding-right-small":"--wds-input-area-padding-right-small","wds-input-area-padding-left-small":"--wds-input-area-padding-left-small","wds-input-area-padding-vertical-medium":"--wds-input-area-padding-vertical-medium","wds-input-area-padding-right-medium":"--wds-input-area-padding-right-medium","wds-input-area-padding-left-medium":"--wds-input-area-padding-left-medium","wds-input-area-border-radius-default-medium":"--wds-input-area-border-radius-default-medium","wds-input-value-font-size-small":"--wds-input-value-font-size-small","wds-input-value-font-size-medium":"--wds-input-value-font-size-medium","wds-input-value-font-line-height-small":"--wds-input-value-font-line-height-small","wds-input-value-font-line-height-medium":"--wds-input-value-font-line-height-medium","wds-border-radius-full":"--wds-border-radius-full","wds-input-size-small":"--wds-input-size-small","wds-input-size-medium":"--wds-input-size-medium","border-color":"--
|
|
64806
|
+
var InputArea_st_css_vars = {"wds-font-size-body-small":"--wds-font-size-body-small","wds-color-blue-500":"--wds-color-blue-500","wds-color-text-standard-primary":"--wds-color-text-standard-primary","wds-color-text-disabled":"--wds-color-text-disabled","wds-color-text-placeholder":"--wds-color-text-placeholder","wds-color-fill-standard-tertiary":"--wds-color-fill-standard-tertiary","wds-color-fill-standard-tertiary-hover":"--wds-color-fill-standard-tertiary-hover","wds-color-border-standard-secondary":"--wds-color-border-standard-secondary","wds-color-border-destructive-secondary-active":"--wds-color-border-destructive-secondary-active","wds-color-border-warning-secondary-active":"--wds-color-border-warning-secondary-active","wds-color-border-standard-secondary-active":"--wds-color-border-standard-secondary-active","wds-color-border-standard-secondary-readonly":"--wds-color-border-standard-secondary-readonly","wds-color-border-standard-secondary-disabled":"--wds-color-border-standard-secondary-disabled","wds-color-border-standard-secondary-hover":"--wds-color-border-standard-secondary-hover","wds-color-fill-standard-tertiary-readonly":"--wds-color-fill-standard-tertiary-readonly","wds-shadow-focus-standard":"--wds-shadow-focus-standard","wds-shadow-focus-destructive":"--wds-shadow-focus-destructive","wds-shadow-focus-warning":"--wds-shadow-focus-warning","wds-space-100":"--wds-space-100","wds-input-area-padding-vertical-small":"--wds-input-area-padding-vertical-small","wds-input-area-padding-right-small":"--wds-input-area-padding-right-small","wds-input-area-padding-left-small":"--wds-input-area-padding-left-small","wds-input-area-padding-vertical-medium":"--wds-input-area-padding-vertical-medium","wds-input-area-padding-right-medium":"--wds-input-area-padding-right-medium","wds-input-area-padding-left-medium":"--wds-input-area-padding-left-medium","wds-input-area-border-radius-default-medium":"--wds-input-area-border-radius-default-medium","wds-input-value-font-size-small":"--wds-input-value-font-size-small","wds-input-value-font-size-medium":"--wds-input-value-font-size-medium","wds-input-value-font-line-height-small":"--wds-input-value-font-line-height-small","wds-input-value-font-line-height-medium":"--wds-input-value-font-line-height-medium","wds-border-radius-full":"--wds-border-radius-full","wds-input-size-small":"--wds-input-size-small","wds-input-size-medium":"--wds-input-size-medium","border-color":"--wds_1_98_0_InputArea-border-color","border-color-destructive":"--wds_1_98_0_InputArea-border-color-destructive","border-color-warning":"--wds_1_98_0_InputArea-border-color-warning","border-color-disabled":"--wds_1_98_0_InputArea-border-color-disabled","wds-input-area-height-small-adjusted":"--wds_1_98_0_InputArea-wds-input-area-height-small-adjusted","wds-input-area-height-medium-adjusted":"--wds_1_98_0_InputArea-wds-input-area-height-medium-adjusted"};
|
|
64649
64807
|
|
|
64650
64808
|
|
|
64651
64809
|
|
|
@@ -64842,7 +65000,7 @@ class InputArea extends (external_React_default()).PureComponent {
|
|
|
64842
65000
|
return (external_React_default().createElement(WixDesignSystemContext.Consumer, null, ({ newColorsBranding }) => {
|
|
64843
65001
|
return (external_React_default().createElement(StatusContext.Consumer, null, statusContext => {
|
|
64844
65002
|
const finalStatus = getStatusFromContext(statusContext, status);
|
|
64845
|
-
return (external_React_default().createElement("div",
|
|
65003
|
+
return (external_React_default().createElement("div", { "data-hook": dataHook, className: InputArea_st_css_st(InputArea_st_css_classes.root, {
|
|
64846
65004
|
disabled,
|
|
64847
65005
|
size,
|
|
64848
65006
|
status: finalStatus,
|
|
@@ -64851,7 +65009,7 @@ class InputArea extends (external_React_default()).PureComponent {
|
|
|
64851
65009
|
resizable,
|
|
64852
65010
|
readOnly,
|
|
64853
65011
|
newColorsBranding,
|
|
64854
|
-
}, className)
|
|
65012
|
+
}, className), ...this._getDataAttr({ statusContext }) },
|
|
64855
65013
|
external_React_default().createElement("div", { className: InputArea_st_css_classes.inputArea },
|
|
64856
65014
|
typeof children === 'function' ? (children({
|
|
64857
65015
|
rows: rowsAttr,
|
|
@@ -64860,7 +65018,7 @@ class InputArea extends (external_React_default()).PureComponent {
|
|
|
64860
65018
|
onBlur: this._onBlur,
|
|
64861
65019
|
onKeyDown: this._onKeyDown,
|
|
64862
65020
|
onInput,
|
|
64863
|
-
})) : (external_React_default().createElement("textarea",
|
|
65021
|
+
})) : (external_React_default().createElement("textarea", { rows: rowsAttr, maxLength: maxLength, ref: ref => (this.textArea = ref), id: id, name: name, style: inlineStyle, defaultValue: defaultValue, disabled: disabled, value: value, required: required, onFocus: this._onFocus, onBlur: this._onBlur, onKeyDown: this._onKeyDown, onChange: this._onChange, onInput: onInput, placeholder: placeholder, tabIndex: tabIndex, autoFocus: autoFocus, onKeyUp: onKeyUp, ...getAriaAttributesFromContext(statusContext), ...ariaAttribute, readOnly: readOnly })),
|
|
64864
65022
|
hasCounter && maxLength && (external_React_default().createElement("span", { className: InputArea_st_css_classes.counter, "data-hook": "counter" },
|
|
64865
65023
|
this.state.counter,
|
|
64866
65024
|
"/",
|