@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
@@ -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 styles from "./LoadingIcon.module.css";
16
- export const LoadingIcon = forwardRef(function LoadingIcon(_a, ref) {
17
- var { size = "medium", variant = "dots", className } = _a, restProps = __rest(_a, ["size", "variant", "className"]);
15
+ export function LoadingIcon(_a) {
16
+ var { size = "medium", variant = "dots", className, ref } = _a, restProps = __rest(_a, ["size", "variant", "className", "ref"]);
18
17
  const joinedClassNames = classNames(styles.loadingIcon, styles[size], styles[variant], className);
19
18
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: _jsx("div", {}) })));
20
- });
19
+ }
@@ -4,4 +4,6 @@ export interface MainProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  navOpen?: boolean;
5
5
  children?: React.ReactNode;
6
6
  }
7
- export declare const Main: import("react").ForwardRefExoticComponent<MainProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare function Main({ align, navOpen, className, children, ref, ...restProps }: MainProps & {
8
+ ref?: React.Ref<HTMLDivElement>;
9
+ }): import("react/jsx-runtime").JSX.Element;
package/dist/Main/Main.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 "./Main.module.css";
17
- export const Main = forwardRef(function Main(_a, ref) {
18
- var { align, navOpen = false, className, children } = _a, restProps = __rest(_a, ["align", "navOpen", "className", "children"]);
16
+ export function Main(_a) {
17
+ var { align, navOpen = false, className, children, ref } = _a, restProps = __rest(_a, ["align", "navOpen", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { [boxingStyles.demandChildsToBeFullWidth]: true }, styles.main, { [styles.navOpen]: navOpen }, className);
20
19
  return (_jsx("main", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
@@ -5,4 +5,6 @@ export interface NavigationProps extends React.HTMLAttributes<HTMLElement> {
5
5
  open: boolean;
6
6
  children?: React.ReactNode;
7
7
  }
8
- export declare const Navigation: import("react").ForwardRefExoticComponent<NavigationProps & import("react").RefAttributes<HTMLDivElement>>;
8
+ export declare function Navigation({ align, anchor, open, className, children, ref, ...restProps }: NavigationProps & {
9
+ ref?: React.Ref<HTMLDivElement>;
10
+ }): 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 } 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 "./Navigation.module.css";
17
- export const Navigation = forwardRef(function Navigation(_a, ref) {
18
- var { align, anchor = "auto", open = false, className, children } = _a, restProps = __rest(_a, ["align", "anchor", "open", "className", "children"]);
16
+ export function Navigation(_a) {
17
+ var { align, anchor = "auto", open = false, className, children, ref } = _a, restProps = __rest(_a, ["align", "anchor", "open", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { [boxingStyles.demandChildsToBeFullWidth]: true }, styles.navigation, styles[anchor], {
20
19
  [styles.open]: open,
21
20
  }, className);
22
21
  return (_jsx("nav", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
23
- });
22
+ }
@@ -2,5 +2,6 @@
2
2
  import { CardProps, OverlayProps } from "..";
3
3
  export interface PopupProps extends CardProps, OverlayProps {
4
4
  heading?: string;
5
+ ref?: React.Ref<HTMLDivElement>;
5
6
  }
6
- export declare const Popup: import("react").ForwardRefExoticComponent<PopupProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare function Popup({ align, onClose, heading, className, children, ref, ...restProps }: PopupProps): import("react/jsx-runtime").JSX.Element;
@@ -11,16 +11,16 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import { forwardRef, useImperativeHandle } from "react";
14
+ import { useImperativeHandle } from "react";
15
15
  import classNames from "classnames";
16
16
  import { Symbol } from "@yakad/symbols";
17
17
  import { Button, Card, Row, Screen, Spacer, Stack, Text, useOnOutsideClick, } from "..";
18
18
  import styles from "./Popup.module.css";
19
- export const Popup = forwardRef(function Popup(_a, forwardedRef) {
20
- var { align, onClose, heading, className, children } = _a, restProps = __rest(_a, ["align", "onClose", "heading", "className", "children"]);
19
+ export function Popup(_a) {
20
+ var { align, onClose, heading, className, children, ref } = _a, restProps = __rest(_a, ["align", "onClose", "heading", "className", "children", "ref"]);
21
21
  const localRef = useOnOutsideClick(() => {
22
22
  onClose === null || onClose === void 0 ? void 0 : onClose();
23
23
  });
24
- useImperativeHandle(forwardedRef, () => localRef.current);
24
+ useImperativeHandle(ref, () => localRef.current);
25
25
  return (_jsx(Screen, { align: "center", className: styles.popupscreen, children: _jsxs(Card, Object.assign({ ref: localRef }, 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 })] })) }));
26
- });
26
+ }
@@ -8,6 +8,7 @@ export interface RadioButtonProps extends Omit<React.InputHTMLAttributes<HTMLInp
8
8
  onSelect: () => void;
9
9
  checked: boolean;
10
10
  };
11
+ ref?: React.Ref<HTMLInputElement>;
11
12
  }
12
- export declare const RadioButton: import("react").ForwardRefExoticComponent<RadioButtonProps & import("react").RefAttributes<HTMLInputElement>>;
13
+ export declare function RadioButton({ dataFromRadioGroup, label, onClick, className, ref, ...restProps }: RadioButtonProps): import("react/jsx-runtime").JSX.Element;
13
14
  export {};
@@ -11,13 +11,12 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import { forwardRef } from "react";
15
14
  import classNames from "classnames";
16
15
  import { Symbol } from "@yakad/symbols";
17
16
  import { Button } from "..";
18
17
  import styles from "./RadioButton.module.css";
19
- export const RadioButton = forwardRef(function RadioButton(_a, ref) {
20
- var { dataFromRadioGroup, label, onClick, className } = _a, restProps = __rest(_a, ["dataFromRadioGroup", "label", "onClick", "className"]);
18
+ export function RadioButton(_a) {
19
+ var { dataFromRadioGroup, label, onClick, className, ref } = _a, restProps = __rest(_a, ["dataFromRadioGroup", "label", "onClick", "className", "ref"]);
21
20
  const joinedClassNames = classNames(styles.radiobutton, {
22
21
  [styles.labeled]: label,
23
22
  className,
@@ -29,4 +28,4 @@ export const RadioButton = forwardRef(function RadioButton(_a, ref) {
29
28
  return (_jsxs("div", { className: joinedClassNames, children: [label && (_jsx("label", { className: styles.label, htmlFor: dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.name, children: label })), _jsx(Button, { icon: _jsx(Symbol, { icon: (dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.checked)
30
29
  ? "radio_button_checked"
31
30
  : "radio_button_unchecked" }), onClick: onClickRadioButtonHandler, disabled: restProps.disabled }), _jsx("input", Object.assign({ ref: ref }, restProps, { className: styles.input, type: "radio", name: dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.name, checked: dataFromRadioGroup === null || dataFromRadioGroup === void 0 ? void 0 : dataFromRadioGroup.checked }))] }));
32
- });
31
+ }
@@ -7,5 +7,7 @@ export interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElemen
7
7
  defaultValue?: string;
8
8
  children?: RadioButtonElement | RadioButtonElement[];
9
9
  }
10
- export declare const RadioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ export declare function RadioGroup({ name, defaultValue, className, children, ref, ...restProps }: RadioGroupProps & {
11
+ ref?: React.Ref<HTMLDivElement>;
12
+ }): import("react/jsx-runtime").JSX.Element;
11
13
  export {};
@@ -11,10 +11,10 @@ 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 { useState, forwardRef, Children } from "react";
14
+ import { useState, Children } from "react";
15
15
  import { RadioButton } from "..";
16
- export const RadioGroup = forwardRef(function RadioGroup(_a, ref) {
17
- var { name, defaultValue, className, children } = _a, restProps = __rest(_a, ["name", "defaultValue", "className", "children"]);
16
+ export function RadioGroup(_a) {
17
+ var { name, defaultValue, className, children, ref } = _a, restProps = __rest(_a, ["name", "defaultValue", "className", "children", "ref"]);
18
18
  const [selectedValue, setSelectedValue] = useState(defaultValue || null);
19
19
  const arrayChildren = Children.toArray(children);
20
20
  const renderChildrens = () => arrayChildren.map((child, index) => (_jsx(RadioButton, Object.assign({}, child.props, { dataFromRadioGroup: {
@@ -23,4 +23,4 @@ export const RadioGroup = forwardRef(function RadioGroup(_a, ref) {
23
23
  checked: selectedValue === child.props.value,
24
24
  } }), index)));
25
25
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: className, children: renderChildrens() })));
26
- });
26
+ }
@@ -7,5 +7,7 @@ export interface RenderByScrollProps extends StackProps {
7
7
  stopNewRenders?: boolean;
8
8
  newChildRendered?: (index: number) => void;
9
9
  children?: React.ReactNode;
10
+ ref?: React.Ref<HTMLDivElement>;
10
11
  }
11
- export declare const RenderByScroll: React.ForwardRefExoticComponent<RenderByScrollProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare function RenderByScroll({ scrollMarginTop, // Sticky Header Height
13
+ extraRender, jumpToIndex, stopNewRenders, newChildRendered, style, children, ref, ...restProps }: RenderByScrollProps): import("react/jsx-runtime").JSX.Element;
@@ -11,11 +11,11 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  return t;
12
12
  };
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import React, { forwardRef, useEffect, useRef, useState } from "react";
14
+ import React, { useEffect, useRef, useState } from "react";
15
15
  import { ActiveOnVisible, Stack, useOnVisibilityChange } from "..";
16
- export const RenderByScroll = forwardRef(function RenderByScroll(_a, ref) {
16
+ export function RenderByScroll(_a) {
17
17
  var { scrollMarginTop = 8, // Sticky Header Height
18
- extraRender = 5, jumpToIndex = 0, stopNewRenders, newChildRendered, style, children } = _a, restProps = __rest(_a, ["scrollMarginTop", "extraRender", "jumpToIndex", "stopNewRenders", "newChildRendered", "style", "children"]);
18
+ extraRender = 5, jumpToIndex = 0, stopNewRenders, newChildRendered, style, children, ref } = _a, restProps = __rest(_a, ["scrollMarginTop", "extraRender", "jumpToIndex", "stopNewRenders", "newChildRendered", "style", "children", "ref"]);
19
19
  const childrenArray = React.Children.toArray(children);
20
20
  // Scroll Zone
21
21
  const childRefs = useRef({});
@@ -93,4 +93,4 @@ export const RenderByScroll = forwardRef(function RenderByScroll(_a, ref) {
93
93
  }, onVisibilityChange: (visible) => {
94
94
  visible && handleOnVisible(i);
95
95
  }, children: child }, i)))] })));
96
- });
96
+ }
package/dist/Row/Row.d.ts CHANGED
@@ -6,4 +6,6 @@ export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  size?: "xs" | "sm" | "md" | "lg" | "xl";
7
7
  children?: React.ReactNode;
8
8
  }
9
- export declare const Row: import("react").ForwardRefExoticComponent<RowProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ export declare function Row({ align, fullWidthOnParentDemand, overflow, size, className, children, ref, ...restProps }: RowProps & {
10
+ ref?: React.Ref<HTMLDivElement>;
11
+ }): import("react/jsx-runtime").JSX.Element;
package/dist/Row/Row.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 "./Row.module.css";
17
- export const Row = forwardRef(function Row(_a, ref) {
18
- var { align, fullWidthOnParentDemand = true, overflow = "shrink", size = "xl", className, children } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "overflow", "size", "className", "children"]);
16
+ export function Row(_a) {
17
+ var { align, fullWidthOnParentDemand = true, overflow = "shrink", size = "xl", className, children, ref } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "overflow", "size", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames(boxingStyles.flexRowBox, { [boxingStyles[align]]: align }, boxingStyles[overflow], styles.row, { [boxingStyles.fullWidthOnParentDemand]: fullWidthOnParentDemand }, styles[size], className);
20
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
@@ -3,4 +3,6 @@ export interface ScreenProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  align?: "start" | "space" | "center" | "end";
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare const Screen: import("react").ForwardRefExoticComponent<ScreenProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare function Screen({ align, className, children, ref, ...restProps }: ScreenProps & {
7
+ ref?: React.Ref<HTMLDivElement>;
8
+ }): 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 "./Screen.module.css";
17
- export const Screen = forwardRef(function Screen(_a, ref) {
18
- var { align, className, children } = _a, restProps = __rest(_a, ["align", "className", "children"]);
16
+ export function Screen(_a) {
17
+ var { align, className, children, ref } = _a, restProps = __rest(_a, ["align", "className", "children", "ref"]);
19
18
  const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { [boxingStyles.demandChildsToBeFullWidth]: true }, styles.screen, className);
20
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
@@ -5,4 +5,6 @@ export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElemen
5
5
  placeholder?: string;
6
6
  children?: React.ReactNode;
7
7
  }
8
- export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLSelectElement>>;
8
+ export declare function Select({ variant, boxsize, placeholder, className, children, ref, ...restProps }: SelectProps & {
9
+ ref?: React.Ref<HTMLSelectElement>;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -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 boxingStyles from "../boxing.module.css";
16
15
  import styles from "./Select.module.css";
17
16
  import inputStyles from "../InputField/InputField.module.css";
18
- export const Select = forwardRef(function Select(_a, ref) {
19
- var { variant = "outlined", boxsize = "normal", placeholder, className, children } = _a, restProps = __rest(_a, ["variant", "boxsize", "placeholder", "className", "children"]);
17
+ export function Select(_a) {
18
+ var { variant = "outlined", boxsize = "normal", placeholder, className, children, ref } = _a, restProps = __rest(_a, ["variant", "boxsize", "placeholder", "className", "children", "ref"]);
20
19
  const joinedClassNames = classNames(styles.select, inputStyles.input, inputStyles[variant], inputStyles[boxsize], { [inputStyles.havePlaceHolder]: placeholder }, className);
21
20
  return (_jsxs("div", { className: classNames({ [boxingStyles.fullWidthOnParentDemand]: true }, inputStyles.div), children: [_jsx("select", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })), placeholder ? (_jsx("label", { className: inputStyles.label, children: placeholder })) : null] }));
22
- });
21
+ }
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export interface SpacerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
3
3
  }
4
- export declare const Spacer: import("react").ForwardRefExoticComponent<SpacerProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare function Spacer({ className, ref, ...restProps }: SpacerProps & {
5
+ ref?: React.Ref<HTMLDivElement>;
6
+ }): 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 styles from "./Spacer.module.css";
16
- export const Spacer = forwardRef(function Spacer(_a, ref) {
17
- var { className } = _a, restProps = __rest(_a, ["className"]);
15
+ export function Spacer(_a) {
16
+ var { className, ref } = _a, restProps = __rest(_a, ["className", "ref"]);
18
17
  const joinedClassNames = classNames(styles.spacer, className);
19
18
  return _jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames }));
20
- });
19
+ }
@@ -3,5 +3,6 @@ export interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  align?: "start" | "space" | "center" | "end";
4
4
  fullWidthOnParentDemand?: boolean;
5
5
  children?: React.ReactNode;
6
+ ref?: React.Ref<HTMLDivElement>;
6
7
  }
7
- export declare const Stack: import("react").ForwardRefExoticComponent<StackProps & import("react").RefAttributes<HTMLDivElement>>;
8
+ export declare function Stack({ align, fullWidthOnParentDemand, className, children, ref, ...restProps }: StackProps): 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 "./Stack.module.css";
17
- export const Stack = forwardRef(function Stack(_a, ref) {
18
- var { align, fullWidthOnParentDemand = true, className, children } = _a, restProps = __rest(_a, ["align", "fullWidthOnParentDemand", "className", "children"]);
16
+ export function Stack(_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.stack, className);
20
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
20
+ }
@@ -3,4 +3,6 @@ export interface SvgIconProps extends React.HTMLAttributes<HTMLElement> {
3
3
  size?: number;
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare const SvgIcon: import("react").ForwardRefExoticComponent<SvgIconProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare function SvgIcon({ size, className, style, children, ref, ...restProps }: SvgIconProps & {
7
+ ref?: React.Ref<HTMLDivElement>;
8
+ }): 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 "./SvgIcon.module.css";
16
- export const SvgIcon = forwardRef(function SvgIcon(_a, ref) {
17
- var { size, className, style, children } = _a, restProps = __rest(_a, ["size", "className", "style", "children"]);
15
+ export function SvgIcon(_a) {
16
+ var { size, className, style, children, ref } = _a, restProps = __rest(_a, ["size", "className", "style", "children", "ref"]);
18
17
  const joinedClassNames = classNames(styles.svg, className);
19
18
  const sizeStyle = size && { width: `${size}rem`, height: `${size}rem` };
20
19
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: Object.assign(Object.assign({}, style), sizeStyle), children: children })));
21
- });
20
+ }
@@ -2,28 +2,42 @@
2
2
  export interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
3
3
  children?: React.ReactNode;
4
4
  }
5
- export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
5
+ export declare function Table({ className, children, ref, ...restProps }: TableProps & {
6
+ ref?: React.Ref<HTMLTableElement>;
7
+ }): import("react/jsx-runtime").JSX.Element;
6
8
  export interface TheadProps extends React.HTMLAttributes<HTMLTableSectionElement> {
7
9
  children?: React.ReactNode;
8
10
  }
9
- export declare const Thead: import("react").ForwardRefExoticComponent<TheadProps & import("react").RefAttributes<HTMLTableSectionElement>>;
11
+ export declare function Thead({ className, children, ref, ...restProps }: TheadProps & {
12
+ ref?: React.Ref<HTMLTableSectionElement>;
13
+ }): import("react/jsx-runtime").JSX.Element;
10
14
  export interface TbodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
11
15
  children?: React.ReactNode;
12
16
  }
13
- export declare const Tbody: import("react").ForwardRefExoticComponent<TbodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
17
+ export declare function Tbody({ className, children, ref, ...restProps }: TbodyProps & {
18
+ ref?: React.Ref<HTMLTableSectionElement>;
19
+ }): import("react/jsx-runtime").JSX.Element;
14
20
  export interface TfootProps extends React.HTMLAttributes<HTMLTableSectionElement> {
15
21
  children?: React.ReactNode;
16
22
  }
17
- export declare const Tfoot: import("react").ForwardRefExoticComponent<TfootProps & import("react").RefAttributes<HTMLTableSectionElement>>;
23
+ export declare function Tfoot({ className, children, ref, ...restProps }: TfootProps & {
24
+ ref?: React.Ref<HTMLTableSectionElement>;
25
+ }): import("react/jsx-runtime").JSX.Element;
18
26
  export interface TrProps extends React.HTMLAttributes<HTMLTableRowElement> {
19
27
  children?: React.ReactNode;
20
28
  }
21
- export declare const Tr: import("react").ForwardRefExoticComponent<TrProps & import("react").RefAttributes<HTMLTableRowElement>>;
29
+ export declare function Tr({ className, children, ref, ...restProps }: TrProps & {
30
+ ref?: React.Ref<HTMLTableRowElement>;
31
+ }): import("react/jsx-runtime").JSX.Element;
22
32
  export interface ThProps extends React.HTMLAttributes<HTMLTableCellElement> {
23
33
  children?: React.ReactNode;
24
34
  }
25
- export declare const Th: import("react").ForwardRefExoticComponent<ThProps & import("react").RefAttributes<HTMLTableCellElement>>;
35
+ export declare function Th({ className, children, ref, ...restProps }: ThProps & {
36
+ ref?: React.Ref<HTMLTableCellElement>;
37
+ }): import("react/jsx-runtime").JSX.Element;
26
38
  export interface TdProps extends React.HTMLAttributes<HTMLTableCellElement> {
27
39
  children?: React.ReactNode;
28
40
  }
29
- export declare const Td: import("react").ForwardRefExoticComponent<TdProps & import("react").RefAttributes<HTMLTableCellElement>>;
41
+ export declare function Td({ className, children, ref, ...restProps }: TdProps & {
42
+ ref?: React.Ref<HTMLTableCellElement>;
43
+ }): import("react/jsx-runtime").JSX.Element;
@@ -10,42 +10,41 @@ 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 "./Table.module.css";
17
- export const Table = forwardRef(function Table(_a, ref) {
18
- var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
16
+ export function Table(_a) {
17
+ var { className, children, ref } = _a, restProps = __rest(_a, ["className", "children", "ref"]);
19
18
  const joinedClassNames = classNames({ [boxingStyles.fullWidthOnParentDemand]: true }, styles.table, className);
20
19
  return (_jsx("table", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
21
- });
22
- export const Thead = forwardRef(function Thead(_a, ref) {
23
- var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
20
+ }
21
+ export function Thead(_a) {
22
+ var { className, children, ref } = _a, restProps = __rest(_a, ["className", "children", "ref"]);
24
23
  const joinedClassNames = classNames(styles.thead, className);
25
24
  return (_jsx("thead", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
26
- });
27
- export const Tbody = forwardRef(function Tbody(_a, ref) {
28
- var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
25
+ }
26
+ export function Tbody(_a) {
27
+ var { className, children, ref } = _a, restProps = __rest(_a, ["className", "children", "ref"]);
29
28
  const joinedClassNames = classNames(styles.tbody, className);
30
29
  return (_jsx("tbody", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
31
- });
32
- export const Tfoot = forwardRef(function Tfoot(_a, ref) {
33
- var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
30
+ }
31
+ export function Tfoot(_a) {
32
+ var { className, children, ref } = _a, restProps = __rest(_a, ["className", "children", "ref"]);
34
33
  const joinedClassNames = classNames(styles.tfoot, className);
35
34
  return (_jsx("tfoot", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
36
- });
37
- export const Tr = forwardRef(function Tr(_a, ref) {
38
- var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
35
+ }
36
+ export function Tr(_a) {
37
+ var { className, children, ref } = _a, restProps = __rest(_a, ["className", "children", "ref"]);
39
38
  const joinedClassNames = classNames(styles.tr, className);
40
39
  return (_jsx("tr", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
41
- });
42
- export const Th = forwardRef(function Th(_a, ref) {
43
- var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
40
+ }
41
+ export function Th(_a) {
42
+ var { className, children, ref } = _a, restProps = __rest(_a, ["className", "children", "ref"]);
44
43
  const joinedClassNames = classNames(styles.th, className);
45
44
  return (_jsx("th", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
46
- });
47
- export const Td = forwardRef(function Td(_a, ref) {
48
- var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
45
+ }
46
+ export function Td(_a) {
47
+ var { className, children, ref } = _a, restProps = __rest(_a, ["className", "children", "ref"]);
49
48
  const joinedClassNames = classNames(styles.td, className);
50
49
  return (_jsx("td", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
51
- });
50
+ }
@@ -4,14 +4,15 @@ export interface TextProps<T> extends React.HTMLAttributes<T> {
4
4
  variant?: TextVariant;
5
5
  palette?: "onSurfaceColor" | "onSurfaceVariantColor";
6
6
  children?: React.ReactNode;
7
+ ref?: React.Ref<T>;
7
8
  }
8
- export declare const H1: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
9
- export declare const H2: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
10
- export declare const H3: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
11
- export declare const H4: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
12
- export declare const H5: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
13
- export declare const H6: import("react").ForwardRefExoticComponent<TextProps<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
14
- export declare const P: import("react").ForwardRefExoticComponent<TextProps<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
15
- export declare const Span: import("react").ForwardRefExoticComponent<TextProps<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
16
- export declare const Text: import("react").ForwardRefExoticComponent<TextProps<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
9
+ export declare function H1({ variant, palette, className, children, ref, ...restProps }: TextProps<HTMLHeadingElement>): import("react/jsx-runtime").JSX.Element;
10
+ export declare function H2({ variant, palette, className, children, ref, ...restProps }: TextProps<HTMLHeadingElement>): import("react/jsx-runtime").JSX.Element;
11
+ export declare function H3({ variant, palette, className, children, ref, ...restProps }: TextProps<HTMLHeadingElement>): import("react/jsx-runtime").JSX.Element;
12
+ export declare function H4({ variant, palette, className, children, ref, ...restProps }: TextProps<HTMLHeadingElement>): import("react/jsx-runtime").JSX.Element;
13
+ export declare function H5({ variant, palette, className, children, ref, ...restProps }: TextProps<HTMLHeadingElement>): import("react/jsx-runtime").JSX.Element;
14
+ export declare function H6({ variant, palette, className, children, ref, ...restProps }: TextProps<HTMLHeadingElement>): import("react/jsx-runtime").JSX.Element;
15
+ export declare function P({ variant, palette, className, children, ref, ...restProps }: TextProps<HTMLParagraphElement>): import("react/jsx-runtime").JSX.Element;
16
+ export declare function Span({ variant, palette, className, children, ref, ...restProps }: TextProps<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
17
+ export declare function Text({ variant, palette, className, children, ref, ...restProps }: TextProps<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
17
18
  export {};