@yakad/ui 1.3.99 → 1.3.101

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,5 +1,4 @@
1
1
  "use client";
2
- "use strict";
3
2
  var __rest = (this && this.__rest) || function (s, e) {
4
3
  var t = {};
5
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -11,21 +10,16 @@ var __rest = (this && this.__rest) || function (s, e) {
11
10
  }
12
11
  return t;
13
12
  };
14
- var __importDefault = (this && this.__importDefault) || function (mod) {
15
- return (mod && mod.__esModule) ? mod : { "default": mod };
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.AppBar = void 0;
19
- const jsx_runtime_1 = require("react/jsx-runtime");
20
- const react_1 = require("react");
21
- const classnames_1 = __importDefault(require("classnames"));
22
- const boxing_module_css_1 = __importDefault(require("../boxing.module.css"));
23
- const AppBar_module_css_1 = __importDefault(require("./AppBar.module.css"));
24
- exports.AppBar = (0, react_1.forwardRef)((_a, ref) => {
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import { forwardRef, useEffect, useState } from "react";
15
+ import classNames from "classnames";
16
+ import boxingStyles from "../boxing.module.css";
17
+ import styles from "./AppBar.module.css";
18
+ export const AppBar = forwardRef((_a, ref) => {
25
19
  var { align, overflow = "shrink", position = "initial", size, blur, className, children } = _a, restProps = __rest(_a, ["align", "overflow", "position", "size", "blur", "className", "children"]);
26
- const [show, setShow] = (0, react_1.useState)(true);
27
- const [lastScrollY, setLastScrollY] = (0, react_1.useState)(0);
28
- (0, react_1.useEffect)(() => {
20
+ const [show, setShow] = useState(true);
21
+ const [lastScrollY, setLastScrollY] = useState(0);
22
+ useEffect(() => {
29
23
  if (position !== "scroll")
30
24
  return;
31
25
  const handleScroll = () => {
@@ -43,9 +37,9 @@ exports.AppBar = (0, react_1.forwardRef)((_a, ref) => {
43
37
  window.addEventListener("scroll", handleScroll);
44
38
  return () => window.removeEventListener("scroll", handleScroll);
45
39
  }, [lastScrollY, position]);
46
- const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexRowBox, { [boxing_module_css_1.default[align]]: align }, boxing_module_css_1.default[overflow], AppBar_module_css_1.default.header, {
47
- [AppBar_module_css_1.default.sticky]: position === "sticky" || position === "scroll",
48
- }, { [AppBar_module_css_1.default.hidden]: position === "scroll" && !show }, { [AppBar_module_css_1.default[size]]: size }, { [AppBar_module_css_1.default.blur]: blur }, className);
49
- return ((0, jsx_runtime_1.jsx)("header", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
40
+ const joinedClassNames = classNames(boxingStyles.flexRowBox, { [boxingStyles[align]]: align }, boxingStyles[overflow], styles.header, {
41
+ [styles.sticky]: position === "sticky" || position === "scroll",
42
+ }, { [styles.hidden]: position === "scroll" && !show }, { [styles[size]]: size }, { [styles.blur]: blur }, className);
43
+ return (_jsx("header", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
50
44
  });
51
- exports.AppBar.displayName = "AppBar";
45
+ AppBar.displayName = "AppBar";
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,23 +9,18 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Button = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const __1 = require("..");
22
- const Button_module_css_1 = __importDefault(require("./Button.module.css"));
23
- exports.Button = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import { LoadingIcon } from "..";
16
+ import styles from "./Button.module.css";
17
+ export const Button = forwardRef((_a, ref) => {
24
18
  var { size = "medium", variant = "text", borderstyle = "rounded", icon, iconposition = "start", loadingposition = "auto", loadingvariant, className, children } = _a, restProps = __rest(_a, ["size", "variant", "borderstyle", "icon", "iconposition", "loadingposition", "loadingvariant", "className", "children"]);
25
19
  const childrenFirst = Boolean(iconposition === "end");
26
20
  const isLoadingPositionCenter = Boolean(!icon || loadingposition === "center");
27
- const joinedClassNames = (0, classnames_1.default)(Button_module_css_1.default.button, Button_module_css_1.default[variant], { [Button_module_css_1.default.loading]: loadingvariant }, { [Button_module_css_1.default.loadingPositionCenter]: isLoadingPositionCenter }, Button_module_css_1.default[size], Button_module_css_1.default[borderstyle], { [Button_module_css_1.default.iconButton]: !children && icon }, className);
28
- return ((0, jsx_runtime_1.jsxs)("button", Object.assign({ ref: ref, className: joinedClassNames }, restProps, { children: [childrenFirst && children, loadingvariant && ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(Button_module_css_1.default.displayOnDisabled, {
29
- [Button_module_css_1.default.positionCenter]: isLoadingPositionCenter,
30
- }), children: (0, jsx_runtime_1.jsx)(__1.LoadingIcon, { size: size, variant: loadingvariant }) })), icon, !childrenFirst && children] })));
21
+ const joinedClassNames = classNames(styles.button, styles[variant], { [styles.loading]: loadingvariant }, { [styles.loadingPositionCenter]: isLoadingPositionCenter }, styles[size], styles[borderstyle], { [styles.iconButton]: !children && icon }, className);
22
+ return (_jsxs("button", Object.assign({ ref: ref, className: joinedClassNames }, restProps, { children: [childrenFirst && children, loadingvariant && (_jsx("div", { className: classNames(styles.displayOnDisabled, {
23
+ [styles.positionCenter]: isLoadingPositionCenter,
24
+ }), children: _jsx(LoadingIcon, { size: size, variant: loadingvariant }) })), icon, !childrenFirst && children] })));
31
25
  });
32
- exports.Button.displayName = "Button";
26
+ Button.displayName = "Button";
package/dist/Card/Card.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,19 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Card = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const boxing_module_css_1 = __importDefault(require("../boxing.module.css"));
22
- const Card_module_css_1 = __importDefault(require("./Card.module.css"));
23
- exports.Card = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import boxingStyles from "../boxing.module.css";
16
+ import styles from "./Card.module.css";
17
+ export const Card = forwardRef((_a, ref) => {
24
18
  var { align, blur, className, children } = _a, restProps = __rest(_a, ["align", "blur", "className", "children"]);
25
- const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexColumnBox, { [boxing_module_css_1.default[align]]: align }, "fullWidthLover", Card_module_css_1.default.card, { [Card_module_css_1.default.blur]: blur }, className);
26
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, "fullWidthLover", styles.card, { [styles.blur]: blur }, className);
20
+ return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
27
21
  });
28
- exports.Card.displayName = "Card";
22
+ Card.displayName = "Card";
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,19 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.CheckBox = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const symbols_1 = require("@yakad/symbols");
22
- const CheckBox_module_css_1 = __importDefault(require("./CheckBox.module.css"));
23
- exports.CheckBox = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import { Symbol } from "@yakad/symbols";
16
+ import styles from "./CheckBox.module.css";
17
+ export const CheckBox = forwardRef((_a, ref) => {
24
18
  var { label, className, style } = _a, restProps = __rest(_a, ["label", "className", "style"]);
25
- const joinedClassNames = (0, classnames_1.default)(label && "fullWidthLover", CheckBox_module_css_1.default.label, { [CheckBox_module_css_1.default.labeled]: label }, { [CheckBox_module_css_1.default.disabled]: restProps.disabled }, className);
26
- return ((0, jsx_runtime_1.jsxs)("label", { className: joinedClassNames, style: style, children: [label, (0, jsx_runtime_1.jsx)("input", Object.assign({ ref: ref }, restProps, { className: CheckBox_module_css_1.default.input, type: "checkbox" })), (0, jsx_runtime_1.jsxs)("div", { className: CheckBox_module_css_1.default.symbolContainer, children: [(0, jsx_runtime_1.jsx)(symbols_1.Symbol, { className: CheckBox_module_css_1.default.symbolChecked, icon: "check_box" }), (0, jsx_runtime_1.jsx)(symbols_1.Symbol, { className: CheckBox_module_css_1.default.symbolUnChecked, icon: "check_box_outline_blank" })] })] }));
19
+ const joinedClassNames = classNames(label && "fullWidthLover", styles.label, { [styles.labeled]: label }, { [styles.disabled]: restProps.disabled }, className);
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" })] })] }));
27
21
  });
28
- exports.CheckBox.displayName = "CheckBox";
22
+ CheckBox.displayName = "CheckBox";
@@ -1,5 +1,4 @@
1
1
  "use client";
2
- "use strict";
3
2
  var __rest = (this && this.__rest) || function (s, e) {
4
3
  var t = {};
5
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -11,14 +10,12 @@ var __rest = (this && this.__rest) || function (s, e) {
11
10
  }
12
11
  return t;
13
12
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ClickOutsideListener = void 0;
16
- const jsx_runtime_1 = require("react/jsx-runtime");
17
- const react_1 = require("react");
18
- const ClickOutsideListener = (_a) => {
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import { useEffect, useRef } from "react";
15
+ export const ClickOutsideListener = (_a) => {
19
16
  var { onclickoutside, children } = _a, restProps = __rest(_a, ["onclickoutside", "children"]);
20
- const ref = (0, react_1.useRef)(null);
21
- (0, react_1.useEffect)(() => {
17
+ const ref = useRef(null);
18
+ useEffect(() => {
22
19
  const handleOutSideClick = (event) => {
23
20
  if (ref.current && !ref.current.contains(event.target))
24
21
  onclickoutside === null || onclickoutside === void 0 ? void 0 : onclickoutside();
@@ -27,6 +24,5 @@ const ClickOutsideListener = (_a) => {
27
24
  // CleanUp When element unmount
28
25
  return () => document.removeEventListener("click", handleOutSideClick, true);
29
26
  }, [onclickoutside]);
30
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { children: children })));
27
+ return (_jsx("div", Object.assign({ ref: ref }, restProps, { children: children })));
31
28
  };
32
- exports.ClickOutsideListener = ClickOutsideListener;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,20 +9,15 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.CodeBox = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const symbols_1 = require("@yakad/symbols");
22
- const __1 = require("..");
23
- const CodeBox_module_css_1 = __importDefault(require("./CodeBox.module.css"));
24
- exports.CodeBox = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import { Symbol } from "@yakad/symbols";
16
+ import { Button, Card } from "..";
17
+ import styles from "./CodeBox.module.css";
18
+ export const CodeBox = forwardRef((_a, ref) => {
25
19
  var { copybutton, className, children } = _a, restProps = __rest(_a, ["copybutton", "className", "children"]);
26
- const joinedClassNames = (0, classnames_1.default)("fullWidthLover", CodeBox_module_css_1.default.ZZZZZZZZZZ, className);
27
- return ((0, jsx_runtime_1.jsxs)(__1.Card, Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: [(0, jsx_runtime_1.jsx)("pre", { children: children }), copybutton && (0, jsx_runtime_1.jsx)(__1.Button, { icon: (0, jsx_runtime_1.jsx)(symbols_1.Symbol, { icon: "copy_all" }) })] })));
20
+ const joinedClassNames = classNames("fullWidthLover", styles.ZZZZZZZZZZ, className);
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" }) })] })));
28
22
  });
29
- exports.CodeBox.displayName = "CodeBox";
23
+ CodeBox.displayName = "CodeBox";
@@ -1,5 +1,4 @@
1
1
  "use client";
2
- "use strict";
3
2
  var __rest = (this && this.__rest) || function (s, e) {
4
3
  var t = {};
5
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -11,15 +10,10 @@ var __rest = (this && this.__rest) || function (s, e) {
11
10
  }
12
11
  return t;
13
12
  };
14
- var __importDefault = (this && this.__importDefault) || function (mod) {
15
- return (mod && mod.__esModule) ? mod : { "default": mod };
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.CodeField = void 0;
19
- const jsx_runtime_1 = require("react/jsx-runtime");
20
- const react_1 = require("react");
21
- const classnames_1 = __importDefault(require("classnames"));
22
- const CodeField_module_css_1 = __importDefault(require("./CodeField.module.css"));
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import { forwardRef } from "react";
15
+ import classNames from "classnames";
16
+ import styles from "./CodeField.module.css";
23
17
  function isInputFilled(event, inputLength) {
24
18
  const targetInputElement = event.target;
25
19
  removeUnNumberChars(targetInputElement);
@@ -36,13 +30,13 @@ function sliceOverLength(inputElement, inputLength) {
36
30
  function removeUnNumberChars(inputElement) {
37
31
  inputElement.value = inputElement.value.replace(/[^0-9]+/, "");
38
32
  }
39
- exports.CodeField = (0, react_1.forwardRef)((_a, ref) => {
33
+ export const CodeField = forwardRef((_a, ref) => {
40
34
  var { length = 6, onfilled, autoComplete, pattern, onInput, className, style } = _a, restProps = __rest(_a, ["length", "onfilled", "autoComplete", "pattern", "onInput", "className", "style"]);
41
- const joinedClassNames = (0, classnames_1.default)("fullWidthLover", CodeField_module_css_1.default.input, className);
35
+ const joinedClassNames = classNames("fullWidthLover", styles.input, className);
42
36
  const joinedStyles = Object.assign(Object.assign({}, style), { width: `calc(1.5ch * ${length})` });
43
- return ((0, jsx_runtime_1.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) => {
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) => {
44
38
  isInputFilled(event, length) && onfilled;
45
39
  onInput;
46
40
  } })));
47
41
  });
48
- exports.CodeField.displayName = "CodeField";
42
+ CodeField.displayName = "CodeField";
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,19 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Container = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const boxing_module_css_1 = __importDefault(require("../boxing.module.css"));
22
- const Container_module_css_1 = __importDefault(require("./Container.module.css"));
23
- exports.Container = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import boxingStyles from "../boxing.module.css";
16
+ import styles from "./Container.module.css";
17
+ export const Container = forwardRef((_a, ref) => {
24
18
  var { size = "xl", align, className, children } = _a, restProps = __rest(_a, ["size", "align", "className", "children"]);
25
- const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexColumnBox, { [boxing_module_css_1.default[align]]: align }, Container_module_css_1.default.container, Container_module_css_1.default[size], className);
26
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, styles.container, styles[size], className);
20
+ return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
27
21
  });
28
- exports.Container.displayName = "Container";
22
+ Container.displayName = "Container";
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,18 +9,13 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Display = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const Display_module_css_1 = __importDefault(require("./Display.module.css"));
22
- exports.Display = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import styles from "./Display.module.css";
16
+ export const Display = forwardRef((_a, ref) => {
23
17
  var { minWidth, maxWidth, className, children } = _a, restProps = __rest(_a, ["minWidth", "maxWidth", "className", "children"]);
24
- const joinedClassNames = (0, classnames_1.default)("fullWidthLover", { [Display_module_css_1.default[`${minWidth}MinWidth`]]: minWidth }, { [Display_module_css_1.default[`${maxWidth}MaxWidth`]]: maxWidth }, className);
25
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
18
+ const joinedClassNames = classNames("fullWidthLover", { [styles[`${minWidth}MinWidth`]]: minWidth }, { [styles[`${maxWidth}MaxWidth`]]: maxWidth }, className);
19
+ return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
26
20
  });
27
- exports.Display.displayName = "Display";
21
+ Display.displayName = "Display";
@@ -1,5 +1,4 @@
1
1
  "use client";
2
- "use strict";
3
2
  var __rest = (this && this.__rest) || function (s, e) {
4
3
  var t = {};
5
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -11,21 +10,16 @@ var __rest = (this && this.__rest) || function (s, e) {
11
10
  }
12
11
  return t;
13
12
  };
14
- var __importDefault = (this && this.__importDefault) || function (mod) {
15
- return (mod && mod.__esModule) ? mod : { "default": mod };
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Footer = void 0;
19
- const jsx_runtime_1 = require("react/jsx-runtime");
20
- const react_1 = require("react");
21
- const classnames_1 = __importDefault(require("classnames"));
22
- const boxing_module_css_1 = __importDefault(require("../boxing.module.css"));
23
- const Footer_module_css_1 = __importDefault(require("./Footer.module.css"));
24
- exports.Footer = (0, react_1.forwardRef)((_a, ref) => {
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import { forwardRef, useState, useEffect } from "react";
15
+ import classNames from "classnames";
16
+ import boxingStyles from "../boxing.module.css";
17
+ import styles from "./Footer.module.css";
18
+ export const Footer = forwardRef((_a, ref) => {
25
19
  var { align, overflow = "shrink", position = "initial", size, blur, className, children } = _a, restProps = __rest(_a, ["align", "overflow", "position", "size", "blur", "className", "children"]);
26
- const [show, setShow] = (0, react_1.useState)(true);
27
- const [lastScrollY, setLastScrollY] = (0, react_1.useState)(0);
28
- (0, react_1.useEffect)(() => {
20
+ const [show, setShow] = useState(true);
21
+ const [lastScrollY, setLastScrollY] = useState(0);
22
+ useEffect(() => {
29
23
  if (position !== "scroll")
30
24
  return;
31
25
  const handleScroll = () => {
@@ -43,7 +37,7 @@ exports.Footer = (0, react_1.forwardRef)((_a, ref) => {
43
37
  window.addEventListener("scroll", handleScroll);
44
38
  return () => window.removeEventListener("scroll", handleScroll);
45
39
  }, [lastScrollY, position]);
46
- const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexRowBox, { [boxing_module_css_1.default[align]]: align }, boxing_module_css_1.default[overflow], Footer_module_css_1.default.footer, { [Footer_module_css_1.default.sticky]: position === "sticky" || position === "scroll" }, { [Footer_module_css_1.default.hidden]: position === "scroll" && !show }, { [Footer_module_css_1.default[size]]: size }, { [Footer_module_css_1.default.blur]: blur }, className);
47
- return ((0, jsx_runtime_1.jsx)("footer", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
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
+ return (_jsx("footer", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
48
42
  });
49
- exports.Footer.displayName = "Footer";
43
+ Footer.displayName = "Footer";
package/dist/Form/Form.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,19 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Form = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const Form_module_css_1 = __importDefault(require("./Form.module.css"));
22
- const boxing_module_css_1 = __importDefault(require("../boxing.module.css"));
23
- exports.Form = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import styles from "./Form.module.css";
16
+ import boxingStyles from "../boxing.module.css";
17
+ export const Form = forwardRef((_a, ref) => {
24
18
  var { align, className, children } = _a, restProps = __rest(_a, ["align", "className", "children"]);
25
- const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexColumnBox, { [boxing_module_css_1.default[align]]: align }, "fullWidthLover", Form_module_css_1.default.form, className);
26
- return ((0, jsx_runtime_1.jsx)("form", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
19
+ const joinedClassNames = classNames(boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, "fullWidthLover", styles.form, className);
20
+ return (_jsx("form", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
27
21
  });
28
- exports.Form.displayName = "Form";
22
+ Form.displayName = "Form";
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,19 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.GridContainer = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const GridContainer_module_css_1 = __importDefault(require("./GridContainer.module.css"));
22
- exports.GridContainer = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import styles from "./GridContainer.module.css";
16
+ export const GridContainer = forwardRef((_a, ref) => {
23
17
  var { gap = 1.5, columns = 12, className, style, children } = _a, restProps = __rest(_a, ["gap", "columns", "className", "style", "children"]);
24
- const joinedClassNames = (0, classnames_1.default)(GridContainer_module_css_1.default.gridcontainer, GridContainer_module_css_1.default[`gridColumns${columns}`], className);
18
+ const joinedClassNames = classNames(styles.gridcontainer, styles[`gridColumns${columns}`], className);
25
19
  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` });
26
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: joinedStyles, children: children })));
20
+ return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: joinedStyles, children: children })));
27
21
  });
28
- exports.GridContainer.displayName = "GridContainer";
22
+ GridContainer.displayName = "GridContainer";
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,19 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.GridItem = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const boxing_module_css_1 = __importDefault(require("../boxing.module.css"));
22
- const GridItem_module_css_1 = __importDefault(require("./GridItem.module.css"));
23
- exports.GridItem = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import boxingStyles from "../boxing.module.css";
16
+ import styles from "./GridItem.module.css";
17
+ export const GridItem = forwardRef((_a, ref) => {
24
18
  var { align, xs, sm, md, lg, xl, className, children } = _a, restProps = __rest(_a, ["align", "xs", "sm", "md", "lg", "xl", "className", "children"]);
25
- const joinedClassNames = (0, classnames_1.default)(boxing_module_css_1.default.flexColumnBox, { [boxing_module_css_1.default[align]]: align }, GridItem_module_css_1.default.gridItem, { [GridItem_module_css_1.default[`xs${xs}`]]: xs }, { [GridItem_module_css_1.default[`sm${sm}`]]: sm }, { [GridItem_module_css_1.default[`md${md}`]]: md }, { [GridItem_module_css_1.default[`lg${lg}`]]: lg }, { [GridItem_module_css_1.default[`xl${xl}`]]: xl }, className);
26
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: 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);
20
+ return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
27
21
  });
28
- exports.GridItem.displayName = "GridItem";
22
+ GridItem.displayName = "GridItem";
package/dist/Hr/Hr.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,19 +9,14 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Hr = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const Hr_module_css_1 = __importDefault(require("./Hr.module.css"));
22
- exports.Hr = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import styles from "./Hr.module.css";
16
+ export const Hr = forwardRef((_a, ref) => {
23
17
  var { variant, height, marginx, className, style } = _a, restProps = __rest(_a, ["variant", "height", "marginx", "className", "style"]);
24
- const joinedClassNames = (0, classnames_1.default)(Hr_module_css_1.default.hr, variant && Hr_module_css_1.default[variant], className);
18
+ const joinedClassNames = classNames(styles.hr, variant && styles[variant], className);
25
19
  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 });
26
- return ((0, jsx_runtime_1.jsx)("hr", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: joinedStyles })));
20
+ return (_jsx("hr", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, style: joinedStyles })));
27
21
  });
28
- exports.Hr.displayName = "Hr";
22
+ Hr.displayName = "Hr";
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __rest = (this && this.__rest) || function (s, e) {
3
2
  var t = {};
4
3
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -10,18 +9,13 @@ var __rest = (this && this.__rest) || function (s, e) {
10
9
  }
11
10
  return t;
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.InputField = void 0;
18
- const jsx_runtime_1 = require("react/jsx-runtime");
19
- const react_1 = require("react");
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const InputField_module_css_1 = __importDefault(require("./InputField.module.css"));
22
- exports.InputField = (0, react_1.forwardRef)((_a, ref) => {
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { forwardRef } from "react";
14
+ import classNames from "classnames";
15
+ import styles from "./InputField.module.css";
16
+ export const InputField = forwardRef((_a, ref) => {
23
17
  var { variant = "outlined", boxsize = "normal", placeholder, className } = _a, restProps = __rest(_a, ["variant", "boxsize", "placeholder", "className"]);
24
- const joinedClassNames = (0, classnames_1.default)(InputField_module_css_1.default.input, InputField_module_css_1.default[variant], InputField_module_css_1.default[boxsize], placeholder && InputField_module_css_1.default.havePlaceHolder, className);
25
- return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)("fullWidthLover", InputField_module_css_1.default.div), children: [(0, jsx_runtime_1.jsx)("input", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, placeholder: " " })), placeholder && ((0, jsx_runtime_1.jsx)("label", { className: InputField_module_css_1.default.label, children: placeholder }))] }));
18
+ const joinedClassNames = classNames(styles.input, styles[variant], styles[boxsize], placeholder && styles.havePlaceHolder, className);
19
+ return (_jsxs("div", { className: classNames("fullWidthLover", styles.div), children: [_jsx("input", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, placeholder: " " })), placeholder && (_jsx("label", { className: styles.label, children: placeholder }))] }));
26
20
  });
27
- exports.InputField.displayName = "InputField";
21
+ InputField.displayName = "InputField";