@yakad/ui 1.3.60 → 1.3.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  export interface InputFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
3
  variant?: "outlined" | "filled";
4
4
  boxsize?: "small" | "normal";
5
5
  }
6
- export declare const InputField: import("react").ForwardRefExoticComponent<InputFieldProps & import("react").RefAttributes<HTMLInputElement>>;
6
+ export declare const InputField: React.ForwardRefExoticComponent<InputFieldProps & React.RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"inputField.js","sourceRoot":"","sources":["../../src/inputField/inputField.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAQ7C,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAChC,CACI,EAMC,EACD,GAAG,EACL,EAAE;QARA,EACI,OAAO,GAAG,UAAU,EACpB,OAAO,GAAG,QAAQ,EAClB,WAAW,EACX,SAAS,OAEZ,EADM,SAAS,cALhB,kDAMC,CADe;IAIhB,MAAM,gBAAgB,GAAG,UAAU,CAC/B,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,OAAO,CAAC,EACf,MAAM,CAAC,OAAO,CAAC,EACf,WAAW,IAAI,MAAM,CAAC,eAAe,EACrC,SAAS,CACZ,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,MAAM,CAAC,GAAG,aACtB,8BACI,GAAG,EAAE,GAAG,IACJ,SAAS,IACb,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAC,GAAG,IACjB,EACD,WAAW,IAAI,CACZ,gBAAO,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,WAAW,GAAS,CACxD,IACC,CACT,CAAC;AACN,CAAC,CACJ,CAAC"}
1
+ {"version":3,"file":"inputField.js","sourceRoot":"","sources":["../../src/inputField/inputField.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAQ7C,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAChC,CACI,EAMC,EACD,GAAG,EACL,EAAE;QARA,EACI,OAAO,GAAG,UAAU,EACpB,OAAO,GAAG,QAAQ,EAClB,WAAW,EACX,SAAS,OAEZ,EADM,SAAS,cALhB,kDAMC,CADe;IAIhB,MAAM,gBAAgB,GAAG,UAAU,CAC/B,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,OAAO,CAAC,EACf,MAAM,CAAC,OAAO,CAAC,EACf,WAAW,IAAI,MAAM,CAAC,eAAe,EACrC,SAAS,CACZ,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,MAAM,CAAC,GAAG,aACtB,8BACI,GAAG,EAAE,GAAG,IACJ,SAAS,IACb,SAAS,EAAE,gBAAgB,EAC3B,WAAW,EAAC,GAAG,IACjB,EACD,WAAW,IAAI,CACZ,gBAAO,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,WAAW,GAAS,CACxD,IACC,CACT,CAAC;AACN,CAAC,CACJ,CAAC"}
@@ -4,8 +4,6 @@
4
4
  box-sizing: border-box;
5
5
  width: 100%;
6
6
  padding-top: 0.6rem;
7
- font-size: 1.3rem;
8
- overflow: hidden;
9
7
  }
10
8
  .input {
11
9
  box-sizing: border-box;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { CardProps } from "../";
3
- export interface PopupProps extends CardProps {
2
+ export interface PopupProps {
3
+ align?: "start" | "center" | "end";
4
4
  heading?: string;
5
5
  onclosebuttonclick?: () => void;
6
+ children?: React.ReactNode;
6
7
  }
7
8
  export declare const Popup: import("react").ForwardRefExoticComponent<Omit<PopupProps, "className" | "style"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -12,11 +12,11 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { forwardRef } from "react";
14
14
  import { Button, Card, ClickOutsideListener, Row, Spacer, Stack, Text, } from "../";
15
- import styles from "./popup.module.css";
16
15
  import Symbol from "@yakad/symbols";
16
+ import styles from "./popup.module.css";
17
17
  export const Popup = forwardRef((_a, ref) => {
18
- var { heading, onclosebuttonclick, children } = _a, restProps = __rest(_a, ["heading", "onclosebuttonclick", "children"]);
19
- return (_jsx("div", { className: styles.popupscreen, children: _jsx(ClickOutsideListener, { onclickoutside: onclosebuttonclick, className: styles.popup, children: _jsxs(Card, Object.assign({ ref: ref }, restProps, { className: styles.popup, 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: onclosebuttonclick })] }), _jsx(Stack, { style: { overflow: "auto" }, children: children })] })) }) }));
18
+ var { align, heading, onclosebuttonclick, children } = _a, restProps = __rest(_a, ["align", "heading", "onclosebuttonclick", "children"]);
19
+ return (_jsx("div", { className: styles.popupscreen, children: _jsx(ClickOutsideListener, { onclickoutside: onclosebuttonclick, className: styles.popup, children: _jsxs(Card, Object.assign({ ref: ref }, restProps, { 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: onclosebuttonclick })] }), _jsx(Stack, { align: align, style: { width: "100%", overflowY: "auto" }, children: children })] })) }) }));
20
20
  });
21
21
  Popup.displayName = "Popup";
22
22
  //# sourceMappingURL=popup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popup.js","sourceRoot":"","sources":["../../src/popup/popup.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EACH,MAAM,EACN,IAAI,EAEJ,oBAAoB,EACpB,GAAG,EACH,MAAM,EACN,KAAK,EACL,IAAI,GACP,MAAM,KAAK,CAAC;AACb,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAOpC,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAG7B,CAAC,EAAuD,EAAE,GAAG,EAAE,EAAE;QAAhE,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,OAAgB,EAAX,SAAS,cAArD,6CAAuD,CAAF;IACpD,OAAO,CACH,cAAK,SAAS,EAAE,MAAM,CAAC,WAAW,YAC9B,KAAC,oBAAoB,IACjB,cAAc,EAAE,kBAAkB,EAClC,SAAS,EAAE,MAAM,CAAC,KAAK,YAEvB,MAAC,IAAI,kBAAC,GAAG,EAAE,GAAG,IAAM,SAAS,IAAE,SAAS,EAAE,MAAM,CAAC,KAAK,aAClD,MAAC,GAAG,IAAC,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,aAChC,KAAC,IAAI,IAAC,OAAO,EAAC,UAAU,YAAE,OAAO,GAAQ,EACzC,KAAC,MAAM,KAAG,EACV,KAAC,MAAM,IACH,KAAK,EAAC,OAAO,EACb,IAAI,EAAE,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,GAAG,EAC7B,OAAO,EAAE,kBAAkB,GAC7B,IACA,EACN,KAAC,KAAK,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAG,QAAQ,GAAS,KACnD,GACY,GACrB,CACT,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"popup.js","sourceRoot":"","sources":["../../src/popup/popup.tsx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  width: 90%;
18
17
  max-width: 60rem;
18
+ min-height: 10rem;
19
19
  max-height: 90vh;
20
20
  }
@@ -3,7 +3,7 @@ import "./globals.css";
3
3
  export type DarkStyle = "light" | "dark" | "system";
4
4
  export type ThemeColor = "green" | "red" | "yellow" | "blue" | "purple";
5
5
  export interface ThemeProps extends React.HTMLAttributes<HTMLDivElement> {
6
- darkStyle?: DarkStyle;
6
+ darkstyle?: DarkStyle;
7
7
  color?: ThemeColor;
8
8
  zoom?: number;
9
9
  children?: React.ReactNode;
@@ -15,12 +15,12 @@ import classNames from "classnames";
15
15
  import "./globals.css";
16
16
  import styles from "./theme.module.css";
17
17
  export const Theme = forwardRef((_a, ref) => {
18
- var { darkStyle = "system", color = "blue", zoom = 100, className, children } = _a, restProps = __rest(_a, ["darkStyle", "color", "zoom", "className", "children"]);
18
+ var { darkstyle = "system", color = "blue", zoom = 100, className, children } = _a, restProps = __rest(_a, ["darkstyle", "color", "zoom", "className", "children"]);
19
19
  const zoomPercentage = zoom ? (zoom / 100) * 62.5 : 62.5;
20
20
  useEffect(() => {
21
21
  document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
22
22
  }, [zoomPercentage]);
23
- const joinedClassNames = classNames(styles.theme, styles[darkStyle], styles[color], className);
23
+ const joinedClassNames = classNames(styles.theme, styles[darkstyle], styles[color], className);
24
24
  return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
25
25
  });
26
26
  //# sourceMappingURL=theme.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.3.60",
3
+ "version": "1.3.62",
4
4
  "private": false,
5
5
  "author": "Natiq",
6
6
  "description": "UI components for NextJS/React",