@quixotic/ui 0.2.12 → 0.2.18

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.
Files changed (46) hide show
  1. package/dist/index.cjs.css +1 -1
  2. package/dist/index.cjs.js +70 -36
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.esm.css +1 -1
  5. package/dist/index.esm.js +71 -38
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/types/ThemeProvider.d.ts +2 -2
  8. package/dist/types/components/design/KAutoComplete/KAutoComplete.d.ts +3 -3
  9. package/dist/types/components/design/KAutoComplete/KAutoComplete.stories.d.ts +50 -0
  10. package/dist/types/components/design/KButton/KButton.d.ts +2 -2
  11. package/dist/types/components/design/KButton/KButton.stories.d.ts +37 -0
  12. package/dist/types/components/design/KCheckbox/KCheckbox.d.ts +2 -2
  13. package/dist/types/components/design/KCheckbox/KCheckbox.stories.d.ts +113 -0
  14. package/dist/types/components/design/KDropdown/KDropdown.d.ts +2 -1
  15. package/dist/types/components/design/KDropdown/KDropdown.stories.d.ts +105 -0
  16. package/dist/types/components/design/KInput/KInput.d.ts +33 -7
  17. package/dist/types/components/design/KInput/KInput.stories.d.ts +74 -0
  18. package/dist/types/components/design/KInput/KInputAddon.stories.d.ts +46 -0
  19. package/dist/types/components/design/KInput/KInputOTP.stories.d.ts +41 -0
  20. package/dist/types/components/design/KInput/KInputPassword.stories.d.ts +36 -0
  21. package/dist/types/components/design/KInput/KInputSearch.stories.d.ts +41 -0
  22. package/dist/types/components/design/KInput/KInputTextArea.stories.d.ts +58 -0
  23. package/dist/types/components/design/KRadio/KRadio.d.ts +13 -8
  24. package/dist/types/components/design/KRadio/KRadio.stories.d.ts +91 -0
  25. package/dist/types/components/design/KRadio/KRadioGroup.stories.d.ts +124 -0
  26. package/dist/types/components/design/KSelect/KSelect.d.ts +6 -2
  27. package/dist/types/components/design/KSelect/KSelect.stories.d.ts +132 -0
  28. package/dist/types/components/design/KSpin/KSpin.d.ts +1 -1
  29. package/dist/types/components/design/KSpin/KSpin.stories.d.ts +17 -0
  30. package/dist/types/components/design/KSwitch/KSwitch.d.ts +4 -4
  31. package/dist/types/components/design/KSwitch/KSwitch.stories.d.ts +116 -0
  32. package/dist/types/components/design/KTabel/KTable.d.ts +3 -1
  33. package/dist/types/components/design/KTabel/KTable.stories.d.ts +92 -0
  34. package/dist/types/components/design/KTabs/KTabs.d.ts +9 -0
  35. package/dist/types/components/design/KTabs/KTabs.stories.d.ts +123 -0
  36. package/dist/types/components/design/KTabs/index.d.ts +2 -0
  37. package/dist/types/components/design/KTag/KTag.d.ts +2 -2
  38. package/dist/types/components/design/KTag/KTag.stories.d.ts +14 -0
  39. package/dist/types/components/design/KTooltip/KTooltip.d.ts +2 -2
  40. package/dist/types/components/design/KTooltip/KTooltip.stories.d.ts +14 -0
  41. package/dist/types/components/design/KTypography/KTypography.d.ts +7 -7
  42. package/dist/types/components/design/KTypography/KTypography.stories.d.ts +21 -0
  43. package/dist/types/components/design/index.d.ts +1 -0
  44. package/dist/types/hooks/useFocusVisible.d.ts +6 -0
  45. package/dist/types/test/setup.d.ts +1 -0
  46. package/package.json +13 -2
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { theme, ConfigProvider, AutoComplete, Button, Checkbox, Dropdown, Input, Radio, Select, Spin, Switch, Table, Tag, Tooltip, Typography } from 'antd';
2
+ import { theme, ConfigProvider, AutoComplete, Button, Checkbox, Dropdown, Input, Radio, Select, Spin, Switch, Table, Tabs, Tag, Tooltip, Typography } from 'antd';
3
3
  import React, { forwardRef } from 'react';
4
4
  import { twJoin } from 'tailwind-merge';
5
5
 
@@ -29,78 +29,100 @@ 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' };
34
36
  const mergedTheme = {
35
37
  ...baseTheme,
36
- ...props,
37
- token: props.token ? {
38
+ ...theme,
39
+ token: (theme === null || theme === void 0 ? void 0 : theme.token) ? {
38
40
  ...baseTheme.token,
39
- ...props.token,
41
+ ...theme.token,
40
42
  } : baseTheme.token,
41
- components: props.components ? {
43
+ components: (theme === null || theme === void 0 ? void 0 : theme.components) ? {
42
44
  ...baseTheme.components,
43
- ...props.components,
45
+ ...theme.components,
44
46
  } : baseTheme.components,
45
47
  };
46
- return (jsx(ConfigProvider, { theme: mergedTheme, children: children }));
48
+ console.log('debug:', { mergedTheme });
49
+ return (jsx(ConfigProvider, { ...props, theme: mergedTheme, children: children }));
47
50
  };
48
51
 
49
52
  const KAutoComplete = forwardRef(({ className, size = 'lg', ...props }, ref) => {
50
- return (jsx(AutoComplete, { ...props, ref: ref, className: twJoin('k-auto-complete', `k-auto-complete-${size}`, className) }));
53
+ return (jsx(AutoComplete, { ...props, prefixCls: 'k-select', className: twJoin(`k-auto-complete-${size}`, className), ref: ref }));
51
54
  });
52
55
  KAutoComplete.displayName = 'KAutoComplete';
53
56
 
54
57
  const KButton = React.forwardRef(({ children, className, type = 'primary', size = 'lg', ...rest }, ref) => {
55
- return (jsx(Button, { ...rest, className: twJoin('k-button', `k-button-${type}`, `k-button-${size}`, className), ref: ref, size: 'middle', type: 'default', children: children }));
58
+ 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
59
  });
57
60
 
58
61
  const KCheckboxGroup = forwardRef((props, ref) => {
59
- return jsx(Checkbox.Group, { ...props, className: twJoin('k-checkbox-group', props.className), ref: ref });
62
+ return jsx(Checkbox.Group, { ...props, prefixCls: 'k-checkbox', className: twJoin(props.className), ref: ref });
60
63
  });
61
- const KCheckbox = forwardRef(({ children, className, size = 'md', ...props }, ref) => {
62
- return (jsx(Checkbox, { ...props, className: twJoin(`k-checkbox k-checkbox-${size}`, className), ref: ref, children: children }));
64
+ const KCheckbox = forwardRef(({ children, className, size = 'lg', ...props }, ref) => {
65
+ return (jsx(Checkbox, { ...props, prefixCls: 'k-checkbox', className: twJoin(`k-checkbox-${size}`, className), ref: ref, children: children }));
63
66
  });
64
67
  KCheckbox.Group = KCheckboxGroup;
65
68
 
66
69
  const KDropdown = ({ children, className, ...props }) => {
67
- return (jsx(Dropdown, { ...props, className: twJoin('k-dropdown', className), children: children }));
70
+ return (jsx(Dropdown, { ...props, prefixCls: 'k-dropdown', className: twJoin(className), children: children }));
68
71
  };
69
72
 
70
73
  const InternalKInput = forwardRef(({ className, size = 'lg', ...props }, ref) => {
71
- return (jsx(Input, { ...props, className: twJoin('k-input', `k-input-${size}`, className), ref: ref }));
74
+ return (jsx(Input, { ...props, prefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
75
+ });
76
+ const KTextArea = forwardRef(({ className, size = 'lg', ...props }, ref) => {
77
+ return (jsx(Input.TextArea, { ...props, prefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
78
+ });
79
+ const KSearch = forwardRef(({ className, size = 'lg', ...props }, ref) => {
80
+ return (jsx(Input.Search, { ...props, prefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
81
+ });
82
+ const KPassword = forwardRef(({ className, size = 'lg', ...props }, ref) => {
83
+ return (jsx(Input.Password, { ...props, prefixCls: 'k-input', inputPrefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
84
+ });
85
+ const KOTP = forwardRef(({ className, size = 'lg', ...props }, ref) => {
86
+ return (jsx(Input.OTP, { ...props, prefixCls: 'k-input', className: twJoin(`k-input-${size}`, className), ref: ref }));
72
87
  });
73
88
  const KInput = InternalKInput;
74
- KInput.TextArea = Input.TextArea;
75
- KInput.Search = Input.Search;
76
- KInput.Password = Input.Password;
77
- KInput.OTP = Input.OTP;
89
+ KInput.TextArea = KTextArea;
90
+ KInput.Search = KSearch;
91
+ KInput.Password = KPassword;
92
+ KInput.OTP = KOTP;
78
93
 
79
- const KRadioGroup = forwardRef((props, ref) => {
80
- return jsx(Radio.Group, { ...props, className: twJoin('k-radio-group', props.className), ref: ref });
94
+ const KRadioGroup = forwardRef(({ size = 'md', ...props }, ref) => {
95
+ return jsx(Radio.Group, { ...props, prefixCls: 'k-radio', className: twJoin(`k-radio-group-${size}`, props.className), ref: ref });
81
96
  });
82
97
  const KRadioButton = forwardRef((props, ref) => {
83
- return jsx(Radio.Button, { ...props, className: twJoin('k-radio-button', props.className), ref: ref });
98
+ return jsx(Radio.Button, { ...props, prefixCls: 'k-radio', className: twJoin(props.className), ref: ref });
84
99
  });
85
- const KRadio = forwardRef(({ children, size = 'md', ...props }, ref) => {
86
- return (jsx(Radio, { ...props, className: twJoin('k-radio', `k-radio-${size}`, props.className), ref: ref, children: children }));
100
+ const KRadio = forwardRef(({ children, size = 'lg', ...props }, ref) => {
101
+ return (jsx(Radio, { ...props, prefixCls: 'k-radio', className: twJoin(`k-radio-${size}`, props.className), ref: ref, children: children }));
87
102
  });
88
103
  KRadio.Group = KRadioGroup;
89
104
  KRadio.Button = KRadioButton;
90
105
 
91
- const KSelect = forwardRef(({ children, className, ...props }, ref) => {
92
- return (jsx(Select, { ...props, className: twJoin('k-select', className), ref: ref, children: children }));
106
+ const KSelect = forwardRef(({ children, size = 'lg', ...props }, ref) => {
107
+ return (jsx(Select, { ...props, prefixCls: 'k-select', className: twJoin(`k-select-${size}`, props.className), rootClassName: twJoin(
108
+ // 'k-select-root',
109
+ props.rootClassName), ref: ref, children: children }));
93
110
  });
94
111
 
95
112
  const KSpin = ({ className, size = 'lg', ...props }) => {
96
- return (jsx(Spin, { ...props, className: twJoin('k-spin', `k-spin-${size}`, className) }));
113
+ return (jsx(Spin, { ...props, prefixCls: 'k-spin', className: twJoin(`k-spin-${size}`, className) }));
97
114
  };
98
115
 
99
- const KSwitch = forwardRef(({ size = 'md', className, ...props }, ref) => {
100
- return (jsx(Switch, { ...props, className: twJoin('k-switch', `k-switch-${size}`, className), ref: ref }));
116
+ const KSwitch = forwardRef(({ size = 'lg', className, ...props }, ref) => {
117
+ return (jsx(Switch, { ...props, prefixCls: 'k-switch', className: twJoin(`k-switch-${size}`, className), ref: ref }));
101
118
  });
102
119
 
103
- const KTable = forwardRef(({ className, ...props }, ref) => {
120
+ const KTable = forwardRef(({ className, focusVisible = false, ...props }, ref) => {
121
+ // const idClass = useFocusVisible({
122
+ // focusVisible,
123
+ // prefix: 'k-table',
124
+ // selector: '[class^="ant-table"], [class^="ant-pagination"]'
125
+ // });
104
126
  const rowSelection = props.rowSelection ? {
105
127
  ...props.rowSelection,
106
128
  getCheckboxProps: (record) => {
@@ -126,15 +148,26 @@ const KTable = forwardRef(({ className, ...props }, ref) => {
126
148
  };
127
149
  }
128
150
  } : undefined;
129
- return (jsx(Table, { ...props, rowSelection: rowSelection, className: twJoin('k-table', className), ref: ref }));
151
+ return (jsx(Table, { ...props, prefixCls: 'k-table', rowSelection: rowSelection, className: className, ref: ref }));
152
+ });
153
+
154
+ const KTabs = forwardRef(({ className, focusVisible = false, ...props }, ref) => {
155
+ // const idClass = useFocusVisible({
156
+ // focusVisible,
157
+ // prefix: 'k-tabs',
158
+ // selector: '.ant-tabs-nav [class^="ant-tabs"]'
159
+ // });
160
+ return (jsx(Tabs, { ...props, prefixCls: 'k-tabs', className: twJoin(`k-tabs-${props.size}`,
161
+ // idClass,
162
+ className), ref: ref }));
130
163
  });
131
164
 
132
165
  const KTag = forwardRef(({ children, className, ...props }, ref) => {
133
- return (jsx(Tag, { ...props, className: twJoin('k-tag', className), ref: ref, children: children }));
166
+ return (jsx(Tag, { ...props, prefixCls: 'k-tag', className: twJoin(className), ref: ref, children: children }));
134
167
  });
135
168
 
136
169
  const KTooltip = forwardRef(({ children, className, ...props }, ref) => {
137
- return (jsx(Tooltip, { ...props, className: twJoin('k-tooltip', className), ref: ref, children: children }));
170
+ return (jsx(Tooltip, { ...props, prefixCls: 'k-tooltip', className: twJoin(className), ref: ref, children: children }));
138
171
  });
139
172
 
140
173
  const { Text, Title, Paragraph } = Typography;
@@ -155,20 +188,20 @@ const getCopyableConfig = (copyable) => {
155
188
  };
156
189
  };
157
190
  const KText = forwardRef(({ className, ...props }, ref) => {
158
- return jsx(Text, { ...props, className: twJoin('k-text', className), copyable: getCopyableConfig(props.copyable), ref: ref });
191
+ return jsx(Text, { ...props, prefixCls: 'k-text', className: twJoin(className), copyable: getCopyableConfig(props.copyable), ref: ref });
159
192
  });
160
193
  const KTitle = forwardRef(({ className, ...props }, ref) => {
161
- return jsx(Title, { ...props, className: twJoin('k-title', className), copyable: getCopyableConfig(props.copyable), ref: ref });
194
+ return jsx(Title, { ...props, prefixCls: 'k-title', className: twJoin(className), copyable: getCopyableConfig(props.copyable), ref: ref });
162
195
  });
163
196
  const KParagraph = forwardRef(({ className, ...props }, ref) => {
164
- return jsx(Paragraph, { ...props, className: twJoin('k-paragraph', className), copyable: getCopyableConfig(props.copyable), ref: ref });
197
+ return jsx(Paragraph, { ...props, prefixCls: 'k-paragraph', className: twJoin(className), copyable: getCopyableConfig(props.copyable), ref: ref });
165
198
  });
166
199
  const KTypography = forwardRef((props, ref) => {
167
- return jsx(Typography, { ...props, ref: ref });
200
+ return jsx(Typography, { ...props, prefixCls: 'k-typograph', ref: ref });
168
201
  });
169
202
  KTypography.Text = KText;
170
203
  KTypography.Title = KTitle;
171
204
  KTypography.Paragraph = KParagraph;
172
205
 
173
- export { KAutoComplete, KButton, KCheckbox, KDropdown, KInput, KParagraph, KRadio, KRadioGroup, KSelect, KSpin, KSwitch, KTable, KTag, KText, KTitle, KTooltip, KTypography, ThemeProvider };
206
+ export { KAutoComplete, KButton, KCheckbox, KDropdown, KInput, KParagraph, KRadio, KRadioGroup, KSelect, KSpin, KSwitch, KTable, KTabs, KTag, KText, KTitle, KTooltip, KTypography, ThemeProvider };
174
207
  //# sourceMappingURL=index.esm.js.map
@@ -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/components/design/KTabel/KTable.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 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\nexport type KTableProps<RecordType = any> = TableProps<RecordType>;\n\nexport const KTable = forwardRef<TableRef, KTableProps>(({className, ...props}, ref) => {\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', 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} 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,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AG,EAAA,CAAG;AAC5B,CAAC;AAEM,MAAM,MAAM,GAAG,UAAU,CAAkC,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,GAAG,KAAI;IAC7F,OAAOA,GAAA,CAAC,KAAK,EAAA,EAAA,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 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 console.log('debug:', {mergedTheme})\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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AAC,EAC3C,GAAG,EAAE,GAAG,GAAG;AAC5B,CAAC;AAEM,MAAM,MAAM,GAAG,UAAU,CAAkC,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,GAAG,KAAI;AAC7F,IAAA,OAAOA,GAAA,CAAC,KAAK,EAAA,EAAA,GAAK,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,EAC7D,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAC3C,GAAG,EAAE,GAAG,GAAG;AAC7B,CAAC;AAEM,MAAM,UAAU,GAAG,UAAU,CAAkC,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,GAAG,KAAI;AACjG,IAAA,OAAOA,GAAA,CAAC,SAAS,EAAA,EAAA,GAAK,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,EACjE,QAAQ,EAAE,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG;AAC9E,CAAC;AAEM,MAAM,WAAW,GAAG,UAAU,CAAgC,CAAC,KAAK,EAAE,GAAG,KAAI;AAChF,IAAA,OAAOA,GAAA,CAAC,UAAU,EAAA,EAAA,GAAK,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,EAAE,GAAG,GAAG;AACvE,CAAC;AAMD,WAAW,CAAC,IAAI,GAAG,KAAK;AACxB,WAAW,CAAC,KAAK,GAAG,MAAM;AAC1B,WAAW,CAAC,SAAS,GAAG,UAAU;;;;"}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { ThemeConfig } from 'antd';
2
+ import { ConfigProviderProps } from 'antd';
3
3
  export type ThemeMode = 'light' | 'dark';
4
4
  export type ThemeProviderProps = {
5
5
  mode?: ThemeMode;
6
6
  children: React.ReactNode;
7
- } & ThemeConfig;
7
+ } & ConfigProviderProps;
8
8
  export declare const ThemeProvider: React.FC<ThemeProviderProps>;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { AutoCompleteProps } from 'antd';
3
- import './style.css';
4
3
  import { BaseOptionType, DefaultOptionType } from "antd/es/select";
5
- export type KAutoCompleteProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> = Omit<AutoCompleteProps<ValueType, OptionType>, 'size'> & {
4
+ import '../KSelect/style.css';
5
+ export type KAutoCompleteProps<ValueType = string, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> = Omit<AutoCompleteProps<ValueType, OptionType>, 'size' | 'prefixCls'> & {
6
6
  size?: 'sm' | 'md' | 'lg' | 'xl';
7
7
  };
8
- export declare const KAutoComplete: React.ForwardRefExoticComponent<Omit<AutoCompleteProps<unknown, BaseOptionType | DefaultOptionType>, "size"> & {
8
+ export declare const KAutoComplete: React.ForwardRefExoticComponent<Omit<AutoCompleteProps<unknown, BaseOptionType | DefaultOptionType>, "size" | "prefixCls"> & {
9
9
  size?: "sm" | "md" | "lg" | "xl";
10
10
  } & React.RefAttributes<unknown>>;
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react-vite';
3
+ import type { AutoCompleteProps } from 'antd';
4
+ declare const meta: {
5
+ title: string;
6
+ component: React.ForwardRefExoticComponent<Omit<AutoCompleteProps<unknown, import("antd/es/select").BaseOptionType | import("antd/es/select").DefaultOptionType>, "size" | "prefixCls"> & {
7
+ size?: "sm" | "md" | "lg" | "xl";
8
+ } & React.RefAttributes<unknown>>;
9
+ parameters: {
10
+ layout: string;
11
+ };
12
+ tags: string[];
13
+ argTypes: {
14
+ size: {
15
+ control: "select";
16
+ options: string[];
17
+ description: string;
18
+ defaultValue: string;
19
+ };
20
+ disabled: {
21
+ control: "boolean";
22
+ description: string;
23
+ };
24
+ placeholder: {
25
+ control: "text";
26
+ description: string;
27
+ };
28
+ status: {
29
+ control: "select";
30
+ options: string[];
31
+ description: string;
32
+ };
33
+ allowClear: {
34
+ control: "boolean";
35
+ description: string;
36
+ };
37
+ options: {
38
+ control: "object";
39
+ description: string;
40
+ };
41
+ };
42
+ };
43
+ export default meta;
44
+ type Story = StoryObj<typeof meta>;
45
+ export declare const Basic: Story;
46
+ export declare const Sizes: Story;
47
+ export declare const Status: Story;
48
+ export declare const CustomOptions: Story;
49
+ export declare const PrefixAndSuffix: Story;
50
+ export declare const Search: Story;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { ButtonProps } from 'antd';
3
3
  import './style.css';
4
- export type KButtonProps = Omit<ButtonProps, 'size' | 'type'> & {
4
+ export type KButtonProps = Omit<ButtonProps, 'size' | 'type' | 'variant' | 'prefixCls'> & {
5
5
  size?: 'sm' | 'md' | 'lg' | 'xl';
6
6
  type?: 'primary' | 'outline' | 'ghost' | 'link';
7
7
  };
8
- export declare const KButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size" | "type"> & {
8
+ export declare const KButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size" | "prefixCls" | "variant" | "type"> & {
9
9
  size?: "sm" | "md" | "lg" | "xl";
10
10
  type?: "primary" | "outline" | "ghost" | "link";
11
11
  } & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react-vite';
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.ForwardRefExoticComponent<Omit<import("antd").ButtonProps, "size" | "prefixCls" | "variant" | "type"> & {
6
+ size?: "sm" | "md" | "lg" | "xl";
7
+ type?: "primary" | "outline" | "ghost" | "link";
8
+ } & React.RefAttributes<HTMLButtonElement>>;
9
+ parameters: {
10
+ layout: string;
11
+ };
12
+ tags: string[];
13
+ argTypes: {
14
+ type: {
15
+ control: "select";
16
+ options: string[];
17
+ };
18
+ loading: {
19
+ control: "boolean";
20
+ };
21
+ size: {
22
+ control: "select";
23
+ options: string[];
24
+ };
25
+ block: {
26
+ control: "boolean";
27
+ };
28
+ };
29
+ };
30
+ export default meta;
31
+ type Story = StoryObj<typeof meta>;
32
+ export declare const Default: Story;
33
+ export declare const Primary: Story;
34
+ export declare const Outline: Story;
35
+ export declare const Ghost: Story;
36
+ export declare const Link: Story;
37
+ export declare const ForwardRef: Story;
@@ -3,8 +3,8 @@ import { CheckboxProps } from 'antd';
3
3
  import type { CheckboxRef } from 'antd/es/checkbox';
4
4
  import { CheckboxGroupProps } from 'antd/es/checkbox';
5
5
  import './style.css';
6
- export type KCheckboxProps = CheckboxProps & {
7
- size?: 'sm' | 'md';
6
+ export type KCheckboxProps = Omit<CheckboxProps, 'prefixCls'> & {
7
+ size?: 'sm' | 'md' | 'lg' | 'xl';
8
8
  };
9
9
  export type KCheckboxGroupProps = CheckboxGroupProps;
10
10
  export declare const KCheckboxGroup: React.ForwardRefExoticComponent<KCheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,113 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("./KCheckbox").KCheckboxInterface;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {
10
+ size: {
11
+ control: "select";
12
+ options: string[];
13
+ description: string;
14
+ table: {
15
+ type: {
16
+ summary: string;
17
+ };
18
+ defaultValue: {
19
+ summary: string;
20
+ };
21
+ };
22
+ };
23
+ checked: {
24
+ control: "boolean";
25
+ description: string;
26
+ table: {
27
+ type: {
28
+ summary: string;
29
+ };
30
+ defaultValue: {
31
+ summary: string;
32
+ };
33
+ };
34
+ };
35
+ defaultChecked: {
36
+ control: "boolean";
37
+ description: string;
38
+ table: {
39
+ type: {
40
+ summary: string;
41
+ };
42
+ defaultValue: {
43
+ summary: string;
44
+ };
45
+ };
46
+ };
47
+ disabled: {
48
+ control: "boolean";
49
+ description: string;
50
+ table: {
51
+ type: {
52
+ summary: string;
53
+ };
54
+ defaultValue: {
55
+ summary: string;
56
+ };
57
+ };
58
+ };
59
+ indeterminate: {
60
+ control: "boolean";
61
+ description: string;
62
+ table: {
63
+ type: {
64
+ summary: string;
65
+ };
66
+ defaultValue: {
67
+ summary: string;
68
+ };
69
+ };
70
+ };
71
+ autoFocus: {
72
+ control: "boolean";
73
+ description: string;
74
+ table: {
75
+ type: {
76
+ summary: string;
77
+ };
78
+ defaultValue: {
79
+ summary: string;
80
+ };
81
+ };
82
+ };
83
+ onChange: {
84
+ action: string;
85
+ description: string;
86
+ table: {
87
+ type: {
88
+ summary: string;
89
+ };
90
+ };
91
+ };
92
+ children: {
93
+ control: "text";
94
+ description: string;
95
+ };
96
+ className: {
97
+ control: "text";
98
+ description: string;
99
+ };
100
+ style: {
101
+ control: "object";
102
+ description: string;
103
+ };
104
+ };
105
+ };
106
+ export default meta;
107
+ type Story = StoryObj<typeof meta>;
108
+ export declare const Primary: Story;
109
+ export declare const Indeterminate: Story;
110
+ export declare const Disabled: Story;
111
+ export declare const Sizes: Story;
112
+ export declare const Group: Story;
113
+ export declare const FilterLogic: Story;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  import { DropdownProps } from 'antd';
3
- export type KDropdownProps = DropdownProps;
3
+ import './style.css';
4
+ export type KDropdownProps = Omit<DropdownProps, 'prefixCls'>;
4
5
  export declare const KDropdown: React.FC<KDropdownProps>;