@quixotic/ui 0.2.14 → 0.2.25
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/index.cjs.css +1 -1
- package/dist/index.cjs.js +69 -102
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.js +71 -104
- package/dist/index.esm.js.map +1 -1
- package/dist/styles/antd.css +1 -0
- package/dist/styles/theme.css +1 -1
- package/dist/types/ThemeProvider.d.ts +2 -2
- package/dist/types/components/design/KAutoComplete/KAutoComplete.d.ts +3 -3
- package/dist/types/components/design/KAutoComplete/KAutoComplete.stories.d.ts +50 -0
- package/dist/types/components/design/KButton/KButton.d.ts +2 -2
- package/dist/types/components/design/KButton/KButton.stories.d.ts +37 -0
- package/dist/types/components/design/KCheckbox/KCheckbox.d.ts +2 -2
- package/dist/types/components/design/KCheckbox/KCheckbox.stories.d.ts +113 -0
- package/dist/types/components/design/KDropdown/KDropdown.d.ts +2 -1
- package/dist/types/components/design/KDropdown/KDropdown.stories.d.ts +105 -0
- package/dist/types/components/design/KInput/KInput.d.ts +33 -7
- package/dist/types/components/design/KInput/KInput.stories.d.ts +74 -0
- package/dist/types/components/design/KInput/KInputAddon.stories.d.ts +46 -0
- package/dist/types/components/design/KInput/KInputOTP.stories.d.ts +41 -0
- package/dist/types/components/design/KInput/KInputPassword.stories.d.ts +36 -0
- package/dist/types/components/design/KInput/KInputSearch.stories.d.ts +41 -0
- package/dist/types/components/design/KInput/KInputTextArea.stories.d.ts +58 -0
- package/dist/types/components/design/KRadio/KRadio.d.ts +13 -8
- package/dist/types/components/design/KRadio/KRadio.stories.d.ts +91 -0
- package/dist/types/components/design/KRadio/KRadioGroup.stories.d.ts +124 -0
- package/dist/types/components/design/KSelect/KSelect.d.ts +6 -2
- package/dist/types/components/design/KSelect/KSelect.stories.d.ts +132 -0
- package/dist/types/components/design/KSpin/KSpin.d.ts +1 -1
- package/dist/types/components/design/KSpin/KSpin.stories.d.ts +17 -0
- package/dist/types/components/design/KSwitch/KSwitch.d.ts +4 -4
- package/dist/types/components/design/KSwitch/KSwitch.stories.d.ts +116 -0
- package/dist/types/components/design/KTabel/KTable.d.ts +1 -1
- package/dist/types/components/design/KTabel/KTable.stories.d.ts +92 -0
- package/dist/types/components/design/KTabs/KTabs.d.ts +2 -2
- package/dist/types/components/design/KTabs/KTabs.stories.d.ts +123 -0
- package/dist/types/components/design/KTag/KTag.d.ts +2 -2
- package/dist/types/components/design/KTag/KTag.stories.d.ts +14 -0
- package/dist/types/components/design/KTooltip/KTooltip.d.ts +2 -2
- package/dist/types/components/design/KTooltip/KTooltip.stories.d.ts +14 -0
- package/dist/types/components/design/KTypography/KTypography.d.ts +7 -7
- package/dist/types/components/design/KTypography/KTypography.stories.d.ts +21 -0
- package/package.json +5 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { theme, ConfigProvider, AutoComplete, Button, Checkbox, Dropdown, Input, Radio, Select, Spin, Switch, Table, Tabs, Tag, Tooltip, Typography } from 'antd';
|
|
3
|
-
import React, { forwardRef
|
|
3
|
+
import React, { forwardRef } from 'react';
|
|
4
4
|
import { twJoin } from 'tailwind-merge';
|
|
5
5
|
|
|
6
6
|
const darkTheme = {
|
|
@@ -29,139 +29,104 @@ const lightTheme = {
|
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
const ThemeProvider = ({ mode = 'light', children, ...props }) => {
|
|
32
|
+
const ThemeProvider = ({ mode = 'light', children, theme, ...props }) => {
|
|
33
33
|
const baseTheme = mode === "dark" ? darkTheme : lightTheme;
|
|
34
|
+
baseTheme.zeroRuntime = true;
|
|
35
|
+
baseTheme.cssVar = { prefix: 'v', key: 'app' };
|
|
36
|
+
if (!props.wave) {
|
|
37
|
+
props.wave = {
|
|
38
|
+
disabled: true,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
34
41
|
const mergedTheme = {
|
|
35
42
|
...baseTheme,
|
|
36
|
-
...
|
|
37
|
-
token:
|
|
43
|
+
...theme,
|
|
44
|
+
token: (theme === null || theme === void 0 ? void 0 : theme.token) ? {
|
|
38
45
|
...baseTheme.token,
|
|
39
|
-
...
|
|
46
|
+
...theme.token,
|
|
40
47
|
} : baseTheme.token,
|
|
41
|
-
components:
|
|
48
|
+
components: (theme === null || theme === void 0 ? void 0 : theme.components) ? {
|
|
42
49
|
...baseTheme.components,
|
|
43
|
-
...
|
|
50
|
+
...theme.components,
|
|
44
51
|
} : baseTheme.components,
|
|
45
52
|
};
|
|
46
|
-
return (jsx(ConfigProvider, { theme: mergedTheme, children: children }));
|
|
53
|
+
return (jsx(ConfigProvider, { ...props, theme: mergedTheme, children: children }));
|
|
47
54
|
};
|
|
48
55
|
|
|
49
56
|
const KAutoComplete = forwardRef(({ className, size = 'lg', ...props }, ref) => {
|
|
50
|
-
return (jsx(AutoComplete, { ...props,
|
|
57
|
+
return (jsx(AutoComplete, { ...props, prefixCls: 'k-select', className: twJoin(`k-auto-complete-${size}`, className), ref: ref }));
|
|
51
58
|
});
|
|
52
59
|
KAutoComplete.displayName = 'KAutoComplete';
|
|
53
60
|
|
|
54
61
|
const KButton = React.forwardRef(({ children, className, type = 'primary', size = 'lg', ...rest }, ref) => {
|
|
55
|
-
return (jsx(Button, { ...rest,
|
|
62
|
+
return (jsx(Button, { ...rest, prefixCls: 'k-button', className: twJoin(`k-button-${type}`, `k-button-${size}`, className), ref: ref, size: 'middle', type: 'default', children: children }));
|
|
56
63
|
});
|
|
57
64
|
|
|
58
65
|
const KCheckboxGroup = forwardRef((props, ref) => {
|
|
59
|
-
return jsx(Checkbox.Group, { ...props,
|
|
66
|
+
return jsx(Checkbox.Group, { ...props, prefixCls: 'k-checkbox', className: twJoin(props.className), ref: ref });
|
|
60
67
|
});
|
|
61
|
-
const KCheckbox = forwardRef(({ children, className, size = '
|
|
62
|
-
return (jsx(Checkbox, { ...props, className: twJoin(`k-checkbox
|
|
68
|
+
const KCheckbox = forwardRef(({ children, className, size = 'lg', ...props }, ref) => {
|
|
69
|
+
return (jsx(Checkbox, { ...props, prefixCls: 'k-checkbox', className: twJoin(`k-checkbox-${size}`, className), ref: ref, children: children }));
|
|
63
70
|
});
|
|
64
71
|
KCheckbox.Group = KCheckboxGroup;
|
|
65
72
|
|
|
66
73
|
const KDropdown = ({ children, className, ...props }) => {
|
|
67
|
-
return (jsx(Dropdown, { ...props,
|
|
74
|
+
return (jsx(Dropdown, { ...props, prefixCls: 'k-dropdown', className: twJoin(className), children: children }));
|
|
68
75
|
};
|
|
69
76
|
|
|
70
77
|
const InternalKInput = forwardRef(({ className, size = 'lg', ...props }, ref) => {
|
|
71
|
-
return (jsx(Input, { ...props,
|
|
78
|
+
return (jsx(Input, { ...props, prefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
|
|
79
|
+
});
|
|
80
|
+
const KTextArea = forwardRef(({ className, size = 'lg', ...props }, ref) => {
|
|
81
|
+
return (jsx(Input.TextArea, { ...props, prefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
|
|
82
|
+
});
|
|
83
|
+
const KSearch = forwardRef(({ className, size = 'lg', ...props }, ref) => {
|
|
84
|
+
return (jsx(Input.Search, { ...props, prefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
|
|
85
|
+
});
|
|
86
|
+
const KPassword = forwardRef(({ className, size = 'lg', ...props }, ref) => {
|
|
87
|
+
return (jsx(Input.Password, { ...props, prefixCls: 'k-input', inputPrefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
|
|
88
|
+
});
|
|
89
|
+
const KOTP = forwardRef(({ className, size = 'lg', ...props }, ref) => {
|
|
90
|
+
return (jsx(Input.OTP, { ...props, prefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
|
|
72
91
|
});
|
|
73
92
|
const KInput = InternalKInput;
|
|
74
|
-
KInput.TextArea =
|
|
75
|
-
KInput.Search =
|
|
76
|
-
KInput.Password =
|
|
77
|
-
KInput.OTP =
|
|
93
|
+
KInput.TextArea = KTextArea;
|
|
94
|
+
KInput.Search = KSearch;
|
|
95
|
+
KInput.Password = KPassword;
|
|
96
|
+
KInput.OTP = KOTP;
|
|
78
97
|
|
|
79
|
-
const KRadioGroup = forwardRef((props, ref) => {
|
|
80
|
-
return jsx(Radio.Group, { ...props, className: twJoin(
|
|
98
|
+
const KRadioGroup = forwardRef(({ size = 'md', ...props }, ref) => {
|
|
99
|
+
return jsx(Radio.Group, { ...props, prefixCls: 'k-radio', className: twJoin(`k-radio-group-${size}`, props.className), ref: ref });
|
|
81
100
|
});
|
|
82
101
|
const KRadioButton = forwardRef((props, ref) => {
|
|
83
|
-
return jsx(Radio.Button, { ...props,
|
|
102
|
+
return jsx(Radio.Button, { ...props, prefixCls: 'k-radio', className: twJoin(props.className), ref: ref });
|
|
84
103
|
});
|
|
85
|
-
const KRadio = forwardRef(({ children, size = '
|
|
86
|
-
return (jsx(Radio, { ...props,
|
|
104
|
+
const KRadio = forwardRef(({ children, size = 'lg', ...props }, ref) => {
|
|
105
|
+
return (jsx(Radio, { ...props, prefixCls: 'k-radio', className: twJoin(`k-radio-${size}`, props.className), ref: ref, children: children }));
|
|
87
106
|
});
|
|
88
107
|
KRadio.Group = KRadioGroup;
|
|
89
108
|
KRadio.Button = KRadioButton;
|
|
90
109
|
|
|
91
|
-
const KSelect = forwardRef(({ children,
|
|
92
|
-
return (jsx(Select, { ...props,
|
|
110
|
+
const KSelect = forwardRef(({ children, size = 'lg', ...props }, ref) => {
|
|
111
|
+
return (jsx(Select, { ...props, prefixCls: 'k-select', className: twJoin(`k-select-${size}`, props.className), rootClassName: twJoin(
|
|
112
|
+
// 'k-select-root',
|
|
113
|
+
props.rootClassName), ref: ref, children: children }));
|
|
93
114
|
});
|
|
94
115
|
|
|
95
116
|
const KSpin = ({ className, size = 'lg', ...props }) => {
|
|
96
|
-
return (jsx(Spin, { ...props,
|
|
117
|
+
return (jsx(Spin, { ...props, prefixCls: 'k-spin', className: twJoin(`k-spin-${size}`, className) }));
|
|
97
118
|
};
|
|
98
119
|
|
|
99
|
-
const KSwitch = forwardRef(({ size = '
|
|
100
|
-
return (jsx(Switch, { ...props,
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
const useFocusVisible = ({ focusVisible = false, prefix = 'k-focus', selector = '[class^="ant-"]' } = {}) => {
|
|
104
|
-
const id = useId().replace(/:/g, '');
|
|
105
|
-
const idClass = `${prefix}-${id}`;
|
|
106
|
-
useEffect(() => {
|
|
107
|
-
if (focusVisible)
|
|
108
|
-
return;
|
|
109
|
-
const idClassInner = `${prefix}-${id}`;
|
|
110
|
-
let timer;
|
|
111
|
-
const updateTabIndex = () => {
|
|
112
|
-
const container = document.querySelector(`.${idClassInner}`);
|
|
113
|
-
if (!container)
|
|
114
|
-
return;
|
|
115
|
-
const elements = container.querySelectorAll(selector);
|
|
116
|
-
elements.forEach(el => {
|
|
117
|
-
if (el.getAttribute('tabindex') !== '-1') {
|
|
118
|
-
el.setAttribute('tabindex', '-1');
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
const debouncedUpdate = () => {
|
|
123
|
-
clearTimeout(timer);
|
|
124
|
-
timer = setTimeout(updateTabIndex, 0);
|
|
125
|
-
};
|
|
126
|
-
// 初始执行一次
|
|
127
|
-
updateTabIndex();
|
|
128
|
-
// 监听 DOM 变化
|
|
129
|
-
const container = document.querySelector(`.${idClassInner}`);
|
|
130
|
-
if (!container)
|
|
131
|
-
return;
|
|
132
|
-
const observer = new MutationObserver((mutations) => {
|
|
133
|
-
// 过滤掉我们自己修改 tabindex 引起的变动,避免触发(虽然代码里有判断,但过滤一下更安全)
|
|
134
|
-
const hasExternalChanges = mutations.some(m => {
|
|
135
|
-
if (m.type === 'attributes' && m.attributeName === 'tabindex') {
|
|
136
|
-
const target = m.target;
|
|
137
|
-
return target.getAttribute('tabindex') !== '-1';
|
|
138
|
-
}
|
|
139
|
-
return true;
|
|
140
|
-
});
|
|
141
|
-
if (hasExternalChanges) {
|
|
142
|
-
debouncedUpdate();
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
observer.observe(container, {
|
|
146
|
-
childList: true,
|
|
147
|
-
subtree: true,
|
|
148
|
-
attributes: true,
|
|
149
|
-
attributeFilter: ['class', 'tabindex']
|
|
150
|
-
});
|
|
151
|
-
return () => {
|
|
152
|
-
observer.disconnect();
|
|
153
|
-
clearTimeout(timer);
|
|
154
|
-
};
|
|
155
|
-
}, [focusVisible, id, prefix, selector]);
|
|
156
|
-
return idClass;
|
|
157
|
-
};
|
|
120
|
+
const KSwitch = forwardRef(({ size = 'lg', className, ...props }, ref) => {
|
|
121
|
+
return (jsx(Switch, { ...props, prefixCls: 'k-switch', className: twJoin(`k-switch-${size}`, className), ref: ref }));
|
|
122
|
+
});
|
|
158
123
|
|
|
159
124
|
const KTable = forwardRef(({ className, focusVisible = false, ...props }, ref) => {
|
|
160
|
-
const idClass = useFocusVisible({
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
});
|
|
125
|
+
// const idClass = useFocusVisible({
|
|
126
|
+
// focusVisible,
|
|
127
|
+
// prefix: 'k-table',
|
|
128
|
+
// selector: '[class^="ant-table"], [class^="ant-pagination"]'
|
|
129
|
+
// });
|
|
165
130
|
const rowSelection = props.rowSelection ? {
|
|
166
131
|
...props.rowSelection,
|
|
167
132
|
getCheckboxProps: (record) => {
|
|
@@ -187,24 +152,26 @@ const KTable = forwardRef(({ className, focusVisible = false, ...props }, ref) =
|
|
|
187
152
|
};
|
|
188
153
|
}
|
|
189
154
|
} : undefined;
|
|
190
|
-
return (jsx(Table, { ...props,
|
|
155
|
+
return (jsx(Table, { ...props, prefixCls: 'k-table', rowSelection: rowSelection, className: className, ref: ref }));
|
|
191
156
|
});
|
|
192
157
|
|
|
193
158
|
const KTabs = forwardRef(({ className, focusVisible = false, ...props }, ref) => {
|
|
194
|
-
const idClass = useFocusVisible({
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
});
|
|
199
|
-
return (jsx(Tabs, {
|
|
159
|
+
// const idClass = useFocusVisible({
|
|
160
|
+
// focusVisible,
|
|
161
|
+
// prefix: 'k-tabs',
|
|
162
|
+
// selector: '.ant-tabs-nav [class^="ant-tabs"]'
|
|
163
|
+
// });
|
|
164
|
+
return (jsx(Tabs, { ...props, prefixCls: 'k-tabs', className: twJoin(`k-tabs-${props.size}`,
|
|
165
|
+
// idClass,
|
|
166
|
+
className), ref: ref }));
|
|
200
167
|
});
|
|
201
168
|
|
|
202
169
|
const KTag = forwardRef(({ children, className, ...props }, ref) => {
|
|
203
|
-
return (jsx(Tag, { ...props,
|
|
170
|
+
return (jsx(Tag, { ...props, prefixCls: 'k-tag', className: twJoin(className), ref: ref, children: children }));
|
|
204
171
|
});
|
|
205
172
|
|
|
206
173
|
const KTooltip = forwardRef(({ children, className, ...props }, ref) => {
|
|
207
|
-
return (jsx(Tooltip, { ...props,
|
|
174
|
+
return (jsx(Tooltip, { ...props, prefixCls: 'k-tooltip', className: twJoin(className), ref: ref, children: children }));
|
|
208
175
|
});
|
|
209
176
|
|
|
210
177
|
const { Text, Title, Paragraph } = Typography;
|
|
@@ -225,16 +192,16 @@ const getCopyableConfig = (copyable) => {
|
|
|
225
192
|
};
|
|
226
193
|
};
|
|
227
194
|
const KText = forwardRef(({ className, ...props }, ref) => {
|
|
228
|
-
return jsx(Text, { ...props,
|
|
195
|
+
return jsx(Text, { ...props, prefixCls: 'k-text', className: twJoin(className), copyable: getCopyableConfig(props.copyable), ref: ref });
|
|
229
196
|
});
|
|
230
197
|
const KTitle = forwardRef(({ className, ...props }, ref) => {
|
|
231
|
-
return jsx(Title, { ...props,
|
|
198
|
+
return jsx(Title, { ...props, prefixCls: 'k-title', className: twJoin(className), copyable: getCopyableConfig(props.copyable), ref: ref });
|
|
232
199
|
});
|
|
233
200
|
const KParagraph = forwardRef(({ className, ...props }, ref) => {
|
|
234
|
-
return jsx(Paragraph, { ...props,
|
|
201
|
+
return jsx(Paragraph, { ...props, prefixCls: 'k-paragraph', className: twJoin(className), copyable: getCopyableConfig(props.copyable), ref: ref });
|
|
235
202
|
});
|
|
236
203
|
const KTypography = forwardRef((props, ref) => {
|
|
237
|
-
return jsx(Typography, { ...props, ref: ref });
|
|
204
|
+
return jsx(Typography, { ...props, prefixCls: 'k-typograph', ref: ref });
|
|
238
205
|
});
|
|
239
206
|
KTypography.Text = KText;
|
|
240
207
|
KTypography.Title = KTitle;
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/themes/dark.ts","../src/themes/light.ts","../src/ThemeProvider.tsx","../src/components/design/KAutoComplete/KAutoComplete.tsx","../src/components/design/KButton/KButton.tsx","../src/components/design/KCheckbox/KCheckbox.tsx","../src/components/design/KDropdown/KDropdown.tsx","../src/components/design/KInput/KInput.tsx","../src/components/design/KRadio/KRadio.tsx","../src/components/design/KSelect/KSelect.tsx","../src/components/design/KSpin/KSpin.tsx","../src/components/design/KSwitch/KSwitch.tsx","../src/hooks/useFocusVisible.ts","../src/components/design/KTabel/KTable.tsx","../src/components/design/KTabs/KTabs.tsx","../src/components/design/KTag/KTag.tsx","../src/components/design/KTooltip/KTooltip.tsx","../src/components/design/KTypography/KTypography.tsx"],"sourcesContent":["import {theme as themeAntd, ThemeConfig} from \"antd\";\n\nexport const darkTheme: ThemeConfig = {\n algorithm: themeAntd.darkAlgorithm,\n token: {\n colorPrimary: 'var(--grey-900)',\n colorTextSecondary: 'var(--grey-900)',\n colorBorder: 'var(--grey-300)',\n colorBorderSecondary: 'var(--grey-200)'\n },\n cssVar: {key: \"app\"},\n components: {},\n};","import {theme as themeAntd, ThemeConfig} from \"antd\";\n\n\nexport const lightTheme: ThemeConfig = {\n algorithm: themeAntd.defaultAlgorithm,\n token: {\n colorPrimary: 'var(--grey-900)',\n colorTextSecondary: 'var(--grey-900)',\n colorBorder: 'var(--grey-300)',\n colorBorderSecondary: 'var(--grey-200)'\n },\n cssVar: {key: \"app\"},\n components: {\n Button: {\n }\n },\n};","import React from 'react';\nimport {ConfigProvider, ThemeConfig} from 'antd';\nimport {darkTheme} from \"./themes/dark\";\nimport {lightTheme} from \"./themes/light\";\n\n\nexport type ThemeMode = 'light' | 'dark';\n\nexport type ThemeProviderProps = {\n mode?: ThemeMode;\n children: React.ReactNode;\n} & ThemeConfig;\n\nexport const ThemeProvider: React.FC<ThemeProviderProps> = ({\n mode = 'light',\n children,\n ...props\n }) => {\n\n const baseTheme = mode === \"dark\" ? darkTheme : lightTheme;\n\n\n const mergedTheme: ThemeConfig = {\n ...baseTheme,\n ...props,\n token: props.token ? {\n ...baseTheme.token,\n ...props.token,\n } : baseTheme.token,\n components: props.components ? {\n ...baseTheme.components,\n ...props.components,\n } : baseTheme.components,\n };\n\n\n return (\n <ConfigProvider theme={mergedTheme}>\n {children}\n </ConfigProvider>\n );\n};","import React, {forwardRef} from 'react';\nimport {AutoComplete, AutoCompleteProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css'\nimport {BaseOptionType, DefaultOptionType} from \"antd/es/select\";\n\nexport type KAutoCompleteProps<\n ValueType = any,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType,\n> = Omit<AutoCompleteProps<ValueType, OptionType>, 'size'> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\nexport const KAutoComplete = forwardRef(<\n ValueType = any,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType,\n>(\n {\n className,\n size = 'lg',\n ...props\n }: KAutoCompleteProps<ValueType, OptionType>,\n ref: any\n) => {\n return (\n <AutoComplete\n {...props}\n ref={ref}\n className={twJoin('k-auto-complete', `k-auto-complete-${size}`, className)}\n />\n );\n});\n\nKAutoComplete.displayName = 'KAutoComplete';\n\n","import React from 'react';\nimport {Button, ButtonProps} from 'antd';\nimport {cn} from \"../../../utils/cn\";\nimport './style.css';\nimport {twJoin} from \"tailwind-merge\";\n\nexport type KButtonProps = Omit<\n ButtonProps,\n 'size' | 'type'\n> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n type?: 'primary' | 'outline' | 'ghost' | 'link'\n}\n\n\nexport const KButton = React.forwardRef<HTMLButtonElement, KButtonProps>(({\n children,\n className,\n type = 'primary',\n size = 'lg',\n ...rest\n }, ref) => {\n\n\n return (\n <Button\n {...rest}\n className={twJoin('k-button', `k-button-${type}`, `k-button-${size}`, className)}\n ref={ref}\n size={'middle'}\n type={'default'}\n >\n {children}\n </Button>\n );\n});\n","import React, {forwardRef} from 'react';\nimport {Checkbox, CheckboxProps} from 'antd';\nimport type {CheckboxRef} from 'antd/es/checkbox';\nimport {CheckboxGroupProps} from 'antd/es/checkbox';\nimport './style.css';\nimport {twJoin} from \"tailwind-merge\";\n\nexport type KCheckboxProps = CheckboxProps & {\n size?: 'sm' | 'md',\n}\n\nexport type KCheckboxGroupProps = CheckboxGroupProps;\n\nexport const KCheckboxGroup = forwardRef<HTMLDivElement, KCheckboxGroupProps>((props, ref) => {\n return <Checkbox.Group {...props} className={twJoin('k-checkbox-group', props.className)} ref={ref}/>;\n});\n\nexport interface KCheckboxInterface extends React.ForwardRefExoticComponent<KCheckboxProps & React.RefAttributes<CheckboxRef>> {\n Group: typeof KCheckboxGroup;\n}\n\nexport const KCheckbox = forwardRef<CheckboxRef, KCheckboxProps>(({\n children,\n className,\n size = 'md',\n ...props\n }, ref) => {\n\n\n return (\n <Checkbox\n {...props}\n className={twJoin(`k-checkbox k-checkbox-${size}`, className)}\n ref={ref}>\n {children}\n </Checkbox>\n );\n\n}) as KCheckboxInterface;\n\nKCheckbox.Group = KCheckboxGroup;\n\n","import React from 'react';\nimport {Dropdown, DropdownProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\n\nexport type KDropdownProps = DropdownProps\n\n\nexport const KDropdown: React.FC<KDropdownProps> = ({children, className, ...props}) => {\n return (\n <Dropdown {...props} className={twJoin('k-dropdown', className)}>{children}</Dropdown>\n );\n};\n","import React, {forwardRef} from 'react';\nimport {Input, InputProps, InputRef} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css'\n\nexport type KInputProps = Omit<\n InputProps,\n 'size'\n> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\n\nconst InternalKInput = forwardRef<InputRef, KInputProps>(({\n className,\n size = 'lg',\n ...props\n }, ref) => {\n\n\n return (\n <Input {...props} className={twJoin('k-input', `k-input-${size}`, className)} ref={ref}/>\n );\n});\n\ntype CompoundedComponent = typeof InternalKInput & {\n TextArea: typeof Input.TextArea;\n Search: typeof Input.Search;\n Password: typeof Input.Password;\n OTP: typeof Input.OTP;\n};\n\nexport const KInput = InternalKInput as CompoundedComponent;\n\nKInput.TextArea = Input.TextArea;\nKInput.Search = Input.Search;\nKInput.Password = Input.Password;\nKInput.OTP = Input.OTP;\n","import React, {ComponentProps, forwardRef} from 'react';\nimport {Radio, RadioGroupProps, RadioProps} from 'antd';\nimport {RadioRef} from 'antd/es/radio/interface';\nimport './style.css';\nimport {twJoin} from \"tailwind-merge\";\n\nexport type KRadioProps = RadioProps & {\n size?: 'sm' | 'md',\n}\nexport type KRadioGroupProps = RadioGroupProps\nexport type KRadioButtonProps = ComponentProps<typeof Radio.Button>;\n\nexport const KRadioGroup = forwardRef<HTMLDivElement, KRadioGroupProps>((props, ref) => {\n return <Radio.Group {...props} className={twJoin('k-radio-group', props.className)} ref={ref}/>;\n})\n\nexport const KRadioButton = forwardRef<RadioRef, KRadioButtonProps>((props, ref) => {\n return <Radio.Button {...props} className={twJoin('k-radio-button', props.className)} ref={ref}/>;\n})\n\nexport interface KRadioInterface extends React.ForwardRefExoticComponent<KRadioProps & React.RefAttributes<RadioRef>> {\n Group: typeof KRadioGroup;\n Button: typeof KRadioButton;\n}\n\nexport const KRadio = forwardRef<RadioRef, KRadioProps>(({children, size = 'md', ...props}, ref) => {\n return (\n <Radio {...props} className={twJoin('k-radio', `k-radio-${size}`, props.className)} ref={ref}>{children}</Radio>\n );\n}) as KRadioInterface;\n\nKRadio.Group = KRadioGroup;\nKRadio.Button = KRadioButton;\n\n\n\n","import React, {forwardRef} from 'react';\nimport {Select, SelectProps} from 'antd';\nimport type {RefSelectProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nexport type KSelectProps = SelectProps;\n\n\nexport const KSelect = forwardRef<RefSelectProps, KSelectProps>(({children, className, ...props}, ref) => {\n return (\n <Select {...props} className={twJoin('k-select', className)} ref={ref}>{children}</Select>\n );\n});\n","import React from 'react';\nimport {Spin, SpinProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\n\nexport type KSpinProps = Omit<SpinProps, 'size'> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\nexport const KSpin: React.FC<KSpinProps> = ({className, size = 'lg', ...props}) => {\n return (\n <Spin {...props} className={twJoin('k-spin', `k-spin-${size}`, className)}/>\n );\n};\n","import React, {forwardRef} from 'react';\nimport {Switch, SwitchProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nexport type KSwitchProps = Omit<SwitchProps, 'size'> & {\n size?: 'sm' | 'md',\n}\n\n\nexport const KSwitch = forwardRef<HTMLButtonElement, KSwitchProps>(({size = 'md', className, ...props}, ref) => {\n return (\n <Switch {...props} className={twJoin('k-switch', `k-switch-${size}`, className)} ref={ref}/>\n );\n});\n","import {useEffect, useId} from 'react';\n\nexport interface UseFocusVisibleOptions {\n focusVisible?: boolean;\n prefix?: string;\n selector?: string;\n}\n\nexport const useFocusVisible = ({\n focusVisible = false,\n prefix = 'k-focus',\n selector = '[class^=\"ant-\"]'\n }: UseFocusVisibleOptions = {}) => {\n const id = useId().replace(/:/g, '');\n const idClass = `${prefix}-${id}`;\n\n useEffect(() => {\n if (focusVisible) return;\n\n const idClassInner = `${prefix}-${id}`;\n\n let timer: ReturnType<typeof setTimeout>;\n const updateTabIndex = () => {\n const container = document.querySelector(`.${idClassInner}`);\n if (!container) return;\n const elements = container.querySelectorAll(selector);\n elements.forEach(el => {\n if (el.getAttribute('tabindex') !== '-1') {\n el.setAttribute('tabindex', '-1');\n }\n });\n };\n\n const debouncedUpdate = () => {\n clearTimeout(timer);\n timer = setTimeout(updateTabIndex, 0);\n };\n\n // 初始执行一次\n updateTabIndex();\n\n // 监听 DOM 变化\n const container = document.querySelector(`.${idClassInner}`);\n if (!container) return;\n\n const observer = new MutationObserver((mutations) => {\n // 过滤掉我们自己修改 tabindex 引起的变动,避免触发(虽然代码里有判断,但过滤一下更安全)\n const hasExternalChanges = mutations.some(m => {\n if (m.type === 'attributes' && m.attributeName === 'tabindex') {\n const target = m.target as HTMLElement;\n return target.getAttribute('tabindex') !== '-1';\n }\n return true;\n });\n\n if (hasExternalChanges) {\n debouncedUpdate();\n }\n });\n\n observer.observe(container, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['class', 'tabindex']\n });\n\n return () => {\n observer.disconnect();\n clearTimeout(timer);\n };\n }, [focusVisible, id, prefix, selector]);\n\n return idClass;\n};\n","import React, {forwardRef} from 'react';\nimport {Table, TableProps} from 'antd';\nimport type {TableRef} from 'antd/es/table';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\nimport '../KRadio/style.css';\nimport '../KCheckbox/style.css';\nimport {useFocusVisible} from \"../../../hooks/useFocusVisible\";\n\nexport type KTableProps<RecordType = any> = TableProps<RecordType> & {\n focusVisible?: boolean;\n};\n\nexport const KTable = forwardRef<TableRef, KTableProps>(({className, focusVisible = false, ...props}, ref) => {\n const idClass = useFocusVisible({\n focusVisible,\n prefix: 'k-table',\n selector: '[class^=\"ant-table\"], [class^=\"ant-pagination\"]'\n });\n\n const rowSelection = props.rowSelection ? {\n ...props.rowSelection,\n getCheckboxProps: (record: any) => {\n const existingProps = props.rowSelection?.getCheckboxProps?.(record) || {};\n const isRadio = props.rowSelection?.type === 'radio';\n const size = props.size === 'small' ? 'sm' : 'md';\n const cls = isRadio ? `k-radio k-radio-${size}` : `k-checkbox k-checkbox-${size}`;\n return {\n ...existingProps,\n className: twJoin(cls, existingProps.className),\n };\n },\n getTitleCheckboxProps: ()=>{\n const existingProps = props.rowSelection?.getTitleCheckboxProps?.() || {};\n const isRadio = props.rowSelection?.type === 'radio';\n const size = props.size === 'small' ? 'sm' : 'md';\n const cls = isRadio ? `k-radio k-radio-${size}` : `k-checkbox k-checkbox-${size}`;\n return {\n ...existingProps,\n className: twJoin(cls, existingProps.className),\n };\n }\n } : undefined;\n\n return (\n <Table\n {...props}\n rowSelection={rowSelection}\n className={twJoin('k-table', idClass, className)}\n ref={ref}\n />\n );\n}) as <RecordType = any>(\n props: KTableProps<RecordType> & { ref?: React.ForwardedRef<TableRef> }\n) => React.ReactElement;\n","import React, {forwardRef, ComponentRef} from 'react';\nimport {Tabs, TabsProps} from 'antd';\nimport './style.css';\nimport {twJoin} from \"tailwind-merge\";\nimport {useFocusVisible} from \"../../../hooks/useFocusVisible\";\n\nexport type KTabsProps = TabsProps & {\n focusVisible?: boolean,\n};\n\n\nexport const KTabs = forwardRef<ComponentRef<typeof Tabs>, KTabsProps>(({\n className,\n focusVisible = false,\n ...props\n }, ref) => {\n\n const idClass = useFocusVisible({\n focusVisible,\n prefix: 'k-tabs',\n selector: '.ant-tabs-nav [class^=\"ant-tabs\"]'\n });\n\n return (\n <Tabs\n className={twJoin(\n 'k-tabs',\n `k-tabs-${props.size}`,\n idClass,\n className\n )}\n ref={ref}\n {...props}\n />\n )\n})","import React, {forwardRef} from 'react';\nimport {Tag, TagProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nexport type KTagProps = TagProps;\n\n\nexport const KTag = forwardRef<HTMLAnchorElement | HTMLSpanElement, KTagProps>(({\n children,\n className,\n ...props\n }, ref) => {\n return (\n <Tag {...props} className={twJoin('k-tag', className)} ref={ref}>{children}</Tag>\n );\n});\n","import React, {forwardRef} from 'react';\nimport {Tooltip, TooltipProps} from 'antd';\nimport type {TooltipRef} from 'antd/es/tooltip';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nexport type KTooltipProps = TooltipProps\n\nexport const KTooltip = forwardRef<TooltipRef, KTooltipProps>(({children, className, ...props}, ref) => {\n return (\n <Tooltip {...props} className={twJoin('k-tooltip', className)} ref={ref}>{children}</Tooltip>\n );\n});\n","import React, {forwardRef} from 'react';\n\nimport {Typography} from \"antd\";\nimport {TextProps} from \"antd/es/typography/Text\";\nimport {TitleProps} from \"antd/es/typography/Title\";\nimport {ParagraphProps} from \"antd/es/typography/Paragraph\";\nimport {TypographyProps} from \"antd/es/typography/Typography\";\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nconst {Text, Title, Paragraph} = Typography;\n\nexport type KTextProps = TextProps;\nexport type KTitleProps = TitleProps;\nexport type KParagraphProps = ParagraphProps;\nexport type KTypographyProps = TypographyProps<any>;\n\nconst CopyIcon = () => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M27 4H11C10.7348 4 10.4804 4.10536 10.2929 4.29289C10.1054 4.48043 10 4.73478 10 5V10H5C4.73478 10 4.48043 10.1054 4.29289 10.2929C4.10536 10.4804 4 10.7348 4 11V27C4 27.2652 4.10536 27.5196 4.29289 27.7071C4.48043 27.8946 4.73478 28 5 28H21C21.2652 28 21.5196 27.8946 21.7071 27.7071C21.8946 27.5196 22 27.2652 22 27V22H27C27.2652 22 27.5196 21.8946 27.7071 21.7071C27.8946 21.5196 28 21.2652 28 21V5C28 4.73478 27.8946 4.48043 27.7071 4.29289C27.5196 4.10536 27.2652 4 27 4ZM20 26H6V12H20V26ZM26 20H22V11C22 10.7348 21.8946 10.4804 21.7071 10.2929C21.5196 10.1054 21.2652 10 21 10H12V6H26V20Z\"\n fill=\"var(--fg-primary)\"/>\n </svg>\n);\n\nconst DoneIcon = () => (\n <svg width=\"1em\" height=\"0.72em\" viewBox=\"0 0 25 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M24.7081 1.70806L8.70806 17.7081C8.61518 17.801 8.50489 17.8748 8.3835 17.9251C8.2621 17.9754 8.13197 18.0013 8.00056 18.0013C7.86914 18.0013 7.73901 17.9754 7.61762 17.9251C7.49622 17.8748 7.38593 17.801 7.29306 17.7081L0.293056 10.7081C0.105415 10.5204 0 10.2659 0 10.0006C0 9.73519 0.105415 9.4807 0.293056 9.29306C0.480697 9.10542 0.735192 9 1.00056 9C1.26592 9 1.52042 9.10542 1.70806 9.29306L8.00056 15.5868L23.2931 0.293056C23.4807 0.105415 23.7352 -1.97711e-09 24.0006 0C24.2659 1.97712e-09 24.5204 0.105415 24.7081 0.293056C24.8957 0.480696 25.0011 0.735192 25.0011 1.00056C25.0011 1.26592 24.8957 1.52042 24.7081 1.70806Z\"\n fill=\"var(--fg-primary)\"/>\n </svg>\n);\n\nconst getCopyableConfig = (copyable: KTextProps['copyable']) => {\n if (!copyable) return copyable;\n const defaultIcon = [<CopyIcon key=\"copy-icon\"/>, <DoneIcon key=\"done-icon\"/>];\n if (typeof copyable === 'boolean') {\n return {\n icon: defaultIcon,\n };\n }\n return {\n ...copyable,\n icon: copyable.icon || defaultIcon,\n };\n};\n\nexport const KText = forwardRef<HTMLSpanElement, KTextProps>(({className, ...props}, ref) => {\n return <Text {...props} className={twJoin('k-text', className)} copyable={getCopyableConfig(props.copyable)}\n ref={ref}/>\n});\n\nexport const KTitle = forwardRef<HTMLHeadingElement, KTitleProps>(({className, ...props}, ref) => {\n return <Title {...props} className={twJoin('k-title', className)} copyable={getCopyableConfig(props.copyable)}\n ref={ref}/>\n});\n\nexport const KParagraph = forwardRef<HTMLDivElement, KParagraphProps>(({className, ...props}, ref) => {\n return <Paragraph {...props} className={twJoin('k-paragraph', className)}\n copyable={getCopyableConfig(props.copyable)} ref={ref}/>\n});\n\nexport const KTypography = forwardRef<HTMLElement, KTypographyProps>((props, ref) => {\n return <Typography {...props} ref={ref}/>\n}) as React.ForwardRefExoticComponent<KTypographyProps & React.RefAttributes<HTMLElement>> & {\n Text: typeof KText;\n Title: typeof KTitle;\n Paragraph: typeof KParagraph;\n};\n\nKTypography.Text = KText;\nKTypography.Title = KTitle;\nKTypography.Paragraph = KParagraph;\n\n\n\n"],"names":["themeAntd","_jsx"],"mappings":";;;;;AAEO,MAAM,SAAS,GAAgB;IAClC,SAAS,EAAEA,KAAS,CAAC,aAAa;AAClC,IAAA,KAAK,EAAE;AACH,QAAA,YAAY,EAAE,iBAAiB;AAC/B,QAAA,kBAAkB,EAAE,iBAAiB;AACrC,QAAA,WAAW,EAAE,iBAAiB;AAC9B,QAAA,oBAAoB,EAAE;AACzB,KAAA;AACD,IAAA,MAAM,EAAE,EAAC,GAAG,EAAE,KAAK,EAAC;AACpB,IAAA,UAAU,EAAE,EAAE;CACjB;;ACTM,MAAM,UAAU,GAAgB;IACnC,SAAS,EAAEA,KAAS,CAAC,gBAAgB;AACrC,IAAA,KAAK,EAAE;AACH,QAAA,YAAY,EAAE,iBAAiB;AAC/B,QAAA,kBAAkB,EAAE,iBAAiB;AACrC,QAAA,WAAW,EAAE,iBAAiB;AAC9B,QAAA,oBAAoB,EAAE;AACzB,KAAA;AACD,IAAA,MAAM,EAAE,EAAC,GAAG,EAAE,KAAK,EAAC;AACpB,IAAA,UAAU,EAAE;AACR,QAAA,MAAM,EAAE;AAEX,KAAA;CACJ;;ACHM,MAAM,aAAa,GAAiC,CAAC,EACU,IAAI,GAAG,OAAO,EACd,QAAQ,EACR,GAAG,KAAK,EACX,KAAI;AAEnE,IAAA,MAAM,SAAS,GAAG,IAAI,KAAK,MAAM,GAAG,SAAS,GAAG,UAAU;AAG1D,IAAA,MAAM,WAAW,GAAgB;AAC7B,QAAA,GAAG,SAAS;AACZ,QAAA,GAAG,KAAK;AACR,QAAA,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG;Y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AA,GAAK,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAC/F,GAAG,EAAE,GAAG,EAAA,CAAG;AAC7B,CAAC;AAEM,MAAM,UAAU,GAAG,UAAU,CAAkC,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,GAAG,KAAI;IACjG,OAAOA,GAAA,CAAC,SAAS,EAAA,EAAA,GAAK,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,EACtD,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,GAAG,EAAA,CAAG;AAC9E,CAAC;AAEM,MAAM,WAAW,GAAG,UAAU,CAAgC,CAAC,KAAK,EAAE,GAAG,KAAI;IAChF,OAAOA,GAAA,CAAC,UAAU,EAAA,EAAA,GAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAA,CAAG;AAC7C,CAAC;AAMD,WAAW,CAAC,IAAI,GAAG,KAAK;AACxB,WAAW,CAAC,KAAK,GAAG,MAAM;AAC1B,WAAW,CAAC,SAAS,GAAG,UAAU;;;;"}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/themes/dark.ts","../src/themes/light.ts","../src/ThemeProvider.tsx","../src/components/design/KAutoComplete/KAutoComplete.tsx","../src/components/design/KButton/KButton.tsx","../src/components/design/KCheckbox/KCheckbox.tsx","../src/components/design/KDropdown/KDropdown.tsx","../src/components/design/KInput/KInput.tsx","../src/components/design/KRadio/KRadio.tsx","../src/components/design/KSelect/KSelect.tsx","../src/components/design/KSpin/KSpin.tsx","../src/components/design/KSwitch/KSwitch.tsx","../src/components/design/KTabel/KTable.tsx","../src/components/design/KTabs/KTabs.tsx","../src/components/design/KTag/KTag.tsx","../src/components/design/KTooltip/KTooltip.tsx","../src/components/design/KTypography/KTypography.tsx"],"sourcesContent":["import {theme as themeAntd, ThemeConfig} from \"antd\";\n\nexport const darkTheme: ThemeConfig = {\n algorithm: themeAntd.darkAlgorithm,\n token: {\n colorPrimary: 'var(--grey-900)',\n colorTextSecondary: 'var(--grey-900)',\n colorBorder: 'var(--grey-300)',\n colorBorderSecondary: 'var(--grey-200)'\n },\n cssVar: {key: \"app\"},\n components: {},\n};","import {theme as themeAntd, ThemeConfig} from \"antd\";\n\n\nexport const lightTheme: ThemeConfig = {\n algorithm: themeAntd.defaultAlgorithm,\n token: {\n colorPrimary: 'var(--grey-900)',\n colorTextSecondary: 'var(--grey-900)',\n colorBorder: 'var(--grey-300)',\n colorBorderSecondary: 'var(--grey-200)'\n },\n cssVar: {key: \"app\"},\n components: {\n Button: {\n }\n },\n};","import React from 'react';\nimport {ConfigProvider, ThemeConfig, ConfigProviderProps} from 'antd';\nimport {darkTheme} from \"./themes/dark\";\nimport {lightTheme} from \"./themes/light\";\n\n\nexport type ThemeMode = 'light' | 'dark';\n\nexport type ThemeProviderProps = {\n mode?: ThemeMode;\n children: React.ReactNode;\n} & ConfigProviderProps;\n\nexport const ThemeProvider: React.FC<ThemeProviderProps> = ({\n mode = 'light',\n children,\n theme,\n ...props\n }) => {\n\n const baseTheme = mode === \"dark\" ? darkTheme : lightTheme;\n baseTheme.zeroRuntime = true;\n baseTheme.cssVar = {prefix: 'v', key: 'app'}\n\n if(!props.wave) {\n props.wave = {\n disabled: true,\n }\n }\n\n const mergedTheme: ThemeConfig = {\n ...baseTheme,\n ...theme,\n token: theme?.token ? {\n ...baseTheme.token,\n ...theme.token,\n } : baseTheme.token,\n components: theme?.components ? {\n ...baseTheme.components,\n ...theme.components,\n } : baseTheme.components,\n };\n\n\n return (\n <ConfigProvider {...props} theme={mergedTheme}>\n {children}\n </ConfigProvider>\n );\n};","import React, {forwardRef} from 'react';\nimport {AutoComplete, AutoCompleteProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport {BaseOptionType, DefaultOptionType} from \"antd/es/select\";\nimport '../KSelect/style.css';\n\nexport type KAutoCompleteProps<\n ValueType = string,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType,\n> = Omit<AutoCompleteProps<ValueType, OptionType>, 'size' | 'prefixCls'> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\nexport const KAutoComplete = forwardRef(<\n ValueType = string,\n OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType,\n>(\n {\n className,\n size = 'lg',\n ...props\n }: KAutoCompleteProps<ValueType, OptionType>,\n ref: any\n) => {\n return (\n <AutoComplete\n {...props}\n prefixCls={'k-select'}\n className={twJoin(`k-auto-complete-${size}`, className)}\n ref={ref}\n />\n );\n});\n\nKAutoComplete.displayName = 'KAutoComplete';\n\n","import React from 'react';\nimport {Button, ButtonProps} from 'antd';\nimport './style.css';\nimport {twJoin} from \"tailwind-merge\";\n\nexport type KButtonProps = Omit<\n ButtonProps,\n 'size' | 'type' | 'variant' | 'prefixCls'\n> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n type?: 'primary' | 'outline' | 'ghost' | 'link'\n}\n\n\nexport const KButton = React.forwardRef<HTMLButtonElement, KButtonProps>(({\n children,\n className,\n type = 'primary',\n size = 'lg',\n ...rest\n }, ref) => {\n\n\n return (\n <Button\n {...rest}\n prefixCls={'k-button'}\n className={twJoin(`k-button-${type}`, `k-button-${size}`, className)}\n ref={ref}\n size={'middle'}\n type={'default'}\n >\n {children}\n </Button>\n );\n});\n","import React, {forwardRef} from 'react';\nimport {Checkbox, CheckboxProps} from 'antd';\nimport type {CheckboxRef} from 'antd/es/checkbox';\nimport {CheckboxGroupProps} from 'antd/es/checkbox';\nimport './style.css';\nimport {twJoin} from \"tailwind-merge\";\n\nexport type KCheckboxProps = Omit<CheckboxProps, 'prefixCls'> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n}\n\nexport type KCheckboxGroupProps = CheckboxGroupProps;\n\nexport const KCheckboxGroup = forwardRef<HTMLDivElement, KCheckboxGroupProps>((props, ref) => {\n return <Checkbox.Group {...props} prefixCls={'k-checkbox'} className={twJoin(props.className)} ref={ref}/>;\n});\n\nexport interface KCheckboxInterface extends React.ForwardRefExoticComponent<KCheckboxProps & React.RefAttributes<CheckboxRef>> {\n Group: typeof KCheckboxGroup;\n}\n\nexport const KCheckbox = forwardRef<CheckboxRef, KCheckboxProps>(({\n children,\n className,\n size = 'lg',\n ...props\n }, ref) => {\n\n\n return (\n <Checkbox\n {...props}\n prefixCls={'k-checkbox'}\n className={twJoin(`k-checkbox-${size}`, className)}\n ref={ref}>\n {children}\n </Checkbox>\n );\n\n}) as KCheckboxInterface;\n\nKCheckbox.Group = KCheckboxGroup;\n\n","import React from 'react';\nimport {Dropdown, DropdownProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nexport type KDropdownProps = Omit<DropdownProps, 'prefixCls'>\n\n\nexport const KDropdown: React.FC<KDropdownProps> = ({children, className, ...props}) => {\n return (\n <Dropdown {...props}\n prefixCls={'k-dropdown'}\n className={twJoin(className)}\n >\n {children}\n </Dropdown>\n );\n};\n","import React, {forwardRef} from 'react';\nimport {Input, InputProps, InputRef, GetRef} from 'antd';\nimport {TextAreaProps, SearchProps, PasswordProps} from 'antd/es/input';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css'\nimport {OTPProps} from \"antd/es/input/OTP\";\n\nexport type KInputProps = Omit<\n InputProps,\n 'size' | 'prefixCls' | 'addonBefore' | 'addonAfter'\n> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\nconst InternalKInput = forwardRef<InputRef, KInputProps>(({\n className,\n size = 'lg',\n ...props\n }, ref) => {\n return (\n <Input {...props}\n prefixCls={'k-input'}\n className={twJoin(`k-input-${size}`, className)} ref={ref}\n />\n );\n});\n\nexport type KTextAreaProps = Omit<\n TextAreaProps,\n 'size' | 'prefixCls' | 'addonBefore' | 'addonAfter'\n> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\nconst KTextArea = forwardRef<GetRef<typeof Input.TextArea>, KTextAreaProps>(({\n className,\n size = 'lg',\n ...props\n }, ref) => {\n return (\n <Input.TextArea\n {...props}\n prefixCls={'k-input'}\n className={twJoin(`k-input-${size}`, className)}\n ref={ref}\n />\n );\n});\n\nexport type KSearchProps = Omit<\n SearchProps,\n 'size' | 'prefixCls' | 'addonBefore' | 'addonAfter'\n> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\nconst KSearch = forwardRef<GetRef<typeof Input.Search>, KSearchProps>(({\n className,\n size = 'lg',\n ...props\n }, ref) => {\n return (\n <Input.Search\n {...props}\n prefixCls={'k-input'}\n className={twJoin(`k-input-${size}`, className)}\n ref={ref}\n />\n );\n});\n\nexport type KPasswordProps = Omit<\n PasswordProps,\n 'size' | 'prefixCls' | 'addonBefore' | 'addonAfter'\n> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\nconst KPassword = forwardRef<GetRef<typeof Input.Password>, KPasswordProps>(({\n className,\n size = 'lg',\n ...props\n }, ref) => {\n return (\n <Input.Password\n {...props}\n prefixCls={'k-input'}\n inputPrefixCls={'k-input'}\n className={twJoin(`k-input-${size}`, className)}\n ref={ref}\n />\n );\n});\n\nexport type KOTPProps = Omit<\n OTPProps,\n 'size' | 'prefixCls' | 'addonBefore' | 'addonAfter'\n> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\nconst KOTP = forwardRef<GetRef<typeof Input.OTP>, KOTPProps>(({\n className,\n size = 'lg',\n ...props\n }, ref) => {\n return (\n <Input.OTP\n {...props}\n prefixCls={'k-input'}\n className={twJoin(`k-input-${size}`, className)}\n ref={ref}\n />\n );\n});\n\ntype CompoundedComponent = typeof InternalKInput & {\n TextArea: typeof KTextArea;\n Search: typeof KSearch;\n Password: typeof KPassword;\n OTP: typeof KOTP;\n};\n\nexport const KInput = InternalKInput as CompoundedComponent;\n\nKInput.TextArea = KTextArea;\nKInput.Search = KSearch;\nKInput.Password = KPassword;\nKInput.OTP = KOTP;\n","import React, {ComponentProps, forwardRef} from 'react';\nimport {Radio, RadioGroupProps, RadioProps} from 'antd';\nimport {RadioRef} from 'antd/es/radio/interface';\nimport './style.css';\nimport {twJoin} from \"tailwind-merge\";\nimport {RadioButtonProps} from \"antd/es/radio/radioButton\";\n\nexport type KRadioProps = Omit<RadioProps, 'prefixCls'> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n}\nexport type KRadioGroupProps = Omit<RadioGroupProps, 'size' | 'prefixCls' | 'orientation'> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n}\nexport type KRadioButtonProps = Omit<RadioButtonProps, 'prefixCls'>;\n\nexport const KRadioGroup = forwardRef<HTMLDivElement, KRadioGroupProps>(({size = 'md', ...props}, ref) => {\n return <Radio.Group {...props} prefixCls={'k-radio'}\n className={twJoin(`k-radio-group-${size}`, props.className)}\n ref={ref}/>;\n})\n\nexport const KRadioButton = forwardRef<RadioRef, KRadioButtonProps>((props, ref) => {\n return <Radio.Button {...props} prefixCls={'k-radio'} className={twJoin(props.className)} ref={ref}/>;\n})\n\nexport interface KRadioInterface extends React.ForwardRefExoticComponent<KRadioProps & React.RefAttributes<RadioRef>> {\n Group: typeof KRadioGroup;\n Button: typeof KRadioButton;\n}\n\nexport const KRadio = forwardRef<RadioRef, KRadioProps>(({children, size = 'lg', ...props}, ref) => {\n return (\n <Radio {...props}\n prefixCls={'k-radio'}\n className={twJoin(`k-radio-${size}`, props.className)} ref={ref}>{children}</Radio>\n );\n}) as KRadioInterface;\n\nKRadio.Group = KRadioGroup;\nKRadio.Button = KRadioButton;\n\n\n\n","import React, {forwardRef} from 'react';\nimport {Select, SelectProps} from 'antd';\nimport type {RefSelectProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nexport type KSelectProps = Omit<SelectProps, 'size' | 'prefixCls'> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\n\nexport const KSelect = forwardRef<RefSelectProps, KSelectProps>(({\n children,\n size = 'lg',\n ...props\n }, ref) => {\n return (\n <Select {...props}\n prefixCls={'k-select'}\n className={twJoin(`k-select-${size}`, props.className)}\n rootClassName={twJoin(\n // 'k-select-root',\n props.rootClassName\n )}\n ref={ref}>\n {children}\n </Select>\n );\n});\n","import React from 'react';\nimport {Spin, SpinProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\n\nexport type KSpinProps = Omit<SpinProps, 'size' | 'prefixCls'> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n};\n\nexport const KSpin: React.FC<KSpinProps> = ({className, size = 'lg', ...props}) => {\n return (\n <Spin {...props} prefixCls={'k-spin'} className={twJoin(`k-spin-${size}`, className)}/>\n );\n};\n","import React, {forwardRef} from 'react';\nimport {Switch, SwitchProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nexport type KSwitchProps = Omit<SwitchProps, 'size' | 'prefixCls'> & {\n size?: 'sm' | 'md' | 'lg' | 'xl',\n}\n\n\nexport const KSwitch = forwardRef<HTMLButtonElement, KSwitchProps>(({size = 'lg', className, ...props}, ref) => {\n return (\n <Switch {...props} prefixCls={'k-switch'} className={twJoin(`k-switch-${size}`, className)} ref={ref}/>\n );\n});\n","import React, {forwardRef} from 'react';\nimport {Table, TableProps} from 'antd';\nimport type {TableRef} from 'antd/es/table';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\nimport '../KRadio/style.css';\nimport '../KCheckbox/style.css';\n// import {useFocusVisible} from \"../../../hooks/useFocusVisible\";\n\nexport type KTableProps<RecordType = any> = Omit<TableProps<RecordType>, 'prefixCls'> & {\n focusVisible?: boolean;\n};\n\nexport const KTable = forwardRef<TableRef, KTableProps>(({className, focusVisible = false, ...props}, ref) => {\n // const idClass = useFocusVisible({\n // focusVisible,\n // prefix: 'k-table',\n // selector: '[class^=\"ant-table\"], [class^=\"ant-pagination\"]'\n // });\n\n const rowSelection = props.rowSelection ? {\n ...props.rowSelection,\n getCheckboxProps: (record: any) => {\n const existingProps = props.rowSelection?.getCheckboxProps?.(record) || {};\n const isRadio = props.rowSelection?.type === 'radio';\n const size = props.size === 'small' ? 'sm' : 'md';\n const cls = isRadio ? `k-radio k-radio-${size}` : `k-checkbox k-checkbox-${size}`;\n return {\n ...existingProps,\n className: twJoin(cls, existingProps.className),\n };\n },\n getTitleCheckboxProps: () => {\n const existingProps = props.rowSelection?.getTitleCheckboxProps?.() || {};\n const isRadio = props.rowSelection?.type === 'radio';\n const size = props.size === 'small' ? 'sm' : 'md';\n const cls = isRadio ? `k-radio k-radio-${size}` : `k-checkbox k-checkbox-${size}`;\n return {\n ...existingProps,\n className: twJoin(cls, existingProps.className),\n };\n }\n } : undefined;\n\n return (\n <Table\n {...props}\n prefixCls={'k-table'}\n rowSelection={rowSelection}\n className={className}\n ref={ref}\n />\n );\n}) as <RecordType = any>(\n props: KTableProps<RecordType> & { ref?: React.ForwardedRef<TableRef> }\n) => React.ReactElement;\n","import React, {forwardRef, ComponentRef} from 'react';\nimport {Tabs, TabsProps} from 'antd';\nimport './style.css';\nimport {twJoin} from \"tailwind-merge\";\n\nexport type KTabsProps = Omit<TabsProps, 'prefixCls'> & {\n focusVisible?: boolean,\n};\n\n\nexport const KTabs = forwardRef<ComponentRef<typeof Tabs>, KTabsProps>(({\n className,\n focusVisible = false,\n ...props\n }, ref) => {\n\n // const idClass = useFocusVisible({\n // focusVisible,\n // prefix: 'k-tabs',\n // selector: '.ant-tabs-nav [class^=\"ant-tabs\"]'\n // });\n\n return (\n <Tabs\n {...props}\n prefixCls={'k-tabs'}\n className={twJoin(\n `k-tabs-${props.size}`,\n // idClass,\n className\n )}\n ref={ref}\n />\n )\n})","import React, {forwardRef} from 'react';\nimport {Tag, TagProps} from 'antd';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nexport type KTagProps = Omit<TagProps, 'prefixCls'>;\n\n\nexport const KTag = forwardRef<HTMLAnchorElement | HTMLSpanElement, KTagProps>(({\n children,\n className,\n ...props\n }, ref) => {\n return (\n <Tag {...props} prefixCls={'k-tag'} className={twJoin(className)} ref={ref}>{children}</Tag>\n );\n});\n","import React, {forwardRef} from 'react';\nimport {Tooltip, TooltipProps} from 'antd';\nimport type {TooltipRef} from 'antd/es/tooltip';\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nexport type KTooltipProps = Omit<TooltipProps, 'prefixCls'>\n\nexport const KTooltip = forwardRef<TooltipRef, KTooltipProps>(({children, className, ...props}, ref) => {\n return (\n <Tooltip {...props} prefixCls={'k-tooltip'} className={twJoin(className)} ref={ref}>{children}</Tooltip>\n );\n});\n","import React, {forwardRef} from 'react';\n\nimport {Typography} from \"antd\";\nimport {TextProps} from \"antd/es/typography/Text\";\nimport {TitleProps} from \"antd/es/typography/Title\";\nimport {ParagraphProps} from \"antd/es/typography/Paragraph\";\nimport {TypographyProps} from \"antd/es/typography/Typography\";\nimport {twJoin} from \"tailwind-merge\";\nimport './style.css';\n\nconst {Text, Title, Paragraph} = Typography;\n\nexport type KTextProps = Omit<TextProps, 'prefixCls'>;\nexport type KTitleProps = Omit<TitleProps, 'prefixCls'>;\nexport type KParagraphProps = Omit<ParagraphProps, 'prefixCls'>;\nexport type KTypographyProps = Omit<TypographyProps<any>, 'prefixCls'>;\n\nconst CopyIcon = () => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M27 4H11C10.7348 4 10.4804 4.10536 10.2929 4.29289C10.1054 4.48043 10 4.73478 10 5V10H5C4.73478 10 4.48043 10.1054 4.29289 10.2929C4.10536 10.4804 4 10.7348 4 11V27C4 27.2652 4.10536 27.5196 4.29289 27.7071C4.48043 27.8946 4.73478 28 5 28H21C21.2652 28 21.5196 27.8946 21.7071 27.7071C21.8946 27.5196 22 27.2652 22 27V22H27C27.2652 22 27.5196 21.8946 27.7071 21.7071C27.8946 21.5196 28 21.2652 28 21V5C28 4.73478 27.8946 4.48043 27.7071 4.29289C27.5196 4.10536 27.2652 4 27 4ZM20 26H6V12H20V26ZM26 20H22V11C22 10.7348 21.8946 10.4804 21.7071 10.2929C21.5196 10.1054 21.2652 10 21 10H12V6H26V20Z\"\n fill=\"var(--fg-primary)\"/>\n </svg>\n);\n\nconst DoneIcon = () => (\n <svg width=\"1em\" height=\"0.72em\" viewBox=\"0 0 25 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M24.7081 1.70806L8.70806 17.7081C8.61518 17.801 8.50489 17.8748 8.3835 17.9251C8.2621 17.9754 8.13197 18.0013 8.00056 18.0013C7.86914 18.0013 7.73901 17.9754 7.61762 17.9251C7.49622 17.8748 7.38593 17.801 7.29306 17.7081L0.293056 10.7081C0.105415 10.5204 0 10.2659 0 10.0006C0 9.73519 0.105415 9.4807 0.293056 9.29306C0.480697 9.10542 0.735192 9 1.00056 9C1.26592 9 1.52042 9.10542 1.70806 9.29306L8.00056 15.5868L23.2931 0.293056C23.4807 0.105415 23.7352 -1.97711e-09 24.0006 0C24.2659 1.97712e-09 24.5204 0.105415 24.7081 0.293056C24.8957 0.480696 25.0011 0.735192 25.0011 1.00056C25.0011 1.26592 24.8957 1.52042 24.7081 1.70806Z\"\n fill=\"var(--fg-primary)\"/>\n </svg>\n);\n\nconst getCopyableConfig = (copyable: KTextProps['copyable']) => {\n if (!copyable) return copyable;\n const defaultIcon = [<CopyIcon key=\"copy-icon\"/>, <DoneIcon key=\"done-icon\"/>];\n if (typeof copyable === 'boolean') {\n return {\n icon: defaultIcon,\n };\n }\n return {\n ...copyable,\n icon: copyable.icon || defaultIcon,\n };\n};\n\nexport const KText = forwardRef<HTMLSpanElement, KTextProps>(({className, ...props}, ref) => {\n return <Text {...props} prefixCls={'k-text'} className={twJoin(className)}\n copyable={getCopyableConfig(props.copyable)}\n ref={ref}/>\n});\n\nexport const KTitle = forwardRef<HTMLHeadingElement, KTitleProps>(({className, ...props}, ref) => {\n return <Title {...props} prefixCls={'k-title'} className={twJoin(className)}\n copyable={getCopyableConfig(props.copyable)}\n ref={ref}/>\n});\n\nexport const KParagraph = forwardRef<HTMLDivElement, KParagraphProps>(({className, ...props}, ref) => {\n return <Paragraph {...props} prefixCls={'k-paragraph'} className={twJoin(className)}\n copyable={getCopyableConfig(props.copyable)} ref={ref}/>\n});\n\nexport const KTypography = forwardRef<HTMLElement, KTypographyProps>((props, ref) => {\n return <Typography {...props} prefixCls={'k-typograph'} ref={ref}/>\n}) as React.ForwardRefExoticComponent<KTypographyProps & React.RefAttributes<HTMLElement>> & {\n Text: typeof KText;\n Title: typeof KTitle;\n Paragraph: typeof KParagraph;\n};\n\nKTypography.Text = KText;\nKTypography.Title = KTitle;\nKTypography.Paragraph = KParagraph;\n\n\n\n"],"names":["themeAntd","_jsx"],"mappings":";;;;;AAEO,MAAM,SAAS,GAAgB;IAClC,SAAS,EAAEA,KAAS,CAAC,aAAa;AAClC,IAAA,KAAK,EAAE;AACH,QAAA,YAAY,EAAE,iBAAiB;AAC/B,QAAA,kBAAkB,EAAE,iBAAiB;AACrC,QAAA,WAAW,EAAE,iBAAiB;AAC9B,QAAA,oBAAoB,EAAE;AACzB,KAAA;AACD,IAAA,MAAM,EAAE,EAAC,GAAG,EAAE,KAAK,EAAC;AACpB,IAAA,UAAU,EAAE,EAAE;CACjB;;ACTM,MAAM,UAAU,GAAgB;IACnC,SAAS,EAAEA,KAAS,CAAC,gBAAgB;AACrC,IAAA,KAAK,EAAE;AACH,QAAA,YAAY,EAAE,iBAAiB;AAC/B,QAAA,kBAAkB,EAAE,iBAAiB;AACrC,QAAA,WAAW,EAAE,iBAAiB;AAC9B,QAAA,oBAAoB,EAAE;AACzB,KAAA;AACD,IAAA,MAAM,EAAE,EAAC,GAAG,EAAE,KAAK,EAAC;AACpB,IAAA,UAAU,EAAE;AACR,QAAA,MAAM,EAAE;AAEX,KAAA;CACJ;;ACHM,MAAM,aAAa,GAAiC,CAAC,EACI,IAAI,GAAG,OAAO,EACd,QAAQ,EAC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