linkup-lib 0.1.11 → 0.1.12
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,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ThemeConfig } from 'antd';
|
|
2
3
|
export interface RootLayoutProps {
|
|
3
4
|
size?: 'small' | 'middle' | 'large';
|
|
4
5
|
color?: string;
|
|
5
6
|
children: React.ReactNode;
|
|
7
|
+
theme?: ThemeConfig;
|
|
6
8
|
}
|
|
7
|
-
declare const RootLayout: ({ size, children, color }: RootLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const RootLayout: ({ size, children, color, theme }: RootLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export default RootLayout;
|
|
@@ -9,7 +9,7 @@ const antd_1 = require("antd");
|
|
|
9
9
|
const nextjs_registry_1 = require("@ant-design/nextjs-registry");
|
|
10
10
|
// 한국어
|
|
11
11
|
const ko_KR_1 = __importDefault(require("antd/es/locale/ko_KR"));
|
|
12
|
-
const
|
|
12
|
+
const _theme = {
|
|
13
13
|
token: {
|
|
14
14
|
fontFamily: "'NanumSquareNeo', sans-serif",
|
|
15
15
|
borderRadius: 4,
|
|
@@ -45,5 +45,5 @@ const theme = {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
const RootLayout = ({ size = 'small', children, color }) => ((0, jsx_runtime_1.jsx)(nextjs_registry_1.AntdRegistry, { children: (0, jsx_runtime_1.jsx)(antd_1.ConfigProvider, { componentSize: size, theme: Object.assign(Object.assign({},
|
|
48
|
+
const RootLayout = ({ size = 'small', children, color, theme }) => ((0, jsx_runtime_1.jsx)(nextjs_registry_1.AntdRegistry, { children: (0, jsx_runtime_1.jsx)(antd_1.ConfigProvider, { componentSize: size, theme: Object.assign(Object.assign(Object.assign({}, _theme), { token: Object.assign(Object.assign({}, _theme.token), { colorPrimary: color }) }), theme), locale: ko_KR_1.default, children: children }) }));
|
|
49
49
|
exports.default = RootLayout;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ThemeConfig } from "antd";
|
|
1
2
|
export interface Props {
|
|
2
3
|
size?: 'small' | 'middle' | 'large';
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
color?: string;
|
|
6
|
+
theme?: ThemeConfig;
|
|
5
7
|
}
|
|
6
|
-
declare const Component: ({ size, children, color }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const Component: ({ size, children, color, theme }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export default Component;
|
|
@@ -8,7 +8,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
8
8
|
const NextAuthRegistry_1 = __importDefault(require("../registry/NextAuthRegistry"));
|
|
9
9
|
const ErrorRegistry_1 = __importDefault(require("../registry/ErrorRegistry"));
|
|
10
10
|
const AntdRegistry_1 = __importDefault(require("../registry/AntdRegistry"));
|
|
11
|
-
const Component = ({ size = 'small', children, color }) => {
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(NextAuthRegistry_1.default, { session: true, children: (0, jsx_runtime_1.jsx)(AntdRegistry_1.default, { size: size, color: color, children: (0, jsx_runtime_1.jsx)(ErrorRegistry_1.default, { children: children }) }) }));
|
|
11
|
+
const Component = ({ size = 'small', children, color, theme }) => {
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(NextAuthRegistry_1.default, { session: true, children: (0, jsx_runtime_1.jsx)(AntdRegistry_1.default, { size: size, color: color, theme: theme, children: (0, jsx_runtime_1.jsx)(ErrorRegistry_1.default, { children: children }) }) }));
|
|
13
13
|
};
|
|
14
14
|
exports.default = Component;
|
package/dist/index.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ declare const _default: {
|
|
|
134
134
|
Aside: ({ primaryColor, menus }: import("./components/ui/Aside").AsideProps) => import("react/jsx-runtime").JSX.Element;
|
|
135
135
|
Page: ({ children }: import("./components/ui/Page").PageProps) => import("react/jsx-runtime").JSX.Element;
|
|
136
136
|
PageTitle: ({ title, section1, section2 }: import("./components/ui/PageTitle").PageTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
137
|
-
LinkupProvider: ({ size, children, color }: import("./components/registry/Registry").Props) => import("react/jsx-runtime").JSX.Element;
|
|
137
|
+
LinkupProvider: ({ size, children, color, theme }: import("./components/registry/Registry").Props) => import("react/jsx-runtime").JSX.Element;
|
|
138
138
|
Checkbox: ({ label, checked, primaryColor, onChange }: import("./components/ui/Checkbox").Props) => import("react/jsx-runtime").JSX.Element;
|
|
139
139
|
Grid: <T>({ rowKey, primaryColor, searchParams, fetch, columns, searchFilter, onSearch, onInitFilter, onChangeGrid, onChangeSelectedKey, buttons }: import("./components/ui/Grid").Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
140
140
|
};
|