linkmore-design 1.0.89 → 1.0.90

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 (62) hide show
  1. package/dist/Modal/index.d.ts +1 -0
  2. package/dist/Select/index.d.ts +2 -9
  3. package/dist/Tabs/TabPane.d.ts +5 -0
  4. package/dist/Tabs/hooks/useAnimateConfig.d.ts +3 -0
  5. package/dist/Tabs/hooks/useLegacyItems.d.ts +4 -0
  6. package/dist/Tabs/index.d.ts +21 -10
  7. package/dist/Tabs/index.old.d.ts +12 -0
  8. package/dist/index.d.ts +0 -2
  9. package/dist/index.umd.js +32852 -30078
  10. package/dist/index.umd.min.js +21 -21
  11. package/es/LmEditTable/EditTable.js +10 -3
  12. package/es/LmTable/Table.js +1 -1
  13. package/es/LmTable/util.js +70 -21
  14. package/es/Modal/index.d.ts +1 -0
  15. package/es/Modal/index.js +8 -3
  16. package/es/Select/index.d.ts +2 -9
  17. package/es/Tabs/TabPane.d.ts +5 -0
  18. package/es/Tabs/TabPane.js +9 -0
  19. package/es/Tabs/hooks/useAnimateConfig.d.ts +3 -0
  20. package/es/Tabs/hooks/useAnimateConfig.js +38 -0
  21. package/es/Tabs/hooks/useLegacyItems.d.ts +4 -0
  22. package/es/Tabs/hooks/useLegacyItems.js +50 -0
  23. package/es/Tabs/index.d.ts +21 -10
  24. package/es/Tabs/index.js +73 -19
  25. package/es/Tabs/index.old.d.ts +12 -0
  26. package/es/Tabs/index.old.js +38 -0
  27. package/es/Tabs/style/index.css +40 -0
  28. package/es/index.d.ts +0 -2
  29. package/es/index.js +0 -1
  30. package/lib/LmEditTable/EditTable.js +10 -3
  31. package/lib/LmTable/Table.js +1 -1
  32. package/lib/LmTable/util.js +70 -21
  33. package/lib/Modal/index.d.ts +1 -0
  34. package/lib/Modal/index.js +9 -3
  35. package/lib/Select/index.d.ts +2 -9
  36. package/lib/Tabs/TabPane.d.ts +5 -0
  37. package/lib/Tabs/TabPane.js +17 -0
  38. package/lib/Tabs/hooks/useAnimateConfig.d.ts +3 -0
  39. package/lib/Tabs/hooks/useAnimateConfig.js +50 -0
  40. package/lib/Tabs/hooks/useLegacyItems.d.ts +4 -0
  41. package/lib/Tabs/hooks/useLegacyItems.js +63 -0
  42. package/lib/Tabs/index.d.ts +21 -10
  43. package/lib/Tabs/index.js +84 -19
  44. package/lib/Tabs/index.old.d.ts +12 -0
  45. package/lib/Tabs/index.old.js +52 -0
  46. package/lib/Tabs/style/index.css +40 -0
  47. package/lib/index.d.ts +0 -2
  48. package/lib/index.js +0 -8
  49. package/package.json +2 -2
  50. package/dist/InputRange/demos/basic.d.ts +0 -2
  51. package/dist/InputRange/index.d.ts +0 -8
  52. package/dist/InputRange/style/index.d.ts +0 -1
  53. package/es/InputRange/index.d.ts +0 -8
  54. package/es/InputRange/index.js +0 -67
  55. package/es/InputRange/style/index.css +0 -511
  56. package/es/InputRange/style/index.d.ts +0 -1
  57. package/es/InputRange/style/index.js +0 -1
  58. package/lib/InputRange/index.d.ts +0 -8
  59. package/lib/InputRange/index.js +0 -79
  60. package/lib/InputRange/style/index.css +0 -511
  61. package/lib/InputRange/style/index.d.ts +0 -1
  62. package/lib/InputRange/style/index.js +0 -3
@@ -3,6 +3,7 @@ import { ModalProps } from 'antd';
3
3
  export interface ILMModalProps extends ModalProps {
4
4
  wrapClassName?: string;
5
5
  size?: 'default' | 'small';
6
+ open?: boolean;
6
7
  }
7
8
  declare const LMModal: React.FC<ILMModalProps> & React.FC<ModalProps> & import("antd/lib/modal/confirm").ModalStaticFunctions & {
8
9
  useModal: typeof import("antd/lib/modal/useModal").default;
@@ -6,13 +6,6 @@ export interface ISelectProps extends SelectProps {
6
6
  Option?: typeof Select.Option;
7
7
  OptGroup?: typeof Select.OptGroup;
8
8
  }
9
- declare const LMSelect: (<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
10
- children?: React.ReactNode;
11
- } & {
12
- ref?: React.Ref<import("antd").RefSelectProps>;
13
- }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
14
- SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
15
- Option: import("rc-select/lib/Option").OptionFC;
16
- OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
17
- };
9
+ declare type SelectType = typeof Select & typeof Select.Option & typeof Select.OptGroup;
10
+ declare const LMSelect: SelectType;
18
11
  export default LMSelect;
@@ -0,0 +1,5 @@
1
+ import type * as React from 'react';
2
+ import type { TabPaneProps } from 'rc-tabs/lib/TabPanelList/TabPane';
3
+ declare const TabPane: React.FC<TabPaneProps>;
4
+ export { TabPaneProps };
5
+ export default TabPane;
@@ -0,0 +1,3 @@
1
+ import type { AnimatedConfig } from 'rc-tabs/lib/interface';
2
+ import type { TabsProps } from '..';
3
+ export default function useAnimateConfig(prefixCls: string, animated?: TabsProps['animated']): AnimatedConfig;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import type { Tab } from 'rc-tabs/lib/interface';
3
+ import type { TabsProps } from '..';
4
+ export default function useLegacyItems(items?: TabsProps['items'], children?: React.ReactNode): Tab[];
@@ -1,12 +1,23 @@
1
- import React from 'react';
2
- import { Tabs, TabsProps } from 'antd';
3
- export interface ITabsProps extends TabsProps {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- noBorder?: Boolean;
1
+ import type { TabsProps as RcTabsProps } from 'rc-tabs';
2
+ import * as React from 'react';
3
+ import type { SizeType } from '../ConfigProvider/SizeContext';
4
+ import { TabPaneProps } from './TabPane';
5
+ export declare type TabsType = 'line' | 'card' | 'editable-card';
6
+ export declare type TabsPosition = 'top' | 'right' | 'bottom' | 'left';
7
+ export type { TabPaneProps };
8
+ export interface TabsProps extends Omit<RcTabsProps, 'editable'> {
9
+ type?: TabsType;
10
+ size?: SizeType;
11
+ hideAdd?: boolean;
12
+ centered?: boolean;
13
+ addIcon?: React.ReactNode;
14
+ onEdit?: (e: React.MouseEvent | React.KeyboardEvent | string, action: 'add' | 'remove') => void;
15
+ children?: React.ReactNode;
16
+ noBorder?: boolean;
7
17
  }
8
- interface LmTabsInterface extends React.FC<ITabsProps> {
9
- TabPane?: typeof Tabs.TabPane;
18
+ declare function Tabs({ type, className, size: propSize, onEdit, hideAdd, centered, addIcon, children, items, animated, ...props }: TabsProps): JSX.Element;
19
+ declare namespace Tabs {
20
+ var TabPane: React.FC<TabPaneProps>;
21
+ var AntdTabs: typeof import("antd/lib/tabs").default;
10
22
  }
11
- declare const LMTabs: LmTabsInterface;
12
- export default LMTabs;
23
+ export default Tabs;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { Tabs, TabsProps } from 'antd';
3
+ export interface ITabsProps extends TabsProps {
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ noBorder?: Boolean;
7
+ }
8
+ interface LmTabsInterface extends React.FC<ITabsProps> {
9
+ TabPane?: typeof Tabs.TabPane;
10
+ }
11
+ declare const LMTabs: LmTabsInterface;
12
+ export default LMTabs;
package/dist/index.d.ts CHANGED
@@ -117,7 +117,5 @@ export { default as Skeleton } from './Skeleton';
117
117
  export type { ISkeletonProps } from './Skeleton';
118
118
  export { default as Descriptions } from './Descriptions';
119
119
  export type { DescriptionsProps } from './Descriptions';
120
- export { default as InputRange } from './InputRange';
121
- export type { InputRangeProps } from './InputRange';
122
120
  export { default as FullScreen } from './FullScreen';
123
121
  export type { IFullScreenProps } from './FullScreen';