@yakad/ui 1.3.56 → 1.3.58
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/appBar/appBar.d.ts +2 -2
- package/dist/appBar/appBar.js +3 -2
- package/dist/appBar/appBar.js.map +1 -1
- package/dist/button/button.d.ts +2 -2
- package/dist/button/button.js +6 -10
- package/dist/button/button.js.map +1 -1
- package/dist/card/card.d.ts +2 -2
- package/dist/card/card.js +3 -2
- package/dist/card/card.js.map +1 -1
- package/dist/checkBox/checkBox.d.ts +2 -2
- package/dist/checkBox/checkBox.js +3 -7
- package/dist/checkBox/checkBox.js.map +1 -1
- package/dist/clickOutsideListener/clickOutsideListener.d.ts +2 -2
- package/dist/clickOutsideListener/clickOutsideListener.js +3 -2
- package/dist/clickOutsideListener/clickOutsideListener.js.map +1 -1
- package/dist/codeBox/codeBox.d.ts +2 -2
- package/dist/codeBox/codeBox.js +4 -6
- package/dist/codeBox/codeBox.js.map +1 -1
- package/dist/codeField/codeField.d.ts +2 -2
- package/dist/codeField/codeField.js +3 -2
- package/dist/codeField/codeField.js.map +1 -1
- package/dist/container/container.d.ts +2 -2
- package/dist/container/container.js +3 -2
- package/dist/container/container.js.map +1 -1
- package/dist/display/display.d.ts +2 -2
- package/dist/display/display.js +3 -2
- package/dist/display/display.js.map +1 -1
- package/dist/footer/footer.d.ts +2 -2
- package/dist/footer/footer.js +3 -2
- package/dist/footer/footer.js.map +1 -1
- package/dist/gridContainer/gridContainer.d.ts +2 -2
- package/dist/gridContainer/gridContainer.js +3 -2
- package/dist/gridContainer/gridContainer.js.map +1 -1
- package/dist/gridItem/gridItem.d.ts +2 -2
- package/dist/gridItem/gridItem.js +3 -2
- package/dist/gridItem/gridItem.js.map +1 -1
- package/dist/hr/hr.d.ts +2 -2
- package/dist/hr/hr.js +3 -2
- package/dist/hr/hr.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/inputField/inputField.d.ts +2 -2
- package/dist/inputField/inputField.js +3 -4
- package/dist/inputField/inputField.js.map +1 -1
- package/dist/list/list.d.ts +2 -2
- package/dist/list/list.js +3 -2
- package/dist/list/list.js.map +1 -1
- package/dist/listItem/listItem.d.ts +2 -2
- package/dist/listItem/listItem.js +3 -2
- package/dist/listItem/listItem.js.map +1 -1
- package/dist/loading/loading.d.ts +2 -2
- package/dist/loading/loading.js +3 -3
- package/dist/loading/loading.js.map +1 -1
- package/dist/main/main.d.ts +2 -2
- package/dist/main/main.js +3 -2
- package/dist/main/main.js.map +1 -1
- package/dist/navigation/navigation.d.ts +2 -2
- package/dist/navigation/navigation.js +3 -2
- package/dist/navigation/navigation.js.map +1 -1
- package/dist/popup/popup.d.ts +6 -0
- package/dist/popup/popup.js +21 -0
- package/dist/popup/popup.js.map +1 -0
- package/dist/popup/popup.module.css +20 -0
- package/dist/radioButton/radioButton.d.ts +2 -2
- package/dist/radioButton/radioButton.js +6 -8
- package/dist/radioButton/radioButton.js.map +1 -1
- package/dist/radioGroup/radioGroup.d.ts +3 -3
- package/dist/radioGroup/radioGroup.js +6 -5
- package/dist/radioGroup/radioGroup.js.map +1 -1
- package/dist/row/row.d.ts +2 -2
- package/dist/row/row.js +3 -2
- package/dist/row/row.js.map +1 -1
- package/dist/screen/screen.d.ts +2 -2
- package/dist/screen/screen.js +3 -2
- package/dist/screen/screen.js.map +1 -1
- package/dist/select/select.d.ts +2 -2
- package/dist/select/select.js +3 -4
- package/dist/select/select.js.map +1 -1
- package/dist/spacer/spacer.d.ts +2 -2
- package/dist/spacer/spacer.js +3 -2
- package/dist/spacer/spacer.js.map +1 -1
- package/dist/stack/stack.d.ts +2 -2
- package/dist/stack/stack.js +3 -2
- package/dist/stack/stack.js.map +1 -1
- package/dist/svgIcon/svgIcon.d.ts +2 -2
- package/dist/svgIcon/svgIcon.js +3 -2
- package/dist/svgIcon/svgIcon.js.map +1 -1
- package/dist/table/table.d.ts +8 -8
- package/dist/table/table.js +9 -8
- package/dist/table/table.js.map +1 -1
- package/dist/text/text.d.ts +10 -10
- package/dist/text/text.js +11 -10
- package/dist/text/text.js.map +1 -1
- package/dist/theme/theme.d.ts +2 -2
- package/dist/theme/theme.js +3 -2
- package/dist/theme/theme.js.map +1 -1
- package/package.json +1 -1
package/dist/table/table.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
|
|
3
3
|
children?: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const Table:
|
|
5
|
+
export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
|
|
6
6
|
export interface TheadProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const Thead:
|
|
9
|
+
export declare const Thead: import("react").ForwardRefExoticComponent<TheadProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
10
10
|
export interface TbodyProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
export declare const Tbody:
|
|
13
|
+
export declare const Tbody: import("react").ForwardRefExoticComponent<TbodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
14
14
|
export interface TfootProps extends React.HTMLAttributes<HTMLTableSectionElement> {
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
}
|
|
17
|
-
export declare const Tfoot:
|
|
17
|
+
export declare const Tfoot: import("react").ForwardRefExoticComponent<TfootProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
18
18
|
export interface TrProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
19
19
|
children?: React.ReactNode;
|
|
20
20
|
}
|
|
21
|
-
export declare const Tr:
|
|
21
|
+
export declare const Tr: import("react").ForwardRefExoticComponent<TrProps & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
22
22
|
export interface ThProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
23
23
|
children?: React.ReactNode;
|
|
24
24
|
}
|
|
25
|
-
export declare const Th:
|
|
25
|
+
export declare const Th: import("react").ForwardRefExoticComponent<ThProps & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
26
26
|
export interface TdProps extends React.HTMLAttributes<HTMLTableCellElement> {
|
|
27
27
|
children?: React.ReactNode;
|
|
28
28
|
}
|
|
29
|
-
export declare const Td:
|
|
29
|
+
export declare const Td: import("react").ForwardRefExoticComponent<TdProps & import("react").RefAttributes<HTMLTableCellElement>>;
|
package/dist/table/table.js
CHANGED
|
@@ -9,42 +9,43 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { forwardRef } from "react";
|
|
13
14
|
import classNames from "classnames";
|
|
14
15
|
import styles from "./table.module.css";
|
|
15
16
|
export const Table = forwardRef((_a, ref) => {
|
|
16
17
|
var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
|
|
17
18
|
const joinedClassNames = classNames(styles.table, className);
|
|
18
|
-
return (
|
|
19
|
+
return (_jsx("table", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
19
20
|
});
|
|
20
21
|
export const Thead = forwardRef((_a, ref) => {
|
|
21
22
|
var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
|
|
22
23
|
const joinedClassNames = classNames(styles.thead, className);
|
|
23
|
-
return (
|
|
24
|
+
return (_jsx("thead", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
24
25
|
});
|
|
25
26
|
export const Tbody = forwardRef((_a, ref) => {
|
|
26
27
|
var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
|
|
27
28
|
const joinedClassNames = classNames(styles.tbody, className);
|
|
28
|
-
return (
|
|
29
|
+
return (_jsx("tbody", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
29
30
|
});
|
|
30
31
|
export const Tfoot = forwardRef((_a, ref) => {
|
|
31
32
|
var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
|
|
32
33
|
const joinedClassNames = classNames(styles.tfoot, className);
|
|
33
|
-
return (
|
|
34
|
+
return (_jsx("tfoot", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
34
35
|
});
|
|
35
36
|
export const Tr = forwardRef((_a, ref) => {
|
|
36
37
|
var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
|
|
37
38
|
const joinedClassNames = classNames(styles.tr, className);
|
|
38
|
-
return (
|
|
39
|
+
return (_jsx("tr", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
39
40
|
});
|
|
40
41
|
export const Th = forwardRef((_a, ref) => {
|
|
41
42
|
var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
|
|
42
43
|
const joinedClassNames = classNames(styles.th, className);
|
|
43
|
-
return (
|
|
44
|
+
return (_jsx("th", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
44
45
|
});
|
|
45
46
|
export const Td = forwardRef((_a, ref) => {
|
|
46
47
|
var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
|
|
47
48
|
const joinedClassNames = classNames(styles.td, className);
|
|
48
|
-
return (
|
|
49
|
+
return (_jsx("td", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
49
50
|
});
|
|
50
51
|
//# sourceMappingURL=table.js.map
|
package/dist/table/table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/table/table.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/table/table.tsx"],"names":[],"mappings":";;;;;;;;;;;;A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,SAAS,EAAE,QAAQ,OAAgB,EAAX,SAAS,cAAnC,yBAAqC,CAAF;IAChC,MAAM,gBAAgB,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;IAE1D,OAAO,CACH,2BAAI,GAAG,EAAE,GAAG,IAAM,SAAS,IAAE,SAAS,EAAE,gBAAgB,YACnD,QAAQ,IACR,CACR,CAAC;AACN,CAAC,CACJ,CAAC"}
|
package/dist/text/text.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type TextVariant = "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "body1" | "body2" | "body3" | "body4" | "body5" | "body6" | "caption" | "span";
|
|
3
3
|
export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
4
4
|
variant?: TextVariant;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const H1:
|
|
8
|
-
export declare const H2:
|
|
9
|
-
export declare const H3:
|
|
10
|
-
export declare const H4:
|
|
11
|
-
export declare const H5:
|
|
12
|
-
export declare const H6:
|
|
7
|
+
export declare const H1: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
8
|
+
export declare const H2: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
export declare const H3: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
export declare const H4: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
11
|
+
export declare const H5: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
12
|
+
export declare const H6: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
13
13
|
export interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
14
14
|
variant?: TextVariant;
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
}
|
|
17
|
-
export declare const P:
|
|
17
|
+
export declare const P: import("react").ForwardRefExoticComponent<ParagraphProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
18
18
|
export interface SpanProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
19
19
|
variant?: TextVariant;
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
}
|
|
22
|
-
export declare const Span:
|
|
22
|
+
export declare const Span: import("react").ForwardRefExoticComponent<SpanProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
23
23
|
export interface TextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
24
24
|
variant?: TextVariant;
|
|
25
25
|
children?: React.ReactNode;
|
|
26
26
|
}
|
|
27
|
-
export declare const Text:
|
|
27
|
+
export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
28
|
export {};
|
package/dist/text/text.js
CHANGED
|
@@ -9,52 +9,53 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { forwardRef } from "react";
|
|
13
14
|
import classNames from "classnames";
|
|
14
15
|
import styles from "./text.module.css";
|
|
15
16
|
export const H1 = forwardRef((_a, ref) => {
|
|
16
17
|
var { variant = "heading1", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
17
18
|
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
18
|
-
return (
|
|
19
|
+
return (_jsx("h1", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
19
20
|
});
|
|
20
21
|
export const H2 = forwardRef((_a, ref) => {
|
|
21
22
|
var { variant = "heading2", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
22
23
|
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
23
|
-
return (
|
|
24
|
+
return (_jsx("h2", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
24
25
|
});
|
|
25
26
|
export const H3 = forwardRef((_a, ref) => {
|
|
26
27
|
var { variant = "heading3", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
27
28
|
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
28
|
-
return (
|
|
29
|
+
return (_jsx("h3", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
29
30
|
});
|
|
30
31
|
export const H4 = forwardRef((_a, ref) => {
|
|
31
32
|
var { variant = "heading4", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
32
33
|
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
33
|
-
return (
|
|
34
|
+
return (_jsx("h4", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
34
35
|
});
|
|
35
36
|
export const H5 = forwardRef((_a, ref) => {
|
|
36
37
|
var { variant = "heading5", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
37
38
|
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
38
|
-
return (
|
|
39
|
+
return (_jsx("h5", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
39
40
|
});
|
|
40
41
|
export const H6 = forwardRef((_a, ref) => {
|
|
41
42
|
var { variant = "heading6", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
42
43
|
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
43
|
-
return (
|
|
44
|
+
return (_jsx("h6", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
44
45
|
});
|
|
45
46
|
export const P = forwardRef((_a, ref) => {
|
|
46
47
|
var { variant = "body5", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
47
48
|
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
48
|
-
return (
|
|
49
|
+
return (_jsx("p", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
49
50
|
});
|
|
50
51
|
export const Span = forwardRef((_a, ref) => {
|
|
51
52
|
var { variant = "span", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
52
53
|
const joinedClassNames = classNames(styles.text, styles[variant], className);
|
|
53
|
-
return (
|
|
54
|
+
return (_jsx("span", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
54
55
|
});
|
|
55
56
|
export const Text = forwardRef((_a, ref) => {
|
|
56
57
|
var { variant = "body5", className, children } = _a, restProps = __rest(_a, ["variant", "className", "children"]);
|
|
57
58
|
const joinedClassNames = classNames(styles[variant], className);
|
|
58
|
-
return (
|
|
59
|
+
return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
59
60
|
});
|
|
60
61
|
//# sourceMappingURL=text.js.map
|
package/dist/text/text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/text/text.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/text/text.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAsBvC,MAAM,CAAC,MAAM,EAAE,GAAG,UAAU,CACxB,CAAC,EAA2D,EAAE,GAAG,EAAE,EAAE;QAApE,EAAE,OAAO,GAAG,UAAU,EAAE,SAAS,EAAE,QAAQ,OAAgB,EAAX,SAAS,cAAzD,oCAA2D,CAAF;IACtD,MAAM,gBAAgB,GAAG,UAAU,CAC/B,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,OAAiB,CAAC,EACzB,SAAS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BAAgB,GAAG,UAAU,CAC/B,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,OAAiB,CAAC,EACzB,SAAS,CACZ,CAAC;IACF,OAAO,CACH,0BAAG,GAAG,EAAE,GAAG,IAAM,SAAS,IAAE,SAAS,EAAE,gBAAgB,YAClD,QAAQ,IACT,CACP,CAAC;AACN,CAAC,CACJ,CAAC;AAMF,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAC1B,CAAC,EAAuD,EAAE,GAAG,EAAE,EAAE;QAAhE,EAAE,OAAO,GAAG,MAAM,EAAE,SAAS,EAAE,QAAQ,OAAgB,EAAX,SAAS,cAArD,oCAAuD,CAAF;IAClD,MAAM,gBAAgB,GAAG,UAAU,CAC/B,MAAM,CAAC,IAAI,EACX,MAAM,CAAC,OAAiB,CAAC,EACzB,SAAS,CACZ,CAAC;IACF,OAAO,CACH,6BAAM,GAAG,EAAE,GAAG,IAAM,SAAS,IAAE,SAAS,EAAE,gBAAgB,YACrD,QAAQ,IACN,CACV,CAAC;AACN,CAAC,CACJ,CAAC;AAMF,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAC1B,CAAC,EAAwD,EAAE,GAAG,EAAE,EAAE;QAAjE,EAAE,OAAO,GAAG,OAAO,EAAE,SAAS,EAAE,QAAQ,OAAgB,EAAX,SAAS,cAAtD,oCAAwD,CAAF;IACnD,MAAM,gBAAgB,GAAG,UAAU,CAC/B,MAAM,CAAC,OAAiB,CAAC,EACzB,SAAS,CACZ,CAAC;IACF,OAAO,CACH,4BAAK,GAAG,EAAE,GAAG,IAAM,SAAS,IAAE,SAAS,EAAE,gBAAgB,YACpD,QAAQ,IACP,CACT,CAAC;AACN,CAAC,CACJ,CAAC"}
|
package/dist/theme/theme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import "./globals.css";
|
|
3
3
|
export type DarkStyle = "light" | "dark" | "system";
|
|
4
4
|
export type ThemeColor = "green" | "red" | "yellow" | "blue" | "purple";
|
|
@@ -8,4 +8,4 @@ export interface ThemeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
zoom?: number;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}
|
|
11
|
-
export declare const Theme:
|
|
11
|
+
export declare const Theme: import("react").ForwardRefExoticComponent<ThemeProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/theme/theme.js
CHANGED
|
@@ -9,7 +9,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { forwardRef, useEffect } from "react";
|
|
13
14
|
import classNames from "classnames";
|
|
14
15
|
import "./globals.css";
|
|
15
16
|
import styles from "./theme.module.css";
|
|
@@ -20,6 +21,6 @@ export const Theme = forwardRef((_a, ref) => {
|
|
|
20
21
|
document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
|
|
21
22
|
}, [zoomPercentage]);
|
|
22
23
|
const joinedClassNames = classNames(styles.theme, styles[darkStyle], styles[color], className);
|
|
23
|
-
return (
|
|
24
|
+
return (_jsx("div", Object.assign({ ref: ref }, restProps, { className: joinedClassNames, children: children })));
|
|
24
25
|
});
|
|
25
26
|
//# sourceMappingURL=theme.js.map
|
package/dist/theme/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/theme/theme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/theme/theme.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,eAAe,CAAC;AACvB,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAWxC,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC3B,CACI,EAOC,EACD,GAAG,EACL,EAAE;QATA,EACI,SAAS,GAAG,QAAQ,EACpB,KAAK,GAAG,MAAM,EACd,IAAI,GAAG,GAAG,EACV,SAAS,EACT,QAAQ,OAEX,EADM,SAAS,cANhB,uDAOC,CADe;IAIhB,MAAM,cAAc,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAEzD,SAAS,CAAC,GAAG,EAAE;QACX,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CACtC,WAAW,EACX,cAAc,GAAG,GAAG,CACvB,CAAC;IACN,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,MAAM,gBAAgB,GAAG,UAAU,CAC/B,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,SAAS,CAAC,EACjB,MAAM,CAAC,KAAK,CAAC,EACb,SAAS,CACZ,CAAC;IAEF,OAAO,CACH,4BAAK,GAAG,EAAE,GAAG,IAAM,SAAS,IAAE,SAAS,EAAE,gBAAgB,YACpD,QAAQ,IACP,CACT,CAAC;AACN,CAAC,CACJ,CAAC"}
|