@hortiview/shared-components 2.8.6 → 2.8.7
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/CHANGELOG.md +6 -0
- package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
- package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
- package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
- package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
- package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
- package/dist/_Map-BmafU0dj.js +113 -0
- package/dist/components/AlertBanner/AlertBanner.js +4 -4
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/AlertBanner/LinkBanner.js +3 -3
- package/dist/components/BaseView/BaseView.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.js +1 -1
- package/dist/components/ChipCard/ChipCard.js +499 -390
- package/dist/components/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/DeleteModal/DeleteModal.js +5 -5
- package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.js +3 -3
- package/dist/components/EmptyView/EmptyView.js +161 -125
- package/dist/components/Filter/Filter.js +11 -11
- package/dist/components/Filter/Filter.test.js +51 -35
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +2 -2
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
- package/dist/components/FormComponents/FormText/FormText.js +2 -2
- package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
- package/dist/components/GenericTable/GenericTable.js +8246 -7153
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
- package/dist/components/HashTabView/HashTabView.js +552 -541
- package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
- package/dist/components/Iconify/Iconify.js +2 -2
- package/dist/components/InfoCard/InfoCard.js +4 -4
- package/dist/components/InfoGroup/InfoGroup.js +3 -3
- package/dist/components/ListArea/ListArea.js +16 -16
- package/dist/components/ListArea/ListArea.test.js +20 -20
- package/dist/components/ListArea/ListAreaService.js +6 -6
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
- package/dist/components/Modal/Modal.js +305 -312
- package/dist/components/ModulePadding/ModulePadding.js +8 -8
- package/dist/components/OfflineView/OfflineView.js +4 -4
- package/dist/components/OfflineView/OfflineView.test.js +1 -1
- package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
- package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/StepperButton.js +1 -1
- package/dist/components/Stepper/components/StepperHeader.js +2 -2
- package/dist/components/Stepper/components/StepperIndicator.js +1 -1
- package/dist/defineProperty-CmuOyxyf.js +318 -0
- package/dist/es.string.iterator-DrqCBub-.js +581 -0
- package/dist/find-B-dm7n_F.js +88 -0
- package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
- package/dist/get-u1nFMLdT.js +377 -0
- package/dist/hooks/useHelperText.js +1 -1
- package/dist/identity-BIZAN_pL.js +213 -0
- package/dist/includes-Bt-Stz_B.js +110 -0
- package/dist/index-Cpb-8cAN.js +2465 -0
- package/dist/index.es-0QJC9VS2.js +325 -0
- package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
- package/dist/index.es-B6ZgiW2s.js +3790 -0
- package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
- package/dist/index.es-BRtk0Q33.js +42 -0
- package/dist/index.es-BXj90wb_.js +402 -0
- package/dist/index.es-Bg8hxXM8.js +912 -0
- package/dist/index.es-Bgjh6euR.js +292 -0
- package/dist/index.es-Bo1Rhtyb.js +80 -0
- package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
- package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
- package/dist/index.es-CmF6xAUJ.js +48 -0
- package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
- package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
- package/dist/index.es-DDYCugj-.js +166 -0
- package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
- package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
- package/dist/index.es-DeF-y7fd.js +122 -0
- package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
- package/dist/index.es-DqSY-ePE.js +4923 -0
- package/dist/index.es-DwzB1d7_.js +1061 -0
- package/dist/index.es-IXyb5F6n.js +457 -0
- package/dist/index.es-t7hFwQSs.js +67 -0
- package/dist/isArray-DN9s620O.js +83 -0
- package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
- package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
- package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
- package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
- package/dist/keyboard-B-WUULl-.js +173 -0
- package/dist/main.js +2 -2
- package/dist/map-Dbvlv_6y.js +707 -0
- package/dist/omit-uTAyrUTm.js +645 -0
- package/dist/orderBy-BXxEvUw6.js +571 -0
- package/dist/parse-int-qVAoFbOL.js +75 -0
- package/dist/services/UtilService.js +7 -7
- package/dist/slicedToArray-BWk2gTCn.js +436 -0
- package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
- package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
- package/package.json +3 -3
- package/dist/_baseIsEqual-Df2URKWm.js +0 -240
- package/dist/_getAllKeys-BQWmkEw5.js +0 -86
- package/dist/_getTag-BkGSRa18.js +0 -79
- package/dist/_setToString-B6E13pDg.js +0 -580
- package/dist/get-DQr2KQKm.js +0 -113
- package/dist/index-D5m--65X.js +0 -1491
- package/dist/index.es-8MVlRCi4.js +0 -1066
- package/dist/index.es-BbaCXS9-.js +0 -45
- package/dist/index.es-BikIx4uw.js +0 -3242
- package/dist/index.es-CDMu_yu0.js +0 -954
- package/dist/index.es-ChSlnpSq.js +0 -309
- package/dist/index.es-D66OkZJH.js +0 -4853
- package/dist/index.es-DFFyENnI.js +0 -63
- package/dist/index.es-DTMwaJ6B.js +0 -56
- package/dist/index.es-DgTJmbgD.js +0 -268
- package/dist/index.es-DmsyeHLO.js +0 -306
- package/dist/index.es-Dw1eih7R.js +0 -159
- package/dist/index.es-eKuwB1ll.js +0 -54
- package/dist/index.es-qxTN-Bb2.js +0 -107
- package/dist/index.es-xnSvM9b9.js +0 -444
- package/dist/isArray-DDZrq40X.js +0 -456
- package/dist/keyboard-Bpt0aBqQ.js +0 -107
- package/dist/omit-BN3qeeaj.js +0 -364
- package/dist/orderBy-D4LvP9Az.js +0 -316
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import d, { forwardRef as
|
|
3
|
-
import { b as
|
|
4
|
-
import { M as
|
|
5
|
-
import { e as
|
|
6
|
-
import {
|
|
7
|
-
import { P as
|
|
8
|
-
import {
|
|
1
|
+
import { _ as w, a as P, c as H, P as i, b as Z, d as Ae } from "./index-Cpb-8cAN.js";
|
|
2
|
+
import d, { forwardRef as M, useRef as N, useImperativeHandle as B, useEffect as A, useState as se, useMemo as le, useCallback as k, Fragment as ee } from "react";
|
|
3
|
+
import { b as j, c as S } from "./tslib.es6-BDCynO9F.js";
|
|
4
|
+
import { M as ce, a as de } from "./component-neHBNHRu.js";
|
|
5
|
+
import { e as $e } from "./component-DsB0poTj.js";
|
|
6
|
+
import { _ as De, a as te, b as Re, c as ke, d as ue, e as ne, f as xe } from "./defineProperty-CmuOyxyf.js";
|
|
7
|
+
import { P as Fe, _ as oe } from "./index.es-t7hFwQSs.js";
|
|
8
|
+
import { _ as pe } from "./slicedToArray-BWk2gTCn.js";
|
|
9
|
+
import { e as fe, u as He, _ as re, i as Ie, c as Se } from "./index.es-BXj90wb_.js";
|
|
10
|
+
import { c as we } from "./index.es-DwzB1d7_.js";
|
|
9
11
|
/**
|
|
10
12
|
* @license
|
|
11
13
|
* Copyright 2016 Google Inc.
|
|
@@ -28,7 +30,7 @@ import { c as ie } from "./index.es-8MVlRCi4.js";
|
|
|
28
30
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
29
31
|
* THE SOFTWARE.
|
|
30
32
|
*/
|
|
31
|
-
var
|
|
33
|
+
var Me = {
|
|
32
34
|
LABEL_FLOAT_ABOVE: "mdc-floating-label--float-above",
|
|
33
35
|
LABEL_REQUIRED: "mdc-floating-label--required",
|
|
34
36
|
LABEL_SHAKE: "mdc-floating-label--shake",
|
|
@@ -56,23 +58,23 @@ var se = {
|
|
|
56
58
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
57
59
|
* THE SOFTWARE.
|
|
58
60
|
*/
|
|
59
|
-
var
|
|
61
|
+
var he = (
|
|
60
62
|
/** @class */
|
|
61
|
-
function(
|
|
62
|
-
|
|
63
|
-
function t
|
|
64
|
-
var o =
|
|
63
|
+
function(n) {
|
|
64
|
+
j(e, n);
|
|
65
|
+
function e(t) {
|
|
66
|
+
var o = n.call(this, S(S({}, e.defaultAdapter), t)) || this;
|
|
65
67
|
return o.shakeAnimationEndHandler_ = function() {
|
|
66
68
|
return o.handleShakeAnimationEnd_();
|
|
67
69
|
}, o;
|
|
68
70
|
}
|
|
69
|
-
return Object.defineProperty(
|
|
71
|
+
return Object.defineProperty(e, "cssClasses", {
|
|
70
72
|
get: function() {
|
|
71
|
-
return
|
|
73
|
+
return Me;
|
|
72
74
|
},
|
|
73
75
|
enumerable: !1,
|
|
74
76
|
configurable: !0
|
|
75
|
-
}), Object.defineProperty(
|
|
77
|
+
}), Object.defineProperty(e, "defaultAdapter", {
|
|
76
78
|
/**
|
|
77
79
|
* See {@link MDCFloatingLabelAdapter} for typing information on parameters and return types.
|
|
78
80
|
*/
|
|
@@ -93,26 +95,26 @@ var G = (
|
|
|
93
95
|
},
|
|
94
96
|
enumerable: !1,
|
|
95
97
|
configurable: !0
|
|
96
|
-
}),
|
|
98
|
+
}), e.prototype.init = function() {
|
|
97
99
|
this.adapter.registerInteractionHandler("animationend", this.shakeAnimationEndHandler_);
|
|
98
|
-
},
|
|
100
|
+
}, e.prototype.destroy = function() {
|
|
99
101
|
this.adapter.deregisterInteractionHandler("animationend", this.shakeAnimationEndHandler_);
|
|
100
|
-
},
|
|
102
|
+
}, e.prototype.getWidth = function() {
|
|
101
103
|
return this.adapter.getWidth();
|
|
102
|
-
},
|
|
103
|
-
var o =
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
var o =
|
|
107
|
-
|
|
108
|
-
},
|
|
109
|
-
var o =
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
var
|
|
113
|
-
this.adapter.removeClass(
|
|
114
|
-
},
|
|
115
|
-
}(
|
|
104
|
+
}, e.prototype.shake = function(t) {
|
|
105
|
+
var o = e.cssClasses.LABEL_SHAKE;
|
|
106
|
+
t ? this.adapter.addClass(o) : this.adapter.removeClass(o);
|
|
107
|
+
}, e.prototype.float = function(t) {
|
|
108
|
+
var o = e.cssClasses, r = o.LABEL_FLOAT_ABOVE, a = o.LABEL_SHAKE;
|
|
109
|
+
t ? this.adapter.addClass(r) : (this.adapter.removeClass(r), this.adapter.removeClass(a));
|
|
110
|
+
}, e.prototype.setRequired = function(t) {
|
|
111
|
+
var o = e.cssClasses.LABEL_REQUIRED;
|
|
112
|
+
t ? this.adapter.addClass(o) : this.adapter.removeClass(o);
|
|
113
|
+
}, e.prototype.handleShakeAnimationEnd_ = function() {
|
|
114
|
+
var t = e.cssClasses.LABEL_SHAKE;
|
|
115
|
+
this.adapter.removeClass(t);
|
|
116
|
+
}, e;
|
|
117
|
+
}(ce)
|
|
116
118
|
);
|
|
117
119
|
/**
|
|
118
120
|
* @license
|
|
@@ -136,44 +138,44 @@ var G = (
|
|
|
136
138
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
137
139
|
* THE SOFTWARE.
|
|
138
140
|
*/
|
|
139
|
-
var
|
|
141
|
+
var Be = (
|
|
140
142
|
/** @class */
|
|
141
|
-
function(
|
|
142
|
-
|
|
143
|
-
function
|
|
144
|
-
return
|
|
143
|
+
function(n) {
|
|
144
|
+
j(e, n);
|
|
145
|
+
function e() {
|
|
146
|
+
return n !== null && n.apply(this, arguments) || this;
|
|
145
147
|
}
|
|
146
|
-
return
|
|
147
|
-
return new t
|
|
148
|
-
},
|
|
149
|
-
this.foundation.shake(
|
|
150
|
-
},
|
|
151
|
-
this.foundation.float(
|
|
152
|
-
},
|
|
153
|
-
this.foundation.setRequired(
|
|
154
|
-
},
|
|
148
|
+
return e.attachTo = function(t) {
|
|
149
|
+
return new e(t);
|
|
150
|
+
}, e.prototype.shake = function(t) {
|
|
151
|
+
this.foundation.shake(t);
|
|
152
|
+
}, e.prototype.float = function(t) {
|
|
153
|
+
this.foundation.float(t);
|
|
154
|
+
}, e.prototype.setRequired = function(t) {
|
|
155
|
+
this.foundation.setRequired(t);
|
|
156
|
+
}, e.prototype.getWidth = function() {
|
|
155
157
|
return this.foundation.getWidth();
|
|
156
|
-
},
|
|
157
|
-
var
|
|
158
|
+
}, e.prototype.getDefaultFoundation = function() {
|
|
159
|
+
var t = this, o = {
|
|
158
160
|
addClass: function(r) {
|
|
159
|
-
return
|
|
161
|
+
return t.root.classList.add(r);
|
|
160
162
|
},
|
|
161
163
|
removeClass: function(r) {
|
|
162
|
-
return
|
|
164
|
+
return t.root.classList.remove(r);
|
|
163
165
|
},
|
|
164
166
|
getWidth: function() {
|
|
165
|
-
return
|
|
167
|
+
return $e(t.root);
|
|
166
168
|
},
|
|
167
|
-
registerInteractionHandler: function(r,
|
|
168
|
-
return
|
|
169
|
+
registerInteractionHandler: function(r, a) {
|
|
170
|
+
return t.listen(r, a);
|
|
169
171
|
},
|
|
170
|
-
deregisterInteractionHandler: function(r,
|
|
171
|
-
return
|
|
172
|
+
deregisterInteractionHandler: function(r, a) {
|
|
173
|
+
return t.unlisten(r, a);
|
|
172
174
|
}
|
|
173
175
|
};
|
|
174
|
-
return new
|
|
175
|
-
},
|
|
176
|
-
}(
|
|
176
|
+
return new he(o);
|
|
177
|
+
}, e;
|
|
178
|
+
}(de)
|
|
177
179
|
);
|
|
178
180
|
/**
|
|
179
181
|
* @license
|
|
@@ -197,12 +199,12 @@ var ae = (
|
|
|
197
199
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
198
200
|
* THE SOFTWARE.
|
|
199
201
|
*/
|
|
200
|
-
var
|
|
202
|
+
var me = {
|
|
201
203
|
NOTCH_ELEMENT_SELECTOR: ".mdc-notched-outline__notch"
|
|
202
|
-
},
|
|
204
|
+
}, ie = {
|
|
203
205
|
// This should stay in sync with $mdc-notched-outline-padding * 2.
|
|
204
206
|
NOTCH_ELEMENT_PADDING: 8
|
|
205
|
-
},
|
|
207
|
+
}, q = {
|
|
206
208
|
NO_LABEL: "mdc-notched-outline--no-label",
|
|
207
209
|
OUTLINE_NOTCHED: "mdc-notched-outline--notched",
|
|
208
210
|
OUTLINE_UPGRADED: "mdc-notched-outline--upgraded"
|
|
@@ -229,32 +231,32 @@ var Q = {
|
|
|
229
231
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
230
232
|
* THE SOFTWARE.
|
|
231
233
|
*/
|
|
232
|
-
var
|
|
234
|
+
var je = (
|
|
233
235
|
/** @class */
|
|
234
|
-
function(
|
|
235
|
-
|
|
236
|
-
function t
|
|
237
|
-
return
|
|
236
|
+
function(n) {
|
|
237
|
+
j(e, n);
|
|
238
|
+
function e(t) {
|
|
239
|
+
return n.call(this, S(S({}, e.defaultAdapter), t)) || this;
|
|
238
240
|
}
|
|
239
|
-
return Object.defineProperty(
|
|
241
|
+
return Object.defineProperty(e, "strings", {
|
|
240
242
|
get: function() {
|
|
241
|
-
return
|
|
243
|
+
return me;
|
|
242
244
|
},
|
|
243
245
|
enumerable: !1,
|
|
244
246
|
configurable: !0
|
|
245
|
-
}), Object.defineProperty(
|
|
247
|
+
}), Object.defineProperty(e, "cssClasses", {
|
|
246
248
|
get: function() {
|
|
247
|
-
return
|
|
249
|
+
return q;
|
|
248
250
|
},
|
|
249
251
|
enumerable: !1,
|
|
250
252
|
configurable: !0
|
|
251
|
-
}), Object.defineProperty(
|
|
253
|
+
}), Object.defineProperty(e, "numbers", {
|
|
252
254
|
get: function() {
|
|
253
|
-
return
|
|
255
|
+
return ie;
|
|
254
256
|
},
|
|
255
257
|
enumerable: !1,
|
|
256
258
|
configurable: !0
|
|
257
|
-
}), Object.defineProperty(
|
|
259
|
+
}), Object.defineProperty(e, "defaultAdapter", {
|
|
258
260
|
/**
|
|
259
261
|
* See {@link MDCNotchedOutlineAdapter} for typing information on parameters and return types.
|
|
260
262
|
*/
|
|
@@ -272,14 +274,14 @@ var le = (
|
|
|
272
274
|
},
|
|
273
275
|
enumerable: !1,
|
|
274
276
|
configurable: !0
|
|
275
|
-
}),
|
|
276
|
-
var o =
|
|
277
|
-
|
|
278
|
-
},
|
|
279
|
-
var
|
|
280
|
-
this.adapter.removeClass(
|
|
281
|
-
},
|
|
282
|
-
}(
|
|
277
|
+
}), e.prototype.notch = function(t) {
|
|
278
|
+
var o = e.cssClasses.OUTLINE_NOTCHED;
|
|
279
|
+
t > 0 && (t += ie.NOTCH_ELEMENT_PADDING), this.adapter.setNotchWidthProperty(t), this.adapter.addClass(o);
|
|
280
|
+
}, e.prototype.closeNotch = function() {
|
|
281
|
+
var t = e.cssClasses.OUTLINE_NOTCHED;
|
|
282
|
+
this.adapter.removeClass(t), this.adapter.removeNotchWidthProperty();
|
|
283
|
+
}, e;
|
|
284
|
+
}(ce)
|
|
283
285
|
);
|
|
284
286
|
/**
|
|
285
287
|
* @license
|
|
@@ -303,327 +305,334 @@ var le = (
|
|
|
303
305
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
304
306
|
* THE SOFTWARE.
|
|
305
307
|
*/
|
|
306
|
-
var
|
|
308
|
+
var We = (
|
|
307
309
|
/** @class */
|
|
308
|
-
function(
|
|
309
|
-
|
|
310
|
-
function
|
|
311
|
-
return
|
|
310
|
+
function(n) {
|
|
311
|
+
j(e, n);
|
|
312
|
+
function e() {
|
|
313
|
+
return n !== null && n.apply(this, arguments) || this;
|
|
312
314
|
}
|
|
313
|
-
return
|
|
314
|
-
return new t
|
|
315
|
-
},
|
|
316
|
-
this.notchElement_ = this.root.querySelector(
|
|
317
|
-
var
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
})) : this.root.classList.add(
|
|
321
|
-
},
|
|
322
|
-
this.foundation.notch(
|
|
323
|
-
},
|
|
315
|
+
return e.attachTo = function(t) {
|
|
316
|
+
return new e(t);
|
|
317
|
+
}, e.prototype.initialSyncWithDOM = function() {
|
|
318
|
+
this.notchElement_ = this.root.querySelector(me.NOTCH_ELEMENT_SELECTOR);
|
|
319
|
+
var t = this.root.querySelector("." + he.cssClasses.ROOT);
|
|
320
|
+
t ? (t.style.transitionDuration = "0s", this.root.classList.add(q.OUTLINE_UPGRADED), requestAnimationFrame(function() {
|
|
321
|
+
t.style.transitionDuration = "";
|
|
322
|
+
})) : this.root.classList.add(q.NO_LABEL);
|
|
323
|
+
}, e.prototype.notch = function(t) {
|
|
324
|
+
this.foundation.notch(t);
|
|
325
|
+
}, e.prototype.closeNotch = function() {
|
|
324
326
|
this.foundation.closeNotch();
|
|
325
|
-
},
|
|
326
|
-
var
|
|
327
|
+
}, e.prototype.getDefaultFoundation = function() {
|
|
328
|
+
var t = this, o = {
|
|
327
329
|
addClass: function(r) {
|
|
328
|
-
return
|
|
330
|
+
return t.root.classList.add(r);
|
|
329
331
|
},
|
|
330
332
|
removeClass: function(r) {
|
|
331
|
-
return
|
|
333
|
+
return t.root.classList.remove(r);
|
|
332
334
|
},
|
|
333
335
|
setNotchWidthProperty: function(r) {
|
|
334
|
-
return
|
|
336
|
+
return t.notchElement_.style.setProperty("width", r + "px");
|
|
335
337
|
},
|
|
336
338
|
removeNotchWidthProperty: function() {
|
|
337
|
-
return
|
|
339
|
+
return t.notchElement_.style.removeProperty("width");
|
|
338
340
|
}
|
|
339
341
|
};
|
|
340
|
-
return new
|
|
341
|
-
},
|
|
342
|
-
}(
|
|
343
|
-
)
|
|
344
|
-
const de = {
|
|
342
|
+
return new je(o);
|
|
343
|
+
}, e;
|
|
344
|
+
}(de)
|
|
345
|
+
), Ue = {
|
|
345
346
|
/**
|
|
346
347
|
* Content to be rendered inside the label. Expects a string, though accepts any valid markup.
|
|
347
348
|
*
|
|
348
349
|
* Defaults to **null**.
|
|
349
350
|
*/
|
|
350
|
-
children:
|
|
351
|
+
children: i.node.isRequired,
|
|
351
352
|
/**
|
|
352
353
|
* The css class name to be passed through to the component markup.
|
|
353
354
|
*
|
|
354
355
|
* Defaults to **undefined**.
|
|
355
356
|
*/
|
|
356
|
-
className:
|
|
357
|
+
className: i.string,
|
|
357
358
|
/**
|
|
358
359
|
* The label will appear in the floating state.
|
|
359
360
|
*
|
|
360
361
|
* Defaults to **false**.
|
|
361
362
|
*/
|
|
362
|
-
float:
|
|
363
|
+
float: i.bool,
|
|
363
364
|
/**
|
|
364
365
|
* The id of the component to trigger on active
|
|
365
366
|
*
|
|
366
367
|
* Defaults to **empty string**.
|
|
367
368
|
*/
|
|
368
|
-
htmlFor:
|
|
369
|
+
htmlFor: i.string,
|
|
369
370
|
/**
|
|
370
371
|
* The label will shake briefly when set.
|
|
371
372
|
*
|
|
372
373
|
* Defaults to **false**.
|
|
373
374
|
*/
|
|
374
|
-
shake:
|
|
375
|
-
},
|
|
375
|
+
shake: i.bool
|
|
376
|
+
}, qe = {
|
|
376
377
|
children: null,
|
|
377
|
-
className: void 0
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
p.current.destroy();
|
|
393
|
-
})), N(() => {
|
|
394
|
-
p.current.float(s);
|
|
395
|
-
}, [s]), /* @__PURE__ */ d.createElement("label", b({
|
|
396
|
-
ref: v,
|
|
397
|
-
htmlFor: o,
|
|
398
|
-
className: C("lmnt", "mdc-floating-label", s && "mdc-floating-label--float-above", r && "mdc-floating-label--shake", h)
|
|
378
|
+
className: void 0
|
|
379
|
+
}, Ke = ["children", "htmlFor", "shake", "float", "className", "style"], U = qe, ve = /* @__PURE__ */ M(function(n, e) {
|
|
380
|
+
var t = n.children, o = t === void 0 ? U.children : t, r = n.htmlFor, a = r === void 0 ? "" : r, u = n.shake, _ = u === void 0 ? !1 : u, p = n.float, f = p === void 0 ? !1 : p, h = n.className, y = h === void 0 ? U.className : h, g = n.style, l = g === void 0 ? U.style : g, c = w(n, Ke), E = N(), C = o, b = N();
|
|
381
|
+
return B(e, function() {
|
|
382
|
+
return b.current;
|
|
383
|
+
}, []), A(function() {
|
|
384
|
+
return E.current = Be.attachTo(b.current), function() {
|
|
385
|
+
E.current.destroy();
|
|
386
|
+
};
|
|
387
|
+
}), A(function() {
|
|
388
|
+
E.current.float(f);
|
|
389
|
+
}, [f]), /* @__PURE__ */ d.createElement("label", P({
|
|
390
|
+
ref: b,
|
|
391
|
+
htmlFor: a,
|
|
392
|
+
className: H("lmnt", "mdc-floating-label", f && "mdc-floating-label--float-above", _ && "mdc-floating-label--shake", y)
|
|
399
393
|
}, c, {
|
|
400
394
|
style: l
|
|
401
|
-
}),
|
|
395
|
+
}), C);
|
|
402
396
|
});
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
const pe = {
|
|
397
|
+
ve.displayName = "FloatingLabel";
|
|
398
|
+
ve.propTypes = Ue;
|
|
399
|
+
var Ge = {
|
|
407
400
|
/**
|
|
408
401
|
* Content to be rendered inside the notched outline. Accepts a string.
|
|
409
402
|
*
|
|
410
403
|
* Defaults to **null**.
|
|
411
404
|
*/
|
|
412
|
-
children:
|
|
405
|
+
children: i.node,
|
|
413
406
|
/**
|
|
414
407
|
* The css class name to be passed through to the component markup.
|
|
415
408
|
*
|
|
416
409
|
* Defaults to **undefined**.
|
|
417
410
|
*/
|
|
418
|
-
className:
|
|
411
|
+
className: i.string,
|
|
419
412
|
/**
|
|
420
413
|
* Determines if the notch is opened or closed.
|
|
421
414
|
*
|
|
422
415
|
* Defaults to **undefined**.
|
|
423
416
|
*/
|
|
424
|
-
closed:
|
|
417
|
+
closed: i.bool,
|
|
418
|
+
/**
|
|
419
|
+
* Keep the outline, but prevent the notch (and label from showing up).
|
|
420
|
+
*
|
|
421
|
+
* Defaults to **undefined**.
|
|
422
|
+
*/
|
|
423
|
+
outlineOnly: i.bool,
|
|
425
424
|
/**
|
|
426
425
|
*
|
|
427
426
|
*
|
|
428
427
|
* Defaults to **null**.
|
|
429
428
|
*/
|
|
430
|
-
width:
|
|
431
|
-
},
|
|
429
|
+
width: i.number
|
|
430
|
+
}, Qe = {
|
|
432
431
|
children: null,
|
|
433
432
|
className: void 0,
|
|
434
433
|
closed: void 0,
|
|
434
|
+
outlineOnly: void 0,
|
|
435
435
|
width: null
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
c.current.
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
}, [
|
|
449
|
-
|
|
450
|
-
}, [s]), /* @__PURE__ */ d.createElement("div", b({
|
|
451
|
-
className: C("lmnt", "mdc-notched-outline", o),
|
|
436
|
+
}, Ve = ["closed", "className", "children", "outlineOnly", "width"], x = Qe, ye = /* @__PURE__ */ M(function(n, e) {
|
|
437
|
+
var t = n.closed, o = t === void 0 ? x.closed : t, r = n.className, a = r === void 0 ? x.className : r, u = n.children, _ = u === void 0 ? x.children : u, p = n.outlineOnly, f = p === void 0 ? x.outlineOnly : p, h = n.width, y = h === void 0 ? x.width : h, g = w(n, Ve), l = N(), c = N();
|
|
438
|
+
return B(e, function() {
|
|
439
|
+
return l.current;
|
|
440
|
+
}, []), A(function() {
|
|
441
|
+
return c.current = We.attachTo(l.current), function() {
|
|
442
|
+
c.current.destroy();
|
|
443
|
+
};
|
|
444
|
+
}, []), A(function() {
|
|
445
|
+
o !== void 0 && (o ? c.current.closeNotch() : c.current.notch());
|
|
446
|
+
}, [o]), A(function() {
|
|
447
|
+
y ? c.current.foundation.adapter.setNotchWidthProperty(y) : c.current.foundation.adapter.removeNotchWidthProperty();
|
|
448
|
+
}, [y]), /* @__PURE__ */ d.createElement("div", P({
|
|
449
|
+
className: H("lmnt", "mdc-notched-outline", a),
|
|
452
450
|
ref: l
|
|
453
|
-
},
|
|
451
|
+
}, g), /* @__PURE__ */ d.createElement("div", {
|
|
454
452
|
className: "mdc-notched-outline__leading"
|
|
455
|
-
}), /* @__PURE__ */ d.createElement("div", {
|
|
453
|
+
}), !f && /* @__PURE__ */ d.createElement("div", {
|
|
456
454
|
className: "mdc-notched-outline__notch"
|
|
457
|
-
},
|
|
455
|
+
}, _), /* @__PURE__ */ d.createElement("div", {
|
|
458
456
|
className: "mdc-notched-outline__trailing"
|
|
459
457
|
}));
|
|
460
458
|
});
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
const me = {
|
|
459
|
+
ye.displayName = "NotchedOutline";
|
|
460
|
+
ye.propTypes = Ge;
|
|
461
|
+
var ze = {
|
|
465
462
|
/**
|
|
466
463
|
* Accepts any valid markup. This will be rendered before any value set with the `text` prop. For most use-cases use `text`.
|
|
467
464
|
*
|
|
468
465
|
* Defaults to **undefined**.
|
|
469
466
|
*/
|
|
470
|
-
children:
|
|
467
|
+
children: i.node.isRequired,
|
|
471
468
|
/**
|
|
472
469
|
* The css class name to be passed through to the component markup.
|
|
473
470
|
*
|
|
474
471
|
* Defaults to **undefined**.
|
|
475
472
|
*/
|
|
476
|
-
className:
|
|
473
|
+
className: i.string,
|
|
477
474
|
/**
|
|
478
475
|
* Container display type, inline or block.
|
|
479
476
|
*
|
|
480
477
|
* Defaults to **'inline'**.
|
|
481
478
|
*/
|
|
482
|
-
containerType:
|
|
479
|
+
containerType: i.oneOf(["inline", "block"]),
|
|
483
480
|
/**
|
|
484
481
|
* Whether or not the tooltip is hoisted to render outside of the parent element. Useful for when the tooltip needs to render in a parent with `overflow: hidden` ie. a table cell.
|
|
485
482
|
*
|
|
486
483
|
* Defaults to **false**.
|
|
487
484
|
*/
|
|
488
|
-
hoisted:
|
|
485
|
+
hoisted: i.bool,
|
|
489
486
|
/**
|
|
490
487
|
* Randomly generated id. May be overwritten.
|
|
491
488
|
*
|
|
492
489
|
* Defaults to **undefined**.
|
|
493
490
|
*/
|
|
494
|
-
id:
|
|
491
|
+
id: i.string,
|
|
495
492
|
/**
|
|
496
493
|
* Fired when the trigger is interacted with.
|
|
497
494
|
*
|
|
498
495
|
* Defaults to **null**.
|
|
499
496
|
*/
|
|
500
|
-
onClick:
|
|
497
|
+
onClick: i.func,
|
|
501
498
|
/**
|
|
502
499
|
* The DOM element the children will render in. If a string is sent it should be a valid DOM query selector. If one is not sent, Portal will default to `document.body`.
|
|
503
500
|
*
|
|
504
501
|
* Defaults to **'document.body'**.
|
|
505
502
|
*/
|
|
506
|
-
portalContainer:
|
|
503
|
+
portalContainer: i.oneOfType([i.string, i.node]),
|
|
507
504
|
/**
|
|
508
505
|
* Position of tooltip. Options include: 'top', 'left', 'right', and 'bottom'(default).
|
|
509
506
|
*
|
|
510
507
|
* Defaults to **'bottom'**.
|
|
511
508
|
*/
|
|
512
|
-
position:
|
|
509
|
+
position: i.oneOf(["bottom", "top", "left", "right"]),
|
|
513
510
|
/**
|
|
514
511
|
* string
|
|
515
512
|
*
|
|
516
513
|
* Defaults to **null**.
|
|
517
514
|
*/
|
|
518
|
-
text:
|
|
515
|
+
text: i.oneOfType([i.string, i.func, i.node]).isRequired,
|
|
519
516
|
/**
|
|
520
517
|
* Custom properties to apply to the hovering element.
|
|
521
518
|
*
|
|
522
519
|
* Defaults to **null**.
|
|
523
520
|
*/
|
|
524
|
-
tooltipProps:
|
|
521
|
+
tooltipProps: i.object,
|
|
525
522
|
/**
|
|
526
523
|
* Custom properties to apply to the trigger element.
|
|
527
524
|
*
|
|
528
525
|
* Defaults to **null**.
|
|
529
526
|
*/
|
|
530
|
-
triggerProps:
|
|
531
|
-
},
|
|
527
|
+
triggerProps: i.object
|
|
528
|
+
}, Je = {
|
|
532
529
|
children: void 0,
|
|
533
530
|
className: void 0,
|
|
534
531
|
containerType: "inline",
|
|
535
532
|
hoisted: !1,
|
|
536
533
|
id: void 0,
|
|
534
|
+
onClick: null,
|
|
537
535
|
portalContainer: "document.body",
|
|
538
536
|
position: "bottom",
|
|
539
537
|
text: null,
|
|
540
538
|
tooltipProps: null,
|
|
541
539
|
triggerProps: null
|
|
542
|
-
},
|
|
540
|
+
}, Xe = {
|
|
543
541
|
/**
|
|
544
542
|
* The css class name to be passed through to the component markup.
|
|
545
543
|
*
|
|
546
544
|
* Defaults to **undefined**.
|
|
547
545
|
*/
|
|
548
|
-
className:
|
|
546
|
+
className: i.string,
|
|
549
547
|
/**
|
|
550
548
|
* Whether or not the tooltip is hoisted to render outside of the parent element. Useful for when the tooltip needs to render in a parent with `overflow: hidden` ie. a table cell.
|
|
551
549
|
*
|
|
552
550
|
* Defaults to **false**.
|
|
553
551
|
*/
|
|
554
|
-
hoisted:
|
|
552
|
+
hoisted: i.bool,
|
|
555
553
|
/**
|
|
556
554
|
* Randomly generated id. May be overwritten.
|
|
557
555
|
*
|
|
558
556
|
* Defaults to **undefined**.
|
|
559
557
|
*/
|
|
560
|
-
id:
|
|
558
|
+
id: i.string,
|
|
561
559
|
/**
|
|
562
560
|
* The DOM element the children will render in. If a string is sent it should be a valid DOM query selector. If one is not sent, Portal will default to `document.body`.
|
|
563
561
|
*
|
|
564
562
|
* Defaults to **'document.body'**.
|
|
565
563
|
*/
|
|
566
|
-
portalContainer:
|
|
564
|
+
portalContainer: i.oneOfType([i.string, i.node]),
|
|
567
565
|
/**
|
|
568
566
|
* The text to be rendered inside of the Tooltip.
|
|
569
567
|
*
|
|
570
568
|
* Defaults to **null**.
|
|
571
569
|
*/
|
|
572
|
-
text:
|
|
573
|
-
},
|
|
570
|
+
text: i.oneOfType([i.string, i.func, i.node]).isRequired
|
|
571
|
+
}, Ye = {
|
|
574
572
|
className: void 0,
|
|
575
573
|
hoisted: !1,
|
|
576
574
|
id: void 0,
|
|
577
575
|
portalContainer: "document.body",
|
|
578
576
|
text: null
|
|
579
|
-
},
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
}, /* @__PURE__ */ d.createElement("div", b({
|
|
577
|
+
}, Ze = ["className", "hoisted", "id", "portalContainer", "text"], F = Ye, K = /* @__PURE__ */ M(function(n, e) {
|
|
578
|
+
var t = n.className, o = t === void 0 ? F.className : t, r = n.hoisted, a = r === void 0 ? F.hoisted : r, u = n.id, _ = u === void 0 ? F.id : u, p = n.portalContainer, f = p === void 0 ? F.portalContainer : p, h = n.text, y = h === void 0 ? F.text : h, g = w(n, Ze), l = se(function() {
|
|
579
|
+
return _ || fe();
|
|
580
|
+
}), c = pe(l, 1), E = c[0], C = N();
|
|
581
|
+
B(e, function() {
|
|
582
|
+
return C.current;
|
|
583
|
+
}, []);
|
|
584
|
+
var b = le(function() {
|
|
585
|
+
return H(["lmnt", o, "lmnt-tooltip__text-content", "mdc-typography--caption"]);
|
|
586
|
+
}, [o]);
|
|
587
|
+
return /* @__PURE__ */ d.createElement(Fe, {
|
|
588
|
+
disabled: !a,
|
|
589
|
+
container: f
|
|
590
|
+
}, /* @__PURE__ */ d.createElement("div", P({
|
|
594
591
|
role: "tooltip",
|
|
595
|
-
id:
|
|
596
|
-
className:
|
|
597
|
-
},
|
|
598
|
-
ref:
|
|
599
|
-
}),
|
|
592
|
+
id: E,
|
|
593
|
+
className: b
|
|
594
|
+
}, g, {
|
|
595
|
+
ref: C
|
|
596
|
+
}), y));
|
|
600
597
|
});
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
598
|
+
K.displayName = "TooltipText";
|
|
599
|
+
K.propTypes = Xe;
|
|
600
|
+
var et = ["children", "className", "containerType", "hoisted", "id", "onClick", "portalContainer", "position", "text", "tooltipProps", "triggerProps"];
|
|
601
|
+
function ae(n, e) {
|
|
602
|
+
var t = Ae(n);
|
|
603
|
+
if (ne) {
|
|
604
|
+
var o = ne(n);
|
|
605
|
+
e && (o = xe(o).call(o, function(r) {
|
|
606
|
+
return ue(n, r).enumerable;
|
|
607
|
+
})), t.push.apply(t, o);
|
|
608
|
+
}
|
|
609
|
+
return t;
|
|
610
|
+
}
|
|
611
|
+
function I(n) {
|
|
612
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
613
|
+
var t, o, r = arguments[e] != null ? arguments[e] : {};
|
|
614
|
+
e % 2 ? Z(t = ae(Object(r), !0)).call(t, function(a) {
|
|
615
|
+
De(n, a, r[a]);
|
|
616
|
+
}) : te ? Re(n, te(r)) : Z(o = ae(Object(r))).call(o, function(a) {
|
|
617
|
+
ke(n, a, ue(r, a));
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
return n;
|
|
621
|
+
}
|
|
622
|
+
var v = Je, ge = /* @__PURE__ */ M(function(n, e) {
|
|
623
|
+
var t = n.children, o = t === void 0 ? v.children : t, r = n.className, a = r === void 0 ? v.className : r, u = n.containerType, _ = u === void 0 ? v.containerType : u, p = n.hoisted, f = p === void 0 ? v.hoisted : p, h = n.id, y = h === void 0 ? v.id : h, g = n.onClick, l = g === void 0 ? v.onClick : g, c = n.portalContainer, E = c === void 0 ? v.portalContainer : c, C = n.position, b = C === void 0 ? v.position : C, G = n.text, $ = G === void 0 ? v.text : G, Q = n.tooltipProps, _e = Q === void 0 ? v.tooltipProps : Q, V = n.triggerProps, be = V === void 0 ? v.triggerProps : V, Ne = w(n, et), W = N(), O = N(), D = N();
|
|
624
|
+
B(e, function() {
|
|
625
|
+
return O.current;
|
|
626
|
+
}, []);
|
|
627
|
+
var Ee = se(function() {
|
|
628
|
+
return y || fe();
|
|
629
|
+
}), Ce = pe(Ee, 1), T = Ce[0], Oe = k(function() {
|
|
621
630
|
l?.();
|
|
622
|
-
}, [l]),
|
|
623
|
-
|
|
631
|
+
}, [l]), Te = k(function(s) {
|
|
632
|
+
s.key === "Enter" && l?.();
|
|
624
633
|
}, [l]);
|
|
625
|
-
|
|
626
|
-
|
|
634
|
+
He(function() {
|
|
635
|
+
var s = [{
|
|
627
636
|
name: "flip",
|
|
628
637
|
options: {
|
|
629
638
|
enabled: !0,
|
|
@@ -633,92 +642,99 @@ const I = /* @__PURE__ */ O((i, t) => {
|
|
|
633
642
|
}
|
|
634
643
|
}
|
|
635
644
|
}];
|
|
636
|
-
return
|
|
645
|
+
return f ? s.push({
|
|
637
646
|
name: "offset",
|
|
638
647
|
options: {
|
|
639
648
|
offset: [0, 6]
|
|
640
649
|
}
|
|
641
|
-
}) :
|
|
650
|
+
}) : s.push({
|
|
642
651
|
name: "offset",
|
|
643
652
|
options: {
|
|
644
653
|
offset: [0, 12]
|
|
645
654
|
}
|
|
646
|
-
}),
|
|
647
|
-
placement:
|
|
648
|
-
modifiers:
|
|
649
|
-
})), ()
|
|
650
|
-
var
|
|
651
|
-
(
|
|
655
|
+
}), W.current && O.current && (D.current = we(W.current, O.current, {
|
|
656
|
+
placement: b,
|
|
657
|
+
modifiers: s
|
|
658
|
+
})), function() {
|
|
659
|
+
var m;
|
|
660
|
+
(m = D.current) === null || m === void 0 || m.destroy();
|
|
652
661
|
};
|
|
653
|
-
}, [
|
|
654
|
-
|
|
655
|
-
var
|
|
656
|
-
(
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}, [
|
|
680
|
-
|
|
662
|
+
}, [b, f]);
|
|
663
|
+
var z = k(function() {
|
|
664
|
+
var s, m, L;
|
|
665
|
+
(s = O.current) === null || s === void 0 || s.setAttribute("data-show", ""), (m = D.current) === null || m === void 0 || m.setOptions(function(R) {
|
|
666
|
+
var Y;
|
|
667
|
+
return I(I({}, R), {}, {
|
|
668
|
+
modifiers: re(Y = []).call(Y, oe(R.modifiers), [{
|
|
669
|
+
name: "eventListeners",
|
|
670
|
+
enabled: !0
|
|
671
|
+
}])
|
|
672
|
+
});
|
|
673
|
+
}), (L = D.current) === null || L === void 0 || L.update();
|
|
674
|
+
}, []), J = k(function() {
|
|
675
|
+
var s, m;
|
|
676
|
+
(s = O.current) === null || s === void 0 || s.removeAttribute("data-show"), (m = D.current) === null || m === void 0 || m.setOptions(function(L) {
|
|
677
|
+
var R;
|
|
678
|
+
return I(I({}, L), {}, {
|
|
679
|
+
modifiers: re(R = []).call(R, oe(L.modifiers), [{
|
|
680
|
+
name: "eventListeners",
|
|
681
|
+
enabled: !1
|
|
682
|
+
}])
|
|
683
|
+
});
|
|
684
|
+
});
|
|
685
|
+
}, []), X = k(function() {
|
|
686
|
+
var s = o;
|
|
687
|
+
return s.type ? s.type === ee : s === ee;
|
|
688
|
+
}, [o]);
|
|
689
|
+
A(function() {
|
|
690
|
+
var s = "Tooltips should only include short text for additional context and should not exceed three lines visually. (Toolitip ID ".concat(T, ").");
|
|
691
|
+
$ && $.length > 100 && Ie(s);
|
|
692
|
+
}, [$, T]);
|
|
693
|
+
var Le = le(
|
|
681
694
|
// eslint-disable-next-line react/no-unstable-nested-components
|
|
682
|
-
()
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
695
|
+
function() {
|
|
696
|
+
return function() {
|
|
697
|
+
return o ? typeof o == "string" || X(o) ? /* @__PURE__ */ d.createElement("span", {
|
|
698
|
+
"aria-describedby": T
|
|
699
|
+
}, o) : Se(o, {
|
|
700
|
+
"aria-describedby": T
|
|
701
|
+
}) : null;
|
|
702
|
+
};
|
|
703
|
+
},
|
|
704
|
+
[o, T, X]
|
|
705
|
+
), Pe = l ? {
|
|
689
706
|
tabIndex: 0,
|
|
690
707
|
role: l ? "button" : "note",
|
|
691
|
-
onKeyPress:
|
|
692
|
-
onClick:
|
|
708
|
+
onKeyPress: Te,
|
|
709
|
+
onClick: Oe
|
|
693
710
|
} : {};
|
|
694
|
-
return /* @__PURE__ */ d.createElement("span",
|
|
695
|
-
className:
|
|
696
|
-
},
|
|
697
|
-
className:
|
|
698
|
-
},
|
|
699
|
-
ref:
|
|
700
|
-
onMouseEnter:
|
|
701
|
-
onFocus:
|
|
702
|
-
onMouseLeave:
|
|
703
|
-
onBlur:
|
|
704
|
-
}), /* @__PURE__ */ d.createElement(
|
|
705
|
-
hoisted:
|
|
706
|
-
portalContainer:
|
|
711
|
+
return /* @__PURE__ */ d.createElement("span", P({
|
|
712
|
+
className: H("lmnt lmnt-tooltip", _ === "block" ? "lmnt-tooltip--block" : "lmnt-tooltip--inline")
|
|
713
|
+
}, Pe, Ne), /* @__PURE__ */ d.createElement("span", P({
|
|
714
|
+
className: H("lmnt-tooltip__content", _ === "block" ? "lmnt-tooltip--block" : "lmnt-tooltip--inline")
|
|
715
|
+
}, be, {
|
|
716
|
+
ref: W,
|
|
717
|
+
onMouseEnter: z,
|
|
718
|
+
onFocus: z,
|
|
719
|
+
onMouseLeave: J,
|
|
720
|
+
onBlur: J
|
|
721
|
+
}), /* @__PURE__ */ d.createElement(Le, null)), $ && /* @__PURE__ */ d.createElement(K, P({
|
|
722
|
+
hoisted: f,
|
|
723
|
+
portalContainer: E,
|
|
707
724
|
role: "tooltip",
|
|
708
|
-
id:
|
|
709
|
-
className:
|
|
710
|
-
},
|
|
711
|
-
ref:
|
|
712
|
-
text:
|
|
725
|
+
id: T,
|
|
726
|
+
className: a
|
|
727
|
+
}, _e, {
|
|
728
|
+
ref: O,
|
|
729
|
+
text: $
|
|
713
730
|
})));
|
|
714
731
|
});
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
I.defaultProps = he;
|
|
732
|
+
ge.displayName = "Tooltip";
|
|
733
|
+
ge.propTypes = ze;
|
|
718
734
|
export {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
735
|
+
ve as F,
|
|
736
|
+
Be as M,
|
|
737
|
+
ye as N,
|
|
738
|
+
K as T,
|
|
739
|
+
We as a
|
|
724
740
|
};
|