@yakad/ui 1.3.145 → 1.3.147

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
- fullWidth?: boolean;
3
+ fullWidthOnParentDemand?: boolean;
4
4
  size?: "small" | "medium" | "large";
5
5
  variant?: "text" | "outlined" | "filled" | "filledtonal" | "tonal" | "elevated" | "link" | "fab";
6
6
  borderStyle?: "none" | "semi" | "squircle" | "rounded";
@@ -15,10 +15,10 @@ import classNames from "classnames";
15
15
  import { LoadingIcon } from "..";
16
16
  import styles from "./Button.module.css";
17
17
  export const Button = forwardRef(function Button(_a, ref) {
18
- var { fullWidth = false, size = "medium", variant = "text", borderStyle = "rounded", icon, iconPosition = "start", loadingPosition = "auto", loadingVariant, className, children } = _a, restProps = __rest(_a, ["fullWidth", "size", "variant", "borderStyle", "icon", "iconPosition", "loadingPosition", "loadingVariant", "className", "children"]);
18
+ var { fullWidthOnParentDemand = false, size = "medium", variant = "text", borderStyle = "rounded", icon, iconPosition = "start", loadingPosition = "auto", loadingVariant, className, children } = _a, restProps = __rest(_a, ["fullWidthOnParentDemand", "size", "variant", "borderStyle", "icon", "iconPosition", "loadingPosition", "loadingVariant", "className", "children"]);
19
19
  const childrenFirst = iconPosition === "end";
20
20
  const isloadingPositionCenter = !icon || loadingPosition === "center";
21
- const joinedClassNames = classNames({ fullWidth: fullWidth }, styles.button, styles[variant], { [styles.loading]: loadingVariant }, { [styles.loadingPositionCenter]: isloadingPositionCenter }, styles[size], styles[borderStyle], { [styles.iconButton]: !children && icon }, className);
21
+ const joinedClassNames = classNames({ fullWidthOnParentDemand: fullWidthOnParentDemand }, styles.button, styles[variant], { [styles.loading]: loadingVariant }, { [styles.loadingPositionCenter]: isloadingPositionCenter }, styles[size], styles[borderStyle], { [styles.iconButton]: !children && icon }, className);
22
22
  return (_jsxs("button", Object.assign({ ref: ref, className: joinedClassNames }, restProps, { children: [childrenFirst && children, loadingVariant && (_jsx("div", { className: classNames(styles.displayOnDisabled, {
23
23
  [styles.positionCenter]: isloadingPositionCenter,
24
24
  }), children: _jsx(LoadingIcon, { size: size, variant: loadingVariant }) })), icon, !childrenFirst && children] })));
@@ -2,7 +2,7 @@
2
2
  import "./card.css";
3
3
  export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  align?: "start" | "space" | "center" | "end";
5
- fullWidth?: boolean;
5
+ fullWidthOnParentDemand?: boolean;
6
6
  blur?: boolean;
7
7
  level?: "low" | "mid" | "high";
8
8
  }
package/dist/Card/Card.js CHANGED
@@ -16,8 +16,8 @@ import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Card.module.css";
17
17
  import "./card.css";
18
18
  export const Card = forwardRef(function Card(_a, ref) {
19
- var { align, fullWidth = true, blur, level, className, children } = _a, restProps = __rest(_a, ["align", "fullWidth", "blur", "level", "className", "children"]);
20
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { fullWidth: fullWidth }, styles.card, { [styles.blur]: blur }, {
19
+ var { align, fullWidthOnParentDemand = true, blur, level, className, children } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "blur", "level", "className", "children"]);
20
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, { fullWidthOnParentDemand: fullWidthOnParentDemand }, styles.card, { [styles.blur]: blur }, {
21
21
  yakadCardAutoLevel: level === undefined,
22
22
  yakadCardLowLevel: level === "low",
23
23
  yakadCardMidLevel: level === "mid",
@@ -16,6 +16,6 @@ import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Container.module.css";
17
17
  export const Container = forwardRef(function Container(_a, ref) {
18
18
  var { size = "xl", align, className, children } = _a, restProps = __rest(_a, ["size", "align", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, styles.container, styles[size], className);
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, styles.container, styles[size], className);
20
20
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export interface DisplayProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  align?: "start" | "space" | "center" | "end";
4
- fullWidth?: boolean;
4
+ fullWidthOnParentDemand?: boolean;
5
5
  minWidth?: "xs" | "sm" | "md" | "lg" | "xl";
6
6
  maxWidth?: "xs" | "sm" | "md" | "lg" | "xl";
7
7
  children?: React.ReactNode;
@@ -15,7 +15,7 @@ import classNames from "classnames";
15
15
  import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Display.module.css";
17
17
  export const Display = forwardRef(function Display(_a, ref) {
18
- var { align, fullWidth = true, minWidth, maxWidth, className, children } = _a, restProps = __rest(_a, ["align", "fullWidth", "minWidth", "maxWidth", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { fullWidth: fullWidth }, { [styles[`${minWidth}MinWidth`]]: minWidth }, { [styles[`${maxWidth}MaxWidth`]]: maxWidth }, className);
18
+ var { align, fullWidthOnParentDemand = true, minWidth, maxWidth, className, children } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "minWidth", "maxWidth", "className", "children"]);
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, { fullWidthOnParentDemand: fullWidthOnParentDemand }, { [styles[`${minWidth}MinWidth`]]: minWidth }, { [styles[`${maxWidth}MaxWidth`]]: maxWidth }, className);
20
20
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -16,7 +16,7 @@ import classNames from "classnames";
16
16
  import { Card, WithInteractions } from "..";
17
17
  import styles from "./Dropdown.module.css";
18
18
  export const Dropdown = forwardRef(function Dropdown(_a, forwardedRef) {
19
- var { fullWidth = false, blur, level = "high", triggerref, onClose, className, style, children } = _a, restProps = __rest(_a, ["fullWidth", "blur", "level", "triggerref", "onClose", "className", "style", "children"]);
19
+ var { level = "high", triggerref, onClose, className, style, children } = _a, restProps = __rest(_a, ["level", "triggerref", "onClose", "className", "style", "children"]);
20
20
  const fallbackTriggerRef = useRef(null);
21
21
  const dropdownRef = useRef(null);
22
22
  const placementTargetRef = triggerref || fallbackTriggerRef;
@@ -71,7 +71,7 @@ export const Dropdown = forwardRef(function Dropdown(_a, forwardedRef) {
71
71
  setIsPlaced(true);
72
72
  }
73
73
  }, [children, placementTargetRef]);
74
- return (_jsxs(_Fragment, { children: [!triggerref && _jsx("div", { ref: fallbackTriggerRef }), _jsx(WithInteractions, { onOutsideClick: onClose, children: _jsx(Card, Object.assign({ ref: dropdownRef, fullWidth: fullWidth, blur: blur, level: level }, restProps, { className: classNames(styles.dropdownCard, { [styles.isPlacedAbove]: isPlacedAbove }, className), style: Object.assign({ top: dropdownPosition.top, left: dropdownPosition.left, visibility: isPlaced ? "visible" : "hidden" }, style), children: children })) }), _jsx("span", { className: classNames(styles.arrow, {
74
+ return (_jsxs(_Fragment, { children: [!triggerref && _jsx("div", { ref: fallbackTriggerRef }), _jsx(WithInteractions, { onOutsideClick: onClose, children: _jsx(Card, Object.assign({ ref: dropdownRef, level: level }, restProps, { className: classNames(styles.dropdownCard, { [styles.isPlacedAbove]: isPlacedAbove }, className), style: Object.assign({ top: dropdownPosition.top, left: dropdownPosition.left, visibility: isPlaced ? "visible" : "hidden" }, style), children: children })) }), _jsx("span", { className: classNames(styles.arrow, {
75
75
  [styles.isPlacedAbove]: isPlacedAbove,
76
76
  }, { [styles.blur]: blur }), style: {
77
77
  top: arrowPosition.top,
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
3
3
  align?: "start" | "space" | "center" | "end";
4
- fullWidth?: boolean;
4
+ fullWidthOnParentDemand?: boolean;
5
5
  children?: React.ReactNode;
6
6
  }
7
7
  export declare const Form: import("react").ForwardRefExoticComponent<FormProps & import("react").RefAttributes<HTMLFormElement>>;
package/dist/Form/Form.js CHANGED
@@ -15,7 +15,7 @@ import classNames from "classnames";
15
15
  import styles from "./Form.module.css";
16
16
  import boxingStyles from "../boxing.module.css";
17
17
  export const Form = forwardRef(function Form(_a, ref) {
18
- var { align, fullWidth = true, className, children } = _a, restProps = __rest(_a, ["align", "fullWidth", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { fullWidth: fullWidth }, styles.form, className);
18
+ var { align, fullWidthOnParentDemand = true, className, children } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "className", "children"]);
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, { fullWidthOnParentDemand: fullWidthOnParentDemand }, styles.form, className);
20
20
  return (_jsx("form", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -16,6 +16,6 @@ import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./GridItem.module.css";
17
17
  export const GridItem = forwardRef(function GridItem(_a, ref) {
18
18
  var { align, xs, sm, md, lg, xl, className, children } = _a, restProps = __rest(_a, ["align", "xs", "sm", "md", "lg", "xl", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, styles.gridItem, { [styles[`xs${xs}`]]: xs }, { [styles[`sm${sm}`]]: sm }, { [styles[`md${md}`]]: md }, { [styles[`lg${lg}`]]: lg }, { [styles[`xl${xl}`]]: xl }, className);
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, styles.gridItem, { [styles[`xs${xs}`]]: xs }, { [styles[`sm${sm}`]]: sm }, { [styles[`md${md}`]]: md }, { [styles[`lg${lg}`]]: lg }, { [styles[`xl${xl}`]]: xl }, className);
20
20
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -16,5 +16,5 @@ import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./ListItem.module.css";
17
17
  export const ListItem = forwardRef(function ListItem(_a, ref) {
18
18
  var { align, className, children } = _a, restProps = __rest(_a, ["align", "className", "children"]);
19
- return (_jsx("li", Object.assign({ ref: ref }, restProps, { className: classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, styles.listItem, className), children: children })));
19
+ return (_jsx("li", Object.assign({ ref: ref }, restProps, { className: classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, styles.listItem, className), children: children })));
20
20
  });
package/dist/Main/Main.js CHANGED
@@ -16,6 +16,6 @@ import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Main.module.css";
17
17
  export const Main = forwardRef(function Main(_a, ref) {
18
18
  var { align, navOpen = false, className, children } = _a, restProps = __rest(_a, ["align", "navOpen", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, styles.main, { [styles.navOpen]: navOpen }, className);
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, styles.main, { [styles.navOpen]: navOpen }, className);
20
20
  return (_jsx("main", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -16,7 +16,7 @@ import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Navigation.module.css";
17
17
  export const Navigation = forwardRef(function Navigation(_a, ref) {
18
18
  var { align, anchor = "auto", open = false, className, children } = _a, restProps = __rest(_a, ["align", "anchor", "open", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, styles.navigation, styles[anchor], {
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, styles.navigation, styles[anchor], {
20
20
  [styles.open]: open,
21
21
  }, className);
22
22
  return (_jsx("nav", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
@@ -18,5 +18,5 @@ import { Button, Card, Row, Screen, Spacer, Stack, Text, WithInteractions, } fro
18
18
  import styles from "./Popup.module.css";
19
19
  export const Popup = forwardRef(function Popup(_a, ref) {
20
20
  var { align, onClose, heading, className, children } = _a, restProps = __rest(_a, ["align", "onClose", "heading", "className", "children"]);
21
- return (_jsx(Screen, { align: "center", className: styles.popupscreen, children: _jsx(WithInteractions, { onOutsideClick: onClose, children: _jsxs(Card, Object.assign({ ref: ref }, restProps, { className: classNames(styles.popup, className), children: [_jsxs(Row, { style: { marginBottom: "2rem" }, children: [_jsx(Text, { variant: "heading4", children: heading }), _jsx(Spacer, {}), _jsx(Button, { title: "Close", icon: _jsx(Symbol, { icon: "close" }), onClick: onClose })] }), _jsx(Stack, { align: align, style: { width: "100%", overflowY: "auto" }, children: children })] })) }) }));
21
+ return (_jsx(Screen, { align: "center", className: styles.popupscreen, children: _jsx(WithInteractions, { align: "center", onOutsideClick: onClose, children: _jsxs(Card, Object.assign({ ref: ref }, restProps, { className: classNames(styles.popup, className), children: [_jsxs(Row, { style: { marginBottom: "2rem" }, children: [_jsx(Text, { variant: "heading4", children: heading }), _jsx(Spacer, {}), _jsx(Button, { title: "Close", icon: _jsx(Symbol, { icon: "close" }), onClick: onClose })] }), _jsx(Stack, { align: align, style: { width: "100%", overflowY: "auto" }, children: children })] })) }) }));
22
22
  });
package/dist/Row/Row.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  align?: "start" | "space" | "center" | "end";
4
- fullWidth?: boolean;
4
+ fullWidthOnParentDemand?: boolean;
5
5
  overflow?: "shrink" | "wrap" | "scroll";
6
6
  size?: "xs" | "sm" | "md" | "lg" | "xl";
7
7
  children?: React.ReactNode;
package/dist/Row/Row.js CHANGED
@@ -15,7 +15,7 @@ import classNames from "classnames";
15
15
  import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Row.module.css";
17
17
  export const Row = forwardRef(function Row(_a, ref) {
18
- var { align, fullWidth = true, overflow = "shrink", size = "xl", className, children } = _a, restProps = __rest(_a, ["align", "fullWidth", "overflow", "size", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexRowBox, { [boxingStyles[align]]: align }, boxingStyles[overflow], styles.row, { fullWidth: fullWidth }, styles[size], className);
18
+ var { align, fullWidthOnParentDemand = true, overflow = "shrink", size = "xl", className, children } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "overflow", "size", "className", "children"]);
19
+ const joinedClassNames = classNames(boxingStyles.flexRowBox, { [boxingStyles[align]]: align }, boxingStyles[overflow], styles.row, { fullWidthOnParentDemand: fullWidthOnParentDemand }, styles[size], className);
20
20
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -16,6 +16,6 @@ import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Screen.module.css";
17
17
  export const Screen = forwardRef(function Screen(_a, ref) {
18
18
  var { align, className, children } = _a, restProps = __rest(_a, ["align", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, styles.screen, className);
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, styles.screen, className);
20
20
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  align?: "start" | "space" | "center" | "end";
4
- fullWidth?: boolean;
4
+ fullWidthOnParentDemand?: boolean;
5
5
  children?: React.ReactNode;
6
6
  }
7
7
  export declare const Stack: import("react").ForwardRefExoticComponent<StackProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -15,7 +15,7 @@ import classNames from "classnames";
15
15
  import boxingStyles from "../boxing.module.css";
16
16
  import styles from "./Stack.module.css";
17
17
  export const Stack = forwardRef(function Stack(_a, ref) {
18
- var { align, fullWidth = true, className, children } = _a, restProps = __rest(_a, ["align", "fullWidth", "className", "children"]);
19
- const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { fullWidth: fullWidth }, styles.stack, className);
18
+ var { align, fullWidthOnParentDemand = true, className, children } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "className", "children"]);
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, { fullWidthOnParentDemand: fullWidthOnParentDemand }, styles.stack, className);
20
20
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
21
  });
@@ -22,6 +22,6 @@ export const Theme = forwardRef(function Theme(_a, ref) {
22
22
  useEffect(() => {
23
23
  document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
24
24
  }, [zoomPercentage]);
25
- const joinedClassNames = classNames("portalRoot", boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, styles.theme, styles[darkStyle], styles[color], className);
25
+ const joinedClassNames = classNames({ portalRoot: true }, boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { demandChildsToBeFullWidth: true }, styles.theme, styles[darkStyle], styles[color], className);
26
26
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
27
27
  });
@@ -22,4 +22,4 @@ export interface WithInteractionsProps extends StackProps {
22
22
  onMouseHoverStart?: (e: MouseEvent) => void;
23
23
  onMouseHoverLeave?: (e: MouseEvent) => void;
24
24
  }
25
- export declare const WithInteractions: import("react").ForwardRefExoticComponent<WithInteractionsProps & import("react").RefAttributes<HTMLElement>>;
25
+ export declare const WithInteractions: import("react").ForwardRefExoticComponent<WithInteractionsProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -10,5 +10,5 @@ export interface WithOverlayProps extends WithInteractionsProps {
10
10
  overlay?: AllowedOverlays;
11
11
  children?: React.ReactElement;
12
12
  }
13
- export declare function WithOverlay({ trigger, overlay, children, onRightClick, onClick, ...restProps }: WithOverlayProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare const WithOverlay: import("react").ForwardRefExoticComponent<WithOverlayProps & import("react").RefAttributes<HTMLDivElement>>;
14
14
  export {};
@@ -11,13 +11,15 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
14
- import { useState, cloneElement, useEffect, useRef } from "react";
15
- import { WithInteractions, } from "..";
14
+ import { useState, cloneElement, useEffect, useRef, forwardRef, useImperativeHandle, } from "react";
16
15
  import { createPortal } from "react-dom";
17
- export function WithOverlay(_a) {
16
+ import { WithInteractions, } from "..";
17
+ export const WithOverlay = forwardRef(function WithOverlay(_a, forwardedRef) {
18
18
  var { trigger = "onClick", overlay, children, onRightClick, onClick } = _a, restProps = __rest(_a, ["trigger", "overlay", "children", "onRightClick", "onClick"]);
19
19
  // Get Triggers ref and send to Overlay
20
20
  const triggerRef = useRef(null);
21
+ // Let the parent access our DOM node
22
+ useImperativeHandle(forwardedRef, () => triggerRef.current);
21
23
  const [showOverlay, setShowOverlay] = useState(false);
22
24
  // Disable Body Scroll on showOverlay
23
25
  useEffect(() => {
@@ -35,7 +37,8 @@ export function WithOverlay(_a) {
35
37
  (_b = (_a = overlay.props).onClose) === null || _b === void 0 ? void 0 : _b.call(_a);
36
38
  setShowOverlay(false);
37
39
  },
38
- }), document.getElementsByClassName("portalRoot")[0] || document.body);
40
+ }), document.getElementsByClassName("portalRoot")[0] ||
41
+ document.body);
39
42
  return (_jsxs(_Fragment, { children: [_jsx(WithInteractions, Object.assign({ ref: triggerRef }, restProps, { onRightClick: (e) => {
40
43
  trigger === "onRightClick" && setShowOverlay(true);
41
44
  onRightClick === null || onRightClick === void 0 ? void 0 : onRightClick(e);
@@ -43,4 +46,4 @@ export function WithOverlay(_a) {
43
46
  trigger === "onClick" && setShowOverlay(true);
44
47
  onClick === null || onClick === void 0 ? void 0 : onClick(e);
45
48
  }, children: children })), showOverlay && teleport] }));
46
- }
49
+ });
@@ -1,3 +1,8 @@
1
+ /* Full Width Childs */
2
+ :global(.demandChildsToBeFullWidth) > :global(.fullWidthOnParentDemand) {
3
+ width: 100%;
4
+ }
5
+
1
6
  /* Column Box */
2
7
  .flexColumnBox {
3
8
  display: flex;
@@ -21,10 +26,6 @@
21
26
  justify-content: flex-end;
22
27
  align-items: flex-end;
23
28
  }
24
- /* Full Width Childs */
25
- .flexColumnBox > :global(.fullWidth) {
26
- width: 100%;
27
- }
28
29
 
29
30
  /* Row Box */
30
31
  .flexRowBox {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.3.145",
3
+ "version": "1.3.147",
4
4
  "private": false,
5
5
  "author": "Natiq",
6
6
  "description": "UI components for NextJS/React",