@warp-ds/elements 1.4.1-next.2 → 1.5.0-next.1

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 (37) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +748 -217
  3. package/dist/index.js.map +4 -4
  4. package/dist/packages/affix/index.js +1 -1
  5. package/dist/packages/affix/index.js.map +3 -3
  6. package/dist/packages/alert/index.js +1 -1
  7. package/dist/packages/alert/index.js.map +3 -3
  8. package/dist/packages/attention/index.js +26 -15
  9. package/dist/packages/attention/index.js.map +3 -3
  10. package/dist/packages/badge/index.js +1 -1
  11. package/dist/packages/badge/index.js.map +3 -3
  12. package/dist/packages/box/index.js +1 -1
  13. package/dist/packages/box/index.js.map +3 -3
  14. package/dist/packages/breadcrumbs/index.js +1 -1
  15. package/dist/packages/breadcrumbs/index.js.map +3 -3
  16. package/dist/packages/button/index.js +1 -1
  17. package/dist/packages/button/index.js.map +3 -3
  18. package/dist/packages/card/index.js +1 -1
  19. package/dist/packages/card/index.js.map +3 -3
  20. package/dist/packages/expandable/index.js +1 -1
  21. package/dist/packages/expandable/index.js.map +3 -3
  22. package/dist/packages/modal/index.d.ts +6 -0
  23. package/dist/packages/modal/index.js +2291 -0
  24. package/dist/packages/modal/index.js.map +7 -0
  25. package/dist/packages/modal/modal-footer.d.ts +14 -0
  26. package/dist/packages/modal/modal-header.d.ts +37 -0
  27. package/dist/packages/modal/modal-main.d.ts +37 -0
  28. package/dist/packages/modal/util.d.ts +17 -0
  29. package/dist/packages/pill/index.js +1 -1
  30. package/dist/packages/pill/index.js.map +3 -3
  31. package/dist/packages/select/index.js +1 -1
  32. package/dist/packages/select/index.js.map +3 -3
  33. package/dist/packages/textfield/index.js +1 -1
  34. package/dist/packages/textfield/index.js.map +3 -3
  35. package/dist/packages/toast/index.js +1 -1
  36. package/dist/packages/toast/index.js.map +3 -3
  37. package/package.json +6 -3
@@ -1392,7 +1392,7 @@ function setupI18n(params = {}) {
1392
1392
  }
1393
1393
  var i18n = setupI18n();
1394
1394
 
1395
- // node_modules/.pnpm/@floating-ui+utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
1395
+ // node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
1396
1396
  var sides = ["top", "right", "bottom", "left"];
1397
1397
  var min = Math.min;
1398
1398
  var max = Math.max;
@@ -1504,15 +1504,25 @@ function getPaddingObject(padding) {
1504
1504
  };
1505
1505
  }
1506
1506
  function rectToClientRect(rect) {
1507
- return __spreadProps(__spreadValues({}, rect), {
1508
- top: rect.y,
1509
- left: rect.x,
1510
- right: rect.x + rect.width,
1511
- bottom: rect.y + rect.height
1512
- });
1507
+ const {
1508
+ x,
1509
+ y,
1510
+ width,
1511
+ height
1512
+ } = rect;
1513
+ return {
1514
+ width,
1515
+ height,
1516
+ top: y,
1517
+ left: x,
1518
+ right: x + width,
1519
+ bottom: y + height,
1520
+ x,
1521
+ y
1522
+ };
1513
1523
  }
1514
1524
 
1515
- // node_modules/.pnpm/@floating-ui+core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
1525
+ // node_modules/.pnpm/@floating-ui+core@1.6.2/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
1516
1526
  function computeCoordsFromPlacement(_ref, placement, rtl) {
1517
1527
  let {
1518
1528
  reference,
@@ -1676,10 +1686,12 @@ async function detectOverflow(state, options) {
1676
1686
  rootBoundary,
1677
1687
  strategy
1678
1688
  }));
1679
- const rect = elementContext === "floating" ? __spreadProps(__spreadValues({}, rects.floating), {
1689
+ const rect = elementContext === "floating" ? {
1680
1690
  x,
1681
- y
1682
- }) : rects.reference;
1691
+ y,
1692
+ width: rects.floating.width,
1693
+ height: rects.floating.height
1694
+ } : rects.reference;
1683
1695
  const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
1684
1696
  const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
1685
1697
  x: 1,
@@ -1988,7 +2000,7 @@ var offset = function(options) {
1988
2000
  };
1989
2001
  };
1990
2002
 
1991
- // node_modules/.pnpm/@floating-ui+utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
2003
+ // node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
1992
2004
  function getNodeName(node) {
1993
2005
  if (isNode(node)) {
1994
2006
  return (node.nodeName || "").toLowerCase();
@@ -2040,9 +2052,8 @@ function getContainingBlock(element) {
2040
2052
  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
2041
2053
  if (isContainingBlock(currentNode)) {
2042
2054
  return currentNode;
2043
- } else {
2044
- currentNode = getParentNode(currentNode);
2045
2055
  }
2056
+ currentNode = getParentNode(currentNode);
2046
2057
  }
2047
2058
  return null;
2048
2059
  }
@@ -2670,7 +2681,7 @@ async function useRecompute(state) {
2670
2681
  return state;
2671
2682
  }
2672
2683
 
2673
- // node_modules/.pnpm/@warp-ds+css@1.9.7/node_modules/@warp-ds/css/component-classes/index.js
2684
+ // node_modules/.pnpm/@warp-ds+css@1.10.1/node_modules/@warp-ds/css/component-classes/index.js
2674
2685
  var box = {
2675
2686
  box: "group block relative break-words last-child:mb-0 p-16 rounded-8",
2676
2687
  // Relative here enables w-clickable