lizaui 9.0.44 → 9.0.46

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.
Files changed (59) hide show
  1. package/dist/autocomplete/index.cjs.js +2 -2
  2. package/dist/autocomplete/index.cjs.js.map +1 -1
  3. package/dist/autocomplete/index.es.js +2 -2
  4. package/dist/autocomplete/index.es.js.map +1 -1
  5. package/dist/button/index.cjs.js +1 -1
  6. package/dist/button/index.es.js +1 -1
  7. package/dist/chip/index.cjs.js +3 -3
  8. package/dist/chip/index.cjs.js.map +1 -1
  9. package/dist/chip/index.es.js +3 -3
  10. package/dist/chip/index.es.js.map +1 -1
  11. package/dist/chunks/{button-Dzqe0Scp.js → button-CBPwzm2F.js} +4 -4
  12. package/dist/chunks/{button-Dzqe0Scp.js.map → button-CBPwzm2F.js.map} +1 -1
  13. package/dist/chunks/{button-CsVgdTK2.js → button-c2tqObmX.js} +4 -4
  14. package/dist/chunks/{button-CsVgdTK2.js.map → button-c2tqObmX.js.map} +1 -1
  15. package/dist/chunks/createLucideIcon-Bxsl-Fn_.js.map +1 -1
  16. package/dist/chunks/createLucideIcon-C5oU6LEj.js.map +1 -1
  17. package/dist/chunks/index--Lp5VMoT.js.map +1 -1
  18. package/dist/chunks/index-xVewW5kR.js.map +1 -1
  19. package/dist/chunks/{scroll-area-A7wLpIdN.js → scroll-area-C-TOj3zQ.js} +2 -2
  20. package/dist/chunks/{scroll-area-A7wLpIdN.js.map → scroll-area-C-TOj3zQ.js.map} +1 -1
  21. package/dist/chunks/{scroll-area-BU8EXoIt.js → scroll-area-CLk54_91.js} +2 -2
  22. package/dist/chunks/{scroll-area-BU8EXoIt.js.map → scroll-area-CLk54_91.js.map} +1 -1
  23. package/dist/chunks/{select-D12sBtA8.js → select-B6phC9mi.js} +2 -2
  24. package/dist/chunks/{select-D12sBtA8.js.map → select-B6phC9mi.js.map} +1 -1
  25. package/dist/chunks/{select-dQq0NQ64.js → select-DVjRpYfX.js} +2 -2
  26. package/dist/chunks/{select-dQq0NQ64.js.map → select-DVjRpYfX.js.map} +1 -1
  27. package/dist/chunks/{textarea-CE8ScH_j.js → textarea-BKtuQhzG.js} +2 -2
  28. package/dist/chunks/{textarea-CE8ScH_j.js.map → textarea-BKtuQhzG.js.map} +1 -1
  29. package/dist/chunks/{textarea-DatQsnr3.js → textarea-C3AwF8SJ.js} +2 -2
  30. package/dist/chunks/{textarea-DatQsnr3.js.map → textarea-C3AwF8SJ.js.map} +1 -1
  31. package/dist/chunks/{tooltip-BVHPsFJx.js → tooltip-BVafMD5T.js} +37 -17
  32. package/dist/chunks/tooltip-BVafMD5T.js.map +1 -0
  33. package/dist/chunks/{tooltip-BT4TzSeu.js → tooltip-hhxclHkr.js} +37 -17
  34. package/dist/chunks/tooltip-hhxclHkr.js.map +1 -0
  35. package/dist/form-tabs/index.cjs.js.map +1 -1
  36. package/dist/form-tabs/index.es.js.map +1 -1
  37. package/dist/modal/index.cjs.js +1 -1
  38. package/dist/modal/index.es.js +1 -1
  39. package/dist/pagination/index.cjs.js +3 -3
  40. package/dist/pagination/index.es.js +3 -3
  41. package/dist/phone-input/index.cjs.js +3 -3
  42. package/dist/phone-input/index.es.js +3 -3
  43. package/dist/table/index.cjs.js +1 -1
  44. package/dist/table/index.es.js +1 -1
  45. package/dist/time-input/index.cjs.js +36 -11
  46. package/dist/time-input/index.cjs.js.map +1 -1
  47. package/dist/time-input/index.es.js +36 -11
  48. package/dist/time-input/index.es.js.map +1 -1
  49. package/dist/tooltip/index.cjs.js +1 -1
  50. package/dist/tooltip/index.es.js +1 -1
  51. package/dist/travel-calendar/index.cjs.js +2 -2
  52. package/dist/travel-calendar/index.es.js +2 -2
  53. package/dist/ui/index.cjs.js +4 -4
  54. package/dist/ui/index.cjs.js.map +1 -1
  55. package/dist/ui/index.es.js +7 -7
  56. package/dist/ui/index.es.js.map +1 -1
  57. package/package.json +10 -10
  58. package/dist/chunks/tooltip-BT4TzSeu.js.map +0 -1
  59. package/dist/chunks/tooltip-BVHPsFJx.js.map +0 -1
@@ -17,14 +17,14 @@ var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element
17
17
  } : function(element) {
18
18
  return element === null || element === void 0 ? void 0 : element.ownerDocument;
19
19
  };
20
- var isInert = function isInert2(node, lookUp) {
20
+ var _isInert = function isInert(node, lookUp) {
21
21
  var _node$getAttribute;
22
22
  if (lookUp === void 0) {
23
23
  lookUp = true;
24
24
  }
25
25
  var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
26
26
  var inert = inertAtt === "" || inertAtt === "true";
27
- var result = inert || lookUp && node && isInert2(node.parentNode);
27
+ var result = inert || lookUp && node && _isInert(node.parentNode);
28
28
  return result;
29
29
  };
30
30
  var isContentEditable = function isContentEditable2(node) {
@@ -33,7 +33,7 @@ var isContentEditable = function isContentEditable2(node) {
33
33
  return attValue === "" || attValue === "true";
34
34
  };
35
35
  var getCandidates = function getCandidates2(el, includeContainer, filter) {
36
- if (isInert(el)) {
36
+ if (_isInert(el)) {
37
37
  return [];
38
38
  }
39
39
  var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
@@ -43,18 +43,18 @@ var getCandidates = function getCandidates2(el, includeContainer, filter) {
43
43
  candidates = candidates.filter(filter);
44
44
  return candidates;
45
45
  };
46
- var getCandidatesIteratively = function getCandidatesIteratively2(elements, includeContainer, options) {
46
+ var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
47
47
  var candidates = [];
48
48
  var elementsToCheck = Array.from(elements);
49
49
  while (elementsToCheck.length) {
50
50
  var element = elementsToCheck.shift();
51
- if (isInert(element, false)) {
51
+ if (_isInert(element, false)) {
52
52
  continue;
53
53
  }
54
54
  if (element.tagName === "SLOT") {
55
55
  var assigned = element.assignedElements();
56
56
  var content = assigned.length ? assigned : element.children;
57
- var nestedCandidates = getCandidatesIteratively2(content, true, options);
57
+ var nestedCandidates = _getCandidatesIteratively(content, true, options);
58
58
  if (options.flatten) {
59
59
  candidates.push.apply(candidates, nestedCandidates);
60
60
  } else {
@@ -70,9 +70,9 @@ var getCandidatesIteratively = function getCandidatesIteratively2(elements, incl
70
70
  }
71
71
  var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
72
72
  typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
73
- var validShadowRoot = !isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
73
+ var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
74
74
  if (shadowRoot && validShadowRoot) {
75
- var _nestedCandidates = getCandidatesIteratively2(shadowRoot === true ? element.children : shadowRoot.children, true, options);
75
+ var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
76
76
  if (options.flatten) {
77
77
  candidates.push.apply(candidates, _nestedCandidates);
78
78
  } else {
@@ -181,6 +181,24 @@ var isZeroArea = function isZeroArea2(node) {
181
181
  };
182
182
  var isHidden = function isHidden2(node, _ref) {
183
183
  var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
184
+ if (displayCheck === "full-native") {
185
+ if ("checkVisibility" in node) {
186
+ var visible = node.checkVisibility({
187
+ // Checking opacity might be desirable for some use cases, but natively,
188
+ // opacity zero elements _are_ focusable and tabbable.
189
+ checkOpacity: false,
190
+ opacityProperty: false,
191
+ contentVisibilityAuto: true,
192
+ visibilityProperty: true,
193
+ // This is an alias for `visibilityProperty`. Contemporary browsers
194
+ // support both. However, this alias has wider browser support (Chrome
195
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
196
+ // we include it anyway.
197
+ checkVisibilityCSS: true
198
+ });
199
+ return !visible;
200
+ }
201
+ }
184
202
  if (getComputedStyle(node).visibility === "hidden") {
185
203
  return true;
186
204
  }
@@ -189,7 +207,9 @@ var isHidden = function isHidden2(node, _ref) {
189
207
  if (matches.call(nodeUnderDetails, "details:not([open]) *")) {
190
208
  return true;
191
209
  }
192
- if (!displayCheck || displayCheck === "full" || displayCheck === "legacy-full") {
210
+ if (!displayCheck || displayCheck === "full" || // full-native can run this branch when it falls through in case
211
+ // Element#checkVisibility is unsupported
212
+ displayCheck === "full-native" || displayCheck === "legacy-full") {
193
213
  if (typeof getShadowRoot === "function") {
194
214
  var originalNode = node;
195
215
  while (node) {
@@ -240,7 +260,7 @@ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(
240
260
  if (node.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
241
261
  // because we're limited in the type of selectors we can use in JSDom (see related
242
262
  // note related to `candidateSelectors`)
243
- isInert(node) || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
263
+ _isInert(node) || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
244
264
  isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
245
265
  return false;
246
266
  }
@@ -252,21 +272,21 @@ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(op
252
272
  }
253
273
  return true;
254
274
  };
255
- var isValidShadowRootTabbable = function isValidShadowRootTabbable2(shadowHostNode) {
275
+ var isShadowRootTabbable = function isShadowRootTabbable2(shadowHostNode) {
256
276
  var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
257
277
  if (isNaN(tabIndex) || tabIndex >= 0) {
258
278
  return true;
259
279
  }
260
280
  return false;
261
281
  };
262
- var sortByOrder = function sortByOrder2(candidates) {
282
+ var _sortByOrder = function sortByOrder(candidates) {
263
283
  var regularTabbables = [];
264
284
  var orderedTabbables = [];
265
285
  candidates.forEach(function(item, i) {
266
286
  var isScope = !!item.scopeParent;
267
287
  var element = isScope ? item.scopeParent : item;
268
288
  var candidateTabindex = getSortOrderTabIndex(element, isScope);
269
- var elements = isScope ? sortByOrder2(item.candidates) : element;
289
+ var elements = isScope ? _sortByOrder(item.candidates) : element;
270
290
  if (candidateTabindex === 0) {
271
291
  isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
272
292
  } else {
@@ -288,16 +308,16 @@ var tabbable = function tabbable2(container, options) {
288
308
  options = options || {};
289
309
  var candidates;
290
310
  if (options.getShadowRoot) {
291
- candidates = getCandidatesIteratively([container], options.includeContainer, {
311
+ candidates = _getCandidatesIteratively([container], options.includeContainer, {
292
312
  filter: isNodeMatchingSelectorTabbable.bind(null, options),
293
313
  flatten: false,
294
314
  getShadowRoot: options.getShadowRoot,
295
- shadowRootFilter: isValidShadowRootTabbable
315
+ shadowRootFilter: isShadowRootTabbable
296
316
  });
297
317
  } else {
298
318
  candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
299
319
  }
300
- return sortByOrder(candidates);
320
+ return _sortByOrder(candidates);
301
321
  };
302
322
  function getPlatform() {
303
323
  const uaData = navigator.userAgentData;
@@ -1922,4 +1942,4 @@ const Tooltip = ({
1922
1942
  export {
1923
1943
  Tooltip as T
1924
1944
  };
1925
- //# sourceMappingURL=tooltip-BVHPsFJx.js.map
1945
+ //# sourceMappingURL=tooltip-BVafMD5T.js.map