@wix/entity-advanced-permissions 1.1418.0 → 1.1419.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 +534 -445
- package/dist/statics/entity-advanced-permissions.umd.js.map +1 -1
- package/dist/statics/entity-advanced-permissions.umd.min.js +2 -2
- 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 +4 -4
|
@@ -34412,7 +34412,7 @@ var __webpack_exports__ = {};
|
|
|
34412
34412
|
(() => {
|
|
34413
34413
|
"use strict";
|
|
34414
34414
|
/*!********************************!*\
|
|
34415
|
-
!*** ./index.ts +
|
|
34415
|
+
!*** ./index.ts + 582 modules ***!
|
|
34416
34416
|
\********************************/
|
|
34417
34417
|
// ESM COMPAT FLAG
|
|
34418
34418
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -35435,7 +35435,7 @@ function injectCSS(id, css, depth, runtimeId) {
|
|
|
35435
35435
|
|
|
35436
35436
|
|
|
35437
35437
|
|
|
35438
|
-
var _namespace_ = "
|
|
35438
|
+
var _namespace_ = "wds_1_326_0_newColorsBranding";
|
|
35439
35439
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
35440
35440
|
|
|
35441
35441
|
var newColorsBranding_st_css_cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -35443,7 +35443,7 @@ var newColorsBranding_st_css_style = (/* unused pure expression or super */ null
|
|
|
35443
35443
|
var newColorsBranding_st_css_st = _style_;
|
|
35444
35444
|
|
|
35445
35445
|
var newColorsBranding_st_css_namespace = (/* unused pure expression or super */ null && (_namespace_));
|
|
35446
|
-
var newColorsBranding_st_css_classes = {"root":"
|
|
35446
|
+
var newColorsBranding_st_css_classes = {"root":"wds_1_326_0_newColorsBranding__root"};
|
|
35447
35447
|
var newColorsBranding_st_css_keyframes = {};
|
|
35448
35448
|
var newColorsBranding_st_css_layers = {};
|
|
35449
35449
|
var containers = {};
|
|
@@ -35461,7 +35461,7 @@ var newColorsBranding_st_css_vars = {};
|
|
|
35461
35461
|
|
|
35462
35462
|
|
|
35463
35463
|
|
|
35464
|
-
var madefor_st_css_namespace_ = "
|
|
35464
|
+
var madefor_st_css_namespace_ = "wds_1_326_0_madefor";
|
|
35465
35465
|
var madefor_st_css_style_ = classesRuntime.bind(null, madefor_st_css_namespace_);
|
|
35466
35466
|
|
|
35467
35467
|
var madefor_st_css_cssStates = statesRuntime.bind(null, madefor_st_css_namespace_);
|
|
@@ -35469,7 +35469,7 @@ var madefor_st_css_style = (/* unused pure expression or super */ null && (madef
|
|
|
35469
35469
|
var madefor_st_css_st = (/* unused pure expression or super */ null && (madefor_st_css_style_));
|
|
35470
35470
|
|
|
35471
35471
|
var madefor_st_css_namespace = (/* unused pure expression or super */ null && (madefor_st_css_namespace_));
|
|
35472
|
-
var madefor_st_css_classes = {"root":"
|
|
35472
|
+
var madefor_st_css_classes = {"root":"wds_1_326_0_madefor__root","madefor":"wds_1_326_0_madefor__madefor"};
|
|
35473
35473
|
var madefor_st_css_keyframes = {};
|
|
35474
35474
|
var madefor_st_css_layers = {};
|
|
35475
35475
|
var madefor_st_css_containers = {};
|
|
@@ -35487,7 +35487,7 @@ var madefor_st_css_vars = {"wix-font-stack":"--wix-font-stack","wix-font-weight-
|
|
|
35487
35487
|
|
|
35488
35488
|
|
|
35489
35489
|
|
|
35490
|
-
var madefordisplay_st_css_namespace_ = "
|
|
35490
|
+
var madefordisplay_st_css_namespace_ = "wds_1_326_0_madefordisplay";
|
|
35491
35491
|
var madefordisplay_st_css_style_ = classesRuntime.bind(null, madefordisplay_st_css_namespace_);
|
|
35492
35492
|
|
|
35493
35493
|
var madefordisplay_st_css_cssStates = statesRuntime.bind(null, madefordisplay_st_css_namespace_);
|
|
@@ -35495,7 +35495,7 @@ var madefordisplay_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
35495
35495
|
var madefordisplay_st_css_st = (/* unused pure expression or super */ null && (madefordisplay_st_css_style_));
|
|
35496
35496
|
|
|
35497
35497
|
var madefordisplay_st_css_namespace = (/* unused pure expression or super */ null && (madefordisplay_st_css_namespace_));
|
|
35498
|
-
var madefordisplay_st_css_classes = {"root":"
|
|
35498
|
+
var madefordisplay_st_css_classes = {"root":"wds_1_326_0_madefordisplay__root","madefordisplay":"wds_1_326_0_madefordisplay__madefordisplay"};
|
|
35499
35499
|
var madefordisplay_st_css_keyframes = {};
|
|
35500
35500
|
var madefordisplay_st_css_layers = {};
|
|
35501
35501
|
var madefordisplay_st_css_containers = {};
|
|
@@ -35513,7 +35513,7 @@ var madefordisplay_st_css_vars = {"wix-font-stack":"--wix-font-stack","wix-font-
|
|
|
35513
35513
|
|
|
35514
35514
|
|
|
35515
35515
|
|
|
35516
|
-
var WixDesignSystemProvider_st_css_namespace_ = "
|
|
35516
|
+
var WixDesignSystemProvider_st_css_namespace_ = "wds_1_326_0_WixDesignSystemProvider";
|
|
35517
35517
|
var WixDesignSystemProvider_st_css_style_ = classesRuntime.bind(null, WixDesignSystemProvider_st_css_namespace_);
|
|
35518
35518
|
|
|
35519
35519
|
var WixDesignSystemProvider_st_css_cssStates = statesRuntime.bind(null, WixDesignSystemProvider_st_css_namespace_);
|
|
@@ -35521,7 +35521,7 @@ var WixDesignSystemProvider_st_css_style = (/* unused pure expression or super *
|
|
|
35521
35521
|
var WixDesignSystemProvider_st_css_st = (/* unused pure expression or super */ null && (WixDesignSystemProvider_st_css_style_));
|
|
35522
35522
|
|
|
35523
35523
|
var WixDesignSystemProvider_st_css_namespace = (/* unused pure expression or super */ null && (WixDesignSystemProvider_st_css_namespace_));
|
|
35524
|
-
var WixDesignSystemProvider_st_css_classes = {"root":"
|
|
35524
|
+
var WixDesignSystemProvider_st_css_classes = {"root":"wds_1_326_0_WixDesignSystemProvider__root","mobile":"wds_1_326_0_WixDesignSystemProvider__mobile"};
|
|
35525
35525
|
var WixDesignSystemProvider_st_css_keyframes = {};
|
|
35526
35526
|
var WixDesignSystemProvider_st_css_layers = {};
|
|
35527
35527
|
var WixDesignSystemProvider_st_css_containers = {};
|
|
@@ -35533,7 +35533,7 @@ var WixDesignSystemProvider_st_css_vars = {};
|
|
|
35533
35533
|
|
|
35534
35534
|
|
|
35535
35535
|
;// ../../../node_modules/@wix/design-system/dist/esm/utils/versionedNamespace.js
|
|
35536
|
-
const placeholder = '
|
|
35536
|
+
const placeholder = 'wds_1_326_0';
|
|
35537
35537
|
const versionedNamespace = placeholder.startsWith('wds_')
|
|
35538
35538
|
? placeholder
|
|
35539
35539
|
: '';
|
|
@@ -35597,7 +35597,7 @@ const WixStyleReactEnvironmentContext = external_React_default().createContext({
|
|
|
35597
35597
|
;// ../../../node_modules/@wix/design-system/dist/esm/WixStyleReactEnvironmentProvider/WixStyleReactEnvironmentProvider.js
|
|
35598
35598
|
|
|
35599
35599
|
|
|
35600
|
-
/** A wrapper component for an app to hold cross library global configuration such as locale, rtl and others */
|
|
35600
|
+
/** A wrapper component for an app to hold cross library global configuration such as locale, rtl and others. */
|
|
35601
35601
|
const WixStyleReactEnvironmentProvider = ({ locale = 'en', pageHeaderId, children, }) => {
|
|
35602
35602
|
return (external_React_default().createElement(WixStyleReactEnvironmentContext.Provider, { value: { locale, pageHeaderId } }, children));
|
|
35603
35603
|
};
|
|
@@ -35640,7 +35640,7 @@ var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty);
|
|
|
35640
35640
|
|
|
35641
35641
|
|
|
35642
35642
|
|
|
35643
|
-
var typography_st_css_namespace_ = "
|
|
35643
|
+
var typography_st_css_namespace_ = "wds_1_326_0_StylableTypography";
|
|
35644
35644
|
var typography_st_css_style_ = classesRuntime.bind(null, typography_st_css_namespace_);
|
|
35645
35645
|
|
|
35646
35646
|
var typography_st_css_cssStates = statesRuntime.bind(null, typography_st_css_namespace_);
|
|
@@ -35648,7 +35648,7 @@ var typography_st_css_style = (/* unused pure expression or super */ null && (ty
|
|
|
35648
35648
|
var typography_st_css_st = (/* unused pure expression or super */ null && (typography_st_css_style_));
|
|
35649
35649
|
|
|
35650
35650
|
var typography_st_css_namespace = (/* unused pure expression or super */ null && (typography_st_css_namespace_));
|
|
35651
|
-
var typography_st_css_classes = {"root":"
|
|
35651
|
+
var typography_st_css_classes = {"root":"wds_1_326_0_StylableTypography__root","text-extra-tiny-thin":"wds_1_326_0_StylableTypography__text-extra-tiny-thin","text-extra-tiny-normal":"wds_1_326_0_StylableTypography__text-extra-tiny-normal","text-extra-tiny-bold":"wds_1_326_0_StylableTypography__text-extra-tiny-bold","text-tiny-thin":"wds_1_326_0_StylableTypography__text-tiny-thin","text-tiny-normal":"wds_1_326_0_StylableTypography__text-tiny-normal","text-tiny-bold":"wds_1_326_0_StylableTypography__text-tiny-bold","text-small-thin":"wds_1_326_0_StylableTypography__text-small-thin","text-small-normal":"wds_1_326_0_StylableTypography__text-small-normal","text-small-bold":"wds_1_326_0_StylableTypography__text-small-bold","text-medium-thin":"wds_1_326_0_StylableTypography__text-medium-thin","text-medium-normal":"wds_1_326_0_StylableTypography__text-medium-normal","text-medium-bold":"wds_1_326_0_StylableTypography__text-medium-bold","heading-h1":"wds_1_326_0_StylableTypography__heading-h1","heading-h2":"wds_1_326_0_StylableTypography__heading-h2","heading-h3":"wds_1_326_0_StylableTypography__heading-h3","heading-h4":"wds_1_326_0_StylableTypography__heading-h4","heading-h5":"wds_1_326_0_StylableTypography__heading-h5","heading-h6":"wds_1_326_0_StylableTypography__heading-h6","heading-xl":"wds_1_326_0_StylableTypography__heading-xl","heading-l":"wds_1_326_0_StylableTypography__heading-l","heading-m":"wds_1_326_0_StylableTypography__heading-m","heading-s":"wds_1_326_0_StylableTypography__heading-s","heading-t":"wds_1_326_0_StylableTypography__heading-t","heading-xt":"wds_1_326_0_StylableTypography__heading-xt","caption-1":"wds_1_326_0_StylableTypography__caption-1"};
|
|
35652
35652
|
var typography_st_css_keyframes = {};
|
|
35653
35653
|
var typography_st_css_layers = {};
|
|
35654
35654
|
var typography_st_css_containers = {};
|
|
@@ -35666,7 +35666,7 @@ var typography_st_css_vars = {"wds-font-family-default":"--wds-font-family-defau
|
|
|
35666
35666
|
|
|
35667
35667
|
|
|
35668
35668
|
|
|
35669
|
-
var colors_st_css_namespace_ = "
|
|
35669
|
+
var colors_st_css_namespace_ = "wds_1_326_0_colors";
|
|
35670
35670
|
var colors_st_css_style_ = classesRuntime.bind(null, colors_st_css_namespace_);
|
|
35671
35671
|
|
|
35672
35672
|
var colors_st_css_cssStates = statesRuntime.bind(null, colors_st_css_namespace_);
|
|
@@ -35674,7 +35674,7 @@ var colors_st_css_style = (/* unused pure expression or super */ null && (colors
|
|
|
35674
35674
|
var colors_st_css_st = (/* unused pure expression or super */ null && (colors_st_css_style_));
|
|
35675
35675
|
|
|
35676
35676
|
var colors_st_css_namespace = (/* unused pure expression or super */ null && (colors_st_css_namespace_));
|
|
35677
|
-
var colors_st_css_classes = {"root":"
|
|
35677
|
+
var colors_st_css_classes = {"root":"wds_1_326_0_colors__root"};
|
|
35678
35678
|
var colors_st_css_keyframes = {};
|
|
35679
35679
|
var colors_st_css_layers = {};
|
|
35680
35680
|
var colors_st_css_containers = {};
|
|
@@ -35694,7 +35694,7 @@ var colors_st_css_vars = {"wsr-color-D10":"--wsr-color-D10","wsr-color-D20":"--w
|
|
|
35694
35694
|
|
|
35695
35695
|
|
|
35696
35696
|
|
|
35697
|
-
var Text_st_css_namespace_ = "
|
|
35697
|
+
var Text_st_css_namespace_ = "wds_1_326_0_Text";
|
|
35698
35698
|
var Text_st_css_style_ = classesRuntime.bind(null, Text_st_css_namespace_);
|
|
35699
35699
|
|
|
35700
35700
|
var Text_st_css_cssStates = statesRuntime.bind(null, Text_st_css_namespace_);
|
|
@@ -35702,7 +35702,7 @@ var Text_st_css_style = (/* unused pure expression or super */ null && (Text_st_
|
|
|
35702
35702
|
var Text_st_css_st = Text_st_css_style_;
|
|
35703
35703
|
|
|
35704
35704
|
var Text_st_css_namespace = (/* unused pure expression or super */ null && (Text_st_css_namespace_));
|
|
35705
|
-
var Text_st_css_classes = {"root":"
|
|
35705
|
+
var Text_st_css_classes = {"root":"wds_1_326_0_Text__root","text-tiny-thin":"wds_1_326_0_StylableTypography__text-tiny-thin","text-tiny-normal":"wds_1_326_0_StylableTypography__text-tiny-normal","text-tiny-bold":"wds_1_326_0_StylableTypography__text-tiny-bold","text-small-thin":"wds_1_326_0_StylableTypography__text-small-thin","text-small-normal":"wds_1_326_0_StylableTypography__text-small-normal","text-small-bold":"wds_1_326_0_StylableTypography__text-small-bold","text-medium-thin":"wds_1_326_0_StylableTypography__text-medium-thin","text-medium-normal":"wds_1_326_0_StylableTypography__text-medium-normal","text-medium-bold":"wds_1_326_0_StylableTypography__text-medium-bold"};
|
|
35706
35706
|
var Text_st_css_keyframes = {};
|
|
35707
35707
|
var Text_st_css_layers = {};
|
|
35708
35708
|
var Text_st_css_containers = {};
|
|
@@ -35793,7 +35793,7 @@ var shallowequal_default = /*#__PURE__*/__webpack_require__.n(shallowequal);
|
|
|
35793
35793
|
|
|
35794
35794
|
|
|
35795
35795
|
|
|
35796
|
-
var Ellipsis_st_css_namespace_ = "
|
|
35796
|
+
var Ellipsis_st_css_namespace_ = "wds_1_326_0_Ellipsis";
|
|
35797
35797
|
var Ellipsis_st_css_style_ = classesRuntime.bind(null, Ellipsis_st_css_namespace_);
|
|
35798
35798
|
|
|
35799
35799
|
var Ellipsis_st_css_cssStates = statesRuntime.bind(null, Ellipsis_st_css_namespace_);
|
|
@@ -35801,12 +35801,12 @@ var Ellipsis_st_css_style = (/* unused pure expression or super */ null && (Elli
|
|
|
35801
35801
|
var Ellipsis_st_css_st = Ellipsis_st_css_style_;
|
|
35802
35802
|
|
|
35803
35803
|
var Ellipsis_st_css_namespace = (/* unused pure expression or super */ null && (Ellipsis_st_css_namespace_));
|
|
35804
|
-
var Ellipsis_st_css_classes = {"root":"
|
|
35804
|
+
var Ellipsis_st_css_classes = {"root":"wds_1_326_0_Ellipsis__root","tooltip":"wds_1_326_0_Ellipsis__tooltip"};
|
|
35805
35805
|
var Ellipsis_st_css_keyframes = {};
|
|
35806
35806
|
var Ellipsis_st_css_layers = {};
|
|
35807
35807
|
var Ellipsis_st_css_containers = {};
|
|
35808
35808
|
var Ellipsis_st_css_stVars = {};
|
|
35809
|
-
var Ellipsis_st_css_vars = {"maxLines":"--
|
|
35809
|
+
var Ellipsis_st_css_vars = {"maxLines":"--wds_1_326_0_Ellipsis-maxLines"};
|
|
35810
35810
|
|
|
35811
35811
|
|
|
35812
35812
|
|
|
@@ -39693,17 +39693,17 @@ CSSTransition.propTypes = false ? 0 : {};
|
|
|
39693
39693
|
;// ../../../node_modules/@wix/design-system/dist/esm/Popover/PopoverCore/utils/ClickOutside.js
|
|
39694
39694
|
|
|
39695
39695
|
/**
|
|
39696
|
-
* Click outside behavior
|
|
39696
|
+
* Click outside behavior.
|
|
39697
39697
|
*/
|
|
39698
39698
|
class ClickOutside extends external_React_.PureComponent {
|
|
39699
39699
|
constructor(props) {
|
|
39700
39700
|
super(props);
|
|
39701
39701
|
/**
|
|
39702
|
-
* Check whether the click is inside the element or excluded
|
|
39702
|
+
* Check whether the click is inside the element or excluded.
|
|
39703
39703
|
* @param event - Click event
|
|
39704
39704
|
*/
|
|
39705
39705
|
/**
|
|
39706
|
-
* Check whether the click is inside the element or excluded
|
|
39706
|
+
* Check whether the click is inside the element or excluded.
|
|
39707
39707
|
* @param event - Click event
|
|
39708
39708
|
*/
|
|
39709
39709
|
// @ts-ignore
|
|
@@ -39735,7 +39735,7 @@ class ClickOutside extends external_React_.PureComponent {
|
|
|
39735
39735
|
return;
|
|
39736
39736
|
};
|
|
39737
39737
|
/**
|
|
39738
|
-
* Triggers onClickOutside callback when clicked outside child
|
|
39738
|
+
* Triggers onClickOutside callback when clicked outside child.
|
|
39739
39739
|
* @param event - Click event
|
|
39740
39740
|
*/
|
|
39741
39741
|
this._onClickOutside = (event) => {
|
|
@@ -39747,7 +39747,7 @@ class ClickOutside extends external_React_.PureComponent {
|
|
|
39747
39747
|
this._boundEvents = [];
|
|
39748
39748
|
}
|
|
39749
39749
|
/**
|
|
39750
|
-
* Register ClickOutside events
|
|
39750
|
+
* Register ClickOutside events.
|
|
39751
39751
|
*/
|
|
39752
39752
|
_registerEvents() {
|
|
39753
39753
|
const { options } = this.props;
|
|
@@ -39757,7 +39757,7 @@ class ClickOutside extends external_React_.PureComponent {
|
|
|
39757
39757
|
});
|
|
39758
39758
|
}
|
|
39759
39759
|
/**
|
|
39760
|
-
* Unregister ClickOutside events
|
|
39760
|
+
* Unregister ClickOutside events.
|
|
39761
39761
|
*/
|
|
39762
39762
|
_unregisterEvents() {
|
|
39763
39763
|
const { options } = this.props;
|
|
@@ -39996,7 +39996,7 @@ const getArrowShift = (shift, direction) => {
|
|
|
39996
39996
|
};
|
|
39997
39997
|
//# sourceMappingURL=utils.js.map
|
|
39998
39998
|
;// ../../../node_modules/@wix/design-system/dist/esm/Popover/PopoverCore/utils/helpers.js
|
|
39999
|
-
/** specific functions and variables for test environment purposes */
|
|
39999
|
+
/** specific functions and variables for test environment purposes. */
|
|
40000
40000
|
const popoverTestUtils = {
|
|
40001
40001
|
createRange: () => {
|
|
40002
40002
|
document.createRange = () => ({
|
|
@@ -40080,7 +40080,7 @@ function searchParent(predicate, element) {
|
|
|
40080
40080
|
|
|
40081
40081
|
|
|
40082
40082
|
|
|
40083
|
-
var shadows_st_css_namespace_ = "
|
|
40083
|
+
var shadows_st_css_namespace_ = "wds_1_326_0_shadows";
|
|
40084
40084
|
var shadows_st_css_style_ = classesRuntime.bind(null, shadows_st_css_namespace_);
|
|
40085
40085
|
|
|
40086
40086
|
var shadows_st_css_cssStates = statesRuntime.bind(null, shadows_st_css_namespace_);
|
|
@@ -40088,7 +40088,7 @@ var shadows_st_css_style = (/* unused pure expression or super */ null && (shado
|
|
|
40088
40088
|
var shadows_st_css_st = (/* unused pure expression or super */ null && (shadows_st_css_style_));
|
|
40089
40089
|
|
|
40090
40090
|
var shadows_st_css_namespace = (/* unused pure expression or super */ null && (shadows_st_css_namespace_));
|
|
40091
|
-
var shadows_st_css_classes = {"root":"
|
|
40091
|
+
var shadows_st_css_classes = {"root":"wds_1_326_0_shadows__root"};
|
|
40092
40092
|
var shadows_st_css_keyframes = {};
|
|
40093
40093
|
var shadows_st_css_layers = {};
|
|
40094
40094
|
var shadows_st_css_containers = {};
|
|
@@ -40106,7 +40106,7 @@ var shadows_st_css_vars = {"wsr-shadow10":"--wsr-shadow10","wsr-shadow20":"--wsr
|
|
|
40106
40106
|
|
|
40107
40107
|
|
|
40108
40108
|
|
|
40109
|
-
var easing_st_css_namespace_ = "
|
|
40109
|
+
var easing_st_css_namespace_ = "wds_1_326_0_easing";
|
|
40110
40110
|
var easing_st_css_style_ = classesRuntime.bind(null, easing_st_css_namespace_);
|
|
40111
40111
|
|
|
40112
40112
|
var easing_st_css_cssStates = statesRuntime.bind(null, easing_st_css_namespace_);
|
|
@@ -40114,7 +40114,7 @@ var easing_st_css_style = (/* unused pure expression or super */ null && (easing
|
|
|
40114
40114
|
var easing_st_css_st = (/* unused pure expression or super */ null && (easing_st_css_style_));
|
|
40115
40115
|
|
|
40116
40116
|
var easing_st_css_namespace = (/* unused pure expression or super */ null && (easing_st_css_namespace_));
|
|
40117
|
-
var easing_st_css_classes = {"root":"
|
|
40117
|
+
var easing_st_css_classes = {"root":"wds_1_326_0_easing__root"};
|
|
40118
40118
|
var easing_st_css_keyframes = {};
|
|
40119
40119
|
var easing_st_css_layers = {};
|
|
40120
40120
|
var easing_st_css_containers = {};
|
|
@@ -40135,7 +40135,7 @@ var easing_st_css_vars = {};
|
|
|
40135
40135
|
|
|
40136
40136
|
|
|
40137
40137
|
|
|
40138
|
-
var Popover_st_css_namespace_ = "
|
|
40138
|
+
var Popover_st_css_namespace_ = "wds_1_326_0_Popover";
|
|
40139
40139
|
var Popover_st_css_style_ = classesRuntime.bind(null, Popover_st_css_namespace_);
|
|
40140
40140
|
|
|
40141
40141
|
var Popover_st_css_cssStates = statesRuntime.bind(null, Popover_st_css_namespace_);
|
|
@@ -40143,7 +40143,7 @@ var Popover_st_css_style = (/* unused pure expression or super */ null && (Popov
|
|
|
40143
40143
|
var Popover_st_css_st = Popover_st_css_style_;
|
|
40144
40144
|
|
|
40145
40145
|
var Popover_st_css_namespace = (/* unused pure expression or super */ null && (Popover_st_css_namespace_));
|
|
40146
|
-
var Popover_st_css_classes = {"root":"
|
|
40146
|
+
var Popover_st_css_classes = {"root":"wds_1_326_0_Popover__root","content":"wds_1_326_0_Popover__content","arrow":"wds_1_326_0_Popover__arrow","element":"wds_1_326_0_Popover__element","animationEnter":"wds_1_326_0_Popover__animationEnter","animationEnterActive":"wds_1_326_0_Popover__animationEnterActive","animationExit":"wds_1_326_0_Popover__animationExit","animationExitActive":"wds_1_326_0_Popover__animationExitActive"};
|
|
40147
40147
|
var Popover_st_css_keyframes = {};
|
|
40148
40148
|
var Popover_st_css_layers = {};
|
|
40149
40149
|
var Popover_st_css_containers = {};
|
|
@@ -40280,7 +40280,7 @@ if (PopoverCore_isTestEnv && typeof document !== 'undefined' && !document.create
|
|
|
40280
40280
|
popoverTestUtils.createRange();
|
|
40281
40281
|
}
|
|
40282
40282
|
/**
|
|
40283
|
-
* Popover
|
|
40283
|
+
* Popover.
|
|
40284
40284
|
*/
|
|
40285
40285
|
class PopoverCore extends (external_React_default()).Component {
|
|
40286
40286
|
constructor(props) {
|
|
@@ -40307,7 +40307,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
40307
40307
|
}
|
|
40308
40308
|
};
|
|
40309
40309
|
/**
|
|
40310
|
-
* Checks to see if the focused element is outside the Popover content
|
|
40310
|
+
* Checks to see if the focused element is outside the Popover content.
|
|
40311
40311
|
*/
|
|
40312
40312
|
this._onDocumentKeyUp = (event) => {
|
|
40313
40313
|
const { onTabOut } = this.props;
|
|
@@ -40337,7 +40337,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
40337
40337
|
}
|
|
40338
40338
|
getPopperContentStructure(childrenObject) {
|
|
40339
40339
|
const { shown } = this.state;
|
|
40340
|
-
const { moveBy, appendTo, placement, showArrow, moveArrowTo, flip, flipModifier, fixed, customArrow, role, id, zIndex, minWidth, maxWidth, width, dynamicWidth, onEscPress, tabIndex, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedBy, timeout, skin, } = this.props;
|
|
40340
|
+
const { moveBy, appendTo, placement, showArrow, moveArrowTo, flip, flipModifier, fixed, customArrow, role, id, zIndex, minWidth, maxWidth, width, dynamicWidth, onEscPress, onContentClick, tabIndex, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedBy, timeout, skin, } = this.props;
|
|
40341
40341
|
const shouldAnimate = shouldAnimatePopover({ timeout });
|
|
40342
40342
|
const modifiers = createModifiers({
|
|
40343
40343
|
minWidth,
|
|
@@ -40365,7 +40365,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
40365
40365
|
skin,
|
|
40366
40366
|
placement: popperPlacement || placement,
|
|
40367
40367
|
hasArrow: true,
|
|
40368
|
-
}, popoverContentClasses.content({ skin, hasArrow: true })), onKeyDown: shown && onEscPress ? this._onKeyDown : undefined, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedBy }, childrenObject.Content)));
|
|
40368
|
+
}, popoverContentClasses.content({ skin, hasArrow: true })), onKeyDown: shown && onEscPress ? this._onKeyDown : undefined, onClick: onContentClick, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedBy }, childrenObject.Content)));
|
|
40369
40369
|
}));
|
|
40370
40370
|
const popper = (status) => (external_React_default().createElement(Popper_Popper, { modifiers: modifiers, placement: placement }, ({ ref, style: popperStyles, placement: popperPlacement, scheduleUpdate, }) => {
|
|
40371
40371
|
this.popperScheduleUpdate = scheduleUpdate;
|
|
@@ -40376,7 +40376,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
40376
40376
|
status,
|
|
40377
40377
|
placement: popperPlacement || placement,
|
|
40378
40378
|
skin,
|
|
40379
|
-
}), popoverContentClasses.content({ skin })), "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));
|
|
40379
|
+
}), popoverContentClasses.content({ skin })), "data-hook": "popover-content", style: { ...popperStyles, zIndex, maxWidth }, "data-content-element": this.contentHook, onKeyDown: shown && onEscPress ? this._onKeyDown : undefined, onClick: onContentClick, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedBy }, childrenObject.Content));
|
|
40380
40380
|
}));
|
|
40381
40381
|
return this.wrapWithAnimations(showArrow ? popperWithArrow : popper);
|
|
40382
40382
|
}
|
|
@@ -40603,7 +40603,7 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
40603
40603
|
this._syncAnimationFrameLoop(prevProps, prevState);
|
|
40604
40604
|
}
|
|
40605
40605
|
render() {
|
|
40606
|
-
const { onMouseEnter, onMouseLeave, onKeyDown, onClick, children, className, style, fluid, skin, dataHook, zIndex, excludeClass, interactive, } = this.props;
|
|
40606
|
+
const { onPointerEnter, onPointerLeave, onMouseEnter, onMouseLeave, onKeyDown, onClick, onPointerDown, children, className, style, fluid, skin, dataHook, zIndex, excludeClass, interactive, } = this.props;
|
|
40607
40607
|
const { isMounted, shown } = this.state;
|
|
40608
40608
|
const childrenObject = buildChildrenObject(children, {
|
|
40609
40609
|
Element: null,
|
|
@@ -40615,8 +40615,8 @@ class PopoverCore extends (external_React_default()).Component {
|
|
|
40615
40615
|
external_React_default().createElement(ClickOutside, { rootRef: this.clickOutsideRef, onClickOutside: this._handleClickOutside, excludeClass: excludeClass
|
|
40616
40616
|
? [this.clickOutsideClass, excludeClass]
|
|
40617
40617
|
: this.clickOutsideClass },
|
|
40618
|
-
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, popoverClasses.root({ fluid, skin })), "data-zindex": zIndex, onMouseEnter: interactive ? onMouseEnter : undefined, onMouseLeave: interactive ? onMouseLeave : undefined, ...filterDataProps(this.props) },
|
|
40619
|
-
external_React_default().createElement(Reference, { innerRef: r => (this.targetRef = r) }, ({ ref }) => (external_React_default().createElement("div", { ref: ref, className: Popover_st_css_st(Popover_st_css_classes.element, popoverClasses.element()), "data-hook": "popover-element", onClick: onClick, onKeyDown: onKeyDown, onMouseEnter: interactive ? undefined : onMouseEnter, onMouseLeave: interactive ? undefined : onMouseLeave }, childrenObject.Element))),
|
|
40618
|
+
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, popoverClasses.root({ fluid, skin })), "data-zindex": zIndex, onPointerEnter: interactive ? onPointerEnter : undefined, onPointerLeave: interactive ? onPointerLeave : undefined, onMouseEnter: interactive ? onMouseEnter : undefined, onMouseLeave: interactive ? onMouseLeave : undefined, ...filterDataProps(this.props) },
|
|
40619
|
+
external_React_default().createElement(Reference, { innerRef: r => (this.targetRef = r) }, ({ ref }) => (external_React_default().createElement("div", { ref: ref, className: Popover_st_css_st(Popover_st_css_classes.element, popoverClasses.element()), "data-hook": "popover-element", onClick: onClick, onPointerDown: onPointerDown, onKeyDown: onKeyDown, onPointerEnter: interactive ? undefined : onPointerEnter, onPointerLeave: interactive ? undefined : onPointerLeave, onMouseEnter: interactive ? undefined : onMouseEnter, onMouseLeave: interactive ? undefined : onMouseLeave }, childrenObject.Element))),
|
|
40620
40620
|
shouldRenderPopper && this.renderPopperContent(childrenObject)))));
|
|
40621
40621
|
}
|
|
40622
40622
|
}
|
|
@@ -40684,6 +40684,8 @@ Popover.defaultProps = {
|
|
|
40684
40684
|
;// ../../../node_modules/@wix/design-system/dist/esm/Tooltip/constants.js
|
|
40685
40685
|
const constants_dataHooks = { tooltipText: 'tooltip-text' };
|
|
40686
40686
|
const TIMEOUT = { enter: 100, exit: 150 };
|
|
40687
|
+
const DEFAULT_ENTER_DELAY = 200;
|
|
40688
|
+
const DEFAULT_EXIT_DELAY = 100;
|
|
40687
40689
|
const SIZES = { small: 'small', medium: 'medium' };
|
|
40688
40690
|
//# sourceMappingURL=constants.js.map
|
|
40689
40691
|
;// ../../../node_modules/@wix/design-system/dist/esm/Tooltip/Tooltip.classes.js
|
|
@@ -40700,7 +40702,7 @@ const Tooltip_classes_classes = defineClassNames('tooltip', {
|
|
|
40700
40702
|
|
|
40701
40703
|
/**
|
|
40702
40704
|
* A hook that returns a stable callback that always has the latest version of the provided function.
|
|
40703
|
-
* Taken from https://github.com/Volune/use-event-callback/blob/master/src/index.ts
|
|
40705
|
+
* Taken from https://github.com/Volune/use-event-callback/blob/master/src/index.ts.
|
|
40704
40706
|
*
|
|
40705
40707
|
* @param {Fn<ARGS, R>} fn - The callback function.
|
|
40706
40708
|
* @returns {Fn<ARGS, R>} A stable version of the provided callback function.
|
|
@@ -40724,15 +40726,40 @@ const useEventCallback = (fn) => {
|
|
|
40724
40726
|
|
|
40725
40727
|
|
|
40726
40728
|
|
|
40727
|
-
const
|
|
40729
|
+
const isNativelyInteractive = (element) => {
|
|
40730
|
+
if (!element.hasAttribute('tabindex')) {
|
|
40731
|
+
return element.tabIndex >= 0;
|
|
40732
|
+
}
|
|
40733
|
+
const probe = element.cloneNode(false);
|
|
40734
|
+
probe.removeAttribute('tabindex');
|
|
40735
|
+
return probe.tabIndex >= 0;
|
|
40736
|
+
};
|
|
40737
|
+
const containsNativelyInteractive = (target, boundary) => {
|
|
40738
|
+
for (let element = target; element && element !== boundary; element = element.parentElement) {
|
|
40739
|
+
if (isNativelyInteractive(element)) {
|
|
40740
|
+
return true;
|
|
40741
|
+
}
|
|
40742
|
+
}
|
|
40743
|
+
return false;
|
|
40744
|
+
};
|
|
40745
|
+
const Tooltip = (0,external_React_.forwardRef)(({ onShow = () => ({}), onHide = () => ({}), size = 'medium', className, placement = 'top', exitDelay = DEFAULT_EXIT_DELAY, enterDelay = DEFAULT_ENTER_DELAY, moveArrowTo, appendTo = 'window', flip = true, fixed = false, maxWidth = 204, fluid, moveBy, disabled, children, zIndex = ZIndex.tooltip, textAlign = 'start', content = '', inline, 'aria-describedby': ariaDescribedBy, 'aria-labelledby': ariaLabelledBy, interactive = true, ...rest }, ref) => {
|
|
40728
40746
|
const [shown, setShown] = (0,external_React_.useState)(false);
|
|
40729
40747
|
const contentRef = (0,external_React_.useRef)(null);
|
|
40748
|
+
const lastPointerType = (0,external_React_.useRef)('');
|
|
40749
|
+
const shownAtPointerDown = (0,external_React_.useRef)(null);
|
|
40750
|
+
const visible = (0,external_React_.useRef)(false);
|
|
40730
40751
|
const open = useEventCallback(() => {
|
|
40731
40752
|
setShown(true);
|
|
40732
|
-
onShow?.();
|
|
40733
40753
|
});
|
|
40734
40754
|
const close = useEventCallback(() => {
|
|
40735
40755
|
setShown(false);
|
|
40756
|
+
});
|
|
40757
|
+
const handleShow = useEventCallback(() => {
|
|
40758
|
+
visible.current = true;
|
|
40759
|
+
onShow?.();
|
|
40760
|
+
});
|
|
40761
|
+
const handleHide = useEventCallback(() => {
|
|
40762
|
+
visible.current = false;
|
|
40736
40763
|
onHide?.();
|
|
40737
40764
|
});
|
|
40738
40765
|
(0,external_React_.useImperativeHandle)(ref, () => ({
|
|
@@ -40741,6 +40768,48 @@ const Tooltip = (0,external_React_.forwardRef)(({ onShow = () => ({}), onHide =
|
|
|
40741
40768
|
getContentElement: () => contentRef.current,
|
|
40742
40769
|
}));
|
|
40743
40770
|
const isDisabled = disabled ?? false;
|
|
40771
|
+
const trackPointerType = useEventCallback((event) => {
|
|
40772
|
+
lastPointerType.current = event.pointerType;
|
|
40773
|
+
});
|
|
40774
|
+
const onTriggerPointerDown = useEventCallback((event) => {
|
|
40775
|
+
trackPointerType(event);
|
|
40776
|
+
shownAtPointerDown.current = visible.current;
|
|
40777
|
+
});
|
|
40778
|
+
const isTapPointer = () => lastPointerType.current === 'touch' || lastPointerType.current === 'pen';
|
|
40779
|
+
const openFromHover = useEventCallback(() => {
|
|
40780
|
+
if (shown || isTapPointer()) {
|
|
40781
|
+
return;
|
|
40782
|
+
}
|
|
40783
|
+
open();
|
|
40784
|
+
});
|
|
40785
|
+
const closeFromHover = useEventCallback(() => {
|
|
40786
|
+
if (!shown || isTapPointer()) {
|
|
40787
|
+
return;
|
|
40788
|
+
}
|
|
40789
|
+
close();
|
|
40790
|
+
});
|
|
40791
|
+
const onContentClick = useEventCallback(() => {
|
|
40792
|
+
if (isTapPointer()) {
|
|
40793
|
+
close();
|
|
40794
|
+
}
|
|
40795
|
+
});
|
|
40796
|
+
const onTriggerClick = useEventCallback((event) => {
|
|
40797
|
+
const wasShown = shownAtPointerDown.current ?? visible.current;
|
|
40798
|
+
shownAtPointerDown.current = null;
|
|
40799
|
+
if (isDisabled) {
|
|
40800
|
+
return;
|
|
40801
|
+
}
|
|
40802
|
+
if (!isTapPointer() &&
|
|
40803
|
+
containsNativelyInteractive(event.target, event.currentTarget)) {
|
|
40804
|
+
return;
|
|
40805
|
+
}
|
|
40806
|
+
if (wasShown) {
|
|
40807
|
+
close();
|
|
40808
|
+
}
|
|
40809
|
+
else if (!shown) {
|
|
40810
|
+
open();
|
|
40811
|
+
}
|
|
40812
|
+
});
|
|
40744
40813
|
const onFocus = useEventCallback((event, handlers) => {
|
|
40745
40814
|
const focusableHOC = handlers && handlers.focus;
|
|
40746
40815
|
const target = event.target;
|
|
@@ -40764,6 +40833,8 @@ const Tooltip = (0,external_React_.forwardRef)(({ onShow = () => ({}), onHide =
|
|
|
40764
40833
|
return focusableHOC ? handlers.blur() : null;
|
|
40765
40834
|
});
|
|
40766
40835
|
const handleKeyDown = useEventCallback((event) => {
|
|
40836
|
+
lastPointerType.current = '';
|
|
40837
|
+
shownAtPointerDown.current = null;
|
|
40767
40838
|
if (event.key === 'Escape' && shown) {
|
|
40768
40839
|
close();
|
|
40769
40840
|
}
|
|
@@ -40808,7 +40879,7 @@ const Tooltip = (0,external_React_.forwardRef)(({ onShow = () => ({}), onHide =
|
|
|
40808
40879
|
// @ts-ignore
|
|
40809
40880
|
external_React_default().createElement(RawText, { dataHook: constants_dataHooks.tooltipText, size: textSize, light: true, className: Tooltip_classes_classes.text(), renderChildren: ({ text }) => text, renderElement: ({ element }) => element }, content)) : (content)));
|
|
40810
40881
|
}, [content, textAlign, size]);
|
|
40811
|
-
return (external_React_default().createElement(Popover, { role: "tooltip", showArrow: size !== 'small', className: Tooltip_classes_classes.root({ size, inline }, className), placement: placement, shown: isDisabled ? false : shown, onMouseEnter: isDisabled ? undefined :
|
|
40882
|
+
return (external_React_default().createElement(Popover, { role: "tooltip", showArrow: size !== 'small', className: Tooltip_classes_classes.root({ size, inline }, className), placement: placement, shown: isDisabled ? false : shown, onPointerEnter: trackPointerType, onPointerLeave: trackPointerType, onMouseEnter: isDisabled ? undefined : openFromHover, onMouseLeave: closeFromHover, onPointerDown: onTriggerPointerDown, onClick: onTriggerClick, onContentClick: onContentClick, onClickOutside: close, onEscPress: close, onShow: handleShow, onHide: handleHide, "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, interactive: interactive, ...rest, theme: "dark", timeout: TIMEOUT },
|
|
40812
40883
|
external_React_default().createElement(Popover.Element, null, triggerElement),
|
|
40813
40884
|
external_React_default().createElement(Popover.Content, null,
|
|
40814
40885
|
external_React_default().createElement("div", { ref: contentRef, style: { maxWidth } }, contentElement))));
|
|
@@ -40823,7 +40894,7 @@ Tooltip.displayName = 'Tooltip';
|
|
|
40823
40894
|
|
|
40824
40895
|
|
|
40825
40896
|
|
|
40826
|
-
var TextComponent_st_css_namespace_ = "
|
|
40897
|
+
var TextComponent_st_css_namespace_ = "wds_1_326_0_TextComponent";
|
|
40827
40898
|
var TextComponent_st_css_style_ = classesRuntime.bind(null, TextComponent_st_css_namespace_);
|
|
40828
40899
|
|
|
40829
40900
|
var TextComponent_st_css_cssStates = statesRuntime.bind(null, TextComponent_st_css_namespace_);
|
|
@@ -40831,12 +40902,12 @@ var TextComponent_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
40831
40902
|
var TextComponent_st_css_st = TextComponent_st_css_style_;
|
|
40832
40903
|
|
|
40833
40904
|
var TextComponent_st_css_namespace = (/* unused pure expression or super */ null && (TextComponent_st_css_namespace_));
|
|
40834
|
-
var TextComponent_st_css_classes = {"root":"
|
|
40905
|
+
var TextComponent_st_css_classes = {"root":"wds_1_326_0_TextComponent__root","text":"wds_1_326_0_TextComponent__text","suffix":"wds_1_326_0_TextComponent__suffix","multilineSuffixWrapper":"wds_1_326_0_TextComponent__multilineSuffixWrapper","multilineSuffix":"wds_1_326_0_TextComponent__multilineSuffix"};
|
|
40835
40906
|
var TextComponent_st_css_keyframes = {};
|
|
40836
40907
|
var TextComponent_st_css_layers = {};
|
|
40837
40908
|
var TextComponent_st_css_containers = {};
|
|
40838
40909
|
var TextComponent_st_css_stVars = {};
|
|
40839
|
-
var TextComponent_st_css_vars = {"maxLines":"--
|
|
40910
|
+
var TextComponent_st_css_vars = {"maxLines":"--wds_1_326_0_TextComponent-maxLines"};
|
|
40840
40911
|
|
|
40841
40912
|
|
|
40842
40913
|
|
|
@@ -40863,7 +40934,7 @@ class TextComponent extends (external_React_default()).PureComponent {
|
|
|
40863
40934
|
if (!this.props.textRendered) {
|
|
40864
40935
|
/**
|
|
40865
40936
|
* The requestAnimationFrame implementation is meant for browser only race condition bug fix.
|
|
40866
|
-
* It
|
|
40937
|
+
* It doesn't get reproduced in test environment due JSDOM being not a browser.
|
|
40867
40938
|
* So we skip the requestAnimationFrame part in order not to have delays in calculations.
|
|
40868
40939
|
*/
|
|
40869
40940
|
if (TextComponent_isTestEnv) {
|
|
@@ -40878,7 +40949,7 @@ class TextComponent extends (external_React_default()).PureComponent {
|
|
|
40878
40949
|
if (!this.props.textRendered) {
|
|
40879
40950
|
/**
|
|
40880
40951
|
* The requestAnimationFrame implementation is meant for browser only race condition bug fix.
|
|
40881
|
-
* It
|
|
40952
|
+
* It doesn't get reproduced in test environment due JSDOM being not a browser.
|
|
40882
40953
|
* So we skip the requestAnimationFrame part in order not to have delays in calculations.
|
|
40883
40954
|
*/
|
|
40884
40955
|
if (TextComponent_isTestEnv) {
|
|
@@ -40941,12 +41012,13 @@ class TextComponent extends (external_React_default()).PureComponent {
|
|
|
40941
41012
|
|
|
40942
41013
|
|
|
40943
41014
|
|
|
41015
|
+
|
|
40944
41016
|
class Ellipsis extends (external_React_default()).PureComponent {
|
|
40945
41017
|
constructor(props) {
|
|
40946
41018
|
super(props);
|
|
40947
41019
|
/**
|
|
40948
41020
|
* Once text component has rendered,
|
|
40949
|
-
* Update text content and tooltip active state
|
|
41021
|
+
* Update text content and tooltip active state.
|
|
40950
41022
|
* @private
|
|
40951
41023
|
*/
|
|
40952
41024
|
this._onTextRendered = () => {
|
|
@@ -41077,15 +41149,15 @@ Ellipsis.defaultProps = {
|
|
|
41077
41149
|
fixed: false,
|
|
41078
41150
|
placement: 'top',
|
|
41079
41151
|
zIndex: ZIndex.tooltip,
|
|
41080
|
-
enterDelay:
|
|
41081
|
-
exitDelay:
|
|
41152
|
+
enterDelay: DEFAULT_ENTER_DELAY,
|
|
41153
|
+
exitDelay: DEFAULT_EXIT_DELAY,
|
|
41082
41154
|
showTooltip: true,
|
|
41083
41155
|
};
|
|
41084
41156
|
|
|
41085
41157
|
//# sourceMappingURL=Ellipsis.js.map
|
|
41086
41158
|
;// ../../../node_modules/@wix/design-system/dist/esm/common/Ellipsis/EllipsisUtils.js
|
|
41087
41159
|
/**
|
|
41088
|
-
* A utility function that extracts Ellipsis relevant props and wrapped Component relevant props
|
|
41160
|
+
* A utility function that extracts Ellipsis relevant props and wrapped Component relevant props.
|
|
41089
41161
|
* @returns {{ellipsisProps: *, componentProps: *}}
|
|
41090
41162
|
*/
|
|
41091
41163
|
const extractEllipsisProps = ({ appendTo, disabled, ellipsis, enterDelay, exitDelay, fixed, flip, maxWidth, moveArrowTo, onHide, onShow, placement, showTooltip, textAlign, zIndex, maxLines, onEllipsisStateChange, ...componentProps }) => {
|
|
@@ -41168,7 +41240,7 @@ const generateDataAttr = (props, filter) => Object.entries(props)
|
|
|
41168
41240
|
|
|
41169
41241
|
|
|
41170
41242
|
|
|
41171
|
-
var Focusable_st_css_namespace_ = "
|
|
41243
|
+
var Focusable_st_css_namespace_ = "wds_1_326_0_Focusable";
|
|
41172
41244
|
var Focusable_st_css_style_ = classesRuntime.bind(null, Focusable_st_css_namespace_);
|
|
41173
41245
|
|
|
41174
41246
|
var Focusable_st_css_cssStates = statesRuntime.bind(null, Focusable_st_css_namespace_);
|
|
@@ -41176,7 +41248,7 @@ var Focusable_st_css_style = (/* unused pure expression or super */ null && (Foc
|
|
|
41176
41248
|
var Focusable_st_css_st = Focusable_st_css_style_;
|
|
41177
41249
|
|
|
41178
41250
|
var Focusable_st_css_namespace = (/* unused pure expression or super */ null && (Focusable_st_css_namespace_));
|
|
41179
|
-
var Focusable_st_css_classes = {"root":"
|
|
41251
|
+
var Focusable_st_css_classes = {"root":"wds_1_326_0_Focusable__root","focus-box":"wds_1_326_0_Focusable__focus-box","focus-box-error":"wds_1_326_0_Focusable__focus-box-error"};
|
|
41180
41252
|
var Focusable_st_css_keyframes = {};
|
|
41181
41253
|
var Focusable_st_css_layers = {};
|
|
41182
41254
|
var Focusable_st_css_containers = {};
|
|
@@ -41194,7 +41266,7 @@ var Focusable_st_css_vars = {};
|
|
|
41194
41266
|
|
|
41195
41267
|
|
|
41196
41268
|
|
|
41197
|
-
var ButtonCore_st_css_namespace_ = "
|
|
41269
|
+
var ButtonCore_st_css_namespace_ = "wds_1_326_0_ButtonCore";
|
|
41198
41270
|
var ButtonCore_st_css_style_ = classesRuntime.bind(null, ButtonCore_st_css_namespace_);
|
|
41199
41271
|
|
|
41200
41272
|
var ButtonCore_st_css_cssStates = statesRuntime.bind(null, ButtonCore_st_css_namespace_);
|
|
@@ -41202,7 +41274,7 @@ var ButtonCore_st_css_style = (/* unused pure expression or super */ null && (Bu
|
|
|
41202
41274
|
var ButtonCore_st_css_st = ButtonCore_st_css_style_;
|
|
41203
41275
|
|
|
41204
41276
|
var ButtonCore_st_css_namespace = (/* unused pure expression or super */ null && (ButtonCore_st_css_namespace_));
|
|
41205
|
-
var ButtonCore_st_css_classes = {"root":"
|
|
41277
|
+
var ButtonCore_st_css_classes = {"root":"wds_1_326_0_ButtonCore__root","content":"wds_1_326_0_ButtonCore__content","prefix":"wds_1_326_0_ButtonCore__prefix","suffix":"wds_1_326_0_ButtonCore__suffix"};
|
|
41206
41278
|
var ButtonCore_st_css_keyframes = {};
|
|
41207
41279
|
var ButtonCore_st_css_layers = {};
|
|
41208
41280
|
var ButtonCore_st_css_containers = {};
|
|
@@ -41224,7 +41296,7 @@ var ButtonCore_st_css_vars = {};
|
|
|
41224
41296
|
|
|
41225
41297
|
|
|
41226
41298
|
|
|
41227
|
-
var TextButton_st_css_namespace_ = "
|
|
41299
|
+
var TextButton_st_css_namespace_ = "wds_1_326_0_TextButton";
|
|
41228
41300
|
var TextButton_st_css_style_ = classesRuntime.bind(null, TextButton_st_css_namespace_);
|
|
41229
41301
|
|
|
41230
41302
|
var TextButton_st_css_cssStates = statesRuntime.bind(null, TextButton_st_css_namespace_);
|
|
@@ -41232,7 +41304,7 @@ var TextButton_st_css_style = (/* unused pure expression or super */ null && (Te
|
|
|
41232
41304
|
var TextButton_st_css_st = TextButton_st_css_style_;
|
|
41233
41305
|
|
|
41234
41306
|
var TextButton_st_css_namespace = (/* unused pure expression or super */ null && (TextButton_st_css_namespace_));
|
|
41235
|
-
var TextButton_st_css_classes = {"root":"
|
|
41307
|
+
var TextButton_st_css_classes = {"root":"wds_1_326_0_TextButton__root","text-tiny-thin":"wds_1_326_0_StylableTypography__text-tiny-thin","text-tiny-normal":"wds_1_326_0_StylableTypography__text-tiny-normal","text-tiny-bold":"wds_1_326_0_StylableTypography__text-tiny-bold","text-small-thin":"wds_1_326_0_StylableTypography__text-small-thin","text-small-normal":"wds_1_326_0_StylableTypography__text-small-normal","text-small-bold":"wds_1_326_0_StylableTypography__text-small-bold","text-medium-thin":"wds_1_326_0_StylableTypography__text-medium-thin","text-medium-normal":"wds_1_326_0_StylableTypography__text-medium-normal","text-medium-bold":"wds_1_326_0_StylableTypography__text-medium-bold"};
|
|
41236
41308
|
var TextButton_st_css_keyframes = {};
|
|
41237
41309
|
var TextButton_st_css_layers = {};
|
|
41238
41310
|
var TextButton_st_css_containers = {};
|
|
@@ -41243,6 +41315,21 @@ var TextButton_st_css_vars = {"wds-space-0":"--wds-space-0","wds-button-gap-medi
|
|
|
41243
41315
|
|
|
41244
41316
|
|
|
41245
41317
|
|
|
41318
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/Button/ButtonCore/ButtonCore.constants.js
|
|
41319
|
+
/**
|
|
41320
|
+
* Stable class names for ButtonCore's inner parts.
|
|
41321
|
+
*
|
|
41322
|
+
* The Stylable classes they sit beside are namespaced with a build-time version
|
|
41323
|
+
* hash, so a migrated SCSS sheet cannot target them. Kept as plain literals
|
|
41324
|
+
* (rather than a `defineClassNames` contract) because `ButtonCore` backs every
|
|
41325
|
+
* button in the library — the contract's runtime would land in nearly every
|
|
41326
|
+
* bundle, which is the cost that tripped the perfer ceiling on seven bundles in
|
|
41327
|
+
* PR #17000.
|
|
41328
|
+
*/
|
|
41329
|
+
const BUTTON_CORE_CONTENT_CLASS = 'wds-button-core__content';
|
|
41330
|
+
const BUTTON_CORE_PREFIX_CLASS = 'wds-button-core__prefix';
|
|
41331
|
+
const BUTTON_CORE_SUFFIX_CLASS = 'wds-button-core__suffix';
|
|
41332
|
+
//# sourceMappingURL=ButtonCore.constants.js.map
|
|
41246
41333
|
;// ../../../node_modules/@wix/design-system/dist/esm/common/hocUtils.js
|
|
41247
41334
|
// these are taken from Recompose:
|
|
41248
41335
|
// https://github.com/acdlite/recompose/tree/7918e23eebb74dc930e6ff2d32eb1ead4750f061
|
|
@@ -41424,13 +41511,18 @@ const ButtonCore_utils_isStatelessComponent = (Component) => !(Component.prototy
|
|
|
41424
41511
|
|
|
41425
41512
|
|
|
41426
41513
|
|
|
41514
|
+
|
|
41515
|
+
const STABLE_AFFIX_CLASS = {
|
|
41516
|
+
prefix: BUTTON_CORE_PREFIX_CLASS,
|
|
41517
|
+
suffix: BUTTON_CORE_SUFFIX_CLASS,
|
|
41518
|
+
};
|
|
41427
41519
|
const ButtonCore_addAffix = (Affix, styleClass, dataHook) => Affix &&
|
|
41428
41520
|
external_React_.cloneElement(Affix, {
|
|
41429
|
-
className: classnames_default()(ButtonCore_st_css_classes[styleClass], Affix.props.className),
|
|
41521
|
+
className: classnames_default()(ButtonCore_st_css_classes[styleClass], STABLE_AFFIX_CLASS[styleClass], Affix.props.className),
|
|
41430
41522
|
'data-hook': Affix.props['data-hook'] || Affix.props.dataHook || dataHook,
|
|
41431
41523
|
});
|
|
41432
41524
|
/**
|
|
41433
|
-
* ButtonCore
|
|
41525
|
+
* ButtonCore.
|
|
41434
41526
|
*/
|
|
41435
41527
|
class ButtonCore extends external_React_.Component {
|
|
41436
41528
|
constructor() {
|
|
@@ -41443,7 +41535,7 @@ class ButtonCore extends external_React_.Component {
|
|
|
41443
41535
|
}
|
|
41444
41536
|
}
|
|
41445
41537
|
/**
|
|
41446
|
-
* Returns the size and position of the element
|
|
41538
|
+
* Returns the size and position of the element.
|
|
41447
41539
|
*/
|
|
41448
41540
|
getBoundingClientRect() {
|
|
41449
41541
|
if (this.innerComponentRef &&
|
|
@@ -41475,7 +41567,7 @@ class ButtonCore extends external_React_.Component {
|
|
|
41475
41567
|
}
|
|
41476
41568
|
return (external_React_.createElement(Component, { "data-hook": ButtonCore_constants_dataHooks.button, ...rest, onFocus: focusableOnFocus, onBlur: focusableOnBlur, onClick: handleClick, onKeyDown: handleKeyDown, onKeyUp: disabled ? undefined : onKeyUp, href: htmlHref, ref: reference, tabIndex: htmlTabIndex, "aria-disabled": disabled || undefined, className: ButtonCore_st_css_st(ButtonCore_st_css_classes.root, { disabled }, this.props.className) },
|
|
41477
41569
|
prefixIcon && ButtonCore_addAffix(prefixIcon, 'prefix', ButtonCore_constants_dataHooks.prefixIcon),
|
|
41478
|
-
external_React_.createElement("span", { className: ButtonCore_st_css_st(ButtonCore_st_css_classes.content, contentClassName), ref: contentRef }, children),
|
|
41570
|
+
external_React_.createElement("span", { className: ButtonCore_st_css_st(ButtonCore_st_css_classes.content, BUTTON_CORE_CONTENT_CLASS, contentClassName), ref: contentRef }, children),
|
|
41479
41571
|
suffixIcon && ButtonCore_addAffix(suffixIcon, 'suffix', ButtonCore_constants_dataHooks.suffixIcon)));
|
|
41480
41572
|
}
|
|
41481
41573
|
}
|
|
@@ -41556,7 +41648,7 @@ class TextButton_TextButton extends external_React_.PureComponent {
|
|
|
41556
41648
|
super(...arguments);
|
|
41557
41649
|
this.button = external_React_default().createRef();
|
|
41558
41650
|
/**
|
|
41559
|
-
* Sets focus on the element
|
|
41651
|
+
* Sets focus on the element.
|
|
41560
41652
|
*/
|
|
41561
41653
|
this.focus = () => {
|
|
41562
41654
|
this.button.current && this.button.current.focus();
|
|
@@ -41604,7 +41696,7 @@ const TextButtonWithDefaultProps = withDefaultProps(TextButton_TextButton, 'Text
|
|
|
41604
41696
|
|
|
41605
41697
|
|
|
41606
41698
|
|
|
41607
|
-
var Button_st_css_namespace_ = "
|
|
41699
|
+
var Button_st_css_namespace_ = "wds_1_326_0_Button";
|
|
41608
41700
|
var Button_st_css_style_ = classesRuntime.bind(null, Button_st_css_namespace_);
|
|
41609
41701
|
|
|
41610
41702
|
var Button_st_css_cssStates = statesRuntime.bind(null, Button_st_css_namespace_);
|
|
@@ -41612,12 +41704,12 @@ var Button_st_css_style = (/* unused pure expression or super */ null && (Button
|
|
|
41612
41704
|
var Button_st_css_st = Button_st_css_style_;
|
|
41613
41705
|
|
|
41614
41706
|
var Button_st_css_namespace = (/* unused pure expression or super */ null && (Button_st_css_namespace_));
|
|
41615
|
-
var Button_st_css_classes = {"root":"
|
|
41707
|
+
var Button_st_css_classes = {"root":"wds_1_326_0_Button__root","text-small-normal":"wds_1_326_0_StylableTypography__text-small-normal","text-medium-normal":"wds_1_326_0_StylableTypography__text-medium-normal","text-tiny-bold":"wds_1_326_0_StylableTypography__text-tiny-bold","ellipsisTooltip":"wds_1_326_0_Button__ellipsisTooltip"};
|
|
41616
41708
|
var Button_st_css_keyframes = {};
|
|
41617
41709
|
var Button_st_css_layers = {};
|
|
41618
41710
|
var Button_st_css_containers = {};
|
|
41619
41711
|
var Button_st_css_stVars = {};
|
|
41620
|
-
var Button_st_css_vars = {"wds-button-border-radius-large":"--wds-button-border-radius-large","wds-button-border-radius-medium":"--wds-button-border-radius-medium","wds-button-border-radius-small":"--wds-button-border-radius-small","wds-button-border-radius-tiny":"--wds-button-border-radius-tiny","wds-button-gap-large":"--wds-button-gap-large","wds-button-gap-medium":"--wds-button-gap-medium","wds-button-gap-small":"--wds-button-gap-small","wds-button-gap-tiny":"--wds-button-gap-tiny","wds-button-padding-vertical-large":"--wds-button-padding-vertical-large","wds-button-padding-horizontal-large":"--wds-button-padding-horizontal-large","wds-button-padding-vertical-medium":"--wds-button-padding-vertical-medium","wds-button-padding-horizontal-medium":"--wds-button-padding-horizontal-medium","wds-button-padding-vertical-small":"--wds-button-padding-vertical-small","wds-button-padding-horizontal-small":"--wds-button-padding-horizontal-small","wds-button-padding-vertical-tiny":"--wds-button-padding-vertical-tiny","wds-button-padding-horizontal-tiny":"--wds-button-padding-horizontal-tiny","wds-button-size-large":"--wds-button-size-large","wds-button-size-medium":"--wds-button-size-medium","wds-button-size-small":"--wds-button-size-small","wds-button-size-tiny":"--wds-button-size-tiny","wds-color-border-standard-secondary":"--wds-color-border-standard-secondary","wds-color-border-standard-secondary-disabled":"--wds-color-border-standard-secondary-disabled","wds-color-border-light":"--wds-color-border-light","wds-color-border-light-disabled":"--wds-color-border-light-disabled","wds-color-border-premium-secondary":"--wds-color-border-premium-secondary","wds-color-border-premium-secondary-disabled":"--wds-color-border-premium-secondary-disabled","wds-color-border-destructive-secondary":"--wds-color-border-destructive-secondary","wds-color-border-destructive-secondary-disabled":"--wds-color-border-destructive-secondary-disabled","wds-color-border-dark-primary":"--wds-color-border-dark-primary","wds-color-border-dark-primary-disabled":"--wds-color-border-dark-primary-disabled","wds-color-border-dark-secondary-disabled":"--wds-color-border-dark-secondary-disabled","wds-color-border-ai-primary":"--wds-color-border-ai-primary","wds-color-fill-standard-primary":"--wds-color-fill-standard-primary","wds-color-fill-standard-primary-hover":"--wds-color-fill-standard-primary-hover","wds-color-fill-standard-primary-active":"--wds-color-fill-standard-primary-active","wds-color-fill-standard-primary-disabled":"--wds-color-fill-standard-primary-disabled","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-light-primary":"--wds-color-fill-light-primary","wds-color-fill-light-primary-hover":"--wds-color-fill-light-primary-hover","wds-color-fill-light-primary-active":"--wds-color-fill-light-primary-active","wds-color-fill-light-primary-disabled":"--wds-color-fill-light-primary-disabled","wds-color-fill-light-secondary":"--wds-color-fill-light-secondary","wds-color-fill-light-secondary-hover":"--wds-color-fill-light-secondary-hover","wds-color-fill-light-secondary-active":"--wds-color-fill-light-secondary-active","wds-color-fill-light-secondary-disabled":"--wds-color-fill-light-secondary-disabled","wds-color-fill-destructive-primary":"--wds-color-fill-destructive-primary","wds-color-fill-destructive-primary-hover":"--wds-color-fill-destructive-primary-hover","wds-color-fill-destructive-primary-active":"--wds-color-fill-destructive-primary-active","wds-color-fill-destructive-primary-disabled":"--wds-color-fill-destructive-primary-disabled","wds-color-fill-destructive-tertiary":"--wds-color-fill-destructive-tertiary","wds-color-fill-destructive-tertiary-disabled":"--wds-color-fill-destructive-tertiary-disabled","wds-color-fill-premium-primary":"--wds-color-fill-premium-primary","wds-color-fill-premium-primary-hover":"--wds-color-fill-premium-primary-hover","wds-color-fill-premium-primary-active":"--wds-color-fill-premium-primary-active","wds-color-fill-premium-primary-disabled":"--wds-color-fill-premium-primary-disabled","wds-color-fill-premium-light-primary":"--wds-color-fill-premium-light-primary","wds-color-fill-premium-light-primary-hover":"--wds-color-fill-premium-light-primary-hover","wds-color-fill-premium-light-primary-active":"--wds-color-fill-premium-light-primary-active","wds-color-fill-premium-light-primary-disabled":"--wds-color-fill-premium-light-primary-disabled","wds-color-fill-premium-light-secondary":"--wds-color-fill-premium-light-secondary","wds-color-fill-premium-light-secondary-hover":"--wds-color-fill-premium-light-secondary-hover","wds-color-fill-premium-light-secondary-active":"--wds-color-fill-premium-light-secondary-active","wds-color-fill-premium-light-secondary-disabled":"--wds-color-fill-premium-light-secondary-disabled","wds-color-fill-premium-tertiary":"--wds-color-fill-premium-tertiary","wds-color-fill-premium-tertiary-disabled":"--wds-color-fill-premium-tertiary-disabled","wds-color-fill-dark-primary":"--wds-color-fill-dark-primary","wds-color-fill-dark-primary-hover":"--wds-color-fill-dark-primary-hover","wds-color-fill-dark-primary-active":"--wds-color-fill-dark-primary-active","wds-color-fill-dark-primary-disabled":"--wds-color-fill-dark-primary-disabled","wds-color-fill-transparent-primary":"--wds-color-fill-transparent-primary","wds-color-fill-transparent-primary-hover":"--wds-color-fill-transparent-primary-hover","wds-color-fill-transparent-primary-active":"--wds-color-fill-transparent-primary-active","wds-color-fill-transparent-primary-disabled":"--wds-color-fill-transparent-primary-disabled","wds-color-fill-transparent-secondary":"--wds-color-fill-transparent-secondary","wds-color-fill-transparent-secondary-hover":"--wds-color-fill-transparent-secondary-hover","wds-color-fill-transparent-secondary-active":"--wds-color-fill-transparent-secondary-active","wds-color-fill-transparent-secondary-disabled":"--wds-color-fill-transparent-secondary-disabled","wds-color-fill-ai-primary":"--wds-color-fill-ai-primary","wds-color-fill-ai-primary-hover":"--wds-color-fill-ai-primary-hover","wds-color-fill-ai-primary-active":"--wds-color-fill-ai-primary-active","wds-color-fill-ai-primary-disabled":"--wds-color-fill-ai-primary-disabled","wds-color-fill-ai-secondary-hover":"--wds-color-fill-ai-secondary-hover","wds-color-fill-ai-secondary-active":"--wds-color-fill-ai-secondary-active","wds-color-fill-ai-secondary-disabled":"--wds-color-fill-ai-secondary-disabled","wds-color-text-primary":"--wds-color-text-primary","wds-color-text-premium":"--wds-color-text-premium","wds-color-text-destructive":"--wds-color-text-destructive","wds-color-text-disabled":"--wds-color-text-disabled","wds-color-text-disabled-light":"--wds-color-text-disabled-light","wds-color-text-standard-primary":"--wds-color-text-standard-primary","wds-color-text-standard-primary-light":"--wds-color-text-standard-primary-light","wds-outline-focus-outer":"--wds-outline-focus-outer","wds-outline-focus-inner":"--wds-outline-focus-inner","wds-button-fill-standard-primary":"--wds-button-fill-standard-primary","wds-button-fill-standard-primary-hover":"--wds-button-fill-standard-primary-hover","wds-button-fill-standard-primary-active":"--wds-button-fill-standard-primary-active","wds-button-fill-standard-secondary":"--wds-button-fill-standard-secondary","wds-button-fill-standard-secondary-hover":"--wds-button-fill-standard-secondary-hover","wds-button-fill-standard-secondary-active":"--wds-button-fill-standard-secondary-active","wds-button-text-hover":"--wds-button-text-hover","wds-button-outline-hover":"--wds-button-outline-hover","wds-button-font-weight-large":"--wds-button-font-weight-large","wds-button-font-weight-medium":"--wds-button-font-weight-medium","wds-button-font-weight-small":"--wds-button-font-weight-small","wds-button-font-weight-tiny":"--wds-button-font-weight-tiny","wds-button-font-line-height-large":"--wds-button-font-line-height-large","wds-button-font-line-height-medium":"--wds-button-font-line-height-medium","wds-button-font-line-height-small":"--wds-button-font-line-height-small","wds-button-font-line-height-tiny":"--wds-button-font-line-height-tiny","wds-button-font-size-large":"--wds-button-font-size-large","wds-button-font-size-medium":"--wds-button-font-size-medium","wds-button-font-size-small":"--wds-button-font-size-small","wds-button-font-size-tiny":"--wds-button-font-size-tiny","wds-button-label-fill-standard-primary":"--wds-button-label-fill-standard-primary","wds-button-label-fill-standard-primary-hover":"--wds-button-label-fill-standard-primary-hover","wds-button-label-fill-standard-primary-active":"--wds-button-label-fill-standard-primary-active","wds-button-label-fill-standard-primary-disabled":"--wds-button-label-fill-standard-primary-disabled","wds-button-label-fill-standard-secondary":"--wds-button-label-fill-standard-secondary","wds-button-label-fill-standard-secondary-active":"--wds-button-label-fill-standard-secondary-active","wds-button-label-fill-standard-secondary-hover":"--wds-button-label-fill-standard-secondary-hover","wds-button-label-fill-standard-secondary-disabled":"--wds-button-label-fill-standard-secondary-disabled","wds-button-label-fill-destructive-secondary":"--wds-button-label-fill-destructive-secondary","wds-button-label-fill-destructive-secondary-hover":"--wds-button-label-fill-destructive-secondary-hover","wds-button-label-fill-destructive-secondary-active":"--wds-button-label-fill-destructive-secondary-active","wds-button-label-fill-ai-primary":"--wds-button-label-fill-ai-primary","wds-button-label-fill-premium-primary":"--wds-button-label-fill-premium-primary","wds-button-label-fill-premium-primary-disabled":"--wds-button-label-fill-premium-primary-disabled","wds-button-label-fill-premium-secondary":"--wds-button-label-fill-premium-secondary","wds-button-label-fill-premium-secondary-hover":"--wds-button-label-fill-premium-secondary-hover","wds-button-label-fill-premium-secondary-active":"--wds-button-label-fill-premium-secondary-active","wds-button-label-fill-premium-secondary-disabled":"--wds-button-label-fill-premium-secondary-disabled","wds-button-label-fill-dark-primary-disabled":"--wds-button-label-fill-dark-primary-disabled","wds-button-label-fill-dark-secondary":"--wds-button-label-fill-dark-secondary","wds-button-label-fill-dark-secondary-hover":"--wds-button-label-fill-dark-secondary-hover","wds-button-label-fill-dark-secondary-active":"--wds-button-label-fill-dark-secondary-active","wds-button-label-fill-dark-secondary-disabled":"--wds-button-label-fill-dark-secondary-disabled","wds-button-fill-standard-primary-disabled":"--wds-button-fill-standard-primary-disabled","wds-button-fill-standard-secondary-disabled":"--wds-button-fill-standard-secondary-disabled","wds-button-fill-destructive-primary-disabled":"--wds-button-fill-destructive-primary-disabled","wds-button-fill-destructive-secondary":"--wds-button-fill-destructive-secondary","wds-button-fill-destructive-secondary-hover":"--wds-button-fill-destructive-secondary-hover","wds-button-fill-destructive-secondary-active":"--wds-button-fill-destructive-secondary-active","wds-button-fill-destructive-secondary-disabled":"--wds-button-fill-destructive-secondary-disabled","wds-button-fill-ai-primary":"--wds-button-fill-ai-primary","wds-button-fill-ai-primary-hover":"--wds-button-fill-ai-primary-hover","wds-button-fill-ai-primary-active":"--wds-button-fill-ai-primary-active","wds-button-fill-ai-secondary":"--wds-button-fill-ai-secondary","wds-button-fill-premium-primary":"--wds-button-fill-premium-primary","wds-button-fill-premium-primary-hover":"--wds-button-fill-premium-primary-hover","wds-button-fill-premium-primary-active":"--wds-button-fill-premium-primary-active","wds-button-fill-premium-primary-disabled":"--wds-button-fill-premium-primary-disabled","wds-button-fill-premium-secondary":"--wds-button-fill-premium-secondary","wds-button-fill-premium-secondary-hover":"--wds-button-fill-premium-secondary-hover","wds-button-fill-premium-secondary-active":"--wds-button-fill-premium-secondary-active","wds-button-fill-premium-secondary-disabled":"--wds-button-fill-premium-secondary-disabled","wds-button-fill-dark-primary-disabled":"--wds-button-fill-dark-primary-disabled","wds-button-fill-dark-secondary-hover":"--wds-button-fill-dark-secondary-hover","wds-button-fill-dark-secondary-active":"--wds-button-fill-dark-secondary-active","wds-button-fill-dark-secondary-disabled":"--wds-button-fill-dark-secondary-disabled","wds-button-border-standard-secondary":"--wds-button-border-standard-secondary","wds-button-border-standard-secondary-hover":"--wds-button-border-standard-secondary-hover","wds-button-border-standard-secondary-active":"--wds-button-border-standard-secondary-active","wds-button-border-standard-secondary-disabled":"--wds-button-border-standard-secondary-disabled","wds-button-border-destructive-secondary":"--wds-button-border-destructive-secondary","wds-button-border-destructive-secondary-hover":"--wds-button-border-destructive-secondary-hover","wds-button-border-destructive-secondary-active":"--wds-button-border-destructive-secondary-active","wds-button-border-destructive-secondary-disabled":"--wds-button-border-destructive-secondary-disabled","wds-button-border-premium-secondary":"--wds-button-border-premium-secondary","wds-button-border-premium-secondary-hover":"--wds-button-border-premium-secondary-hover","wds-button-border-premium-secondary-active":"--wds-button-border-premium-secondary-active","wds-button-border-premium-secondary-disabled":"--wds-button-border-premium-secondary-disabled","wds-button-border-dark-secondary":"--wds-button-border-dark-secondary","wds-button-border-dark-secondary-hover":"--wds-button-border-dark-secondary-hover","wds-button-border-dark-secondary-active":"--wds-button-border-dark-secondary-active","wds-button-border-dark-secondary-disabled":"--wds-button-border-dark-secondary-disabled","wds-button-border-ai-secondary-mask":"--wds-button-border-ai-secondary-mask","wsr-text-font-size-tiny":"--wsr-text-font-size-tiny","wsr-text-font-size-small":"--wsr-text-font-size-small","wsr-text-font-size-medium":"--wsr-text-font-size-medium","wsr-text-line-height-small":"--wsr-text-line-height-small","wsr-text-line-height-medium":"--wsr-text-line-height-medium","wsr-font-weight-medium":"--wsr-font-weight-medium","button-border-color":"--wds_1_323_0_Button-button-border-color"};
|
|
41712
|
+
var Button_st_css_vars = {"wds-button-border-radius-large":"--wds-button-border-radius-large","wds-button-border-radius-medium":"--wds-button-border-radius-medium","wds-button-border-radius-small":"--wds-button-border-radius-small","wds-button-border-radius-tiny":"--wds-button-border-radius-tiny","wds-button-gap-large":"--wds-button-gap-large","wds-button-gap-medium":"--wds-button-gap-medium","wds-button-gap-small":"--wds-button-gap-small","wds-button-gap-tiny":"--wds-button-gap-tiny","wds-button-padding-vertical-large":"--wds-button-padding-vertical-large","wds-button-padding-horizontal-large":"--wds-button-padding-horizontal-large","wds-button-padding-vertical-medium":"--wds-button-padding-vertical-medium","wds-button-padding-horizontal-medium":"--wds-button-padding-horizontal-medium","wds-button-padding-vertical-small":"--wds-button-padding-vertical-small","wds-button-padding-horizontal-small":"--wds-button-padding-horizontal-small","wds-button-padding-vertical-tiny":"--wds-button-padding-vertical-tiny","wds-button-padding-horizontal-tiny":"--wds-button-padding-horizontal-tiny","wds-button-size-large":"--wds-button-size-large","wds-button-size-medium":"--wds-button-size-medium","wds-button-size-small":"--wds-button-size-small","wds-button-size-tiny":"--wds-button-size-tiny","wds-color-border-standard-secondary":"--wds-color-border-standard-secondary","wds-color-border-standard-secondary-disabled":"--wds-color-border-standard-secondary-disabled","wds-color-border-light":"--wds-color-border-light","wds-color-border-light-disabled":"--wds-color-border-light-disabled","wds-color-border-premium-secondary":"--wds-color-border-premium-secondary","wds-color-border-premium-secondary-disabled":"--wds-color-border-premium-secondary-disabled","wds-color-border-destructive-secondary":"--wds-color-border-destructive-secondary","wds-color-border-destructive-secondary-disabled":"--wds-color-border-destructive-secondary-disabled","wds-color-border-dark-primary":"--wds-color-border-dark-primary","wds-color-border-dark-primary-disabled":"--wds-color-border-dark-primary-disabled","wds-color-border-dark-secondary-disabled":"--wds-color-border-dark-secondary-disabled","wds-color-border-ai-primary":"--wds-color-border-ai-primary","wds-color-fill-standard-primary":"--wds-color-fill-standard-primary","wds-color-fill-standard-primary-hover":"--wds-color-fill-standard-primary-hover","wds-color-fill-standard-primary-active":"--wds-color-fill-standard-primary-active","wds-color-fill-standard-primary-disabled":"--wds-color-fill-standard-primary-disabled","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-light-primary":"--wds-color-fill-light-primary","wds-color-fill-light-primary-hover":"--wds-color-fill-light-primary-hover","wds-color-fill-light-primary-active":"--wds-color-fill-light-primary-active","wds-color-fill-light-primary-disabled":"--wds-color-fill-light-primary-disabled","wds-color-fill-light-secondary":"--wds-color-fill-light-secondary","wds-color-fill-light-secondary-hover":"--wds-color-fill-light-secondary-hover","wds-color-fill-light-secondary-active":"--wds-color-fill-light-secondary-active","wds-color-fill-light-secondary-disabled":"--wds-color-fill-light-secondary-disabled","wds-color-fill-destructive-primary":"--wds-color-fill-destructive-primary","wds-color-fill-destructive-primary-hover":"--wds-color-fill-destructive-primary-hover","wds-color-fill-destructive-primary-active":"--wds-color-fill-destructive-primary-active","wds-color-fill-destructive-primary-disabled":"--wds-color-fill-destructive-primary-disabled","wds-color-fill-destructive-tertiary":"--wds-color-fill-destructive-tertiary","wds-color-fill-destructive-tertiary-disabled":"--wds-color-fill-destructive-tertiary-disabled","wds-color-fill-premium-primary":"--wds-color-fill-premium-primary","wds-color-fill-premium-primary-hover":"--wds-color-fill-premium-primary-hover","wds-color-fill-premium-primary-active":"--wds-color-fill-premium-primary-active","wds-color-fill-premium-primary-disabled":"--wds-color-fill-premium-primary-disabled","wds-color-fill-premium-light-primary":"--wds-color-fill-premium-light-primary","wds-color-fill-premium-light-primary-hover":"--wds-color-fill-premium-light-primary-hover","wds-color-fill-premium-light-primary-active":"--wds-color-fill-premium-light-primary-active","wds-color-fill-premium-light-primary-disabled":"--wds-color-fill-premium-light-primary-disabled","wds-color-fill-premium-light-secondary":"--wds-color-fill-premium-light-secondary","wds-color-fill-premium-light-secondary-hover":"--wds-color-fill-premium-light-secondary-hover","wds-color-fill-premium-light-secondary-active":"--wds-color-fill-premium-light-secondary-active","wds-color-fill-premium-light-secondary-disabled":"--wds-color-fill-premium-light-secondary-disabled","wds-color-fill-premium-tertiary":"--wds-color-fill-premium-tertiary","wds-color-fill-premium-tertiary-disabled":"--wds-color-fill-premium-tertiary-disabled","wds-color-fill-dark-primary":"--wds-color-fill-dark-primary","wds-color-fill-dark-primary-hover":"--wds-color-fill-dark-primary-hover","wds-color-fill-dark-primary-active":"--wds-color-fill-dark-primary-active","wds-color-fill-dark-primary-disabled":"--wds-color-fill-dark-primary-disabled","wds-color-fill-transparent-primary":"--wds-color-fill-transparent-primary","wds-color-fill-transparent-primary-hover":"--wds-color-fill-transparent-primary-hover","wds-color-fill-transparent-primary-active":"--wds-color-fill-transparent-primary-active","wds-color-fill-transparent-primary-disabled":"--wds-color-fill-transparent-primary-disabled","wds-color-fill-transparent-secondary":"--wds-color-fill-transparent-secondary","wds-color-fill-transparent-secondary-hover":"--wds-color-fill-transparent-secondary-hover","wds-color-fill-transparent-secondary-active":"--wds-color-fill-transparent-secondary-active","wds-color-fill-transparent-secondary-disabled":"--wds-color-fill-transparent-secondary-disabled","wds-color-fill-ai-primary":"--wds-color-fill-ai-primary","wds-color-fill-ai-primary-hover":"--wds-color-fill-ai-primary-hover","wds-color-fill-ai-primary-active":"--wds-color-fill-ai-primary-active","wds-color-fill-ai-primary-disabled":"--wds-color-fill-ai-primary-disabled","wds-color-fill-ai-secondary-hover":"--wds-color-fill-ai-secondary-hover","wds-color-fill-ai-secondary-active":"--wds-color-fill-ai-secondary-active","wds-color-fill-ai-secondary-disabled":"--wds-color-fill-ai-secondary-disabled","wds-color-text-primary":"--wds-color-text-primary","wds-color-text-premium":"--wds-color-text-premium","wds-color-text-destructive":"--wds-color-text-destructive","wds-color-text-disabled":"--wds-color-text-disabled","wds-color-text-disabled-light":"--wds-color-text-disabled-light","wds-color-text-standard-primary":"--wds-color-text-standard-primary","wds-color-text-standard-primary-light":"--wds-color-text-standard-primary-light","wds-outline-focus-outer":"--wds-outline-focus-outer","wds-outline-focus-inner":"--wds-outline-focus-inner","wds-button-fill-standard-primary":"--wds-button-fill-standard-primary","wds-button-fill-standard-primary-hover":"--wds-button-fill-standard-primary-hover","wds-button-fill-standard-primary-active":"--wds-button-fill-standard-primary-active","wds-button-fill-standard-secondary":"--wds-button-fill-standard-secondary","wds-button-fill-standard-secondary-hover":"--wds-button-fill-standard-secondary-hover","wds-button-fill-standard-secondary-active":"--wds-button-fill-standard-secondary-active","wds-button-text-hover":"--wds-button-text-hover","wds-button-outline-hover":"--wds-button-outline-hover","wds-button-font-weight-large":"--wds-button-font-weight-large","wds-button-font-weight-medium":"--wds-button-font-weight-medium","wds-button-font-weight-small":"--wds-button-font-weight-small","wds-button-font-weight-tiny":"--wds-button-font-weight-tiny","wds-button-font-line-height-large":"--wds-button-font-line-height-large","wds-button-font-line-height-medium":"--wds-button-font-line-height-medium","wds-button-font-line-height-small":"--wds-button-font-line-height-small","wds-button-font-line-height-tiny":"--wds-button-font-line-height-tiny","wds-button-font-size-large":"--wds-button-font-size-large","wds-button-font-size-medium":"--wds-button-font-size-medium","wds-button-font-size-small":"--wds-button-font-size-small","wds-button-font-size-tiny":"--wds-button-font-size-tiny","wds-button-label-fill-standard-primary":"--wds-button-label-fill-standard-primary","wds-button-label-fill-standard-primary-hover":"--wds-button-label-fill-standard-primary-hover","wds-button-label-fill-standard-primary-active":"--wds-button-label-fill-standard-primary-active","wds-button-label-fill-standard-primary-disabled":"--wds-button-label-fill-standard-primary-disabled","wds-button-label-fill-standard-secondary":"--wds-button-label-fill-standard-secondary","wds-button-label-fill-standard-secondary-active":"--wds-button-label-fill-standard-secondary-active","wds-button-label-fill-standard-secondary-hover":"--wds-button-label-fill-standard-secondary-hover","wds-button-label-fill-standard-secondary-disabled":"--wds-button-label-fill-standard-secondary-disabled","wds-button-label-fill-destructive-secondary":"--wds-button-label-fill-destructive-secondary","wds-button-label-fill-destructive-secondary-hover":"--wds-button-label-fill-destructive-secondary-hover","wds-button-label-fill-destructive-secondary-active":"--wds-button-label-fill-destructive-secondary-active","wds-button-label-fill-ai-primary":"--wds-button-label-fill-ai-primary","wds-button-label-fill-premium-primary":"--wds-button-label-fill-premium-primary","wds-button-label-fill-premium-primary-disabled":"--wds-button-label-fill-premium-primary-disabled","wds-button-label-fill-premium-secondary":"--wds-button-label-fill-premium-secondary","wds-button-label-fill-premium-secondary-hover":"--wds-button-label-fill-premium-secondary-hover","wds-button-label-fill-premium-secondary-active":"--wds-button-label-fill-premium-secondary-active","wds-button-label-fill-premium-secondary-disabled":"--wds-button-label-fill-premium-secondary-disabled","wds-button-label-fill-dark-primary-disabled":"--wds-button-label-fill-dark-primary-disabled","wds-button-label-fill-dark-secondary":"--wds-button-label-fill-dark-secondary","wds-button-label-fill-dark-secondary-hover":"--wds-button-label-fill-dark-secondary-hover","wds-button-label-fill-dark-secondary-active":"--wds-button-label-fill-dark-secondary-active","wds-button-label-fill-dark-secondary-disabled":"--wds-button-label-fill-dark-secondary-disabled","wds-button-fill-standard-primary-disabled":"--wds-button-fill-standard-primary-disabled","wds-button-fill-standard-secondary-disabled":"--wds-button-fill-standard-secondary-disabled","wds-button-fill-destructive-primary-disabled":"--wds-button-fill-destructive-primary-disabled","wds-button-fill-destructive-secondary":"--wds-button-fill-destructive-secondary","wds-button-fill-destructive-secondary-hover":"--wds-button-fill-destructive-secondary-hover","wds-button-fill-destructive-secondary-active":"--wds-button-fill-destructive-secondary-active","wds-button-fill-destructive-secondary-disabled":"--wds-button-fill-destructive-secondary-disabled","wds-button-fill-ai-primary":"--wds-button-fill-ai-primary","wds-button-fill-ai-primary-hover":"--wds-button-fill-ai-primary-hover","wds-button-fill-ai-primary-active":"--wds-button-fill-ai-primary-active","wds-button-fill-ai-secondary":"--wds-button-fill-ai-secondary","wds-button-fill-premium-primary":"--wds-button-fill-premium-primary","wds-button-fill-premium-primary-hover":"--wds-button-fill-premium-primary-hover","wds-button-fill-premium-primary-active":"--wds-button-fill-premium-primary-active","wds-button-fill-premium-primary-disabled":"--wds-button-fill-premium-primary-disabled","wds-button-fill-premium-secondary":"--wds-button-fill-premium-secondary","wds-button-fill-premium-secondary-hover":"--wds-button-fill-premium-secondary-hover","wds-button-fill-premium-secondary-active":"--wds-button-fill-premium-secondary-active","wds-button-fill-premium-secondary-disabled":"--wds-button-fill-premium-secondary-disabled","wds-button-fill-dark-primary-disabled":"--wds-button-fill-dark-primary-disabled","wds-button-fill-dark-secondary-hover":"--wds-button-fill-dark-secondary-hover","wds-button-fill-dark-secondary-active":"--wds-button-fill-dark-secondary-active","wds-button-fill-dark-secondary-disabled":"--wds-button-fill-dark-secondary-disabled","wds-button-border-standard-secondary":"--wds-button-border-standard-secondary","wds-button-border-standard-secondary-hover":"--wds-button-border-standard-secondary-hover","wds-button-border-standard-secondary-active":"--wds-button-border-standard-secondary-active","wds-button-border-standard-secondary-disabled":"--wds-button-border-standard-secondary-disabled","wds-button-border-destructive-secondary":"--wds-button-border-destructive-secondary","wds-button-border-destructive-secondary-hover":"--wds-button-border-destructive-secondary-hover","wds-button-border-destructive-secondary-active":"--wds-button-border-destructive-secondary-active","wds-button-border-destructive-secondary-disabled":"--wds-button-border-destructive-secondary-disabled","wds-button-border-premium-secondary":"--wds-button-border-premium-secondary","wds-button-border-premium-secondary-hover":"--wds-button-border-premium-secondary-hover","wds-button-border-premium-secondary-active":"--wds-button-border-premium-secondary-active","wds-button-border-premium-secondary-disabled":"--wds-button-border-premium-secondary-disabled","wds-button-border-dark-secondary":"--wds-button-border-dark-secondary","wds-button-border-dark-secondary-hover":"--wds-button-border-dark-secondary-hover","wds-button-border-dark-secondary-active":"--wds-button-border-dark-secondary-active","wds-button-border-dark-secondary-disabled":"--wds-button-border-dark-secondary-disabled","wds-button-border-ai-secondary-mask":"--wds-button-border-ai-secondary-mask","wsr-text-font-size-tiny":"--wsr-text-font-size-tiny","wsr-text-font-size-small":"--wsr-text-font-size-small","wsr-text-font-size-medium":"--wsr-text-font-size-medium","wsr-text-line-height-small":"--wsr-text-line-height-small","wsr-text-line-height-medium":"--wsr-text-line-height-medium","wsr-font-weight-medium":"--wsr-font-weight-medium","button-border-color":"--wds_1_326_0_Button-button-border-color"};
|
|
41621
41713
|
|
|
41622
41714
|
|
|
41623
41715
|
|
|
@@ -41661,13 +41753,13 @@ class Button_Button extends external_React_.PureComponent {
|
|
|
41661
41753
|
super(props);
|
|
41662
41754
|
this.button = external_React_default().createRef();
|
|
41663
41755
|
/**
|
|
41664
|
-
* Sets focus on the element
|
|
41756
|
+
* Sets focus on the element.
|
|
41665
41757
|
*/
|
|
41666
41758
|
this.focus = (options) => {
|
|
41667
41759
|
this.button.current && this.button.current.focus(options);
|
|
41668
41760
|
};
|
|
41669
41761
|
/**
|
|
41670
|
-
* Returns the size and position of the element
|
|
41762
|
+
* Returns the size and position of the element.
|
|
41671
41763
|
*/
|
|
41672
41764
|
this.getBoundingClientRect = () => {
|
|
41673
41765
|
return this.button.current?.getBoundingClientRect();
|
|
@@ -41708,7 +41800,7 @@ const ButtonWithDefaultProps = withDefaultProps(Button_Button, 'Button');
|
|
|
41708
41800
|
|
|
41709
41801
|
|
|
41710
41802
|
|
|
41711
|
-
var CloseButton_st_css_namespace_ = "
|
|
41803
|
+
var CloseButton_st_css_namespace_ = "wds_1_326_0_CloseButton";
|
|
41712
41804
|
var CloseButton_st_css_style_ = classesRuntime.bind(null, CloseButton_st_css_namespace_);
|
|
41713
41805
|
|
|
41714
41806
|
var CloseButton_st_css_cssStates = statesRuntime.bind(null, CloseButton_st_css_namespace_);
|
|
@@ -41716,7 +41808,7 @@ var CloseButton_st_css_style = (/* unused pure expression or super */ null && (C
|
|
|
41716
41808
|
var CloseButton_st_css_st = CloseButton_st_css_style_;
|
|
41717
41809
|
|
|
41718
41810
|
var CloseButton_st_css_namespace = (/* unused pure expression or super */ null && (CloseButton_st_css_namespace_));
|
|
41719
|
-
var CloseButton_st_css_classes = {"root":"
|
|
41811
|
+
var CloseButton_st_css_classes = {"root":"wds_1_326_0_CloseButton__root"};
|
|
41720
41812
|
var CloseButton_st_css_keyframes = {};
|
|
41721
41813
|
var CloseButton_st_css_layers = {};
|
|
41722
41814
|
var CloseButton_st_css_containers = {};
|
|
@@ -41854,33 +41946,31 @@ const FloatingNotification_constants_dataHooks = {
|
|
|
41854
41946
|
closeButton: `${dataHookPrefix}-close-button`,
|
|
41855
41947
|
};
|
|
41856
41948
|
//# sourceMappingURL=constants.js.map
|
|
41857
|
-
;// ../../../node_modules/@wix/design-system/dist/esm/FloatingNotification/FloatingNotification.
|
|
41858
|
-
|
|
41859
|
-
|
|
41860
|
-
|
|
41861
|
-
|
|
41862
|
-
|
|
41863
|
-
|
|
41864
|
-
|
|
41865
|
-
var FloatingNotification_st_css_namespace_ = "wds_1_323_0_FloatingNotification";
|
|
41866
|
-
var FloatingNotification_st_css_style_ = classesRuntime.bind(null, FloatingNotification_st_css_namespace_);
|
|
41867
|
-
|
|
41868
|
-
var FloatingNotification_st_css_cssStates = statesRuntime.bind(null, FloatingNotification_st_css_namespace_);
|
|
41869
|
-
var FloatingNotification_st_css_style = (/* unused pure expression or super */ null && (FloatingNotification_st_css_style_));
|
|
41870
|
-
var FloatingNotification_st_css_st = FloatingNotification_st_css_style_;
|
|
41871
|
-
|
|
41872
|
-
var FloatingNotification_st_css_namespace = (/* unused pure expression or super */ null && (FloatingNotification_st_css_namespace_));
|
|
41873
|
-
var FloatingNotification_st_css_classes = {"root":"wds_1_323_0_FloatingNotification__root","icon":"wds_1_323_0_FloatingNotification__icon","text":"wds_1_323_0_FloatingNotification__text","textButton":"wds_1_323_0_FloatingNotification__textButton","button":"wds_1_323_0_FloatingNotification__button","gap":"wds_1_323_0_FloatingNotification__gap","close":"wds_1_323_0_FloatingNotification__close"};
|
|
41874
|
-
var FloatingNotification_st_css_keyframes = {};
|
|
41875
|
-
var FloatingNotification_st_css_layers = {};
|
|
41876
|
-
var FloatingNotification_st_css_containers = {};
|
|
41877
|
-
var FloatingNotification_st_css_stVars = {};
|
|
41878
|
-
var FloatingNotification_st_css_vars = {"wds-color-black-100":"--wds-color-black-100","wds-color-black-500":"--wds-color-black-500","wds-color-black-700":"--wds-color-black-700","wds-color-blue-300":"--wds-color-blue-300","wds-color-blue-500":"--wds-color-blue-500","wds-color-green-300":"--wds-color-green-300","wds-color-green-500":"--wds-color-green-500","wds-color-purple-300":"--wds-color-purple-300","wds-color-purple-500":"--wds-color-purple-500","wds-color-red-300":"--wds-color-red-300","wds-color-red-500":"--wds-color-red-500","wds-color-white":"--wds-color-white","wds-color-yellow-100":"--wds-color-yellow-100","wds-color-yellow-500":"--wds-color-yellow-500"};
|
|
41879
|
-
|
|
41880
|
-
|
|
41881
|
-
|
|
41882
|
-
|
|
41949
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/FloatingNotification/FloatingNotification.classes.js
|
|
41883
41950
|
|
|
41951
|
+
const FloatingNotification_classes_classes = defineClassNames('floating-notification', {
|
|
41952
|
+
root: {
|
|
41953
|
+
variants: {
|
|
41954
|
+
type: [
|
|
41955
|
+
'standard',
|
|
41956
|
+
'success',
|
|
41957
|
+
'destructive',
|
|
41958
|
+
'warning',
|
|
41959
|
+
'premium',
|
|
41960
|
+
'preview',
|
|
41961
|
+
'dark',
|
|
41962
|
+
],
|
|
41963
|
+
},
|
|
41964
|
+
states: ['fullWidth'],
|
|
41965
|
+
},
|
|
41966
|
+
icon: {},
|
|
41967
|
+
text: {},
|
|
41968
|
+
textButton: {},
|
|
41969
|
+
button: {},
|
|
41970
|
+
gap: {},
|
|
41971
|
+
close: {},
|
|
41972
|
+
});
|
|
41973
|
+
//# sourceMappingURL=FloatingNotification.classes.js.map
|
|
41884
41974
|
;// ../../../node_modules/@wix/design-system/dist/esm/FloatingNotification/FloatingNotification.js
|
|
41885
41975
|
|
|
41886
41976
|
|
|
@@ -41908,35 +41998,35 @@ class FloatingNotification extends (external_React_default()).PureComponent {
|
|
|
41908
41998
|
const close = this._getClose();
|
|
41909
41999
|
const style = { width };
|
|
41910
42000
|
width && (style.maxWidth = width);
|
|
41911
|
-
return (external_React_default().createElement("div", { "data-hook": dataHook, className:
|
|
42001
|
+
return (external_React_default().createElement("div", { "data-hook": dataHook, className: FloatingNotification_classes_classes.root({ fullWidth, type }, className), style: style },
|
|
41912
42002
|
icon,
|
|
41913
42003
|
content,
|
|
41914
42004
|
textButton,
|
|
41915
42005
|
button,
|
|
41916
|
-
external_React_default().createElement("div", { className:
|
|
42006
|
+
external_React_default().createElement("div", { className: FloatingNotification_classes_classes.gap() }),
|
|
41917
42007
|
close));
|
|
41918
42008
|
}
|
|
41919
42009
|
_getIcon() {
|
|
41920
|
-
const { prefixIcon
|
|
41921
|
-
return prefixIcon ? (external_React_default().createElement("div", { className:
|
|
42010
|
+
const { prefixIcon } = this.props;
|
|
42011
|
+
return prefixIcon ? (external_React_default().createElement("div", { className: FloatingNotification_classes_classes.icon() }, prefixIcon)) : null;
|
|
41922
42012
|
}
|
|
41923
42013
|
_getContent() {
|
|
41924
42014
|
const { text, type } = this.props;
|
|
41925
|
-
return (external_React_default().createElement(TextWithEllipsis, { size: "small", ellipsis: true, light: type === TYPES.dark, dataHook: FloatingNotification_constants_dataHooks.notificationText, className:
|
|
42015
|
+
return (external_React_default().createElement(TextWithEllipsis, { size: "small", ellipsis: true, light: type === TYPES.dark, dataHook: FloatingNotification_constants_dataHooks.notificationText, className: FloatingNotification_classes_classes.text() }, text));
|
|
41926
42016
|
}
|
|
41927
42017
|
_getTextButton() {
|
|
41928
42018
|
const { textButtonProps, type } = this.props;
|
|
41929
42019
|
const { label, ...rest } = textButtonProps ?? {};
|
|
41930
|
-
return !isEmpty_default()(textButtonProps) ? (external_React_default().createElement(TextButtonWithDefaultProps, { ...rest, underline: "always", skin: type !== TYPES.dark ? 'dark' : 'light', size: "small", className:
|
|
42020
|
+
return !isEmpty_default()(textButtonProps) ? (external_React_default().createElement(TextButtonWithDefaultProps, { ...rest, underline: "always", skin: type !== TYPES.dark ? 'dark' : 'light', size: "small", className: FloatingNotification_classes_classes.textButton(), dataHook: FloatingNotification_constants_dataHooks.textButton }, label)) : null;
|
|
41931
42021
|
}
|
|
41932
42022
|
_getButton() {
|
|
41933
42023
|
const { buttonProps, type } = this.props;
|
|
41934
42024
|
const { label, ...rest } = buttonProps ?? {};
|
|
41935
|
-
return !isEmpty_default()(buttonProps) ? (external_React_default().createElement(ButtonWithDefaultProps, { ...rest, className:
|
|
42025
|
+
return !isEmpty_default()(buttonProps) ? (external_React_default().createElement(ButtonWithDefaultProps, { ...rest, className: FloatingNotification_classes_classes.button(), size: "tiny", priority: type !== TYPES.dark ? 'secondary' : 'primary', skin: type !== TYPES.dark ? 'dark' : 'standard', dataHook: FloatingNotification_constants_dataHooks.button }, label)) : null;
|
|
41936
42026
|
}
|
|
41937
42027
|
_getClose() {
|
|
41938
42028
|
const { showCloseButton, onClose, type } = this.props;
|
|
41939
|
-
return showCloseButton ? (external_React_default().createElement(CloseButton, { size: "medium", skin: type !== TYPES.dark ? 'dark' : 'light', className:
|
|
42029
|
+
return showCloseButton ? (external_React_default().createElement(CloseButton, { size: "medium", skin: type !== TYPES.dark ? 'dark' : 'light', className: FloatingNotification_classes_classes.close(), dataHook: FloatingNotification_constants_dataHooks.closeButton, onClick: onClose })) : null;
|
|
41940
42030
|
}
|
|
41941
42031
|
}
|
|
41942
42032
|
FloatingNotification.displayName = 'FloatingNotification';
|
|
@@ -41956,7 +42046,7 @@ FloatingNotification.defaultProps = {
|
|
|
41956
42046
|
|
|
41957
42047
|
|
|
41958
42048
|
|
|
41959
|
-
var Divider_st_css_namespace_ = "
|
|
42049
|
+
var Divider_st_css_namespace_ = "wds_1_326_0_Divider";
|
|
41960
42050
|
var Divider_st_css_style_ = classesRuntime.bind(null, Divider_st_css_namespace_);
|
|
41961
42051
|
|
|
41962
42052
|
var Divider_st_css_cssStates = statesRuntime.bind(null, Divider_st_css_namespace_);
|
|
@@ -41964,7 +42054,7 @@ var Divider_st_css_style = (/* unused pure expression or super */ null && (Divid
|
|
|
41964
42054
|
var Divider_st_css_st = Divider_st_css_style_;
|
|
41965
42055
|
|
|
41966
42056
|
var Divider_st_css_namespace = (/* unused pure expression or super */ null && (Divider_st_css_namespace_));
|
|
41967
|
-
var Divider_st_css_classes = {"root":"
|
|
42057
|
+
var Divider_st_css_classes = {"root":"wds_1_326_0_Divider__root"};
|
|
41968
42058
|
var Divider_st_css_keyframes = {};
|
|
41969
42059
|
var Divider_st_css_layers = {};
|
|
41970
42060
|
var Divider_st_css_containers = {};
|
|
@@ -42079,7 +42169,7 @@ Arc.displayName = 'Arc';
|
|
|
42079
42169
|
|
|
42080
42170
|
|
|
42081
42171
|
|
|
42082
|
-
var Heading_st_css_namespace_ = "
|
|
42172
|
+
var Heading_st_css_namespace_ = "wds_1_326_0_Heading";
|
|
42083
42173
|
var Heading_st_css_style_ = classesRuntime.bind(null, Heading_st_css_namespace_);
|
|
42084
42174
|
|
|
42085
42175
|
var Heading_st_css_cssStates = statesRuntime.bind(null, Heading_st_css_namespace_);
|
|
@@ -42087,7 +42177,7 @@ var Heading_st_css_style = (/* unused pure expression or super */ null && (Headi
|
|
|
42087
42177
|
var Heading_st_css_st = Heading_st_css_style_;
|
|
42088
42178
|
|
|
42089
42179
|
var Heading_st_css_namespace = (/* unused pure expression or super */ null && (Heading_st_css_namespace_));
|
|
42090
|
-
var Heading_st_css_classes = {"root":"
|
|
42180
|
+
var Heading_st_css_classes = {"root":"wds_1_326_0_Heading__root","heading-xl":"wds_1_326_0_StylableTypography__heading-xl","heading-l":"wds_1_326_0_StylableTypography__heading-l","heading-m":"wds_1_326_0_StylableTypography__heading-m","heading-s":"wds_1_326_0_StylableTypography__heading-s","heading-t":"wds_1_326_0_StylableTypography__heading-t","heading-xt":"wds_1_326_0_StylableTypography__heading-xt"};
|
|
42091
42181
|
var Heading_st_css_keyframes = {};
|
|
42092
42182
|
var Heading_st_css_layers = {};
|
|
42093
42183
|
var Heading_st_css_containers = {};
|
|
@@ -44112,7 +44202,7 @@ const useId = (prefix) => {
|
|
|
44112
44202
|
|
|
44113
44203
|
|
|
44114
44204
|
|
|
44115
|
-
var default_scroll_bar_st_css_namespace_ = "
|
|
44205
|
+
var default_scroll_bar_st_css_namespace_ = "wds_1_326_0_defaultscrollbar";
|
|
44116
44206
|
var default_scroll_bar_st_css_style_ = classesRuntime.bind(null, default_scroll_bar_st_css_namespace_);
|
|
44117
44207
|
|
|
44118
44208
|
var default_scroll_bar_st_css_cssStates = statesRuntime.bind(null, default_scroll_bar_st_css_namespace_);
|
|
@@ -44120,7 +44210,7 @@ var default_scroll_bar_st_css_style = (/* unused pure expression or super */ nul
|
|
|
44120
44210
|
var default_scroll_bar_st_css_st = (/* unused pure expression or super */ null && (default_scroll_bar_st_css_style_));
|
|
44121
44211
|
|
|
44122
44212
|
var default_scroll_bar_st_css_namespace = (/* unused pure expression or super */ null && (default_scroll_bar_st_css_namespace_));
|
|
44123
|
-
var default_scroll_bar_st_css_classes = {"root":"
|
|
44213
|
+
var default_scroll_bar_st_css_classes = {"root":"wds_1_326_0_defaultscrollbar__root","defaultScrollBar":"wds_1_326_0_defaultscrollbar__defaultScrollBar"};
|
|
44124
44214
|
var default_scroll_bar_st_css_keyframes = {};
|
|
44125
44215
|
var default_scroll_bar_st_css_layers = {};
|
|
44126
44216
|
var default_scroll_bar_st_css_containers = {};
|
|
@@ -44138,7 +44228,7 @@ var default_scroll_bar_st_css_vars = {"wds-scrollbar-fill":"--wds-scrollbar-fill
|
|
|
44138
44228
|
|
|
44139
44229
|
|
|
44140
44230
|
|
|
44141
|
-
var Box_st_css_namespace_ = "
|
|
44231
|
+
var Box_st_css_namespace_ = "wds_1_326_0_Box";
|
|
44142
44232
|
var Box_st_css_style_ = classesRuntime.bind(null, Box_st_css_namespace_);
|
|
44143
44233
|
|
|
44144
44234
|
var Box_st_css_cssStates = statesRuntime.bind(null, Box_st_css_namespace_);
|
|
@@ -44146,12 +44236,12 @@ var Box_st_css_style = (/* unused pure expression or super */ null && (Box_st_cs
|
|
|
44146
44236
|
var Box_st_css_st = Box_st_css_style_;
|
|
44147
44237
|
|
|
44148
44238
|
var Box_st_css_namespace = (/* unused pure expression or super */ null && (Box_st_css_namespace_));
|
|
44149
|
-
var Box_st_css_classes = {"root":"
|
|
44239
|
+
var Box_st_css_classes = {"root":"wds_1_326_0_Box__root","defaultScrollBar":"wds_1_326_0_defaultscrollbar__defaultScrollBar"};
|
|
44150
44240
|
var Box_st_css_keyframes = {};
|
|
44151
44241
|
var Box_st_css_layers = {};
|
|
44152
44242
|
var Box_st_css_containers = {};
|
|
44153
44243
|
var Box_st_css_stVars = {};
|
|
44154
|
-
var Box_st_css_vars = {"gap":"--
|
|
44244
|
+
var Box_st_css_vars = {"gap":"--wds_1_326_0_Box-gap"};
|
|
44155
44245
|
|
|
44156
44246
|
|
|
44157
44247
|
|
|
@@ -44165,7 +44255,7 @@ var Box_st_css_vars = {"gap":"--wds_1_323_0_Box-gap"};
|
|
|
44165
44255
|
|
|
44166
44256
|
|
|
44167
44257
|
|
|
44168
|
-
var colors_js_st_css_namespace_ = "
|
|
44258
|
+
var colors_js_st_css_namespace_ = "wds_1_326_0_colorsjs";
|
|
44169
44259
|
var colors_js_st_css_style_ = classesRuntime.bind(null, colors_js_st_css_namespace_);
|
|
44170
44260
|
|
|
44171
44261
|
var colors_js_st_css_cssStates = statesRuntime.bind(null, colors_js_st_css_namespace_);
|
|
@@ -44173,7 +44263,7 @@ var colors_js_st_css_style = (/* unused pure expression or super */ null && (col
|
|
|
44173
44263
|
var colors_js_st_css_st = (/* unused pure expression or super */ null && (colors_js_st_css_style_));
|
|
44174
44264
|
|
|
44175
44265
|
var colors_js_st_css_namespace = (/* unused pure expression or super */ null && (colors_js_st_css_namespace_));
|
|
44176
|
-
var colors_js_st_css_classes = {"root":"
|
|
44266
|
+
var colors_js_st_css_classes = {"root":"wds_1_326_0_colorsjs__root"};
|
|
44177
44267
|
var colors_js_st_css_keyframes = {};
|
|
44178
44268
|
var colors_js_st_css_layers = {};
|
|
44179
44269
|
var colors_js_st_css_containers = {};
|
|
@@ -44210,7 +44300,7 @@ const filterObject = (object, filter = () => true) => {
|
|
|
44210
44300
|
|
|
44211
44301
|
|
|
44212
44302
|
|
|
44213
|
-
var spacing_st_css_namespace_ = "
|
|
44303
|
+
var spacing_st_css_namespace_ = "wds_1_326_0_spacing";
|
|
44214
44304
|
var spacing_st_css_style_ = classesRuntime.bind(null, spacing_st_css_namespace_);
|
|
44215
44305
|
|
|
44216
44306
|
var spacing_st_css_cssStates = statesRuntime.bind(null, spacing_st_css_namespace_);
|
|
@@ -44218,7 +44308,7 @@ var spacing_st_css_style = (/* unused pure expression or super */ null && (spaci
|
|
|
44218
44308
|
var spacing_st_css_st = (/* unused pure expression or super */ null && (spacing_st_css_style_));
|
|
44219
44309
|
|
|
44220
44310
|
var spacing_st_css_namespace = (/* unused pure expression or super */ null && (spacing_st_css_namespace_));
|
|
44221
|
-
var spacing_st_css_classes = {"root":"
|
|
44311
|
+
var spacing_st_css_classes = {"root":"wds_1_326_0_spacing__root"};
|
|
44222
44312
|
var spacing_st_css_keyframes = {};
|
|
44223
44313
|
var spacing_st_css_layers = {};
|
|
44224
44314
|
var spacing_st_css_containers = {};
|
|
@@ -44398,7 +44488,7 @@ var CheckboxChecked_default = CheckboxChecked;
|
|
|
44398
44488
|
|
|
44399
44489
|
|
|
44400
44490
|
|
|
44401
|
-
var Checkbox_st_css_namespace_ = "
|
|
44491
|
+
var Checkbox_st_css_namespace_ = "wds_1_326_0_Checkbox";
|
|
44402
44492
|
var Checkbox_st_css_style_ = classesRuntime.bind(null, Checkbox_st_css_namespace_);
|
|
44403
44493
|
|
|
44404
44494
|
var Checkbox_st_css_cssStates = statesRuntime.bind(null, Checkbox_st_css_namespace_);
|
|
@@ -44406,7 +44496,7 @@ var Checkbox_st_css_style = (/* unused pure expression or super */ null && (Chec
|
|
|
44406
44496
|
var Checkbox_st_css_st = Checkbox_st_css_style_;
|
|
44407
44497
|
|
|
44408
44498
|
var Checkbox_st_css_namespace = (/* unused pure expression or super */ null && (Checkbox_st_css_namespace_));
|
|
44409
|
-
var Checkbox_st_css_classes = {"root":"
|
|
44499
|
+
var Checkbox_st_css_classes = {"root":"wds_1_326_0_Checkbox__root","label":"wds_1_326_0_Checkbox__label","labelInner":"wds_1_326_0_Checkbox__labelInner","children":"wds_1_326_0_Checkbox__children","checkbox":"wds_1_326_0_Checkbox__checkbox","inner":"wds_1_326_0_Checkbox__inner","outer":"wds_1_326_0_Checkbox__outer"};
|
|
44410
44500
|
var Checkbox_st_css_keyframes = {};
|
|
44411
44501
|
var Checkbox_st_css_layers = {};
|
|
44412
44502
|
var Checkbox_st_css_containers = {};
|
|
@@ -44472,7 +44562,7 @@ const semanticClassNames = {
|
|
|
44472
44562
|
|
|
44473
44563
|
|
|
44474
44564
|
|
|
44475
|
-
var visuallyHidden_st_css_namespace_ = "
|
|
44565
|
+
var visuallyHidden_st_css_namespace_ = "wds_1_326_0_visuallyHidden";
|
|
44476
44566
|
var visuallyHidden_st_css_style_ = classesRuntime.bind(null, visuallyHidden_st_css_namespace_);
|
|
44477
44567
|
|
|
44478
44568
|
var visuallyHidden_st_css_cssStates = statesRuntime.bind(null, visuallyHidden_st_css_namespace_);
|
|
@@ -44480,7 +44570,7 @@ var visuallyHidden_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
44480
44570
|
var visuallyHidden_st_css_st = (/* unused pure expression or super */ null && (visuallyHidden_st_css_style_));
|
|
44481
44571
|
|
|
44482
44572
|
var visuallyHidden_st_css_namespace = (/* unused pure expression or super */ null && (visuallyHidden_st_css_namespace_));
|
|
44483
|
-
var visuallyHidden_st_css_classes = {"root":"
|
|
44573
|
+
var visuallyHidden_st_css_classes = {"root":"wds_1_326_0_visuallyHidden__root","visuallyHidden":"wds_1_326_0_visuallyHidden__visuallyHidden"};
|
|
44484
44574
|
var visuallyHidden_st_css_keyframes = {};
|
|
44485
44575
|
var visuallyHidden_st_css_layers = {};
|
|
44486
44576
|
var visuallyHidden_st_css_containers = {};
|
|
@@ -44506,7 +44596,7 @@ var visuallyHidden_st_css_vars = {};
|
|
|
44506
44596
|
|
|
44507
44597
|
|
|
44508
44598
|
|
|
44509
|
-
/** a simple WixStyle checkbox */
|
|
44599
|
+
/** a simple WixStyle checkbox. */
|
|
44510
44600
|
class Checkbox extends external_React_.PureComponent {
|
|
44511
44601
|
constructor(props) {
|
|
44512
44602
|
super(props);
|
|
@@ -44751,7 +44841,7 @@ const ListItemSelect_constants_SIZE = {
|
|
|
44751
44841
|
|
|
44752
44842
|
|
|
44753
44843
|
|
|
44754
|
-
var breakpoints_st_css_namespace_ = "
|
|
44844
|
+
var breakpoints_st_css_namespace_ = "wds_1_326_0_breakpoints";
|
|
44755
44845
|
var breakpoints_st_css_style_ = classesRuntime.bind(null, breakpoints_st_css_namespace_);
|
|
44756
44846
|
|
|
44757
44847
|
var breakpoints_st_css_cssStates = statesRuntime.bind(null, breakpoints_st_css_namespace_);
|
|
@@ -44759,7 +44849,7 @@ var breakpoints_st_css_style = (/* unused pure expression or super */ null && (b
|
|
|
44759
44849
|
var breakpoints_st_css_st = (/* unused pure expression or super */ null && (breakpoints_st_css_style_));
|
|
44760
44850
|
|
|
44761
44851
|
var breakpoints_st_css_namespace = (/* unused pure expression or super */ null && (breakpoints_st_css_namespace_));
|
|
44762
|
-
var breakpoints_st_css_classes = {"root":"
|
|
44852
|
+
var breakpoints_st_css_classes = {"root":"wds_1_326_0_breakpoints__root"};
|
|
44763
44853
|
var breakpoints_st_css_keyframes = {};
|
|
44764
44854
|
var breakpoints_st_css_layers = {};
|
|
44765
44855
|
var breakpoints_st_css_containers = {};
|
|
@@ -44783,7 +44873,7 @@ var breakpoints_st_css_vars = {};
|
|
|
44783
44873
|
|
|
44784
44874
|
|
|
44785
44875
|
|
|
44786
|
-
var ListItemSelect_st_css_namespace_ = "
|
|
44876
|
+
var ListItemSelect_st_css_namespace_ = "wds_1_326_0_ListItemSelect";
|
|
44787
44877
|
var ListItemSelect_st_css_style_ = classesRuntime.bind(null, ListItemSelect_st_css_namespace_);
|
|
44788
44878
|
|
|
44789
44879
|
var ListItemSelect_st_css_cssStates = statesRuntime.bind(null, ListItemSelect_st_css_namespace_);
|
|
@@ -44791,7 +44881,7 @@ var ListItemSelect_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
44791
44881
|
var ListItemSelect_st_css_st = ListItemSelect_st_css_style_;
|
|
44792
44882
|
|
|
44793
44883
|
var ListItemSelect_st_css_namespace = (/* unused pure expression or super */ null && (ListItemSelect_st_css_namespace_));
|
|
44794
|
-
var ListItemSelect_st_css_classes = {"root":"
|
|
44884
|
+
var ListItemSelect_st_css_classes = {"root":"wds_1_326_0_ListItemSelect__root","mobile":"wds_1_326_0_WixDesignSystemProvider__mobile","element":"wds_1_326_0_Popover__element","fullWidthContent":"wds_1_326_0_ListItemSelect__fullWidthContent","textsWrapper":"wds_1_326_0_ListItemSelect__textsWrapper","titleWrapper":"wds_1_326_0_ListItemSelect__titleWrapper","title":"wds_1_326_0_ListItemSelect__title","titleOverrideWrapper":"wds_1_326_0_ListItemSelect__titleOverrideWrapper","subtitleOverrideWrapper":"wds_1_326_0_ListItemSelect__subtitleOverrideWrapper","subtitle":"wds_1_326_0_ListItemSelect__subtitle","prefix":"wds_1_326_0_ListItemSelect__prefix","suffix":"wds_1_326_0_ListItemSelect__suffix"};
|
|
44795
44885
|
var ListItemSelect_st_css_keyframes = {};
|
|
44796
44886
|
var ListItemSelect_st_css_layers = {};
|
|
44797
44887
|
var ListItemSelect_st_css_containers = {};
|
|
@@ -44910,7 +45000,7 @@ var sortBy_default = /*#__PURE__*/__webpack_require__.n(sortBy);
|
|
|
44910
45000
|
|
|
44911
45001
|
|
|
44912
45002
|
|
|
44913
|
-
var border_st_css_namespace_ = "
|
|
45003
|
+
var border_st_css_namespace_ = "wds_1_326_0_border";
|
|
44914
45004
|
var border_st_css_style_ = classesRuntime.bind(null, border_st_css_namespace_);
|
|
44915
45005
|
|
|
44916
45006
|
var border_st_css_cssStates = statesRuntime.bind(null, border_st_css_namespace_);
|
|
@@ -44918,7 +45008,7 @@ var border_st_css_style = (/* unused pure expression or super */ null && (border
|
|
|
44918
45008
|
var border_st_css_st = (/* unused pure expression or super */ null && (border_st_css_style_));
|
|
44919
45009
|
|
|
44920
45010
|
var border_st_css_namespace = (/* unused pure expression or super */ null && (border_st_css_namespace_));
|
|
44921
|
-
var border_st_css_classes = {"root":"
|
|
45011
|
+
var border_st_css_classes = {"root":"wds_1_326_0_border__root"};
|
|
44922
45012
|
var border_st_css_keyframes = {};
|
|
44923
45013
|
var border_st_css_layers = {};
|
|
44924
45014
|
var border_st_css_containers = {};
|
|
@@ -44941,7 +45031,7 @@ var border_st_css_vars = {"wsr-border-radius-02":"--wsr-border-radius-02","wsr-b
|
|
|
44941
45031
|
|
|
44942
45032
|
|
|
44943
45033
|
|
|
44944
|
-
var Input_st_css_namespace_ = "
|
|
45034
|
+
var Input_st_css_namespace_ = "wds_1_326_0_Input";
|
|
44945
45035
|
var Input_st_css_style_ = classesRuntime.bind(null, Input_st_css_namespace_);
|
|
44946
45036
|
|
|
44947
45037
|
var Input_st_css_cssStates = statesRuntime.bind(null, Input_st_css_namespace_);
|
|
@@ -44949,17 +45039,25 @@ var Input_st_css_style = (/* unused pure expression or super */ null && (Input_s
|
|
|
44949
45039
|
var Input_st_css_st = Input_st_css_style_;
|
|
44950
45040
|
|
|
44951
45041
|
var Input_st_css_namespace = (/* unused pure expression or super */ null && (Input_st_css_namespace_));
|
|
44952
|
-
var Input_st_css_classes = {"root":"
|
|
45042
|
+
var Input_st_css_classes = {"root":"wds_1_326_0_Input__root","text-tiny-thin":"wds_1_326_0_StylableTypography__text-tiny-thin","text-small-thin":"wds_1_326_0_StylableTypography__text-small-thin","text-medium-thin":"wds_1_326_0_StylableTypography__text-medium-thin","wrapper":"wds_1_326_0_Input__wrapper","input":"wds_1_326_0_Input__input","input-inner-shadow-mixin":"wds_1_326_0_Input__input-inner-shadow-mixin","disabled":"wds_1_326_0_Input__disabled","suffixes":"wds_1_326_0_Input__suffixes","suffix":"wds_1_326_0_Input__suffix","statusWrapper":"wds_1_326_0_Input__statusWrapper","clearButtonWrapper":"wds_1_326_0_Input__clearButtonWrapper","menuArrow":"wds_1_326_0_Input__menuArrow","clearButton":"wds_1_326_0_Input__clearButton"};
|
|
44953
45043
|
var Input_st_css_keyframes = {};
|
|
44954
45044
|
var Input_st_css_layers = {};
|
|
44955
45045
|
var Input_st_css_containers = {};
|
|
44956
45046
|
var Input_st_css_stVars = {"borderWidth":"1px"};
|
|
44957
|
-
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-standard-secondary-active":"--wds-color-border-standard-secondary-active","wds-color-border-standard-secondary-hover":"--wds-color-border-standard-secondary-hover","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-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-color-text-standard-secondary":"--wds-color-text-standard-secondary","wds-input-background-fill-default":"--wds-input-background-fill-default","wds-input-background-fill-hover":"--wds-input-background-fill-hover","wds-input-background-fill-disabled":"--wds-input-background-fill-disabled","wds-input-border-color":"--wds-input-border-color","wds-input-border-color-hover":"--wds-input-border-color-hover","wds-input-border-color-disabled":"--wds-input-border-color-disabled","wds-input-border-color-focus":"--wds-input-border-color-focus","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-space-50":"--wds-space-50","wds-space-100":"--wds-space-100","wds-dropdown-icon-fill":"--wds-dropdown-icon-fill","wds-color-text-highlight":"--wds-color-text-highlight","wds-dropdown-icon-fill-disabled":"--wds-dropdown-icon-fill-disabled","wds-shadow-x-input":"--wds-shadow-x-input","wds-shadow-y-input":"--wds-shadow-y-input","wds-shadow-blur-input":"--wds-shadow-blur-input","wds-shadow-fill-input":"--wds-shadow-fill-input","border-color-hover":"--
|
|
45047
|
+
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-standard-secondary-active":"--wds-color-border-standard-secondary-active","wds-color-border-standard-secondary-hover":"--wds-color-border-standard-secondary-hover","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-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-color-text-standard-secondary":"--wds-color-text-standard-secondary","wds-input-background-fill-default":"--wds-input-background-fill-default","wds-input-background-fill-hover":"--wds-input-background-fill-hover","wds-input-background-fill-disabled":"--wds-input-background-fill-disabled","wds-input-border-color":"--wds-input-border-color","wds-input-border-color-hover":"--wds-input-border-color-hover","wds-input-border-color-disabled":"--wds-input-border-color-disabled","wds-input-border-color-focus":"--wds-input-border-color-focus","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-space-50":"--wds-space-50","wds-space-100":"--wds-space-100","wds-dropdown-icon-fill":"--wds-dropdown-icon-fill","wds-color-text-highlight":"--wds-color-text-highlight","wds-dropdown-icon-fill-disabled":"--wds-dropdown-icon-fill-disabled","wds-shadow-x-input":"--wds-shadow-x-input","wds-shadow-y-input":"--wds-shadow-y-input","wds-shadow-blur-input":"--wds-shadow-blur-input","wds-shadow-fill-input":"--wds-shadow-fill-input","border-color-hover":"--wds_1_326_0_Input-border-color-hover","border-color-hover-destructive":"--wds_1_326_0_Input-border-color-hover-destructive","border-color-hover-warning":"--wds_1_326_0_Input-border-color-hover-warning","input-background":"--wds_1_326_0_Input-input-background"};
|
|
44958
45048
|
|
|
44959
45049
|
|
|
44960
45050
|
|
|
44961
45051
|
|
|
44962
45052
|
|
|
45053
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/Input/Input.classes.js
|
|
45054
|
+
|
|
45055
|
+
const Input_classes_classes = defineClassNames('input', {
|
|
45056
|
+
root: { variants: { size: ['tiny', 'small', 'medium', 'large'] } },
|
|
45057
|
+
wrapper: {},
|
|
45058
|
+
input: {},
|
|
45059
|
+
});
|
|
45060
|
+
//# sourceMappingURL=Input.classes.js.map
|
|
44963
45061
|
;// ../../../node_modules/@wix/design-system/dist/esm/Input/InputContext.js
|
|
44964
45062
|
|
|
44965
45063
|
const InputContext = external_React_default().createContext(null);
|
|
@@ -45030,7 +45128,7 @@ var FormFieldSpinnerDown_default = FormFieldSpinnerDown;
|
|
|
45030
45128
|
|
|
45031
45129
|
|
|
45032
45130
|
|
|
45033
|
-
var Ticker_st_css_namespace_ = "
|
|
45131
|
+
var Ticker_st_css_namespace_ = "wds_1_326_0_Ticker";
|
|
45034
45132
|
var Ticker_st_css_style_ = classesRuntime.bind(null, Ticker_st_css_namespace_);
|
|
45035
45133
|
|
|
45036
45134
|
var Ticker_st_css_cssStates = statesRuntime.bind(null, Ticker_st_css_namespace_);
|
|
@@ -45038,7 +45136,7 @@ var Ticker_st_css_style = (/* unused pure expression or super */ null && (Ticker
|
|
|
45038
45136
|
var Ticker_st_css_st = Ticker_st_css_style_;
|
|
45039
45137
|
|
|
45040
45138
|
var Ticker_st_css_namespace = (/* unused pure expression or super */ null && (Ticker_st_css_namespace_));
|
|
45041
|
-
var Ticker_st_css_classes = {"root":"
|
|
45139
|
+
var Ticker_st_css_classes = {"root":"wds_1_326_0_Ticker__root","up":"wds_1_326_0_Ticker__up","down":"wds_1_326_0_Ticker__down"};
|
|
45042
45140
|
var Ticker_st_css_keyframes = {};
|
|
45043
45141
|
var Ticker_st_css_layers = {};
|
|
45044
45142
|
var Ticker_st_css_containers = {};
|
|
@@ -45098,7 +45196,7 @@ Ticker.displayName = 'Input.Ticker';
|
|
|
45098
45196
|
|
|
45099
45197
|
|
|
45100
45198
|
|
|
45101
|
-
var IconAffix_st_css_namespace_ = "
|
|
45199
|
+
var IconAffix_st_css_namespace_ = "wds_1_326_0_IconAffix";
|
|
45102
45200
|
var IconAffix_st_css_style_ = classesRuntime.bind(null, IconAffix_st_css_namespace_);
|
|
45103
45201
|
|
|
45104
45202
|
var IconAffix_st_css_cssStates = statesRuntime.bind(null, IconAffix_st_css_namespace_);
|
|
@@ -45106,7 +45204,7 @@ var IconAffix_st_css_style = (/* unused pure expression or super */ null && (Ico
|
|
|
45106
45204
|
var IconAffix_st_css_st = IconAffix_st_css_style_;
|
|
45107
45205
|
|
|
45108
45206
|
var IconAffix_st_css_namespace = (/* unused pure expression or super */ null && (IconAffix_st_css_namespace_));
|
|
45109
|
-
var IconAffix_st_css_classes = {"root":"
|
|
45207
|
+
var IconAffix_st_css_classes = {"root":"wds_1_326_0_IconAffix__root"};
|
|
45110
45208
|
var IconAffix_st_css_keyframes = {};
|
|
45111
45209
|
var IconAffix_st_css_layers = {};
|
|
45112
45210
|
var IconAffix_st_css_containers = {};
|
|
@@ -45142,7 +45240,7 @@ IconAffix.displayName = 'Input.IconAffix';
|
|
|
45142
45240
|
|
|
45143
45241
|
|
|
45144
45242
|
|
|
45145
|
-
var Affix_st_css_namespace_ = "
|
|
45243
|
+
var Affix_st_css_namespace_ = "wds_1_326_0_Affix";
|
|
45146
45244
|
var Affix_st_css_style_ = classesRuntime.bind(null, Affix_st_css_namespace_);
|
|
45147
45245
|
|
|
45148
45246
|
var Affix_st_css_cssStates = statesRuntime.bind(null, Affix_st_css_namespace_);
|
|
@@ -45150,7 +45248,7 @@ var Affix_st_css_style = (/* unused pure expression or super */ null && (Affix_s
|
|
|
45150
45248
|
var Affix_st_css_st = Affix_st_css_style_;
|
|
45151
45249
|
|
|
45152
45250
|
var Affix_st_css_namespace = (/* unused pure expression or super */ null && (Affix_st_css_namespace_));
|
|
45153
|
-
var Affix_st_css_classes = {"root":"
|
|
45251
|
+
var Affix_st_css_classes = {"root":"wds_1_326_0_Affix__root","text-tiny-thin":"wds_1_326_0_StylableTypography__text-tiny-thin","text-small-thin":"wds_1_326_0_StylableTypography__text-small-thin","text-medium-thin":"wds_1_326_0_StylableTypography__text-medium-thin"};
|
|
45154
45252
|
var Affix_st_css_keyframes = {};
|
|
45155
45253
|
var Affix_st_css_layers = {};
|
|
45156
45254
|
var Affix_st_css_containers = {};
|
|
@@ -45182,7 +45280,7 @@ Affix.displayName = 'Input.Affix';
|
|
|
45182
45280
|
|
|
45183
45281
|
|
|
45184
45282
|
|
|
45185
|
-
var Group_st_css_namespace_ = "
|
|
45283
|
+
var Group_st_css_namespace_ = "wds_1_326_0_Group";
|
|
45186
45284
|
var Group_st_css_style_ = classesRuntime.bind(null, Group_st_css_namespace_);
|
|
45187
45285
|
|
|
45188
45286
|
var Group_st_css_cssStates = statesRuntime.bind(null, Group_st_css_namespace_);
|
|
@@ -45190,7 +45288,7 @@ var Group_st_css_style = (/* unused pure expression or super */ null && (Group_s
|
|
|
45190
45288
|
var Group_st_css_st = (/* unused pure expression or super */ null && (Group_st_css_style_));
|
|
45191
45289
|
|
|
45192
45290
|
var Group_st_css_namespace = (/* unused pure expression or super */ null && (Group_st_css_namespace_));
|
|
45193
|
-
var Group_st_css_classes = {"root":"
|
|
45291
|
+
var Group_st_css_classes = {"root":"wds_1_326_0_Group__root"};
|
|
45194
45292
|
var Group_st_css_keyframes = {};
|
|
45195
45293
|
var Group_st_css_layers = {};
|
|
45196
45294
|
var Group_st_css_containers = {};
|
|
@@ -45223,13 +45321,45 @@ const getAriaAttributesFromContext = ({ ariaLabelledBy, ariaDescribedBy, }) => (
|
|
|
45223
45321
|
...(ariaDescribedBy && { 'aria-describedby': ariaDescribedBy }),
|
|
45224
45322
|
});
|
|
45225
45323
|
//# sourceMappingURL=StatusContext.js.map
|
|
45324
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/providers/useFocusRing/shouldShowFocusRing.js
|
|
45325
|
+
let modality = 'keyboard';
|
|
45326
|
+
const onPointer = () => {
|
|
45327
|
+
modality = 'pointer';
|
|
45328
|
+
};
|
|
45329
|
+
const onKeyDown = (event) => {
|
|
45330
|
+
if (event.metaKey || event.altKey || event.ctrlKey) {
|
|
45331
|
+
return;
|
|
45332
|
+
}
|
|
45333
|
+
modality = 'keyboard';
|
|
45334
|
+
};
|
|
45335
|
+
/* the listeners are attached on import rather than on first call: the pointer
|
|
45336
|
+
event that starts an interaction fires before the focus it causes, so a
|
|
45337
|
+
listener attached at focus time would already have missed it */
|
|
45338
|
+
if (typeof document !== 'undefined') {
|
|
45339
|
+
document.addEventListener('keydown', onKeyDown, true);
|
|
45340
|
+
document.addEventListener('pointerdown', onPointer, true);
|
|
45341
|
+
document.addEventListener('mousedown', onPointer, true);
|
|
45342
|
+
}
|
|
45343
|
+
/**
|
|
45344
|
+
* Same question as `useFocusRing`, for components that already own their focus
|
|
45345
|
+
* handlers (and for class components, which cannot call the hook): should the
|
|
45346
|
+
* focus happening right now paint a ring? Browsers match `:focus-visible` on a
|
|
45347
|
+
* focused text input whatever the interaction was, so neither CSS nor the hook's
|
|
45348
|
+
* `focusProps` can tell a click from a tab there — the interaction that led to
|
|
45349
|
+
* the focus can.
|
|
45350
|
+
*/
|
|
45351
|
+
const shouldShowFocusRing = () => modality === 'keyboard';
|
|
45352
|
+
//# sourceMappingURL=shouldShowFocusRing.js.map
|
|
45226
45353
|
;// ../../../node_modules/@wix/design-system/dist/esm/Input/hooks/useAutoFocusAndSelect.js
|
|
45227
45354
|
|
|
45355
|
+
|
|
45228
45356
|
function useAutoFocusAndSelect({ autoFocus, autoSelect, onFocus, onBlur, localInputRef, value, }) {
|
|
45229
45357
|
const [isFocused, setIsFocused] = (0,external_React_.useState)(false);
|
|
45358
|
+
const [isFocusVisible, setIsFocusVisible] = (0,external_React_.useState)(false);
|
|
45230
45359
|
const autoFocusTriggered = (0,external_React_.useRef)(false);
|
|
45231
45360
|
const _onFocus = (0,external_React_.useCallback)((event) => {
|
|
45232
45361
|
setIsFocused(true);
|
|
45362
|
+
setIsFocusVisible(shouldShowFocusRing());
|
|
45233
45363
|
if (autoSelect) {
|
|
45234
45364
|
localInputRef.current?.select();
|
|
45235
45365
|
}
|
|
@@ -45254,6 +45384,7 @@ function useAutoFocusAndSelect({ autoFocus, autoSelect, onFocus, onBlur, localIn
|
|
|
45254
45384
|
}, [autoFocus, autoSelect, localInputRef, value]);
|
|
45255
45385
|
return {
|
|
45256
45386
|
isFocused,
|
|
45387
|
+
isFocusVisible,
|
|
45257
45388
|
_onFocus,
|
|
45258
45389
|
_onBlur,
|
|
45259
45390
|
};
|
|
@@ -45286,7 +45417,7 @@ var DropDownArrow_default = DropDownArrow;
|
|
|
45286
45417
|
|
|
45287
45418
|
|
|
45288
45419
|
|
|
45289
|
-
var StatusIndicator_st_css_namespace_ = "
|
|
45420
|
+
var StatusIndicator_st_css_namespace_ = "wds_1_326_0_StatusIndicator";
|
|
45290
45421
|
var StatusIndicator_st_css_style_ = classesRuntime.bind(null, StatusIndicator_st_css_namespace_);
|
|
45291
45422
|
|
|
45292
45423
|
var StatusIndicator_st_css_cssStates = statesRuntime.bind(null, StatusIndicator_st_css_namespace_);
|
|
@@ -45294,7 +45425,7 @@ var StatusIndicator_st_css_style = (/* unused pure expression or super */ null &
|
|
|
45294
45425
|
var StatusIndicator_st_css_st = StatusIndicator_st_css_style_;
|
|
45295
45426
|
|
|
45296
45427
|
var StatusIndicator_st_css_namespace = (/* unused pure expression or super */ null && (StatusIndicator_st_css_namespace_));
|
|
45297
|
-
var StatusIndicator_st_css_classes = {"root":"
|
|
45428
|
+
var StatusIndicator_st_css_classes = {"root":"wds_1_326_0_StatusIndicator__root","iconWrapper":"wds_1_326_0_StatusIndicator__iconWrapper"};
|
|
45298
45429
|
var StatusIndicator_st_css_keyframes = {};
|
|
45299
45430
|
var StatusIndicator_st_css_layers = {};
|
|
45300
45431
|
var StatusIndicator_st_css_containers = {};
|
|
@@ -45500,6 +45631,7 @@ const Suffix = ({ statusMessage, status, disabled, menuArrow, suffix, tooltipPla
|
|
|
45500
45631
|
|
|
45501
45632
|
|
|
45502
45633
|
|
|
45634
|
+
|
|
45503
45635
|
const InputBase = (0,external_React_.forwardRef)((componentProps, ref) => {
|
|
45504
45636
|
const { input: inputPropsDefaults } = (0,external_React_.useContext)(WixStyleReactDefaultsOverrideContext);
|
|
45505
45637
|
const props = useDefaultProps('Input', componentProps);
|
|
@@ -45509,7 +45641,7 @@ const InputBase = (0,external_React_.forwardRef)((componentProps, ref) => {
|
|
|
45509
45641
|
const mergedInputRef = (0,external_React_.useMemo)(() => mergeRefs(localInputRef, inputRef), [inputRef]);
|
|
45510
45642
|
const { maskingClassNames } = (0,external_React_.useContext)(WixStyleReactMaskingContext);
|
|
45511
45643
|
const statusContext = (0,external_React_.useContext)(StatusContext);
|
|
45512
|
-
const { _onFocus, _onBlur, isFocused } = useAutoFocusAndSelect({
|
|
45644
|
+
const { _onFocus, _onBlur, isFocused, isFocusVisible } = useAutoFocusAndSelect({
|
|
45513
45645
|
localInputRef,
|
|
45514
45646
|
onFocus,
|
|
45515
45647
|
onBlur,
|
|
@@ -45519,23 +45651,23 @@ const InputBase = (0,external_React_.forwardRef)((componentProps, ref) => {
|
|
|
45519
45651
|
});
|
|
45520
45652
|
(0,external_React_.useImperativeHandle)(ref, () => ({
|
|
45521
45653
|
/**
|
|
45522
|
-
* Sets focus on the input element
|
|
45654
|
+
* Sets focus on the input element.
|
|
45523
45655
|
*/
|
|
45524
45656
|
focus: (options = {}) => localInputRef.current?.focus(options),
|
|
45525
45657
|
/**
|
|
45526
|
-
* Removes focus from the input element
|
|
45658
|
+
* Removes focus from the input element.
|
|
45527
45659
|
*/
|
|
45528
45660
|
blur: () => localInputRef.current?.blur(),
|
|
45529
45661
|
/**
|
|
45530
|
-
* Selects the text in the input element
|
|
45662
|
+
* Selects the text in the input element.
|
|
45531
45663
|
*/
|
|
45532
45664
|
select: () => localInputRef.current?.select(),
|
|
45533
45665
|
/**
|
|
45534
|
-
* Sets the start and end positions of the current text selection in the input element
|
|
45666
|
+
* Sets the start and end positions of the current text selection in the input element.
|
|
45535
45667
|
*/
|
|
45536
45668
|
setSelectionRange: (start, end) => localInputRef.current?.setSelectionRange(start, end),
|
|
45537
45669
|
/**
|
|
45538
|
-
* Clears the input value
|
|
45670
|
+
* Clears the input value.
|
|
45539
45671
|
*/
|
|
45540
45672
|
clear: (event) => {
|
|
45541
45673
|
// If the value is undefined, we are dealing with an uncontrolled input
|
|
@@ -45611,7 +45743,7 @@ const InputBase = (0,external_React_.forwardRef)((componentProps, ref) => {
|
|
|
45611
45743
|
max,
|
|
45612
45744
|
step,
|
|
45613
45745
|
'data-mask': !!maskingClassNames,
|
|
45614
|
-
className: Input_st_css_st(Input_st_css_classes.input, {}, maskingClassNames),
|
|
45746
|
+
className: Input_st_css_st(Input_st_css_classes.input, {}, Input_classes_classes.input(), maskingClassNames),
|
|
45615
45747
|
style: { textOverflow },
|
|
45616
45748
|
name,
|
|
45617
45749
|
disabled,
|
|
@@ -45663,14 +45795,14 @@ const InputBase = (0,external_React_.forwardRef)((componentProps, ref) => {
|
|
|
45663
45795
|
border,
|
|
45664
45796
|
noRightBorderRadius,
|
|
45665
45797
|
noLeftBorderRadius,
|
|
45666
|
-
}, className,
|
|
45798
|
+
}, Input_classes_classes.root({ size }), className,
|
|
45667
45799
|
/* forced (not `within`): the ring must follow the input element's
|
|
45668
45800
|
own focus only — affixes inside the root are focusable too */
|
|
45669
45801
|
FocusRing_classes_classes.root({
|
|
45670
|
-
forced: (forceFocus || isFocused) &&
|
|
45802
|
+
forced: (forceFocus || (isFocused && isFocusVisible)) &&
|
|
45671
45803
|
(border === 'standard' || border === 'round'),
|
|
45672
45804
|
})), style: { [Input_st_css_vars['input-background']]: backgroundColor }, dir: rtl ? 'rtl' : undefined, "data-hook": dataHook, ...dataAttributes },
|
|
45673
|
-
external_React_default().createElement("div", { className: Input_st_css_classes.wrapper },
|
|
45805
|
+
external_React_default().createElement("div", { className: Input_st_css_st(Input_st_css_classes.wrapper, Input_classes_classes.wrapper()) },
|
|
45674
45806
|
prefix && (external_React_default().createElement(InputContext.Provider, { value: { ...props, size, inPrefix: true } }, prefix)),
|
|
45675
45807
|
inputElement,
|
|
45676
45808
|
external_React_default().createElement(InputContext.Provider, { value: { ...props, size, inSuffix: true } },
|
|
@@ -45936,35 +46068,18 @@ const ListItemSection_constants_TYPES = {
|
|
|
45936
46068
|
SUBHEADER: 'subheader',
|
|
45937
46069
|
};
|
|
45938
46070
|
//# sourceMappingURL=ListItemSection.constants.js.map
|
|
45939
|
-
;// ../../../node_modules/@wix/design-system/dist/esm/ListItemSection/ListItemSection.
|
|
45940
|
-
|
|
45941
|
-
|
|
45942
|
-
|
|
45943
|
-
|
|
45944
|
-
|
|
45945
|
-
|
|
45946
|
-
|
|
45947
|
-
|
|
45948
|
-
|
|
45949
|
-
var ListItemSection_st_css_namespace_ = "wds_1_323_0_ListItemSection";
|
|
45950
|
-
var ListItemSection_st_css_style_ = classesRuntime.bind(null, ListItemSection_st_css_namespace_);
|
|
45951
|
-
|
|
45952
|
-
var ListItemSection_st_css_cssStates = statesRuntime.bind(null, ListItemSection_st_css_namespace_);
|
|
45953
|
-
var ListItemSection_st_css_style = (/* unused pure expression or super */ null && (ListItemSection_st_css_style_));
|
|
45954
|
-
var ListItemSection_st_css_st = ListItemSection_st_css_style_;
|
|
45955
|
-
|
|
45956
|
-
var ListItemSection_st_css_namespace = (/* unused pure expression or super */ null && (ListItemSection_st_css_namespace_));
|
|
45957
|
-
var ListItemSection_st_css_classes = {"root":"wds_1_323_0_ListItemSection__root","title":"wds_1_323_0_ListItemSection__title","titleWrapper":"wds_1_323_0_ListItemSection__titleWrapper","suffixWrapper":"wds_1_323_0_ListItemSection__suffixWrapper","suffix":"wds_1_323_0_ListItemSection__suffix"};
|
|
45958
|
-
var ListItemSection_st_css_keyframes = {};
|
|
45959
|
-
var ListItemSection_st_css_layers = {};
|
|
45960
|
-
var ListItemSection_st_css_containers = {};
|
|
45961
|
-
var ListItemSection_st_css_stVars = {};
|
|
45962
|
-
var ListItemSection_st_css_vars = {"wsr-text-line-height-small":"--wsr-text-line-height-small","wsr-text-font-size-small":"--wsr-text-font-size-small","wsr-font-weight-bold":"--wsr-font-weight-bold","wsr-font-weight-medium":"--wsr-font-weight-medium","wds-color-border-dark-secondary":"--wds-color-border-dark-secondary","wds-color-text-placeholder":"--wds-color-text-placeholder","wds-color-text-standard-secondary":"--wds-color-text-standard-secondary","wds-list-item-section-fill":"--wds-list-item-section-fill","wds-list-item-section-fill-neutral":"--wds-list-item-section-fill-neutral","wds-list-item-section-title-label-fill":"--wds-list-item-section-title-label-fill","wds-list-item-section-padding-horizontal":"--wds-list-item-section-padding-horizontal","wds-list-item-section-divider-padding-horizontal":"--wds-list-item-section-divider-padding-horizontal","wds-list-item-section-font-weight":"--wds-list-item-section-font-weight","wds-list-item-section-font-size":"--wds-list-item-section-font-size","wds-list-item-section-font-line-height":"--wds-list-item-section-font-line-height","wds-list-item-section-padding-bottom":"--wds-list-item-section-padding-bottom","wds-list-item-section-padding-top":"--wds-list-item-section-padding-top","wds-list-item-section-padding-vertical-neutral":"--wds-list-item-section-padding-vertical-neutral","wds-list-item-section-divider-padding-bottom":"--wds-list-item-section-divider-padding-bottom","wds-list-item-section-divider-padding-top":"--wds-list-item-section-divider-padding-top","wds-list-item-section-title-label-fill-neutral":"--wds-list-item-section-title-label-fill-neutral","wds-list-item-section-font-weight-neutral":"--wds-list-item-section-font-weight-neutral","wds-space-100":"--wds-space-100","wds-space-150":"--wds-space-150","wds-space-200":"--wds-space-200","wds-border-width-varied":"--wds-border-width-varied"};
|
|
45963
|
-
|
|
45964
|
-
|
|
45965
|
-
|
|
45966
|
-
|
|
46071
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/ListItemSection/ListItemSection.classes.js
|
|
45967
46072
|
|
|
46073
|
+
const ListItemSection_classes_classes = defineClassNames('list-item-section', {
|
|
46074
|
+
root: {
|
|
46075
|
+
states: ['subheader', 'divider', 'whitespace', 'ellipsis', 'suffix'],
|
|
46076
|
+
},
|
|
46077
|
+
title: {},
|
|
46078
|
+
titleWrapper: {},
|
|
46079
|
+
suffixWrapper: {},
|
|
46080
|
+
suffix: {},
|
|
46081
|
+
});
|
|
46082
|
+
//# sourceMappingURL=ListItemSection.classes.js.map
|
|
45968
46083
|
;// ../../../node_modules/@wix/design-system/dist/esm/ListItemSection/ListItemSection.js
|
|
45969
46084
|
|
|
45970
46085
|
|
|
@@ -45977,18 +46092,18 @@ const ListItemSection = ({ type = ListItemSection_constants_TYPES.TITLE, ellipsi
|
|
|
45977
46092
|
const isSeparatorElement = type === ListItemSection_constants_TYPES.WHITESPACE || type === ListItemSection_constants_TYPES.DIVIDER;
|
|
45978
46093
|
const isSubheader = type === ListItemSection_constants_TYPES.SUBHEADER;
|
|
45979
46094
|
if (isSeparatorElement) {
|
|
45980
|
-
return (external_React_default().createElement("div", { className:
|
|
46095
|
+
return (external_React_default().createElement("div", { className: ListItemSection_classes_classes.root({ [type]: true }), "data-hook": dataHook, onClick: e => e.stopPropagation() }, type === ListItemSection_constants_TYPES.DIVIDER && external_React_default().createElement(Divider_Divider, null)));
|
|
45981
46096
|
}
|
|
45982
|
-
return (external_React_default().createElement("div", { className:
|
|
46097
|
+
return (external_React_default().createElement("div", { className: ListItemSection_classes_classes.root({
|
|
45983
46098
|
subheader: isSubheader,
|
|
45984
46099
|
ellipsis,
|
|
45985
46100
|
suffix: !!suffix,
|
|
45986
46101
|
}, className), "data-hook": dataHook },
|
|
45987
|
-
external_React_default().createElement("div", { className:
|
|
45988
|
-
external_React_default().createElement(TextWithEllipsis, { dataHook: ListItemSection_constants_dataHooks.TITLE, tagName: "div", size: "small", className:
|
|
45989
|
-
suffix && isString(suffix) && (external_React_default().createElement("div", { className:
|
|
45990
|
-
external_React_default().createElement(TextButtonWithDefaultProps, { ellipsis: ellipsis, dataHook: ListItemSection_constants_dataHooks.SUFFIX, size: "tiny", onClick: onClick, className:
|
|
45991
|
-
suffix && !isString(suffix) && (external_React_default().createElement("div", { "data-hook": ListItemSection_constants_dataHooks.SUFFIX, className:
|
|
46102
|
+
external_React_default().createElement("div", { className: ListItemSection_classes_classes.titleWrapper() },
|
|
46103
|
+
external_React_default().createElement(TextWithEllipsis, { dataHook: ListItemSection_constants_dataHooks.TITLE, tagName: "div", size: "small", className: ListItemSection_classes_classes.title(), ellipsis: ellipsis, enterDelay: 300, weight: isSubheader ? WEIGHTS.normal : WEIGHTS.bold }, title)),
|
|
46104
|
+
suffix && isString(suffix) && (external_React_default().createElement("div", { className: ListItemSection_classes_classes.suffixWrapper() },
|
|
46105
|
+
external_React_default().createElement(TextButtonWithDefaultProps, { ellipsis: ellipsis, dataHook: ListItemSection_constants_dataHooks.SUFFIX, size: "tiny", onClick: onClick, className: ListItemSection_classes_classes.suffix() }, suffix))),
|
|
46106
|
+
suffix && !isString(suffix) && (external_React_default().createElement("div", { "data-hook": ListItemSection_constants_dataHooks.SUFFIX, className: ListItemSection_classes_classes.suffixWrapper(), onClick: onClick }, suffix))));
|
|
45992
46107
|
};
|
|
45993
46108
|
ListItemSection.displayName = 'ListItemSection';
|
|
45994
46109
|
|
|
@@ -47189,7 +47304,7 @@ const useFocusRing = () => {
|
|
|
47189
47304
|
|
|
47190
47305
|
|
|
47191
47306
|
|
|
47192
|
-
var ListItemAction_st_css_namespace_ = "
|
|
47307
|
+
var ListItemAction_st_css_namespace_ = "wds_1_326_0_ListItemAction";
|
|
47193
47308
|
var ListItemAction_st_css_style_ = classesRuntime.bind(null, ListItemAction_st_css_namespace_);
|
|
47194
47309
|
|
|
47195
47310
|
var ListItemAction_st_css_cssStates = statesRuntime.bind(null, ListItemAction_st_css_namespace_);
|
|
@@ -47197,7 +47312,7 @@ var ListItemAction_st_css_style = (/* unused pure expression or super */ null &&
|
|
|
47197
47312
|
var ListItemAction_st_css_st = ListItemAction_st_css_style_;
|
|
47198
47313
|
|
|
47199
47314
|
var ListItemAction_st_css_namespace = (/* unused pure expression or super */ null && (ListItemAction_st_css_namespace_));
|
|
47200
|
-
var ListItemAction_st_css_classes = {"root":"
|
|
47315
|
+
var ListItemAction_st_css_classes = {"root":"wds_1_326_0_ListItemAction__root","mobile":"wds_1_326_0_WixDesignSystemProvider__mobile","prefixIcon":"wds_1_326_0_ListItemAction__prefixIcon","textBox":"wds_1_326_0_ListItemAction__textBox","text":"wds_1_326_0_ListItemAction__text","subtitle":"wds_1_326_0_ListItemAction__subtitle","textOverrides":"wds_1_326_0_ListItemAction__textOverrides","subtitleOverrides":"wds_1_326_0_ListItemAction__subtitleOverrides","suffixBox":"wds_1_326_0_ListItemAction__suffixBox","suffix":"wds_1_326_0_ListItemAction__suffix","suffixIcon":"wds_1_326_0_ListItemAction__suffixIcon"};
|
|
47201
47316
|
var ListItemAction_st_css_keyframes = {};
|
|
47202
47317
|
var ListItemAction_st_css_layers = {};
|
|
47203
47318
|
var ListItemAction_st_css_containers = {};
|
|
@@ -50207,7 +50322,7 @@ OverlayScrollbars.env = () => {
|
|
|
50207
50322
|
|
|
50208
50323
|
|
|
50209
50324
|
|
|
50210
|
-
var useOverlayScrollbar_initialization_st_css_namespace_ = "
|
|
50325
|
+
var useOverlayScrollbar_initialization_st_css_namespace_ = "wds_1_326_0_useOverlayScrollbarinitialization";
|
|
50211
50326
|
var useOverlayScrollbar_initialization_st_css_style_ = classesRuntime.bind(null, useOverlayScrollbar_initialization_st_css_namespace_);
|
|
50212
50327
|
|
|
50213
50328
|
var useOverlayScrollbar_initialization_st_css_cssStates = statesRuntime.bind(null, useOverlayScrollbar_initialization_st_css_namespace_);
|
|
@@ -50215,8 +50330,8 @@ var useOverlayScrollbar_initialization_st_css_style = (/* unused pure expression
|
|
|
50215
50330
|
var useOverlayScrollbar_initialization_st_css_st = (/* unused pure expression or super */ null && (useOverlayScrollbar_initialization_st_css_style_));
|
|
50216
50331
|
|
|
50217
50332
|
var useOverlayScrollbar_initialization_st_css_namespace = (/* unused pure expression or super */ null && (useOverlayScrollbar_initialization_st_css_namespace_));
|
|
50218
|
-
var useOverlayScrollbar_initialization_st_css_classes = {"root":"
|
|
50219
|
-
var useOverlayScrollbar_initialization_st_css_keyframes = {"os-size-observer-appear-animation":"
|
|
50333
|
+
var useOverlayScrollbar_initialization_st_css_classes = {"root":"wds_1_326_0_useOverlayScrollbarinitialization__root"};
|
|
50334
|
+
var useOverlayScrollbar_initialization_st_css_keyframes = {"os-size-observer-appear-animation":"wds_1_326_0_useOverlayScrollbarinitialization__os-size-observer-appear-animation"};
|
|
50220
50335
|
var useOverlayScrollbar_initialization_st_css_layers = {};
|
|
50221
50336
|
var useOverlayScrollbar_initialization_st_css_containers = {};
|
|
50222
50337
|
var useOverlayScrollbar_initialization_st_css_stVars = {};
|
|
@@ -50235,7 +50350,7 @@ var useOverlayScrollbar_initialization_st_css_vars = {"os-vaw":"--os-vaw","os-va
|
|
|
50235
50350
|
|
|
50236
50351
|
|
|
50237
50352
|
|
|
50238
|
-
var useOverlayScrollbar_st_css_namespace_ = "
|
|
50353
|
+
var useOverlayScrollbar_st_css_namespace_ = "wds_1_326_0_useOverlayScrollbar";
|
|
50239
50354
|
var useOverlayScrollbar_st_css_style_ = classesRuntime.bind(null, useOverlayScrollbar_st_css_namespace_);
|
|
50240
50355
|
|
|
50241
50356
|
var useOverlayScrollbar_st_css_cssStates = statesRuntime.bind(null, useOverlayScrollbar_st_css_namespace_);
|
|
@@ -50243,7 +50358,7 @@ var useOverlayScrollbar_st_css_style = (/* unused pure expression or super */ nu
|
|
|
50243
50358
|
var useOverlayScrollbar_st_css_st = useOverlayScrollbar_st_css_style_;
|
|
50244
50359
|
|
|
50245
50360
|
var useOverlayScrollbar_st_css_namespace = (/* unused pure expression or super */ null && (useOverlayScrollbar_st_css_namespace_));
|
|
50246
|
-
var useOverlayScrollbar_st_css_classes = {"root":"
|
|
50361
|
+
var useOverlayScrollbar_st_css_classes = {"root":"wds_1_326_0_useOverlayScrollbar__root"};
|
|
50247
50362
|
var useOverlayScrollbar_st_css_keyframes = {};
|
|
50248
50363
|
var useOverlayScrollbar_st_css_layers = {};
|
|
50249
50364
|
var useOverlayScrollbar_st_css_containers = {};
|
|
@@ -50293,7 +50408,7 @@ const useOverlayScrollbar = (params) => {
|
|
|
50293
50408
|
}
|
|
50294
50409
|
/**
|
|
50295
50410
|
* If the environment is test or window is undefined,
|
|
50296
|
-
*
|
|
50411
|
+
* don't initialize the OverlayScrollbars.
|
|
50297
50412
|
*/
|
|
50298
50413
|
if ( false || typeof window === 'undefined') {
|
|
50299
50414
|
return;
|
|
@@ -50511,7 +50626,7 @@ class DropdownLayout extends external_React_.PureComponent {
|
|
|
50511
50626
|
this.selectedOption = null;
|
|
50512
50627
|
this._isDialogMode = () => {
|
|
50513
50628
|
/** This component has two modes:
|
|
50514
|
-
* 1. Menu mode: when fixedHeader or fixedFooter
|
|
50629
|
+
* 1. Menu mode: when fixedHeader or fixedFooter isn't present - https://www.w3.org/WAI/ARIA/apg/patterns/menubar/
|
|
50515
50630
|
* 2. Dialog mode: when fixedHeader or fixedFooter is present - https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
|
|
50516
50631
|
*/
|
|
50517
50632
|
const { fixedHeader, fixedFooter } = this.props;
|
|
@@ -50609,7 +50724,7 @@ class DropdownLayout extends external_React_.PureComponent {
|
|
|
50609
50724
|
scrollIntoView(menuElement, hoveredElement);
|
|
50610
50725
|
};
|
|
50611
50726
|
/**
|
|
50612
|
-
* Handle keydown events for the DropdownLayout, mostly for accessibility
|
|
50727
|
+
* Handle keydown events for the DropdownLayout, mostly for accessibility.
|
|
50613
50728
|
*
|
|
50614
50729
|
* @param event - The keydown event triggered by React
|
|
50615
50730
|
* @returns Whether the event was handled by the component
|
|
@@ -50828,7 +50943,7 @@ class DropdownLayout extends external_React_.PureComponent {
|
|
|
50828
50943
|
return (external_React_default().createElement(InfiniteScroll, { useWindow: true, dataHook: DataAttr_DATA_HOOKS.INFINITE_SCROLL_CONTAINER, scrollElement: this.state.scrollElement, loadMore: this.props.loadMore, hasMore: this.props.hasMore, data: this.props.options, loader: external_React_default().createElement("div", { className: DropdownLayout_classes_classes.loader() },
|
|
50829
50944
|
external_React_default().createElement(Loader, { dataHook: DROPDOWN_LAYOUT_LOADER, size: "small" })) }, scrollableElement));
|
|
50830
50945
|
};
|
|
50831
|
-
/** for testing purposes only */
|
|
50946
|
+
/** for testing purposes only. */
|
|
50832
50947
|
this._getDataAttributes = () => {
|
|
50833
50948
|
const { visible, dropDirectionUp } = this.props;
|
|
50834
50949
|
const { selectedId } = this.state;
|
|
@@ -59639,6 +59754,45 @@ const useArrow = (showArrow) => {
|
|
|
59639
59754
|
};
|
|
59640
59755
|
};
|
|
59641
59756
|
//# sourceMappingURL=useArrow.js.map
|
|
59757
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/PopoverNext/hooks/getFloatingWidthStyles.js
|
|
59758
|
+
const formatWidth = (value) => typeof value === 'number' ? `${value}px` : value;
|
|
59759
|
+
const isLengthValue = (value) => typeof value === 'number' || /^[\d.]/.test(value);
|
|
59760
|
+
const getFloatingWidthStyles = ({ appendTo, width, minWidth, maxWidth, dynamicWidth, referenceWidth, }) => {
|
|
59761
|
+
const styles = {};
|
|
59762
|
+
if (maxWidth) {
|
|
59763
|
+
styles.maxWidth = formatWidth(maxWidth);
|
|
59764
|
+
}
|
|
59765
|
+
if (appendTo === 'window' || appendTo === 'scrollParent') {
|
|
59766
|
+
const reference = formatWidth(referenceWidth);
|
|
59767
|
+
if (width) {
|
|
59768
|
+
styles.width = formatWidth(width);
|
|
59769
|
+
styles.minWidth = minWidth ? formatWidth(minWidth) : 'fit-content';
|
|
59770
|
+
}
|
|
59771
|
+
else if (minWidth && isLengthValue(minWidth)) {
|
|
59772
|
+
styles.width = `max(${reference}, ${formatWidth(minWidth)})`;
|
|
59773
|
+
styles.minWidth = 'fit-content';
|
|
59774
|
+
}
|
|
59775
|
+
else {
|
|
59776
|
+
styles.width = reference;
|
|
59777
|
+
styles.minWidth = minWidth ? formatWidth(minWidth) : 'fit-content';
|
|
59778
|
+
}
|
|
59779
|
+
return styles;
|
|
59780
|
+
}
|
|
59781
|
+
if (width) {
|
|
59782
|
+
styles.width = formatWidth(width);
|
|
59783
|
+
if (minWidth) {
|
|
59784
|
+
styles.minWidth = formatWidth(minWidth);
|
|
59785
|
+
}
|
|
59786
|
+
}
|
|
59787
|
+
else if (dynamicWidth) {
|
|
59788
|
+
styles.minWidth = formatWidth(referenceWidth);
|
|
59789
|
+
}
|
|
59790
|
+
else if (minWidth) {
|
|
59791
|
+
styles.minWidth = formatWidth(minWidth);
|
|
59792
|
+
}
|
|
59793
|
+
return styles;
|
|
59794
|
+
};
|
|
59795
|
+
//# sourceMappingURL=getFloatingWidthStyles.js.map
|
|
59642
59796
|
;// ../../../node_modules/@wix/design-system/dist/esm/PopoverNext/hooks/usePopover.js
|
|
59643
59797
|
|
|
59644
59798
|
|
|
@@ -59649,8 +59803,8 @@ const useArrow = (showArrow) => {
|
|
|
59649
59803
|
|
|
59650
59804
|
|
|
59651
59805
|
|
|
59806
|
+
|
|
59652
59807
|
const ANIMATED_DURATION = { open: 150, close: 100 };
|
|
59653
|
-
const formatWidth = (value) => typeof value === 'number' ? `${value}px` : value;
|
|
59654
59808
|
function usePopover({ dataHook, open = false, onOpenChange, focusManagerEnabled = true, appendTo = APPEND_TO.parent, dynamicWidth = false, zIndex = ZIndex.popover, width, minWidth, maxWidth, excludeClass, moveBy, flip: shouldFlip = true, placement = 'bottom', fixed = false, rootRef, showDelay, hideDelay, timeout: duration, skin, transitionSettings, onClickOutside, overlay = false, role, tabIndex, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, id, style, onClick, animate, showArrow = false, customArrow, contentClassName, onMouseEnter, onMouseLeave, autoUpdateOptions, }) {
|
|
59655
59809
|
const { contextClassName } = (0,external_React_.useContext)(WixDesignSystemContext);
|
|
59656
59810
|
const isHoverMode = Boolean(onMouseEnter && onMouseLeave);
|
|
@@ -59697,46 +59851,19 @@ function usePopover({ dataHook, open = false, onOpenChange, focusManagerEnabled
|
|
|
59697
59851
|
middleware: [
|
|
59698
59852
|
floating_ui_react_dom_size({
|
|
59699
59853
|
apply({ rects, elements }) {
|
|
59700
|
-
|
|
59854
|
+
Object.assign(elements.floating.style, {
|
|
59701
59855
|
wordBreak: 'normal',
|
|
59702
59856
|
display: 'flex',
|
|
59703
59857
|
justifyContent: 'center',
|
|
59704
|
-
|
|
59705
|
-
|
|
59706
|
-
|
|
59707
|
-
|
|
59708
|
-
|
|
59709
|
-
|
|
59710
|
-
|
|
59711
|
-
|
|
59712
|
-
|
|
59713
|
-
}
|
|
59714
|
-
else if (dynamicWidth) {
|
|
59715
|
-
styles.minWidth = formatWidth(rects.reference.width);
|
|
59716
|
-
if (maxWidth) {
|
|
59717
|
-
styles.maxWidth = formatWidth(maxWidth);
|
|
59718
|
-
}
|
|
59719
|
-
}
|
|
59720
|
-
else {
|
|
59721
|
-
if (minWidth) {
|
|
59722
|
-
styles.minWidth = formatWidth(minWidth);
|
|
59723
|
-
}
|
|
59724
|
-
if (maxWidth) {
|
|
59725
|
-
styles.maxWidth = formatWidth(maxWidth);
|
|
59726
|
-
}
|
|
59727
|
-
}
|
|
59728
|
-
if (appendTo === 'window' || appendTo === 'scrollParent') {
|
|
59729
|
-
styles.minWidth = !!minWidth
|
|
59730
|
-
? formatWidth(minWidth)
|
|
59731
|
-
: 'fit-content';
|
|
59732
|
-
styles.width = !!width
|
|
59733
|
-
? formatWidth(width)
|
|
59734
|
-
: formatWidth(rects.reference.width);
|
|
59735
|
-
if (maxWidth) {
|
|
59736
|
-
styles.maxWidth = formatWidth(maxWidth);
|
|
59737
|
-
}
|
|
59738
|
-
}
|
|
59739
|
-
Object.assign(elements.floating.style, styles);
|
|
59858
|
+
...getFloatingWidthStyles({
|
|
59859
|
+
appendTo,
|
|
59860
|
+
width,
|
|
59861
|
+
minWidth,
|
|
59862
|
+
maxWidth,
|
|
59863
|
+
dynamicWidth,
|
|
59864
|
+
referenceWidth: rects.reference.width,
|
|
59865
|
+
}),
|
|
59866
|
+
});
|
|
59740
59867
|
},
|
|
59741
59868
|
}),
|
|
59742
59869
|
!!positioning.flip ? floating_ui_react_dom_flip(positioning.flip) : undefined,
|
|
@@ -63709,13 +63836,13 @@ class DropdownBase extends external_React_.PureComponent {
|
|
|
63709
63836
|
listAutoFocus: false,
|
|
63710
63837
|
};
|
|
63711
63838
|
/**
|
|
63712
|
-
* Return `true` if the `open` prop is being controlled
|
|
63839
|
+
* Return `true` if the `open` prop is being controlled.
|
|
63713
63840
|
*/
|
|
63714
63841
|
this._isControllingOpen = (props = this.props) => {
|
|
63715
63842
|
return typeof props.open !== 'undefined';
|
|
63716
63843
|
};
|
|
63717
63844
|
/**
|
|
63718
|
-
* Return `true` if the selection behaviour is being controlled
|
|
63845
|
+
* Return `true` if the selection behaviour is being controlled.
|
|
63719
63846
|
*/
|
|
63720
63847
|
this._isControllingSelection = (props = this.props) => {
|
|
63721
63848
|
return (typeof props.selectedId !== 'undefined' &&
|
|
@@ -63787,7 +63914,7 @@ class DropdownBase extends external_React_.PureComponent {
|
|
|
63787
63914
|
return this.props.options?.find(({ id }) => id === selectedId);
|
|
63788
63915
|
};
|
|
63789
63916
|
/**
|
|
63790
|
-
* Determine if a certain key should open the DropdownLayout
|
|
63917
|
+
* Determine if a certain key should open the DropdownLayout.
|
|
63791
63918
|
*/
|
|
63792
63919
|
this._isOpenKey = (key) => {
|
|
63793
63920
|
return ['Enter', ' ', 'ArrowDown'].includes(key);
|
|
@@ -63852,7 +63979,7 @@ class DropdownBase extends external_React_.PureComponent {
|
|
|
63852
63979
|
};
|
|
63853
63980
|
this._isDialogMode = () => {
|
|
63854
63981
|
/** This component has two modes:
|
|
63855
|
-
* 1. Menu mode: when fixedHeader or fixedFooter
|
|
63982
|
+
* 1. Menu mode: when fixedHeader or fixedFooter isn't present - https://www.w3.org/WAI/ARIA/apg/patterns/menubar/
|
|
63856
63983
|
* 2. Dialog mode: when fixedHeader or fixedFooter is present - https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
|
|
63857
63984
|
*/
|
|
63858
63985
|
const { fixedHeader, fixedFooter } = this.props;
|
|
@@ -77244,7 +77371,7 @@ const IconButton_constants_testDataHooks = {
|
|
|
77244
77371
|
|
|
77245
77372
|
|
|
77246
77373
|
|
|
77247
|
-
var IconButton_st_css_namespace_ = "
|
|
77374
|
+
var IconButton_st_css_namespace_ = "wds_1_326_0_IconButton";
|
|
77248
77375
|
var IconButton_st_css_style_ = classesRuntime.bind(null, IconButton_st_css_namespace_);
|
|
77249
77376
|
|
|
77250
77377
|
var IconButton_st_css_cssStates = statesRuntime.bind(null, IconButton_st_css_namespace_);
|
|
@@ -77252,7 +77379,7 @@ var IconButton_st_css_style = (/* unused pure expression or super */ null && (Ic
|
|
|
77252
77379
|
var IconButton_st_css_st = IconButton_st_css_style_;
|
|
77253
77380
|
|
|
77254
77381
|
var IconButton_st_css_namespace = (/* unused pure expression or super */ null && (IconButton_st_css_namespace_));
|
|
77255
|
-
var IconButton_st_css_classes = {"root":"
|
|
77382
|
+
var IconButton_st_css_classes = {"root":"wds_1_326_0_IconButton__root"};
|
|
77256
77383
|
var IconButton_st_css_keyframes = {};
|
|
77257
77384
|
var IconButton_st_css_layers = {};
|
|
77258
77385
|
var IconButton_st_css_containers = {};
|
|
@@ -77324,7 +77451,7 @@ const Avatar_constants_dataHooks = {
|
|
|
77324
77451
|
|
|
77325
77452
|
|
|
77326
77453
|
|
|
77327
|
-
var AvatarCore_st_css_namespace_ = "
|
|
77454
|
+
var AvatarCore_st_css_namespace_ = "wds_1_326_0_AvatarCore";
|
|
77328
77455
|
var AvatarCore_st_css_style_ = classesRuntime.bind(null, AvatarCore_st_css_namespace_);
|
|
77329
77456
|
|
|
77330
77457
|
var AvatarCore_st_css_cssStates = statesRuntime.bind(null, AvatarCore_st_css_namespace_);
|
|
@@ -77332,7 +77459,7 @@ var AvatarCore_st_css_style = (/* unused pure expression or super */ null && (Av
|
|
|
77332
77459
|
var AvatarCore_st_css_st = AvatarCore_st_css_style_;
|
|
77333
77460
|
|
|
77334
77461
|
var AvatarCore_st_css_namespace = (/* unused pure expression or super */ null && (AvatarCore_st_css_namespace_));
|
|
77335
|
-
var AvatarCore_st_css_classes = {"root":"
|
|
77462
|
+
var AvatarCore_st_css_classes = {"root":"wds_1_326_0_AvatarCore__root","content":"wds_1_326_0_AvatarCore__content"};
|
|
77336
77463
|
var AvatarCore_st_css_keyframes = {};
|
|
77337
77464
|
var AvatarCore_st_css_layers = {};
|
|
77338
77465
|
var AvatarCore_st_css_containers = {};
|
|
@@ -77355,7 +77482,7 @@ var AvatarCore_st_css_vars = {};
|
|
|
77355
77482
|
|
|
77356
77483
|
|
|
77357
77484
|
|
|
77358
|
-
var Avatar_st_css_namespace_ = "
|
|
77485
|
+
var Avatar_st_css_namespace_ = "wds_1_326_0_Avatar";
|
|
77359
77486
|
var Avatar_st_css_style_ = classesRuntime.bind(null, Avatar_st_css_namespace_);
|
|
77360
77487
|
|
|
77361
77488
|
var Avatar_st_css_cssStates = statesRuntime.bind(null, Avatar_st_css_namespace_);
|
|
@@ -77363,7 +77490,7 @@ var Avatar_st_css_style = (/* unused pure expression or super */ null && (Avatar
|
|
|
77363
77490
|
var Avatar_st_css_st = Avatar_st_css_style_;
|
|
77364
77491
|
|
|
77365
77492
|
var Avatar_st_css_namespace = (/* unused pure expression or super */ null && (Avatar_st_css_namespace_));
|
|
77366
|
-
var Avatar_st_css_classes = {"root":"
|
|
77493
|
+
var Avatar_st_css_classes = {"root":"wds_1_326_0_Avatar__root","text-small-bold":"wds_1_326_0_StylableTypography__text-small-bold","text-medium-bold":"wds_1_326_0_StylableTypography__text-medium-bold","placeholder":"wds_1_326_0_Avatar__placeholder","avatarContainer":"wds_1_326_0_Avatar__avatarContainer","coreAvatar":"wds_1_326_0_Avatar__coreAvatar","avatar":"wds_1_326_0_Avatar__avatar","presence":"wds_1_326_0_Avatar__presence","indication":"wds_1_326_0_Avatar__indication","iconButtonShadow":"wds_1_326_0_Avatar__iconButtonShadow","colorA1":"wds_1_326_0_Avatar__colorA1","colorA2":"wds_1_326_0_Avatar__colorA2","colorA3":"wds_1_326_0_Avatar__colorA3","colorA4":"wds_1_326_0_Avatar__colorA4","colorA5":"wds_1_326_0_Avatar__colorA5","colorA6":"wds_1_326_0_Avatar__colorA6","colorA7":"wds_1_326_0_Avatar__colorA7","loaderContainer":"wds_1_326_0_Avatar__loaderContainer","overlay":"wds_1_326_0_Avatar__overlay","loader":"wds_1_326_0_Avatar__loader"};
|
|
77367
77494
|
var Avatar_st_css_keyframes = {};
|
|
77368
77495
|
var Avatar_st_css_layers = {};
|
|
77369
77496
|
var Avatar_st_css_containers = {};
|
|
@@ -77538,7 +77665,7 @@ class AvatarCore extends external_React_.Component {
|
|
|
77538
77665
|
}
|
|
77539
77666
|
};
|
|
77540
77667
|
}
|
|
77541
|
-
/** This is the resolved content type the consumer wants to display */
|
|
77668
|
+
/** This is the resolved content type the consumer wants to display. */
|
|
77542
77669
|
getRequestedContentType(props) {
|
|
77543
77670
|
const { name, text, placeholder, imgProps } = props;
|
|
77544
77671
|
return imgProps && imgProps.src
|
|
@@ -77822,7 +77949,7 @@ const customStyles=(props,rtl)=>{return{valueContainer:provided=>({...provided,p
|
|
|
77822
77949
|
|
|
77823
77950
|
|
|
77824
77951
|
|
|
77825
|
-
var Tag_st_css_namespace_ = "
|
|
77952
|
+
var Tag_st_css_namespace_ = "wds_1_326_0_Tag";
|
|
77826
77953
|
var Tag_st_css_style_ = classesRuntime.bind(null, Tag_st_css_namespace_);
|
|
77827
77954
|
|
|
77828
77955
|
var Tag_st_css_cssStates = statesRuntime.bind(null, Tag_st_css_namespace_);
|
|
@@ -77830,7 +77957,7 @@ var Tag_st_css_style = (/* unused pure expression or super */ null && (Tag_st_cs
|
|
|
77830
77957
|
var Tag_st_css_st = Tag_st_css_style_;
|
|
77831
77958
|
|
|
77832
77959
|
var Tag_st_css_namespace = (/* unused pure expression or super */ null && (Tag_st_css_namespace_));
|
|
77833
|
-
var Tag_st_css_classes = {"root":"
|
|
77960
|
+
var Tag_st_css_classes = {"root":"wds_1_326_0_Tag__root","thumb":"wds_1_326_0_Tag__thumb","removeButton":"wds_1_326_0_Tag__removeButton","text":"wds_1_326_0_Tag__text"};
|
|
77834
77961
|
var Tag_st_css_keyframes = {};
|
|
77835
77962
|
var Tag_st_css_layers = {};
|
|
77836
77963
|
var Tag_st_css_containers = {};
|
|
@@ -77946,37 +78073,38 @@ Tag.displayName = 'Tag';
|
|
|
77946
78073
|
const WrappedTag = (0,external_React_.memo)(Tag);
|
|
77947
78074
|
|
|
77948
78075
|
//# sourceMappingURL=Tag.js.map
|
|
77949
|
-
;// ../../../node_modules/@wix/design-system/dist/esm/MultiSelect/InputWithTags.
|
|
77950
|
-
|
|
77951
|
-
|
|
77952
|
-
|
|
77953
|
-
|
|
77954
|
-
|
|
77955
|
-
|
|
77956
|
-
|
|
77957
|
-
|
|
77958
|
-
|
|
77959
|
-
|
|
77960
|
-
|
|
77961
|
-
var InputWithTags_st_css_namespace_ = "wds_1_323_0_InputWithTags";
|
|
77962
|
-
var InputWithTags_st_css_style_ = classesRuntime.bind(null, InputWithTags_st_css_namespace_);
|
|
77963
|
-
|
|
77964
|
-
var InputWithTags_st_css_cssStates = statesRuntime.bind(null, InputWithTags_st_css_namespace_);
|
|
77965
|
-
var InputWithTags_st_css_style = (/* unused pure expression or super */ null && (InputWithTags_st_css_style_));
|
|
77966
|
-
var InputWithTags_st_css_st = InputWithTags_st_css_style_;
|
|
77967
|
-
|
|
77968
|
-
var InputWithTags_st_css_namespace = (/* unused pure expression or super */ null && (InputWithTags_st_css_namespace_));
|
|
77969
|
-
var InputWithTags_st_css_classes = {"root":"wds_1_323_0_InputWithTags__root","text-medium-normal":"wds_1_323_0_StylableTypography__text-medium-normal","input-inner-shadow-mixin":"wds_1_323_0_Input__input-inner-shadow-mixin","inputWrapper":"wds_1_323_0_InputWithTags__inputWrapper","emptyInput":"wds_1_323_0_InputWithTags__emptyInput","selectMode":"wds_1_323_0_InputWithTags__selectMode","inputSuffix":"wds_1_323_0_InputWithTags__inputSuffix","menuArrow":"wds_1_323_0_InputWithTags__menuArrow","statusIndicator":"wds_1_323_0_InputWithTags__statusIndicator","suffixes":"wds_1_323_0_InputWithTags__suffixes","hiddenDiv":"wds_1_323_0_InputWithTags__hiddenDiv","scrollableContent":"wds_1_323_0_InputWithTags__scrollableContent","customSuffix":"wds_1_323_0_InputWithTags__customSuffix","customPrefix":"wds_1_323_0_InputWithTags__customPrefix","tagsContainer":"wds_1_323_0_InputWithTags__tagsContainer","draggedTag":"wds_1_323_0_InputWithTags__draggedTag","draggedTagPlaceholder":"wds_1_323_0_InputWithTags__draggedTagPlaceholder","input":"wds_1_323_0_InputWithTags__input"};
|
|
77970
|
-
var InputWithTags_st_css_keyframes = {};
|
|
77971
|
-
var InputWithTags_st_css_layers = {};
|
|
77972
|
-
var InputWithTags_st_css_containers = {};
|
|
77973
|
-
var InputWithTags_st_css_stVars = {"borderWidth":"1px","paddingBuffer":"calc(var(--wds-input-padding-vertical-medium, 6px) * 0.8)"};
|
|
77974
|
-
var InputWithTags_st_css_vars = {"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-padding-vertical-medium":"--wds-input-padding-vertical-medium","wds-input-padding-horizontal-medium":"--wds-input-padding-horizontal-medium","wds-space-100":"--wds-space-100","wds-border-width-default":"--wds-border-width-default","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-background-fill-default":"--wds-input-background-fill-default","wds-input-background-fill-hover":"--wds-input-background-fill-hover","wds-input-background-fill-disabled":"--wds-input-background-fill-disabled","wds-input-background-fill-readonly":"--wds-input-background-fill-readonly","wds-input-border-color":"--wds-input-border-color","wds-color-border-standard-secondary-readonly":"--wds-color-border-standard-secondary-readonly","wds-input-border-color-disabled":"--wds-input-border-color-disabled","wds-input-border-color-focus":"--wds-input-border-color-focus","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-dropdown-icon-fill":"--wds-dropdown-icon-fill","wds-dropdown-icon-fill-disabled":"--wds-dropdown-icon-fill-disabled","wds-outline-focus-outer":"--wds-outline-focus-outer","wds-color-fill-standard-secondary-hover":"--wds-color-fill-standard-secondary-hover","wds-color-fill-dark-secondary-hover":"--wds-color-fill-dark-secondary-hover","input-background":"--wds_1_323_0_InputWithTags-input-background"};
|
|
77975
|
-
|
|
77976
|
-
|
|
77977
|
-
|
|
77978
|
-
|
|
78076
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/MultiSelect/InputWithTags.classes.js
|
|
77979
78077
|
|
|
78078
|
+
const INPUT_WITH_TAGS_BACKGROUND_PROPERTY = '--wds-internal-input-with-tags-background';
|
|
78079
|
+
const InputWithTags_classes_classes = defineClassNames('input-with-tags', {
|
|
78080
|
+
root: {
|
|
78081
|
+
states: [
|
|
78082
|
+
'hasFocus',
|
|
78083
|
+
'hasVisibleFocus',
|
|
78084
|
+
'disabled',
|
|
78085
|
+
'readOnly',
|
|
78086
|
+
'selectMode',
|
|
78087
|
+
],
|
|
78088
|
+
variants: {
|
|
78089
|
+
border: ['standard', 'round', 'bottomLine', 'none'],
|
|
78090
|
+
size: ['tiny', 'small', 'medium', 'large'],
|
|
78091
|
+
status: ['error', 'warning', 'loading'],
|
|
78092
|
+
},
|
|
78093
|
+
},
|
|
78094
|
+
scrollableContent: {},
|
|
78095
|
+
inputWrapper: {},
|
|
78096
|
+
hiddenDiv: {},
|
|
78097
|
+
input: {},
|
|
78098
|
+
inputSuffix: {},
|
|
78099
|
+
menuArrow: {},
|
|
78100
|
+
statusIndicator: {},
|
|
78101
|
+
customPrefix: {},
|
|
78102
|
+
customSuffix: {},
|
|
78103
|
+
tagsContainer: {},
|
|
78104
|
+
draggedTag: {},
|
|
78105
|
+
draggedTagPlaceholder: {},
|
|
78106
|
+
});
|
|
78107
|
+
//# sourceMappingURL=InputWithTags.classes.js.map
|
|
77980
78108
|
// EXTERNAL MODULE: ../../../node_modules/react-dnd/dist/esm/index.js
|
|
77981
78109
|
var dist_esm = __webpack_require__(8358);
|
|
77982
78110
|
// EXTERNAL MODULE: ../../../node_modules/lodash/noop.js
|
|
@@ -79862,7 +79990,7 @@ const WrappedSortableListBase = withDNDContext(SortableListBase);
|
|
|
79862
79990
|
|
|
79863
79991
|
|
|
79864
79992
|
|
|
79865
|
-
var dnd_styles_st_css_namespace_ = "
|
|
79993
|
+
var dnd_styles_st_css_namespace_ = "wds_1_326_0_dndstyles";
|
|
79866
79994
|
var dnd_styles_st_css_style_ = classesRuntime.bind(null, dnd_styles_st_css_namespace_);
|
|
79867
79995
|
|
|
79868
79996
|
var dnd_styles_st_css_cssStates = statesRuntime.bind(null, dnd_styles_st_css_namespace_);
|
|
@@ -79870,7 +79998,7 @@ var dnd_styles_st_css_style = (/* unused pure expression or super */ null && (dn
|
|
|
79870
79998
|
var dnd_styles_st_css_st = (/* unused pure expression or super */ null && (dnd_styles_st_css_style_));
|
|
79871
79999
|
|
|
79872
80000
|
var dnd_styles_st_css_namespace = (/* unused pure expression or super */ null && (dnd_styles_st_css_namespace_));
|
|
79873
|
-
var dnd_styles_st_css_classes = {"root":"
|
|
80001
|
+
var dnd_styles_st_css_classes = {"root":"wds_1_326_0_dndstyles__root","item":"wds_1_326_0_dndstyles__item","itemPlaceholder":"wds_1_326_0_dndstyles__itemPlaceholder","itemPreview":"wds_1_326_0_dndstyles__itemPreview","list":"wds_1_326_0_dndstyles__list","gridItemPlaceholder":"wds_1_326_0_dndstyles__gridItemPlaceholder","isInitialPositionToDrop":"wds_1_326_0_dndstyles__isInitialPositionToDrop","withGridItemStrip":"wds_1_326_0_dndstyles__withGridItemStrip","withGridItemStripRight":"wds_1_326_0_dndstyles__withGridItemStripRight","gridItemPreview":"wds_1_326_0_dndstyles__gridItemPreview"};
|
|
79874
80002
|
var dnd_styles_st_css_keyframes = {};
|
|
79875
80003
|
var dnd_styles_st_css_layers = {};
|
|
79876
80004
|
var dnd_styles_st_css_containers = {};
|
|
@@ -79908,6 +80036,7 @@ const dndStyles = {
|
|
|
79908
80036
|
|
|
79909
80037
|
|
|
79910
80038
|
|
|
80039
|
+
|
|
79911
80040
|
class InputWithTags extends (external_React_default()).Component {
|
|
79912
80041
|
constructor(props) {
|
|
79913
80042
|
super(props);
|
|
@@ -79918,7 +80047,11 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
79918
80047
|
this.handleClick = this.handleClick.bind(this);
|
|
79919
80048
|
this.handleInputFocus = this.handleInputFocus.bind(this);
|
|
79920
80049
|
this.handleInputBlur = this.handleInputBlur.bind(this);
|
|
79921
|
-
this.state = {
|
|
80050
|
+
this.state = {
|
|
80051
|
+
inputValue: '',
|
|
80052
|
+
inputHasFocus: false,
|
|
80053
|
+
inputFocusVisible: false,
|
|
80054
|
+
};
|
|
79922
80055
|
}
|
|
79923
80056
|
componentDidMount() {
|
|
79924
80057
|
this.props.autoFocus && this.props.onFocus();
|
|
@@ -79930,7 +80063,10 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
79930
80063
|
}
|
|
79931
80064
|
}
|
|
79932
80065
|
handleInputFocus(e) {
|
|
79933
|
-
this.setState({
|
|
80066
|
+
this.setState({
|
|
80067
|
+
inputHasFocus: true,
|
|
80068
|
+
inputFocusVisible: shouldShowFocusRing(),
|
|
80069
|
+
});
|
|
79934
80070
|
this.props.onFocus && this.props.onFocus(e);
|
|
79935
80071
|
}
|
|
79936
80072
|
handleInputBlur(e) {
|
|
@@ -79943,24 +80079,25 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
79943
80079
|
_hasFocus() {
|
|
79944
80080
|
return this.state.inputHasFocus && !this.props.disabled;
|
|
79945
80081
|
}
|
|
80082
|
+
_hasVisibleFocus() {
|
|
80083
|
+
return this._hasFocus() && this.state.inputFocusVisible;
|
|
80084
|
+
}
|
|
79946
80085
|
_getRootClassName() {
|
|
79947
80086
|
const { status, disabled, readOnly, size = 'medium', border, className, } = this.props;
|
|
79948
|
-
|
|
79949
|
-
className,
|
|
79950
|
-
this._isSelectMode() && InputWithTags_st_css_classes.selectMode,
|
|
79951
|
-
].filter(Boolean);
|
|
79952
|
-
return InputWithTags_st_css_st(InputWithTags_st_css_classes.root, {
|
|
80087
|
+
return InputWithTags_classes_classes.root({
|
|
79953
80088
|
border,
|
|
79954
80089
|
disabled,
|
|
79955
80090
|
hasFocus: this._hasFocus(),
|
|
80091
|
+
hasVisibleFocus: this._hasVisibleFocus(),
|
|
79956
80092
|
status: getStatusFromContext(this.context, status),
|
|
79957
80093
|
readOnly,
|
|
79958
80094
|
size,
|
|
79959
|
-
|
|
80095
|
+
selectMode: this._isSelectMode(),
|
|
80096
|
+
}, className, FocusRing_classes_classes.root({
|
|
79960
80097
|
pseudo: true,
|
|
79961
80098
|
/* forced (not `within`): ring follows the inner input's focus only —
|
|
79962
80099
|
tag-remove buttons inside the root are focusable too */
|
|
79963
|
-
forced: this.
|
|
80100
|
+
forced: this._hasVisibleFocus() && border !== 'bottomLine',
|
|
79964
80101
|
}));
|
|
79965
80102
|
}
|
|
79966
80103
|
render() {
|
|
@@ -79979,15 +80116,18 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
79979
80116
|
const finalStatus = getStatusFromContext(this.context, status);
|
|
79980
80117
|
return (external_React_default().createElement(IconThemeContext.Consumer, null, ({ icons = {} }) => {
|
|
79981
80118
|
const DropDownArrowIcon = icons.InputWithTags?.DropDownArrow || DropDownArrow_default;
|
|
79982
|
-
return (external_React_default().createElement("div", { className: this._getRootClassName(), style: {
|
|
79983
|
-
|
|
80119
|
+
return (external_React_default().createElement("div", { className: this._getRootClassName(), style: {
|
|
80120
|
+
maxHeight,
|
|
80121
|
+
[INPUT_WITH_TAGS_BACKGROUND_PROPERTY]: backgroundColor,
|
|
80122
|
+
}, onClick: this.handleClick, "data-hook": this.props.dataHook, "data-focus": this._hasFocus() || null, "data-status": finalStatus, ...getAriaAttributesFromContext(this.context) },
|
|
80123
|
+
external_React_default().createElement("div", { className: InputWithTags_classes_classes.scrollableContent() },
|
|
79984
80124
|
this.props.customPrefix &&
|
|
79985
80125
|
!this.props.hideCustomSuffix &&
|
|
79986
|
-
!this.state.inputHasFocus && (external_React_default().createElement("span", { "data-hook": "custom-prefix", className:
|
|
79987
|
-
onReorder ? (external_React_default().createElement(WrappedSortableListBase, { contentClassName:
|
|
79988
|
-
external_React_default().createElement("span", { className: classnames_default()(
|
|
79989
|
-
external_React_default().createElement("div", { className: classnames_default()(
|
|
79990
|
-
external_React_default().createElement(Input, { className:
|
|
80126
|
+
!this.state.inputHasFocus && (external_React_default().createElement("span", { "data-hook": "custom-prefix", className: InputWithTags_classes_classes.customPrefix() }, this.props.customPrefix)),
|
|
80127
|
+
onReorder ? (external_React_default().createElement(WrappedSortableListBase, { contentClassName: InputWithTags_classes_classes.tagsContainer(), items: tags, onDrop: onReorder, renderItem: this.renderReorderableTag })) : (tags.map(({ label, ...rest }) => (external_React_default().createElement(WrappedTag, { key: rest.id, dataHook: "tag", disabled: disabled, onRemove: onRemoveTag, removable: !readOnly, ...rest }, label)))),
|
|
80128
|
+
external_React_default().createElement("span", { className: classnames_default()(InputWithTags_classes_classes.inputWrapper(), !tags.length), "data-hook": "inner-input-with-tags" },
|
|
80129
|
+
external_React_default().createElement("div", { className: classnames_default()(InputWithTags_classes_classes.hiddenDiv()) }, this.state.inputValue),
|
|
80130
|
+
external_React_default().createElement(Input, { className: InputWithTags_classes_classes.input(), size: size, width: this.props.width, ref: input => {
|
|
79991
80131
|
this.input = input;
|
|
79992
80132
|
}, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, placeholder: tags.length === 0 ? placeholder : '', ...desiredProps, dataHook: "inputWithTags-input", disabled: disabled, readOnly: readOnly, disableEditing: this._isSelectMode(), onChange: e => {
|
|
79993
80133
|
if (!delimiters.includes(e.target.value)) {
|
|
@@ -79996,13 +80136,13 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
79996
80136
|
}
|
|
79997
80137
|
}, withSelection: true, prefix: this.props.customSuffix &&
|
|
79998
80138
|
!this.props.hideCustomSuffix &&
|
|
79999
|
-
!this.state.inputHasFocus && (external_React_default().createElement("span", { "data-hook": "custom-suffix", className:
|
|
80000
|
-
external_React_default().createElement("div", { className:
|
|
80139
|
+
!this.state.inputHasFocus && (external_React_default().createElement("span", { "data-hook": "custom-suffix", className: InputWithTags_classes_classes.customSuffix() }, this.props.customSuffix)), hideStatusSuffix: true }))),
|
|
80140
|
+
external_React_default().createElement("div", { className: InputWithTags_classes_classes.inputSuffix() },
|
|
80001
80141
|
!disabled &&
|
|
80002
80142
|
(['error', 'warning', 'loading'].includes(status) ||
|
|
80003
|
-
finalStatus === 'loading') && (external_React_default().createElement("div", { className:
|
|
80143
|
+
finalStatus === 'loading') && (external_React_default().createElement("div", { className: InputWithTags_classes_classes.statusIndicator() },
|
|
80004
80144
|
external_React_default().createElement(StatusIndicator, { status: finalStatus, message: statusMessage, dataHook: "input-status" }))),
|
|
80005
|
-
this._isSelectMode() && (external_React_default().createElement("div", { className:
|
|
80145
|
+
this._isSelectMode() && (external_React_default().createElement("div", { className: InputWithTags_classes_classes.menuArrow(), "data-hook": "input-menu-arrow" },
|
|
80006
80146
|
external_React_default().createElement(DropDownArrowIcon, null))))));
|
|
80007
80147
|
}));
|
|
80008
80148
|
}
|
|
@@ -80010,9 +80150,9 @@ class InputWithTags extends (external_React_default()).Component {
|
|
|
80010
80150
|
const { onRemoveTag, disabled, readOnly } = this.props;
|
|
80011
80151
|
const _classes = classnames_default()({
|
|
80012
80152
|
[dndStyles.itemPlaceholder]: isPlaceholder,
|
|
80013
|
-
[
|
|
80153
|
+
[InputWithTags_classes_classes.draggedTagPlaceholder()]: isPlaceholder,
|
|
80014
80154
|
[dndStyles.itemPreview]: isPreview,
|
|
80015
|
-
[
|
|
80155
|
+
[InputWithTags_classes_classes.draggedTag()]: isPreview,
|
|
80016
80156
|
});
|
|
80017
80157
|
return (external_React_default().createElement("div", { style: previewStyles },
|
|
80018
80158
|
external_React_default().createElement(WrappedTag, { id: id, dataHook: "tag", disabled: disabled, className: _classes, onRemove: onRemoveTag, removable: !readOnly, ...itemProps, ...rest }, label)));
|
|
@@ -80045,32 +80185,13 @@ var last_default = /*#__PURE__*/__webpack_require__.n(lodash_last);
|
|
|
80045
80185
|
// EXTERNAL MODULE: ../../../node_modules/difference/index.js
|
|
80046
80186
|
var difference = __webpack_require__(3104);
|
|
80047
80187
|
var difference_default = /*#__PURE__*/__webpack_require__.n(difference);
|
|
80048
|
-
;// ../../../node_modules/@wix/design-system/dist/esm/MultiSelect/MultiSelect.
|
|
80049
|
-
|
|
80050
|
-
|
|
80051
|
-
|
|
80052
|
-
|
|
80053
|
-
|
|
80054
|
-
|
|
80055
|
-
var MultiSelect_st_css_namespace_ = "wds_1_323_0_MultiSelect";
|
|
80056
|
-
var MultiSelect_st_css_style_ = classesRuntime.bind(null, MultiSelect_st_css_namespace_);
|
|
80057
|
-
|
|
80058
|
-
var MultiSelect_st_css_cssStates = statesRuntime.bind(null, MultiSelect_st_css_namespace_);
|
|
80059
|
-
var MultiSelect_st_css_style = (/* unused pure expression or super */ null && (MultiSelect_st_css_style_));
|
|
80060
|
-
var MultiSelect_st_css_st = MultiSelect_st_css_style_;
|
|
80061
|
-
|
|
80062
|
-
var MultiSelect_st_css_namespace = (/* unused pure expression or super */ null && (MultiSelect_st_css_namespace_));
|
|
80063
|
-
var MultiSelect_st_css_classes = {"root":"wds_1_323_0_MultiSelect__root","inputWithTags":"wds_1_323_0_MultiSelect__inputWithTags","autoSizeInput":"wds_1_323_0_MultiSelect__autoSizeInput"};
|
|
80064
|
-
var MultiSelect_st_css_keyframes = {};
|
|
80065
|
-
var MultiSelect_st_css_layers = {};
|
|
80066
|
-
var MultiSelect_st_css_containers = {};
|
|
80067
|
-
var MultiSelect_st_css_stVars = {};
|
|
80068
|
-
var MultiSelect_st_css_vars = {};
|
|
80069
|
-
|
|
80070
|
-
|
|
80071
|
-
|
|
80072
|
-
|
|
80188
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/MultiSelect/MultiSelect.classes.js
|
|
80073
80189
|
|
|
80190
|
+
const MultiSelect_classes_classes = defineClassNames('multi-select', {
|
|
80191
|
+
root: {},
|
|
80192
|
+
autoSizeInput: {},
|
|
80193
|
+
});
|
|
80194
|
+
//# sourceMappingURL=MultiSelect.classes.js.map
|
|
80074
80195
|
;// ../../../node_modules/@wix/design-system/dist/esm/MultiSelect/MultiSelect.js
|
|
80075
80196
|
|
|
80076
80197
|
|
|
@@ -80097,7 +80218,7 @@ class MultiSelect extends InputWithOptions {
|
|
|
80097
80218
|
rootAdditionalProps() {
|
|
80098
80219
|
const { className } = this.props;
|
|
80099
80220
|
return {
|
|
80100
|
-
className:
|
|
80221
|
+
className: MultiSelect_classes_classes.root({}, className),
|
|
80101
80222
|
};
|
|
80102
80223
|
}
|
|
80103
80224
|
onClickOutside() {
|
|
@@ -80153,7 +80274,7 @@ class MultiSelect extends InputWithOptions {
|
|
|
80153
80274
|
return {
|
|
80154
80275
|
readOnly: this.props.readOnly,
|
|
80155
80276
|
disableEditing: true,
|
|
80156
|
-
inputElement: (external_React_default().createElement(InputWithTags, {
|
|
80277
|
+
inputElement: (external_React_default().createElement(InputWithTags, { onReorder: this.props.onReorder, maxNumRows: this.props.maxNumRows, mode: this.props.mode, hideCustomSuffix: this.isDropdownLayoutVisible(), customSuffix: this.props.customSuffix, customPrefix: this.props.customPrefix, border: this.props.border })),
|
|
80157
80278
|
onKeyDown: this.onKeyDown,
|
|
80158
80279
|
delimiters: this.props.delimiters,
|
|
80159
80280
|
onPaste: this.onPaste,
|
|
@@ -80248,11 +80369,11 @@ class MultiSelect extends InputWithOptions {
|
|
|
80248
80369
|
}
|
|
80249
80370
|
}
|
|
80250
80371
|
MultiSelect.autoSizeInput = ({ className, 'data-ref': dataRef, ...rest }) => {
|
|
80251
|
-
const inputClassName = classnames_default()(className,
|
|
80372
|
+
const inputClassName = classnames_default()(className, MultiSelect_classes_classes.autoSizeInput());
|
|
80252
80373
|
return external_React_default().createElement("input", { ...rest, ref: dataRef, className: inputClassName });
|
|
80253
80374
|
};
|
|
80254
80375
|
MultiSelect.autoSizeInputWithRef = () => external_React_default().forwardRef((props, ref) => (({ className, ref, ...rest }) => {
|
|
80255
|
-
const inputClassName = classnames_default()(className,
|
|
80376
|
+
const inputClassName = classnames_default()(className, MultiSelect_classes_classes.autoSizeInput());
|
|
80256
80377
|
return external_React_default().createElement("input", { ...rest, ref: ref, className: inputClassName });
|
|
80257
80378
|
})({ ...props, ref }));
|
|
80258
80379
|
MultiSelect.displayName = 'MultiSelect';
|
|
@@ -80306,35 +80427,26 @@ __webpack_require__.sti(EmptyState_st_namespace, ".EmptyState2390904073__emptySt
|
|
|
80306
80427
|
if(false /* HMR */) // removed by dead control flow
|
|
80307
80428
|
{}
|
|
80308
80429
|
|
|
80309
|
-
;// ../../../node_modules/@wix/design-system/dist/esm/EmptyState/EmptyState.
|
|
80310
|
-
|
|
80311
|
-
|
|
80312
|
-
|
|
80313
|
-
|
|
80314
|
-
|
|
80315
|
-
|
|
80316
|
-
|
|
80317
|
-
|
|
80318
|
-
|
|
80319
|
-
var EmptyState_st_css_namespace_ = "wds_1_323_0_EmptyState";
|
|
80320
|
-
var EmptyState_st_css_style_ = classesRuntime.bind(null, EmptyState_st_css_namespace_);
|
|
80321
|
-
|
|
80322
|
-
var EmptyState_st_css_cssStates = statesRuntime.bind(null, EmptyState_st_css_namespace_);
|
|
80323
|
-
var EmptyState_st_css_style = (/* unused pure expression or super */ null && (EmptyState_st_css_style_));
|
|
80324
|
-
var EmptyState_st_css_st = EmptyState_st_css_style_;
|
|
80325
|
-
|
|
80326
|
-
var EmptyState_st_css_namespace = (/* unused pure expression or super */ null && (EmptyState_st_css_namespace_));
|
|
80327
|
-
var EmptyState_st_css_classes = {"root":"wds_1_323_0_EmptyState__root","childrenContainer":"wds_1_323_0_EmptyState__childrenContainer","imageContainer":"wds_1_323_0_EmptyState__imageContainer","container":"wds_1_323_0_EmptyState__container","imageElement":"wds_1_323_0_EmptyState__imageElement","titleContainer":"wds_1_323_0_EmptyState__titleContainer","title":"wds_1_323_0_EmptyState__title","subtitle":"wds_1_323_0_EmptyState__subtitle","subtitleContainer":"wds_1_323_0_EmptyState__subtitleContainer"};
|
|
80328
|
-
var EmptyState_st_css_keyframes = {};
|
|
80329
|
-
var EmptyState_st_css_layers = {};
|
|
80330
|
-
var EmptyState_st_css_containers = {};
|
|
80331
|
-
var EmptyState_st_css_stVars = {};
|
|
80332
|
-
var EmptyState_st_css_vars = {"wds-space-150":"--wds-space-150","wds-space-400":"--wds-space-400","wds-space-700":"--wds-space-700","wds-color-border-dark-secondary":"--wds-color-border-dark-secondary","wds-empty-state-border-radius":"--wds-empty-state-border-radius","wds-empty-state-page-content-paddings":"--wds-empty-state-page-content-paddings","wds-empty-state-section-content-paddings":"--wds-empty-state-section-content-paddings","wds-empty-state-subtitle-fill":"--wds-empty-state-subtitle-fill","wds-empty-state-title-gap":"--wds-empty-state-title-gap","mobileImageMaxHeight":"--wds_1_323_0_EmptyState-mobileImageMaxHeight"};
|
|
80333
|
-
|
|
80334
|
-
|
|
80335
|
-
|
|
80336
|
-
|
|
80430
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/EmptyState/EmptyState.classes.js
|
|
80337
80431
|
|
|
80432
|
+
const EmptyState_classes_classes = defineClassNames('empty-state', {
|
|
80433
|
+
root: {
|
|
80434
|
+
variants: {
|
|
80435
|
+
skin: ['page', 'page-no-border', 'section'],
|
|
80436
|
+
align: ['start', 'center', 'end'],
|
|
80437
|
+
},
|
|
80438
|
+
states: ['mobile'],
|
|
80439
|
+
},
|
|
80440
|
+
container: {},
|
|
80441
|
+
imageContainer: {},
|
|
80442
|
+
imageElement: {},
|
|
80443
|
+
titleContainer: {},
|
|
80444
|
+
title: {},
|
|
80445
|
+
subtitleContainer: {},
|
|
80446
|
+
subtitle: {},
|
|
80447
|
+
childrenContainer: {},
|
|
80448
|
+
});
|
|
80449
|
+
//# sourceMappingURL=EmptyState.classes.js.map
|
|
80338
80450
|
;// ../../../node_modules/@wix/design-system/dist/esm/EmptyState/EmptyState.js
|
|
80339
80451
|
|
|
80340
80452
|
|
|
@@ -80359,16 +80471,16 @@ const EmptyState_EmptyState = ({ theme, skin, image = defaultEmptyStateProps.ima
|
|
|
80359
80471
|
deprecationLog_deprecationLog('<EmptyState/> - prop "theme" is deprecated and will be removed in next major release, please use "skin" property instead.');
|
|
80360
80472
|
}
|
|
80361
80473
|
}, [theme]);
|
|
80362
|
-
return (external_React_default().createElement("div", { className:
|
|
80363
|
-
external_React_default().createElement("div", { className:
|
|
80364
|
-
image && (external_React_default().createElement("div", { className:
|
|
80474
|
+
return (external_React_default().createElement("div", { className: EmptyState_classes_classes.root({ skin: mergedSkin, align, mobile }, className), "data-hook": dataHook, "data-skin": mergedSkin, "data-align": align },
|
|
80475
|
+
external_React_default().createElement("div", { className: EmptyState_classes_classes.container() },
|
|
80476
|
+
image && (external_React_default().createElement("div", { className: EmptyState_classes_classes.imageContainer({}, (classNamesProp && classNamesProp.imageContainer) || ''), "data-hook": "empty-state-image-container" }, typeof image === 'string' ? (external_React_default().createElement("img", { className: EmptyState_classes_classes.imageElement(), src: image, "data-hook": "image-element" })) : (external_React_default().cloneElement(image, {
|
|
80365
80477
|
'data-hook': 'image-node',
|
|
80366
80478
|
})))),
|
|
80367
|
-
title && (external_React_default().createElement("div", { className:
|
|
80368
|
-
external_React_default().createElement(Heading, { className:
|
|
80369
|
-
subtitle && (external_React_default().createElement("div", { className:
|
|
80370
|
-
external_React_default().createElement(TextWithEllipsis, { className:
|
|
80371
|
-
children && (external_React_default().createElement("div", { className:
|
|
80479
|
+
title && (external_React_default().createElement("div", { className: EmptyState_classes_classes.titleContainer(), "data-hook": "empty-state-title-container" },
|
|
80480
|
+
external_React_default().createElement(Heading, { className: EmptyState_classes_classes.title(), as: "h3", size: mergedSkin === 'section' ? 'medium' : 'large' }, title))),
|
|
80481
|
+
subtitle && (external_React_default().createElement("div", { className: EmptyState_classes_classes.subtitleContainer(), "data-hook": "empty-state-subtitle-container" },
|
|
80482
|
+
external_React_default().createElement(TextWithEllipsis, { className: EmptyState_classes_classes.subtitle(), size: "small" }, subtitle))),
|
|
80483
|
+
children && (external_React_default().createElement("div", { className: EmptyState_classes_classes.childrenContainer(), "data-hook": "empty-state-children-container" }, children)))));
|
|
80372
80484
|
};
|
|
80373
80485
|
EmptyState_EmptyState.displayName = 'EmptyState';
|
|
80374
80486
|
|
|
@@ -81290,7 +81402,7 @@ const FOCUSABLE_SELECTOR = 'a[href], button, input, textarea, select, [tabindex]
|
|
|
81290
81402
|
|
|
81291
81403
|
|
|
81292
81404
|
|
|
81293
|
-
var InfoIcon_st_css_namespace_ = "
|
|
81405
|
+
var InfoIcon_st_css_namespace_ = "wds_1_326_0_InfoIcon";
|
|
81294
81406
|
var InfoIcon_st_css_style_ = classesRuntime.bind(null, InfoIcon_st_css_namespace_);
|
|
81295
81407
|
|
|
81296
81408
|
var InfoIcon_st_css_cssStates = statesRuntime.bind(null, InfoIcon_st_css_namespace_);
|
|
@@ -81298,7 +81410,7 @@ var InfoIcon_st_css_style = (/* unused pure expression or super */ null && (Info
|
|
|
81298
81410
|
var InfoIcon_st_css_st = InfoIcon_st_css_style_;
|
|
81299
81411
|
|
|
81300
81412
|
var InfoIcon_st_css_namespace = (/* unused pure expression or super */ null && (InfoIcon_st_css_namespace_));
|
|
81301
|
-
var InfoIcon_st_css_classes = {"root":"
|
|
81413
|
+
var InfoIcon_st_css_classes = {"root":"wds_1_326_0_InfoIcon__root","trigger":"wds_1_326_0_InfoIcon__trigger","icon":"wds_1_326_0_InfoIcon__icon"};
|
|
81302
81414
|
var InfoIcon_st_css_keyframes = {};
|
|
81303
81415
|
var InfoIcon_st_css_layers = {};
|
|
81304
81416
|
var InfoIcon_st_css_containers = {};
|
|
@@ -81333,18 +81445,29 @@ const InfoIcon = ({ dataHook, content, size = 'medium', tooltipProps, className,
|
|
|
81333
81445
|
const triggerRef = (0,external_React_.useRef)(null);
|
|
81334
81446
|
const [isOpenedViaKeyboard, setIsOpenedViaKeyboard] = (0,external_React_.useState)(false);
|
|
81335
81447
|
const [isShown, setIsShown] = (0,external_React_.useState)(false);
|
|
81336
|
-
const
|
|
81337
|
-
const pointerDownSeen = (0,external_React_.useRef)(false);
|
|
81448
|
+
const shouldFocusOnShow = (0,external_React_.useRef)(false);
|
|
81338
81449
|
const autoId = useId();
|
|
81339
81450
|
const propAriaLabelledBy = tooltipProps?.['aria-labelledby'] ?? ariaLabelledBy;
|
|
81340
81451
|
const propAriaDescribedBy = tooltipProps?.['aria-describedby'] ?? ariaDescribedBy;
|
|
81341
81452
|
const tooltipId = propAriaLabelledBy || propAriaDescribedBy || `infoicon-tooltip-${autoId}`;
|
|
81453
|
+
const focusFirstInteractiveElement = (0,external_React_.useCallback)(() => {
|
|
81454
|
+
requestAnimationFrame(() => {
|
|
81455
|
+
const tooltipContent = tooltipRef.current?.getContentElement();
|
|
81456
|
+
const focusable = tooltipContent?.querySelector(FOCUSABLE_SELECTOR);
|
|
81457
|
+
focusable?.focus({ preventScroll: true });
|
|
81458
|
+
});
|
|
81459
|
+
}, []);
|
|
81342
81460
|
const handleTooltipShow = (0,external_React_.useCallback)(() => {
|
|
81343
81461
|
setIsShown(true);
|
|
81462
|
+
if (shouldFocusOnShow.current) {
|
|
81463
|
+
shouldFocusOnShow.current = false;
|
|
81464
|
+
focusFirstInteractiveElement();
|
|
81465
|
+
}
|
|
81344
81466
|
tooltipProps?.onShow?.();
|
|
81345
|
-
}, [tooltipProps]);
|
|
81467
|
+
}, [tooltipProps, focusFirstInteractiveElement]);
|
|
81346
81468
|
const handleTooltipHide = (0,external_React_.useCallback)(() => {
|
|
81347
81469
|
setIsShown(false);
|
|
81470
|
+
setIsOpenedViaKeyboard(false);
|
|
81348
81471
|
tooltipProps?.onHide?.();
|
|
81349
81472
|
}, [tooltipProps]);
|
|
81350
81473
|
const mergedTooltipProps = {
|
|
@@ -81355,14 +81478,8 @@ const InfoIcon = ({ dataHook, content, size = 'medium', tooltipProps, className,
|
|
|
81355
81478
|
? { 'aria-labelledby': propAriaLabelledBy }
|
|
81356
81479
|
: { 'aria-describedby': propAriaDescribedBy || tooltipId }),
|
|
81357
81480
|
};
|
|
81358
|
-
const focusFirstInteractiveElement = (0,external_React_.useCallback)(() => {
|
|
81359
|
-
requestAnimationFrame(() => {
|
|
81360
|
-
const tooltipContent = tooltipRef.current?.getContentElement();
|
|
81361
|
-
const focusable = tooltipContent?.querySelector(FOCUSABLE_SELECTOR);
|
|
81362
|
-
focusable?.focus({ preventScroll: true });
|
|
81363
|
-
});
|
|
81364
|
-
}, []);
|
|
81365
81481
|
const closeAndRefocus = (0,external_React_.useCallback)(() => {
|
|
81482
|
+
shouldFocusOnShow.current = false;
|
|
81366
81483
|
tooltipRef.current?.close();
|
|
81367
81484
|
setIsOpenedViaKeyboard(false);
|
|
81368
81485
|
triggerRef.current?.focus();
|
|
@@ -81379,37 +81496,20 @@ const InfoIcon = ({ dataHook, content, size = 'medium', tooltipProps, className,
|
|
|
81379
81496
|
setIsOpenedViaKeyboard(false);
|
|
81380
81497
|
}
|
|
81381
81498
|
}, [isOpenedViaKeyboard]);
|
|
81382
|
-
const handlePointerDown = () => {
|
|
81383
|
-
wasShownOnPointerDown.current = isShown;
|
|
81384
|
-
pointerDownSeen.current = true;
|
|
81385
|
-
};
|
|
81386
|
-
const handleClick = () => {
|
|
81387
|
-
if (tooltipProps?.disabled) {
|
|
81388
|
-
return;
|
|
81389
|
-
}
|
|
81390
|
-
const wasShown = pointerDownSeen.current
|
|
81391
|
-
? wasShownOnPointerDown.current
|
|
81392
|
-
: isShown;
|
|
81393
|
-
pointerDownSeen.current = false;
|
|
81394
|
-
if (wasShown) {
|
|
81395
|
-
if (isShown) {
|
|
81396
|
-
tooltipRef.current?.close();
|
|
81397
|
-
setIsOpenedViaKeyboard(false);
|
|
81398
|
-
}
|
|
81399
|
-
}
|
|
81400
|
-
else if (!isShown) {
|
|
81401
|
-
tooltipRef.current?.open();
|
|
81402
|
-
}
|
|
81403
|
-
};
|
|
81404
81499
|
const handleKeyDown = (event) => {
|
|
81405
81500
|
if (event.key === 'Escape') {
|
|
81406
81501
|
closeAndRefocus();
|
|
81407
81502
|
}
|
|
81408
81503
|
if (event.key === 'Enter') {
|
|
81409
81504
|
event.preventDefault();
|
|
81410
|
-
tooltipRef.current?.open();
|
|
81411
81505
|
setIsOpenedViaKeyboard(true);
|
|
81412
|
-
|
|
81506
|
+
if (isShown) {
|
|
81507
|
+
focusFirstInteractiveElement();
|
|
81508
|
+
}
|
|
81509
|
+
else {
|
|
81510
|
+
shouldFocusOnShow.current = true;
|
|
81511
|
+
tooltipRef.current?.open();
|
|
81512
|
+
}
|
|
81413
81513
|
}
|
|
81414
81514
|
};
|
|
81415
81515
|
// Global escape key handler for when focus is inside the tooltip
|
|
@@ -81451,7 +81551,7 @@ const InfoIcon = ({ dataHook, content, size = 'medium', tooltipProps, className,
|
|
|
81451
81551
|
});
|
|
81452
81552
|
}, [isOpenedViaKeyboard, closeAndRefocus]);
|
|
81453
81553
|
return (external_React_default().createElement("div", { className: InfoIcon_st_css_st(InfoIcon_st_css_classes.root, className), "data-size": size, "data-hook": dataHook, onBlur: handleBlur },
|
|
81454
|
-
external_React_default().createElement(Tooltip, { ...mergedTooltipProps, content: content, dataHook: InfoIcon_constants_dataHooks.tooltip, ref: tooltipRef }, () => (external_React_default().createElement("div", { ref: triggerRef, className: InfoIcon_st_css_st(InfoIcon_st_css_classes.trigger, FocusRing_classes_classes.root({ inset: true })), role: "button", tabIndex: 0, "aria-label": ariaLabel, "aria-haspopup": true, "aria-expanded": isShown, "aria-controls": tooltipId, onKeyDown: handleKeyDown, onFocus: handleTriggerFocus
|
|
81554
|
+
external_React_default().createElement(Tooltip, { ...mergedTooltipProps, content: content, dataHook: InfoIcon_constants_dataHooks.tooltip, ref: tooltipRef }, () => (external_React_default().createElement("div", { ref: triggerRef, className: InfoIcon_st_css_st(InfoIcon_st_css_classes.trigger, FocusRing_classes_classes.root({ inset: true })), role: "button", tabIndex: 0, "aria-label": ariaLabel, "aria-haspopup": true, "aria-expanded": isShown, "aria-controls": tooltipId, onKeyDown: handleKeyDown, onFocus: handleTriggerFocus }, children ?? external_React_default().createElement(Icon, { className: InfoIcon_st_css_classes.icon }))))));
|
|
81455
81555
|
};
|
|
81456
81556
|
InfoIcon.displayName = 'InfoIcon';
|
|
81457
81557
|
|
|
@@ -81497,7 +81597,7 @@ const LABEL_SIZE = {
|
|
|
81497
81597
|
|
|
81498
81598
|
|
|
81499
81599
|
|
|
81500
|
-
var FormField_st_css_namespace_ = "
|
|
81600
|
+
var FormField_st_css_namespace_ = "wds_1_326_0_FormField";
|
|
81501
81601
|
var FormField_st_css_style_ = classesRuntime.bind(null, FormField_st_css_namespace_);
|
|
81502
81602
|
|
|
81503
81603
|
var FormField_st_css_cssStates = statesRuntime.bind(null, FormField_st_css_namespace_);
|
|
@@ -81505,7 +81605,7 @@ var FormField_st_css_style = (/* unused pure expression or super */ null && (For
|
|
|
81505
81605
|
var FormField_st_css_st = FormField_st_css_style_;
|
|
81506
81606
|
|
|
81507
81607
|
var FormField_st_css_namespace = (/* unused pure expression or super */ null && (FormField_st_css_namespace_));
|
|
81508
|
-
var FormField_st_css_classes = {"root":"
|
|
81608
|
+
var FormField_st_css_classes = {"root":"wds_1_326_0_FormField__root","label":"wds_1_326_0_FormField__label","suffix":"wds_1_326_0_FormField__suffix","children":"wds_1_326_0_FormField__children","statusMessage":"wds_1_326_0_FormField__statusMessage","labelRow":"wds_1_326_0_FormField__labelRow","labelRowMain":"wds_1_326_0_FormField__labelRowMain","asterisk":"wds_1_326_0_FormField__asterisk","charCount":"wds_1_326_0_FormField__charCount","infoIcon":"wds_1_326_0_FormField__infoIcon","statusIcon":"wds_1_326_0_FormField__statusIcon"};
|
|
81509
81609
|
var FormField_st_css_keyframes = {};
|
|
81510
81610
|
var FormField_st_css_layers = {};
|
|
81511
81611
|
var FormField_st_css_containers = {};
|
|
@@ -81750,36 +81850,22 @@ var clamp_default = /*#__PURE__*/__webpack_require__.n(lodash_clamp);
|
|
|
81750
81850
|
// EXTERNAL MODULE: ../../../node_modules/lodash/isNaN.js
|
|
81751
81851
|
var lodash_isNaN = __webpack_require__(3859);
|
|
81752
81852
|
var isNaN_default = /*#__PURE__*/__webpack_require__.n(lodash_isNaN);
|
|
81753
|
-
;// ../../../node_modules/@wix/design-system/dist/esm/InputArea/InputArea.
|
|
81754
|
-
|
|
81755
|
-
|
|
81756
|
-
|
|
81757
|
-
|
|
81758
|
-
|
|
81759
|
-
|
|
81760
|
-
|
|
81761
|
-
|
|
81762
|
-
|
|
81763
|
-
|
|
81764
|
-
var InputArea_st_css_namespace_ = "wds_1_323_0_InputArea";
|
|
81765
|
-
var InputArea_st_css_style_ = classesRuntime.bind(null, InputArea_st_css_namespace_);
|
|
81766
|
-
|
|
81767
|
-
var InputArea_st_css_cssStates = statesRuntime.bind(null, InputArea_st_css_namespace_);
|
|
81768
|
-
var InputArea_st_css_style = (/* unused pure expression or super */ null && (InputArea_st_css_style_));
|
|
81769
|
-
var InputArea_st_css_st = InputArea_st_css_style_;
|
|
81770
|
-
|
|
81771
|
-
var InputArea_st_css_namespace = (/* unused pure expression or super */ null && (InputArea_st_css_namespace_));
|
|
81772
|
-
var InputArea_st_css_classes = {"root":"wds_1_323_0_InputArea__root","text-small-thin":"wds_1_323_0_StylableTypography__text-small-thin","text-medium-thin":"wds_1_323_0_StylableTypography__text-medium-thin","defaultScrollBar":"wds_1_323_0_defaultscrollbar__defaultScrollBar","input-inner-shadow-mixin":"wds_1_323_0_Input__input-inner-shadow-mixin","inputArea":"wds_1_323_0_InputArea__inputArea","counter":"wds_1_323_0_InputArea__counter","status":"wds_1_323_0_InputArea__status","disabled":"wds_1_323_0_InputArea__disabled","readOnly":"wds_1_323_0_InputArea__readOnly"};
|
|
81773
|
-
var InputArea_st_css_keyframes = {};
|
|
81774
|
-
var InputArea_st_css_layers = {};
|
|
81775
|
-
var InputArea_st_css_containers = {};
|
|
81776
|
-
var InputArea_st_css_stVars = {};
|
|
81777
|
-
var InputArea_st_css_vars = {"wds-border-radius-full":"--wds-border-radius-full","wds-color-border-destructive-secondary-active":"--wds-color-border-destructive-secondary-active","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-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-standard-primary":"--wds-color-text-standard-primary","wds-font-size-body-small":"--wds-font-size-body-small","wds-input-area-border-radius-default-medium":"--wds-input-area-border-radius-default-medium","wds-input-area-padding-left-medium":"--wds-input-area-padding-left-medium","wds-input-area-padding-left-small":"--wds-input-area-padding-left-small","wds-input-area-padding-right-medium":"--wds-input-area-padding-right-medium","wds-input-area-padding-right-small":"--wds-input-area-padding-right-small","wds-input-area-padding-vertical-medium":"--wds-input-area-padding-vertical-medium","wds-input-area-padding-vertical-small":"--wds-input-area-padding-vertical-small","wds-input-background-fill-default":"--wds-input-background-fill-default","wds-input-background-fill-hover":"--wds-input-background-fill-hover","wds-input-border-color":"--wds-input-border-color","wds-input-border-color-hover":"--wds-input-border-color-hover","wds-input-size-medium":"--wds-input-size-medium","wds-input-size-small":"--wds-input-size-small","wds-input-value-font-line-height-medium":"--wds-input-value-font-line-height-medium","wds-input-value-font-line-height-small":"--wds-input-value-font-line-height-small","wds-input-value-font-size-medium":"--wds-input-value-font-size-medium","wds-input-value-font-size-small":"--wds-input-value-font-size-small","wds-space-100":"--wds-space-100","wds-color-text-highlight":"--wds-color-text-highlight","wds-color-black-100-transparent-30":"--wds-color-black-100-transparent-30","border-color":"--wds_1_323_0_InputArea-border-color","border-color-destructive":"--wds_1_323_0_InputArea-border-color-destructive","border-color-warning":"--wds_1_323_0_InputArea-border-color-warning","border-color-disabled":"--wds_1_323_0_InputArea-border-color-disabled","wds-input-area-height-small-adjusted":"--wds_1_323_0_InputArea-wds-input-area-height-small-adjusted","wds-input-area-height-medium-adjusted":"--wds_1_323_0_InputArea-wds-input-area-height-medium-adjusted","input-background":"--wds_1_323_0_InputArea-input-background"};
|
|
81778
|
-
|
|
81779
|
-
|
|
81780
|
-
|
|
81781
|
-
|
|
81853
|
+
;// ../../../node_modules/@wix/design-system/dist/esm/InputArea/InputArea.classes.js
|
|
81782
81854
|
|
|
81855
|
+
const INPUT_AREA_BACKGROUND_PROPERTY = '--wds-internal-input-area-background';
|
|
81856
|
+
const InputArea_classes_classes = defineClassNames('input-area', {
|
|
81857
|
+
root: {
|
|
81858
|
+
states: ['disabled', 'resizable', 'hasFocus', 'forceHover', 'readOnly'],
|
|
81859
|
+
variants: {
|
|
81860
|
+
size: ['small', 'medium'],
|
|
81861
|
+
status: ['error', 'warning', 'loading'],
|
|
81862
|
+
},
|
|
81863
|
+
},
|
|
81864
|
+
inputArea: {},
|
|
81865
|
+
counter: {},
|
|
81866
|
+
status: {},
|
|
81867
|
+
});
|
|
81868
|
+
//# sourceMappingURL=InputArea.classes.js.map
|
|
81783
81869
|
;// ../../../node_modules/@wix/design-system/dist/esm/InputArea/constants.js
|
|
81784
81870
|
const InputArea_constants_dataHooks = {
|
|
81785
81871
|
tooltip: 'inputArea-tooltip',
|
|
@@ -81813,8 +81899,9 @@ const InputArea_semanticClassNames_semanticClassNames = {
|
|
|
81813
81899
|
|
|
81814
81900
|
|
|
81815
81901
|
|
|
81902
|
+
|
|
81816
81903
|
/**
|
|
81817
|
-
* General inputArea container
|
|
81904
|
+
* General inputArea container.
|
|
81818
81905
|
*/
|
|
81819
81906
|
class InputAreaComponent extends (external_React_default()).PureComponent {
|
|
81820
81907
|
constructor() {
|
|
@@ -81823,6 +81910,7 @@ class InputAreaComponent extends (external_React_default()).PureComponent {
|
|
|
81823
81910
|
this._computedStyle = null;
|
|
81824
81911
|
this.state = {
|
|
81825
81912
|
focus: false,
|
|
81913
|
+
focusVisible: false,
|
|
81826
81914
|
counter: (this.props.value || this.props.defaultValue || '').length,
|
|
81827
81915
|
computedRows: this.props.minRowsAutoGrow,
|
|
81828
81916
|
};
|
|
@@ -81860,7 +81948,7 @@ class InputAreaComponent extends (external_React_default()).PureComponent {
|
|
|
81860
81948
|
});
|
|
81861
81949
|
};
|
|
81862
81950
|
this._onFocus = (e) => {
|
|
81863
|
-
this.setState({ focus: true });
|
|
81951
|
+
this.setState({ focus: true, focusVisible: shouldShowFocusRing() });
|
|
81864
81952
|
this.props.onFocus && this.props.onFocus(e);
|
|
81865
81953
|
if (this.props.autoSelect) {
|
|
81866
81954
|
// Set timeout is needed here since onFocus is called before react
|
|
@@ -81987,7 +82075,7 @@ class InputAreaComponent extends (external_React_default()).PureComponent {
|
|
|
81987
82075
|
.map(key => (ariaAttribute['aria-' + key.substr(4).toLowerCase()] = this.props[key]));
|
|
81988
82076
|
return (external_React_default().createElement(StatusContext.Consumer, null, statusContext => {
|
|
81989
82077
|
const finalStatus = getStatusFromContext(statusContext, status);
|
|
81990
|
-
return (external_React_default().createElement("div", { "data-hook": dataHook, className:
|
|
82078
|
+
return (external_React_default().createElement("div", { "data-hook": dataHook, className: InputArea_classes_classes.root({
|
|
81991
82079
|
disabled,
|
|
81992
82080
|
size,
|
|
81993
82081
|
status: finalStatus,
|
|
@@ -81995,13 +82083,14 @@ class InputAreaComponent extends (external_React_default()).PureComponent {
|
|
|
81995
82083
|
forceHover,
|
|
81996
82084
|
resizable,
|
|
81997
82085
|
readOnly,
|
|
81998
|
-
}, className), style: { [
|
|
81999
|
-
external_React_default().createElement("div", { className:
|
|
82086
|
+
}, className), style: { [INPUT_AREA_BACKGROUND_PROPERTY]: backgroundColor }, ...this._getDataAttr({ statusContext }) },
|
|
82087
|
+
external_React_default().createElement("div", { className: InputArea_classes_classes.inputArea({}, InputArea_semanticClassNames_semanticClassNames.inputContainer,
|
|
82000
82088
|
/* forced (not `within`): ring follows the textarea's own
|
|
82001
82089
|
focus only — the status indicator is focusable too */
|
|
82002
82090
|
FocusRing_classes_classes.root({
|
|
82003
82091
|
pseudo: true,
|
|
82004
|
-
forced: forceFocus ||
|
|
82092
|
+
forced: forceFocus ||
|
|
82093
|
+
(this.state.focus && this.state.focusVisible),
|
|
82005
82094
|
})) },
|
|
82006
82095
|
typeof children === 'function' ? (children({
|
|
82007
82096
|
className: '',
|
|
@@ -82015,11 +82104,11 @@ class InputAreaComponent extends (external_React_default()).PureComponent {
|
|
|
82015
82104
|
})) : (external_React_default().createElement("textarea", { rows: rowsAttr, minLength: minLength, maxLength: maxLength, ref: ref => {
|
|
82016
82105
|
this.textArea = ref;
|
|
82017
82106
|
}, 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, onCompositionStart: onCompositionStart, onCompositionEnd: onCompositionEnd, dir: dir })),
|
|
82018
|
-
hasCounter && maxLength && (external_React_default().createElement("span", { className:
|
|
82107
|
+
hasCounter && maxLength && (external_React_default().createElement("span", { className: InputArea_classes_classes.counter(), "data-hook": "counter" },
|
|
82019
82108
|
this.state.counter,
|
|
82020
82109
|
"/",
|
|
82021
82110
|
maxLength))),
|
|
82022
|
-
external_React_default().createElement("div", { className:
|
|
82111
|
+
external_React_default().createElement("div", { className: InputArea_classes_classes.status() }, (!!status || finalStatus === STATUS.LOADING) && !disabled && (external_React_default().createElement(StatusIndicator, { dataHook: InputArea_constants_dataHooks.tooltip, status: finalStatus ?? undefined, message: statusMessage, tooltipProps: {
|
|
82023
82112
|
placement: tooltipPlacement,
|
|
82024
82113
|
} })))));
|
|
82025
82114
|
}));
|