@eightshift/ui-components 1.1.4 → 1.2.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.
@@ -958,6 +958,7 @@ const Popover = (props) => {
958
958
  * @param {number} props.offset - Offset from the trigger element, on the same axis as the placement of the popover (e.g. if `placement` is `left`, this controls the horizontal spacing from the element).
959
959
  * @param {number} props.crossOffset - Offset from the trigger element, on the opposite axis as the placement of the popover (e.g. if `placement` is `left`, this controls the vertical spacing from the element).
960
960
  * @param {number} props.containerPadding - Space that should be left between the popover and the edge of the container (the default container is browser window).
961
+ * @param {boolean} [props.hidden] - If `true`, the component is not rendered.
961
962
  *
962
963
  * @returns {JSX.Element} The TriggeredPopover component.
963
964
  *
@@ -985,8 +986,12 @@ const TriggeredPopover = (props) => {
985
986
  offset,
986
987
  crossOffset,
987
988
  containerPadding,
989
+ hidden,
988
990
  ...rest
989
991
  } = props;
992
+ if (hidden) {
993
+ return null;
994
+ }
990
995
  return /* @__PURE__ */ jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, { onOpenChange, children: [
991
996
  trigger,
992
997
  !trigger && /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightshift/ui-components",
3
- "version": "1.1.4",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",