@yakad/ui 1.3.61 → 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.
package/dist/popup/popup.js
CHANGED
|
@@ -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, {
|
|
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
|
package/dist/popup/popup.js.map
CHANGED
|
@@ -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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C,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,YAE1C,QAAQ,GACL,KACL,GACY,GACrB,CACT,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
|
package/dist/theme/theme.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
+
darkstyle?: DarkStyle;
|
|
7
7
|
color?: ThemeColor;
|
|
8
8
|
zoom?: number;
|
|
9
9
|
children?: React.ReactNode;
|
package/dist/theme/theme.js
CHANGED
|
@@ -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 {
|
|
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[
|
|
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
|