@yakad/ui 1.3.160 → 1.3.161

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 (73) hide show
  1. package/dist/ActiveOnVisible/ActiveOnVisible.d.ts +2 -1
  2. package/dist/ActiveOnVisible/ActiveOnVisible.js +5 -5
  3. package/dist/AppBar/AppBar.d.ts +2 -1
  4. package/dist/AppBar/AppBar.js +4 -4
  5. package/dist/Avatar/Avatar.d.ts +2 -2
  6. package/dist/Avatar/Avatar.js +3 -5
  7. package/dist/Button/Button.d.ts +2 -1
  8. package/dist/Button/Button.js +3 -4
  9. package/dist/Card/Card.d.ts +2 -1
  10. package/dist/Card/Card.js +3 -4
  11. package/dist/CheckBox/CheckBox.d.ts +2 -1
  12. package/dist/CheckBox/CheckBox.js +3 -4
  13. package/dist/CodeBox/CodeBox.d.ts +4 -2
  14. package/dist/CodeBox/CodeBox.js +3 -4
  15. package/dist/CodeField/CodeField.d.ts +2 -1
  16. package/dist/CodeField/CodeField.js +7 -6
  17. package/dist/Container/Container.d.ts +2 -1
  18. package/dist/Container/Container.js +3 -4
  19. package/dist/Display/Display.d.ts +4 -2
  20. package/dist/Display/Display.js +3 -4
  21. package/dist/Dropdown/Dropdown.d.ts +3 -1
  22. package/dist/Dropdown/Dropdown.js +5 -5
  23. package/dist/Footer/Footer.d.ts +3 -1
  24. package/dist/Footer/Footer.js +4 -4
  25. package/dist/Form/Form.d.ts +3 -1
  26. package/dist/Form/Form.js +3 -4
  27. package/dist/GridContainer/GridContainer.d.ts +3 -1
  28. package/dist/GridContainer/GridContainer.js +3 -4
  29. package/dist/GridItem/GridItem.d.ts +3 -1
  30. package/dist/GridItem/GridItem.js +3 -4
  31. package/dist/Hr/Hr.d.ts +3 -1
  32. package/dist/Hr/Hr.js +3 -4
  33. package/dist/InputField/InputField.d.ts +2 -1
  34. package/dist/InputField/InputField.js +3 -4
  35. package/dist/List/List.d.ts +3 -1
  36. package/dist/List/List.js +3 -4
  37. package/dist/ListItem/ListItem.d.ts +3 -1
  38. package/dist/ListItem/ListItem.js +3 -4
  39. package/dist/LoadingIcon/LoadingIcon.d.ts +3 -1
  40. package/dist/LoadingIcon/LoadingIcon.js +3 -4
  41. package/dist/Main/Main.d.ts +3 -1
  42. package/dist/Main/Main.js +3 -4
  43. package/dist/Navigation/Navigation.d.ts +3 -1
  44. package/dist/Navigation/Navigation.js +3 -4
  45. package/dist/Popup/Popup.d.ts +2 -1
  46. package/dist/Popup/Popup.js +5 -5
  47. package/dist/RadioButton/RadioButton.d.ts +2 -1
  48. package/dist/RadioButton/RadioButton.js +3 -4
  49. package/dist/RadioGroup/RadioGroup.d.ts +3 -1
  50. package/dist/RadioGroup/RadioGroup.js +4 -4
  51. package/dist/RenderByScroll/RenderByScroll.d.ts +3 -1
  52. package/dist/RenderByScroll/RenderByScroll.js +4 -4
  53. package/dist/Row/Row.d.ts +3 -1
  54. package/dist/Row/Row.js +3 -4
  55. package/dist/Screen/Screen.d.ts +3 -1
  56. package/dist/Screen/Screen.js +3 -4
  57. package/dist/Select/Select.d.ts +3 -1
  58. package/dist/Select/Select.js +3 -4
  59. package/dist/Spacer/Spacer.d.ts +3 -1
  60. package/dist/Spacer/Spacer.js +3 -4
  61. package/dist/Stack/Stack.d.ts +2 -1
  62. package/dist/Stack/Stack.js +3 -4
  63. package/dist/SvgIcon/SvgIcon.d.ts +3 -1
  64. package/dist/SvgIcon/SvgIcon.js +3 -4
  65. package/dist/Table/Table.d.ts +21 -7
  66. package/dist/Table/Table.js +21 -22
  67. package/dist/Text/Text.d.ts +10 -9
  68. package/dist/Text/Text.js +27 -28
  69. package/dist/Theme/Theme.d.ts +2 -1
  70. package/dist/Theme/Theme.js +4 -4
  71. package/dist/WithOverlay/WithOverlay.d.ts +2 -1
  72. package/dist/WithOverlay/WithOverlay.js +5 -5
  73. package/package.json +1 -1
@@ -2,5 +2,6 @@
2
2
  import { StackProps } from "..";
3
3
  export interface ActiveOnVisibleProps extends StackProps {
4
4
  onVisibilityChange?: (visible: boolean) => void;
5
+ ref?: React.Ref<HTMLDivElement>;
5
6
  }
6
- export declare const ActiveOnVisible: import("react").ForwardRefExoticComponent<ActiveOnVisibleProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare function ActiveOnVisible({ onVisibilityChange, style, children, ref, ...restProps }: ActiveOnVisibleProps): import("react/jsx-runtime").JSX.Element;
@@ -11,15 +11,15 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
- import { forwardRef, useImperativeHandle, useRef, useState } from "react";
14
+ import { useImperativeHandle, useRef, useState } from "react";
15
15
  import { Stack, useOnVisibilityChange } from "..";
16
- export const ActiveOnVisible = forwardRef(function ActiveOnVisible(_a, forwardedRef) {
17
- var { onVisibilityChange, style, children } = _a, restProps = __rest(_a, ["onVisibilityChange", "style", "children"]);
16
+ export function ActiveOnVisible(_a) {
17
+ var { onVisibilityChange, style, children, ref } = _a, restProps = __rest(_a, ["onVisibilityChange", "style", "children", "ref"]);
18
18
  const localRef = useRef(null);
19
19
  const [boxHeight, setBoxHeight] = useState(0);
20
20
  // const isVisible = boxHeight === 0;
21
21
  // Let the parent access our DOM node
22
- useImperativeHandle(forwardedRef, () => localRef.current);
22
+ useImperativeHandle(ref, () => localRef.current);
23
23
  useOnVisibilityChange((visible) => {
24
24
  var _a;
25
25
  onVisibilityChange === null || onVisibilityChange === void 0 ? void 0 : onVisibilityChange(visible);
@@ -32,4 +32,4 @@ export const ActiveOnVisible = forwardRef(function ActiveOnVisible(_a, forwarded
32
32
  }
33
33
  }, localRef);
34
34
  return (_jsx(Stack, Object.assign({ ref: localRef }, restProps, { style: Object.assign({ height: boxHeight || "auto" }, style), children: children })));
35
- });
35
+ }
@@ -6,5 +6,6 @@ export interface AppBarProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  size?: "xs" | "sm" | "md" | "lg" | "xl";
7
7
  blur?: boolean;
8
8
  children?: React.ReactNode;
9
+ ref?: React.Ref<HTMLDivElement>;
9
10
  }
10
- export declare const AppBar: import("react").ForwardRefExoticComponent<AppBarProps & import("react").RefAttributes<HTMLDivElement>>;
11
+ export declare function AppBar({ align, overflow, position, size, blur, className, children, ref, ...restProps }: AppBarProps): import("react/jsx-runtime").JSX.Element;
@@ -11,12 +11,12 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
- import { forwardRef, useEffect, useState } from "react";
14
+ import { useEffect, useState } from "react";
15
15
  import classNames from "classnames";
16
16
  import boxingStyles from "../boxing.module.css";
17
17
  import styles from "./AppBar.module.css";
18
- export const AppBar = forwardRef(function AppBar(_a, ref) {
19
- var { align, overflow = "shrink", position = "initial", size, blur, className, children } = _a, restProps = __rest(_a, ["align", "overflow", "position", "size", "blur", "className", "children"]);
18
+ export function AppBar(_a) {
19
+ var { align, overflow = "shrink", position = "initial", size, blur, className, children, ref } = _a, restProps = __rest(_a, ["align", "overflow", "position", "size", "blur", "className", "children", "ref"]);
20
20
  const [show, setShow] = useState(true);
21
21
  const [lastScrollY, setLastScrollY] = useState(0);
22
22
  useEffect(() => {
@@ -41,4 +41,4 @@ export const AppBar = forwardRef(function AppBar(_a, ref) {
41
41
  [styles.sticky]: position === "sticky" || position === "scroll",
42
42
  }, { [styles.hidden]: position === "scroll" && !show }, { [styles[size]]: size }, { [styles.blur]: blur }, className);
43
43
  return (_jsx("header", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
44
- });
44
+ }
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  export interface AvatarProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  src?: string;
4
+ ref?: React.Ref<HTMLDivElement>;
4
5
  }
5
- export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
6
- export default Avatar;
6
+ export declare function Avatar({ src, className, ref, ...restProps }: AvatarProps): import("react/jsx-runtime").JSX.Element;
@@ -10,13 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import styles from "./Avatar.module.css";
16
15
  import { Symbol } from "@yakad/symbols";
17
- export const Avatar = forwardRef(function Avatar(_a, ref) {
18
- var { src, className } = _a, restProps = __rest(_a, ["src", "className"]);
16
+ export function Avatar(_a) {
17
+ var { src, className, ref } = _a, restProps = __rest(_a, ["src", "className", "ref"]);
19
18
  const joinedClassNames = classNames(styles.profileContainer, className);
20
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: src ? { backgroundImage: `url(${src})` } : {}, children: _jsx("div", { className: styles.editOverlay, children: _jsx(Symbol, { icon: "edit" }) }) })));
21
- });
22
- export default Avatar;
20
+ }
@@ -9,5 +9,6 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
9
9
  loadingPosition?: "auto" | "center";
10
10
  loadingVariant?: "scaleOut" | "dots" | "spinner";
11
11
  children?: React.ReactNode;
12
+ ref?: React.Ref<HTMLButtonElement>;
12
13
  }
13
- export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
14
+ export declare function Button({ fullWidthOnParentDemand, size, variant, borderStyle, icon, iconPosition, loadingPosition, loadingVariant, className, children, ref, ...restProps }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -10,17 +10,16 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import { LoadingIcon } from "..";
16
15
  import boxingStyles from "../boxing.module.css";
17
16
  import styles from "./Button.module.css";
18
- export const Button = forwardRef(function Button(_a, ref) {
19
- 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"]);
17
+ export function Button(_a) {
18
+ var { fullWidthOnParentDemand = false, size = "medium", variant = "text", borderStyle = "rounded", icon, iconPosition = "start", loadingPosition = "auto", loadingVariant, className, children, ref } = _a, restProps = __rest(_a, ["fullWidthOnParentDemand", "size", "variant", "borderStyle", "icon", "iconPosition", "loadingPosition", "loadingVariant", "className", "children", "ref"]);
20
19
  const childrenFirst = iconPosition === "end";
21
20
  const isloadingPositionCenter = !icon || loadingPosition === "center";
22
21
  const joinedClassNames = classNames({ [boxingStyles.fullWidthOnParentDemand]: fullWidthOnParentDemand }, styles.button, styles[variant], { [styles.loading]: loadingVariant }, { [styles.loadingPositionCenter]: isloadingPositionCenter }, styles[size], styles[borderStyle], { [styles.iconButton]: !children && icon }, className);
23
22
  return (_jsxs("button", Object.assign({ ref: ref, className: joinedClassNames }, restProps, { children: [childrenFirst && children, loadingVariant && (_jsx("div", { className: classNames(styles.displayOnDisabled, {
24
23
  [styles.positionCenter]: isloadingPositionCenter,
25
24
  }), children: _jsx(LoadingIcon, { size: size, variant: loadingVariant }) })), icon, !childrenFirst && children] })));
26
- });
25
+ }
@@ -4,5 +4,6 @@ export interface CardProps extends StackProps {
4
4
  blur?: boolean;
5
5
  level?: "transparent" | "low" | "mid" | "high";
6
6
  hoverEffect?: boolean;
7
+ ref?: React.Ref<HTMLDivElement>;
7
8
  }
8
- export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ export declare function Card({ blur, level, hoverEffect, className, children, ref, ...restProps }: CardProps): import("react/jsx-runtime").JSX.Element;
package/dist/Card/Card.js CHANGED
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import { Stack } from "..";
16
15
  import styles from "./Card.module.css";
17
- export const Card = forwardRef(function Card(_a, ref) {
18
- var { blur, level, hoverEffect, className, children } = _a, restProps = __rest(_a, ["blur", "level", "hoverEffect", "className", "children"]);
16
+ export function Card(_a) {
17
+ var { blur, level, hoverEffect, className, children, ref } = _a, restProps = __rest(_a, ["blur", "level", "hoverEffect", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames(styles.card, { [styles.blur]: blur }, { [styles.elevated]: level !== "transparent" }, { [styles.hoverEffect]: hoverEffect }, { [styles.yakadCardAutoLevel]: !level || level === "transparent" }, { [styles.yakadCardLowLevel]: level === "low" }, { [styles.yakadCardMidLevel]: level === "mid" }, { [styles.yakadCardHighLevel]: level === "high" }, className);
20
19
  return (_jsx(Stack, Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
@@ -2,6 +2,7 @@
2
2
  type ExcludedTypes = "type";
3
3
  export interface CheckBoxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, ExcludedTypes> {
4
4
  label?: string;
5
+ ref?: React.Ref<HTMLInputElement>;
5
6
  }
6
- export declare const CheckBox: import("react").ForwardRefExoticComponent<CheckBoxProps & import("react").RefAttributes<HTMLInputElement>>;
7
+ export declare function CheckBox({ label, className, style, ref, ...restProps }: CheckBoxProps): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -10,13 +10,12 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import { Symbol } from "@yakad/symbols";
16
15
  import boxingStyles from "../boxing.module.css";
17
16
  import styles from "./CheckBox.module.css";
18
- export const CheckBox = forwardRef(function CheckBox(_a, ref) {
19
- var { label, className, style } = _a, restProps = __rest(_a, ["label", "className", "style"]);
17
+ export function CheckBox(_a) {
18
+ var { label, className, style, ref } = _a, restProps = __rest(_a, ["label", "className", "style", "ref"]);
20
19
  const joinedClassNames = classNames({ [boxingStyles.fullWidthOnParentDemand]: label }, styles.label, { [styles.labeled]: label }, { [styles.disabled]: restProps.disabled }, className);
21
20
  return (_jsxs("label", { className: joinedClassNames, style: style, children: [label, _jsx("input", Object.assign({ ref: ref }, restProps, { className: styles.input, type: "checkbox" })), _jsxs("div", { className: styles.symbolContainer, children: [_jsx(Symbol, { className: styles.symbolChecked, icon: "check_box" }), _jsx(Symbol, { className: styles.symbolUnChecked, icon: "check_box_outline_blank" })] })] }));
22
- });
21
+ }
@@ -1,6 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  export interface CodeBoxProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  copyButton?: boolean;
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare const CodeBox: import("react").ForwardRefExoticComponent<CodeBoxProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare function CodeBox({ copyButton, className, children, ref, ...restProps }: CodeBoxProps & {
7
+ ref?: React.Ref<HTMLDivElement>;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -10,14 +10,13 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import { Symbol } from "@yakad/symbols";
16
15
  import { Button, Card } from "..";
17
16
  import boxingStyles from "../boxing.module.css";
18
17
  import styles from "./CodeBox.module.css";
19
- export const CodeBox = forwardRef(function CodeBox(_a, ref) {
20
- var { copyButton, className, children } = _a, restProps = __rest(_a, ["copyButton", "className", "children"]);
18
+ export function CodeBox(_a) {
19
+ var { copyButton, className, children, ref } = _a, restProps = __rest(_a, ["copyButton", "className", "children", "ref"]);
21
20
  const joinedClassNames = classNames({ [boxingStyles.fullWidthOnParentDemand]: true }, styles.ZZZZZZZZZZ, className);
22
21
  return (_jsxs(Card, Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: [_jsx("pre", { children: children }), copyButton && _jsx(Button, { icon: _jsx(Symbol, { icon: "copy_all" }) })] })));
23
- });
22
+ }
@@ -4,6 +4,7 @@ export interface CodeFieldsProps extends Omit<React.InputHTMLAttributes<HTMLInpu
4
4
  length?: number;
5
5
  onFilled?: () => void;
6
6
  children?: React.ReactNode;
7
+ ref?: React.Ref<HTMLInputElement>;
7
8
  }
8
- export declare const CodeField: import("react").ForwardRefExoticComponent<CodeFieldsProps & import("react").RefAttributes<HTMLInputElement>>;
9
+ export declare function CodeField({ length, onFilled, autoComplete, pattern, onInput, className, style, ref, ...restProps }: CodeFieldsProps): import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -11,7 +11,6 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
- import { forwardRef } from "react";
15
14
  import classNames from "classnames";
16
15
  import boxingStyles from "../boxing.module.css";
17
16
  import styles from "./CodeField.module.css";
@@ -31,12 +30,14 @@ function sliceOverLength(inputElement, inputLength) {
31
30
  function removeUnNumberChars(inputElement) {
32
31
  inputElement.value = inputElement.value.replace(/[^0-9]+/, "");
33
32
  }
34
- export const CodeField = forwardRef(function CodeField(_a, ref) {
35
- var { length = 6, onFilled, autoComplete, pattern, onInput, className, style } = _a, restProps = __rest(_a, ["length", "onFilled", "autoComplete", "pattern", "onInput", "className", "style"]);
33
+ export function CodeField(_a) {
34
+ var { length = 6, onFilled, autoComplete, pattern, onInput, className, style, ref } = _a, restProps = __rest(_a, ["length", "onFilled", "autoComplete", "pattern", "onInput", "className", "style", "ref"]);
36
35
  const joinedClassNames = classNames({ [boxingStyles.fullWidthOnParentDemand]: true }, styles.input, className);
37
36
  const joinedStyles = Object.assign(Object.assign({}, style), { width: `calc(1.5ch * ${length})` });
38
37
  return (_jsx("input", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: joinedStyles, type: "number", minLength: length, maxLength: length, autoComplete: autoComplete || "off", pattern: pattern || "[0-9]", onInput: (event) => {
39
- isInputFilled(event, length) && onFilled;
40
- onInput;
38
+ if (isInputFilled(event, length)) {
39
+ onFilled === null || onFilled === void 0 ? void 0 : onFilled();
40
+ }
41
+ onInput === null || onInput === void 0 ? void 0 : onInput(event);
41
42
  } })));
42
- });
43
+ }
@@ -3,5 +3,6 @@ export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  align?: "start" | "space" | "center" | "end";
4
4
  size?: "xs" | "sm" | "md" | "lg" | "xl";
5
5
  children?: React.ReactNode;
6
+ ref?: React.Ref<HTMLDivElement>;
6
7
  }
7
- export declare const Container: import("react").ForwardRefExoticComponent<ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
8
+ export declare function Container({ size, align, className, children, ref, ...restProps }: ContainerProps): import("react/jsx-runtime").JSX.Element;
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import boxingStyles from "../boxing.module.css";
16
15
  import styles from "./Container.module.css";
17
- export const Container = forwardRef(function Container(_a, ref) {
18
- var { size = "xl", align, className, children } = _a, restProps = __rest(_a, ["size", "align", "className", "children"]);
16
+ export function Container(_a) {
17
+ var { size = "xl", align, className, children, ref } = _a, restProps = __rest(_a, ["size", "align", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { [boxingStyles.demandChildsToBeFullWidth]: true }, styles.container, styles[size], className);
20
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  export interface DisplayProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  align?: "start" | "space" | "center" | "end";
4
4
  fullWidthOnParentDemand?: boolean;
@@ -6,4 +6,6 @@ export interface DisplayProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  maxWidth?: "xs" | "sm" | "md" | "lg" | "xl";
7
7
  children?: React.ReactNode;
8
8
  }
9
- export declare const Display: import("react").ForwardRefExoticComponent<DisplayProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ export declare function Display({ align, fullWidthOnParentDemand, minWidth, maxWidth, className, children, ref, ...restProps }: DisplayProps & {
10
+ ref?: React.Ref<HTMLDivElement>;
11
+ }): import("react/jsx-runtime").JSX.Element;
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import boxingStyles from "../boxing.module.css";
16
15
  import styles from "./Display.module.css";
17
- export const Display = forwardRef(function Display(_a, ref) {
18
- var { align, fullWidthOnParentDemand = true, minWidth, maxWidth, className, children } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "minWidth", "maxWidth", "className", "children"]);
16
+ export function Display(_a) {
17
+ var { align, fullWidthOnParentDemand = true, minWidth, maxWidth, className, children, ref } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "minWidth", "maxWidth", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { [boxingStyles.demandChildsToBeFullWidth]: true }, { [boxingStyles.fullWidthOnParentDemand]: fullWidthOnParentDemand }, { [styles[`${minWidth}MinWidth`]]: minWidth }, { [styles[`${maxWidth}MaxWidth`]]: maxWidth }, className);
20
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { CardProps, OverlayProps } from "..";
3
3
  export interface DropdownProps extends CardProps, OverlayProps {
4
+ ref?: React.Ref<HTMLDivElement>;
4
5
  }
5
- export declare const Dropdown: import("react").ForwardRefExoticComponent<DropdownProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare function Dropdown({ fullWidthOnParentDemand, // Def in Card is True
7
+ blur, level, triggerref, onClose, className, style, children, ref, ...restProps }: DropdownProps): import("react/jsx-runtime").JSX.Element;
@@ -11,18 +11,18 @@ 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 { useRef, useState, useEffect, forwardRef, useImperativeHandle, } from "react";
14
+ import { useRef, useState, useEffect, useImperativeHandle, } from "react";
15
15
  import classNames from "classnames";
16
16
  import { Card, useOnOutsideClick } from "..";
17
17
  import styles from "./Dropdown.module.css";
18
- export const Dropdown = forwardRef(function Dropdown(_a, forwardedRef) {
18
+ export function Dropdown(_a) {
19
19
  var { fullWidthOnParentDemand = false, // Def in Card is True
20
- blur, level = "high", triggerref, onClose, className, style, children } = _a, restProps = __rest(_a, ["fullWidthOnParentDemand", "blur", "level", "triggerref", "onClose", "className", "style", "children"]);
20
+ blur, level = "high", triggerref, onClose, className, style, children, ref } = _a, restProps = __rest(_a, ["fullWidthOnParentDemand", "blur", "level", "triggerref", "onClose", "className", "style", "children", "ref"]);
21
21
  const fallbackTriggerRef = useRef(null);
22
22
  const dropdownRef = useRef(null);
23
23
  const placementTargetRef = triggerref || fallbackTriggerRef;
24
24
  // Let the parent access our DOM node
25
- useImperativeHandle(forwardedRef, () => dropdownRef.current);
25
+ useImperativeHandle(ref, () => dropdownRef.current);
26
26
  const [arrowPosition, setArrowPosition] = useState({
27
27
  top: 0,
28
28
  left: 0,
@@ -82,4 +82,4 @@ export const Dropdown = forwardRef(function Dropdown(_a, forwardedRef) {
82
82
  left: arrowPosition.left,
83
83
  visibility: isPlaced ? "visible" : "hidden",
84
84
  } })] }));
85
- });
85
+ }
@@ -7,4 +7,6 @@ export interface FooterProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  blur?: boolean;
8
8
  children?: React.ReactNode;
9
9
  }
10
- export declare const Footer: import("react").ForwardRefExoticComponent<FooterProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ export declare function Footer({ align, overflow, position, size, blur, className, children, ref, ...restProps }: FooterProps & {
11
+ ref?: React.Ref<HTMLDivElement>;
12
+ }): import("react/jsx-runtime").JSX.Element;
@@ -11,12 +11,12 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
- import { forwardRef, useState, useEffect } from "react";
14
+ import { useState, useEffect } from "react";
15
15
  import classNames from "classnames";
16
16
  import boxingStyles from "../boxing.module.css";
17
17
  import styles from "./Footer.module.css";
18
- export const Footer = forwardRef(function Footer(_a, ref) {
19
- var { align, overflow = "shrink", position = "initial", size, blur, className, children } = _a, restProps = __rest(_a, ["align", "overflow", "position", "size", "blur", "className", "children"]);
18
+ export function Footer(_a) {
19
+ var { align, overflow = "shrink", position = "initial", size, blur, className, children, ref } = _a, restProps = __rest(_a, ["align", "overflow", "position", "size", "blur", "className", "children", "ref"]);
20
20
  const [show, setShow] = useState(true);
21
21
  const [lastScrollY, setLastScrollY] = useState(0);
22
22
  useEffect(() => {
@@ -39,4 +39,4 @@ export const Footer = forwardRef(function Footer(_a, ref) {
39
39
  }, [lastScrollY, position]);
40
40
  const joinedClassNames = classNames(boxingStyles.flexRowBox, { [boxingStyles[align]]: align }, boxingStyles[overflow], styles.footer, { [styles.sticky]: position === "sticky" || position === "scroll" }, { [styles.hidden]: position === "scroll" && !show }, { [styles[size]]: size }, { [styles.blur]: blur }, className);
41
41
  return (_jsx("footer", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
42
- });
42
+ }
@@ -4,4 +4,6 @@ export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
4
4
  fullWidthOnParentDemand?: boolean;
5
5
  children?: React.ReactNode;
6
6
  }
7
- export declare const Form: import("react").ForwardRefExoticComponent<FormProps & import("react").RefAttributes<HTMLFormElement>>;
7
+ export declare function Form({ align, fullWidthOnParentDemand, className, children, ref, ...restProps }: FormProps & {
8
+ ref?: React.Ref<HTMLFormElement>;
9
+ }): import("react/jsx-runtime").JSX.Element;
package/dist/Form/Form.js CHANGED
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import styles from "./Form.module.css";
16
15
  import boxingStyles from "../boxing.module.css";
17
- export const Form = forwardRef(function Form(_a, ref) {
18
- var { align, fullWidthOnParentDemand = true, className, children } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "className", "children"]);
16
+ export function Form(_a) {
17
+ var { align, fullWidthOnParentDemand = true, className, children, ref } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { [boxingStyles.demandChildsToBeFullWidth]: true }, { [boxingStyles.fullWidthOnParentDemand]: fullWidthOnParentDemand }, styles.form, className);
20
19
  return (_jsx("form", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
@@ -4,4 +4,6 @@ export interface GridContainerProps extends React.HTMLAttributes<HTMLDivElement>
4
4
  columns?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
5
5
  children?: React.ReactNode;
6
6
  }
7
- export declare const GridContainer: import("react").ForwardRefExoticComponent<GridContainerProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare function GridContainer({ gap, columns, className, style, children, ref, ...restProps }: GridContainerProps & {
8
+ ref?: React.Ref<HTMLDivElement>;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import styles from "./GridContainer.module.css";
16
- export const GridContainer = forwardRef(function GridContainer(_a, ref) {
17
- var { gap = 1.5, columns = 12, className, style, children } = _a, restProps = __rest(_a, ["gap", "columns", "className", "style", "children"]);
15
+ export function GridContainer(_a) {
16
+ var { gap = 1.5, columns = 12, className, style, children, ref } = _a, restProps = __rest(_a, ["gap", "columns", "className", "style", "children", "ref"]);
18
17
  const joinedClassNames = classNames(styles.gridcontainer, styles[`gridColumns${columns}`], className);
19
18
  const joinedStyles = Object.assign(Object.assign({}, style), { columnGap: (style === null || style === void 0 ? void 0 : style.columnGap) || `${gap}rem`, rowGap: (style === null || style === void 0 ? void 0 : style.rowGap) || `${gap}rem` });
20
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: joinedStyles, children: children })));
21
- });
20
+ }
@@ -9,5 +9,7 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
9
9
  xl?: GridColumn;
10
10
  children?: React.ReactNode;
11
11
  }
12
- export declare const GridItem: import("react").ForwardRefExoticComponent<GridItemProps & import("react").RefAttributes<HTMLDivElement>>;
12
+ export declare function GridItem({ align, xs, sm, md, lg, xl, className, children, ref, ...restProps }: GridItemProps & {
13
+ ref?: React.Ref<HTMLDivElement>;
14
+ }): import("react/jsx-runtime").JSX.Element;
13
15
  export {};
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import boxingStyles from "../boxing.module.css";
16
15
  import styles from "./GridItem.module.css";
17
- export const GridItem = forwardRef(function GridItem(_a, ref) {
18
- var { align, xs, sm, md, lg, xl, className, children } = _a, restProps = __rest(_a, ["align", "xs", "sm", "md", "lg", "xl", "className", "children"]);
16
+ export function GridItem(_a) {
17
+ var { align, xs, sm, md, lg, xl, className, children, ref } = _a, restProps = __rest(_a, ["align", "xs", "sm", "md", "lg", "xl", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { [boxingStyles.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
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
package/dist/Hr/Hr.d.ts CHANGED
@@ -4,4 +4,6 @@ export interface HrProps extends React.HTMLAttributes<HTMLHRElement> {
4
4
  height?: number;
5
5
  marginx?: number;
6
6
  }
7
- export declare const Hr: import("react").ForwardRefExoticComponent<HrProps & import("react").RefAttributes<HTMLHRElement>>;
7
+ export declare function Hr({ variant, height, marginx, className, style, ref, ...restProps }: HrProps & {
8
+ ref?: React.Ref<HTMLHRElement>;
9
+ }): import("react/jsx-runtime").JSX.Element;
package/dist/Hr/Hr.js CHANGED
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import styles from "./Hr.module.css";
16
- export const Hr = forwardRef(function Hr(_a, ref) {
17
- var { variant, height, marginx, className, style } = _a, restProps = __rest(_a, ["variant", "height", "marginx", "className", "style"]);
15
+ export function Hr(_a) {
16
+ var { variant, height, marginx, className, style, ref } = _a, restProps = __rest(_a, ["variant", "height", "marginx", "className", "style", "ref"]);
18
17
  const joinedClassNames = classNames(styles.hr, variant && styles[variant], className);
19
18
  const joinedStyles = Object.assign(Object.assign({}, style), { borderTopWidth: height ? `${height}rem` : style === null || style === void 0 ? void 0 : style.borderTopWidth, marginTop: marginx ? `${marginx}rem` : style === null || style === void 0 ? void 0 : style.marginTop, marginBottom: marginx ? `${marginx}rem` : style === null || style === void 0 ? void 0 : style.marginBottom });
20
19
  return (_jsx("hr", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: joinedStyles })));
21
- });
20
+ }
@@ -2,5 +2,6 @@ import React from "react";
2
2
  export interface InputFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
3
  variant?: "outlined" | "filled";
4
4
  boxSize?: "small" | "normal";
5
+ ref?: React.Ref<HTMLInputElement>;
5
6
  }
6
- export declare const InputField: React.ForwardRefExoticComponent<InputFieldProps & React.RefAttributes<HTMLInputElement>>;
7
+ export declare function InputField({ variant, boxSize, placeholder, className, ref, ...restProps }: InputFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import boxingStyles from "../boxing.module.css";
16
15
  import styles from "./InputField.module.css";
17
- export const InputField = forwardRef(function InputField(_a, ref) {
18
- var { variant = "outlined", boxSize = "normal", placeholder, className } = _a, restProps = __rest(_a, ["variant", "boxSize", "placeholder", "className"]);
16
+ export function InputField(_a) {
17
+ var { variant = "outlined", boxSize = "normal", placeholder, className, ref } = _a, restProps = __rest(_a, ["variant", "boxSize", "placeholder", "className", "ref"]);
19
18
  const joinedClassNames = classNames(styles.input, styles[variant], styles[boxSize], placeholder && styles.havePlaceHolder, className);
20
19
  return (_jsxs("div", { className: classNames({ [boxingStyles.fullWidthOnParentDemand]: true }, styles.div), children: [_jsx("input", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, placeholder: " " })), placeholder && (_jsx("label", { className: styles.label, children: placeholder }))] }));
21
- });
20
+ }
@@ -4,4 +4,6 @@ export interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
4
4
  collapsed?: boolean;
5
5
  children?: React.ReactNode;
6
6
  }
7
- export declare const List: import("react").ForwardRefExoticComponent<ListProps & import("react").RefAttributes<HTMLUListElement>>;
7
+ export declare function List({ direction, collapsed, className, children, ref, ...restProps }: ListProps & {
8
+ ref?: React.Ref<HTMLUListElement>;
9
+ }): import("react/jsx-runtime").JSX.Element;
package/dist/List/List.js CHANGED
@@ -10,12 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import boxingStyles from "../boxing.module.css";
16
15
  import styles from "./List.module.css";
17
- export const List = forwardRef(function List(_a, ref) {
18
- var { direction = "row", collapsed, className, children } = _a, restProps = __rest(_a, ["direction", "collapsed", "className", "children"]);
16
+ export function List(_a) {
17
+ var { direction = "row", collapsed, className, children, ref } = _a, restProps = __rest(_a, ["direction", "collapsed", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames({ [boxingStyles.fullWidthOnParentDemand]: true }, styles.list, styles[direction], { [styles.collapsed]: collapsed }, className);
20
19
  return (_jsx("ul", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
@@ -2,4 +2,6 @@
2
2
  export interface ListItemProps extends React.HTMLAttributes<HTMLLIElement> {
3
3
  align?: "start" | "space" | "center" | "end";
4
4
  }
5
- export declare const ListItem: import("react").ForwardRefExoticComponent<ListItemProps & import("react").RefAttributes<HTMLLIElement>>;
5
+ export declare function ListItem({ align, className, children, ref, ...restProps }: ListItemProps & {
6
+ ref?: React.Ref<HTMLLIElement>;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -10,11 +10,10 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { forwardRef } from "react";
14
13
  import classNames from "classnames";
15
14
  import boxingStyles from "../boxing.module.css";
16
15
  import styles from "./ListItem.module.css";
17
- export const ListItem = forwardRef(function ListItem(_a, ref) {
18
- var { align, className, children } = _a, restProps = __rest(_a, ["align", "className", "children"]);
16
+ export function ListItem(_a) {
17
+ var { align, className, children, ref } = _a, restProps = __rest(_a, ["align", "className", "children", "ref"]);
19
18
  return (_jsx("li", Object.assign({ ref: ref }, restProps, { className: classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { [boxingStyles.demandChildsToBeFullWidth]: true }, styles.listItem, className), children: children })));
20
- });
19
+ }
@@ -3,4 +3,6 @@ export interface LoadingIconProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  size?: "extraSmall" | "small" | "medium" | "large" | "extraLarge";
4
4
  variant?: "scaleOut" | "dots" | "spinner";
5
5
  }
6
- export declare const LoadingIcon: import("react").ForwardRefExoticComponent<LoadingIconProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare function LoadingIcon({ size, variant, className, ref, ...restProps }: LoadingIconProps & {
7
+ ref?: React.Ref<HTMLDivElement>;
8
+ }): import("react/jsx-runtime").JSX.Element;