@yakad/ui 1.3.61 → 1.3.63

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.
@@ -3,7 +3,7 @@ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElemen
3
3
  size?: "small" | "medium" | "large";
4
4
  variant?: "text" | "outlined" | "filled" | "filledtonal" | "tonal" | "elevated" | "link" | "fab";
5
5
  borderstyle?: "none" | "semi" | "squircle" | "rounded";
6
- icon?: JSX.Element;
6
+ icon?: React.ReactNode;
7
7
  iconposition?: "start" | "end";
8
8
  loadingposition?: "auto" | "center";
9
9
  loadingvariant?: "scaleOut" | "dots" | "spinner";
@@ -16,7 +16,7 @@ import Symbol from "@yakad/symbols";
16
16
  import styles from "./popup.module.css";
17
17
  export const Popup = forwardRef((_a, ref) => {
18
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, { 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, { align: align, style: { width: "100%", overflowY: "auto" }, children: 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,EACJ,oBAAoB,EACpB,GAAG,EACH,MAAM,EACN,KAAK,EACL,IAAI,GACP,MAAM,KAAK,CAAC;AACb,OAAO,MAAM,MAAM,gBAAgB,CAAC;AACpC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AASxC,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAG7B,CAAC,EAA8D,EAAE,GAAG,EAAE,EAAE;QAAvE,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,OAAgB,EAAX,SAAS,cAA5D,sDAA8D,CAAF;IAC3D,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,IACF,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAE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L,KACL,GACY,GACrB,CACT,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
@@ -13,8 +13,8 @@
13
13
  }
14
14
 
15
15
  .popup {
16
- min-height: 10rem;
17
16
  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.61",
3
+ "version": "1.3.63",
4
4
  "private": false,
5
5
  "author": "Natiq",
6
6
  "description": "UI components for NextJS/React",
@@ -28,15 +28,19 @@
28
28
  "prepublishOnly": "cp ../../README.md ../../LICENSE ./"
29
29
  },
30
30
  "dependencies": {
31
- "@yakad/symbols": "1.0.23",
32
- "classnames": "2.5.1",
33
- "react": "18.3.1",
34
- "react-dom": "18.3.1"
31
+ "@yakad/symbols": "^1.0.0",
32
+ "classnames": "2.5.1"
33
+ },
34
+ "peerDependencies": {
35
+ "react": "^18.0.0 || ^19.0.0",
36
+ "react-dom": "^18.0.0 || ^19.0.0"
35
37
  },
36
38
  "devDependencies": {
37
39
  "@types/css-modules": "1.0.5",
38
- "@types/react": "18.3.3",
39
- "@types/react-dom": "18.3.0",
40
+ "@types/react": "^19.0.0",
41
+ "@types/react-dom": "^19.0.0",
42
+ "react": "^19.0.0",
43
+ "react-dom": "^19.0.0",
40
44
  "copyfiles": "2.4.1",
41
45
  "rimraf": "6.0.1",
42
46
  "typescript": "5.4.5"