linkmore-design 1.1.14 → 1.1.16

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 (70) hide show
  1. package/dist/Form/FormWrapper.d.ts +3 -0
  2. package/dist/Form/WrapperItem.d.ts +4 -0
  3. package/dist/Form/index.d.ts +2 -0
  4. package/dist/Form/interface.d.ts +10 -0
  5. package/dist/LmTable/demos/summuy.d.ts +2 -0
  6. package/dist/TreeSelect/demos/treedata.d.ts +3 -0
  7. package/dist/index.umd.js +941 -871
  8. package/dist/index.umd.min.js +5 -5
  9. package/dist/variables.css +59 -48
  10. package/es/Cascader/index.js +3 -3
  11. package/es/Cascader/style/index.css +1 -0
  12. package/es/Cascader/style/variables.css +1 -0
  13. package/es/Form/Form.js +13 -4
  14. package/es/Form/FormItem/ItemHolder.js +1 -10
  15. package/es/Form/FormWrapper.d.ts +3 -0
  16. package/es/Form/FormWrapper.js +23 -0
  17. package/es/Form/WrapperItem.d.ts +4 -0
  18. package/es/Form/WrapperItem.js +149 -0
  19. package/es/Form/container.js +1 -13
  20. package/es/Form/images/icon_collapse.svg +1 -0
  21. package/es/Form/index.d.ts +2 -0
  22. package/es/Form/index.js +2 -0
  23. package/es/Form/interface.d.ts +10 -0
  24. package/es/Form/style/index.css +13 -48
  25. package/es/Form/style/variables.css +13 -48
  26. package/es/Input/index.js +11 -15
  27. package/es/InputNumber/style/index.css +4 -0
  28. package/es/InputNumber/style/variables.css +4 -0
  29. package/es/LmEditTable/EditTable.js +5 -4
  30. package/es/LmFilter/components/CheckboxFilter.js +9 -4
  31. package/es/LmFilter/components/DropdownFIlter.js +10 -4
  32. package/es/LmFilter/components/SelectFilter.js +4 -3
  33. package/es/LmSelect/style/index.css +1 -0
  34. package/es/LmSelect/style/variables.css +1 -0
  35. package/es/LmTable/style/index.css +39 -0
  36. package/es/LmTable/style/variables.css +39 -0
  37. package/es/Select/style/index.css +1 -0
  38. package/es/Select/style/variables.css +1 -0
  39. package/es/styles/variables.css +59 -48
  40. package/lib/Cascader/index.js +3 -3
  41. package/lib/Cascader/style/index.css +1 -0
  42. package/lib/Cascader/style/variables.css +1 -0
  43. package/lib/Form/Form.js +13 -4
  44. package/lib/Form/FormItem/ItemHolder.js +1 -10
  45. package/lib/Form/FormWrapper.d.ts +3 -0
  46. package/lib/Form/FormWrapper.js +35 -0
  47. package/lib/Form/WrapperItem.d.ts +4 -0
  48. package/lib/Form/WrapperItem.js +168 -0
  49. package/lib/Form/container.js +1 -13
  50. package/lib/Form/images/icon_collapse.svg +1 -0
  51. package/lib/Form/index.d.ts +2 -0
  52. package/lib/Form/index.js +3 -0
  53. package/lib/Form/interface.d.ts +10 -0
  54. package/lib/Form/style/index.css +13 -48
  55. package/lib/Form/style/variables.css +13 -48
  56. package/lib/Input/index.js +12 -15
  57. package/lib/InputNumber/style/index.css +4 -0
  58. package/lib/InputNumber/style/variables.css +4 -0
  59. package/lib/LmEditTable/EditTable.js +5 -4
  60. package/lib/LmFilter/components/CheckboxFilter.js +9 -4
  61. package/lib/LmFilter/components/DropdownFIlter.js +10 -4
  62. package/lib/LmFilter/components/SelectFilter.js +4 -3
  63. package/lib/LmSelect/style/index.css +1 -0
  64. package/lib/LmSelect/style/variables.css +1 -0
  65. package/lib/LmTable/style/index.css +39 -0
  66. package/lib/LmTable/style/variables.css +39 -0
  67. package/lib/Select/style/index.css +1 -0
  68. package/lib/Select/style/variables.css +1 -0
  69. package/lib/styles/variables.css +59 -48
  70. package/package.json +4 -2
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.FC<any>;
3
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IWrapper } from './interface';
3
+ declare const WrapperItem: React.FC<IWrapper>;
4
+ export default WrapperItem;
@@ -9,6 +9,7 @@ import type { FormItemProps } from './FormItem';
9
9
  import List from './FormList';
10
10
  import type { FormListFieldData, FormListOperation, FormListProps } from './FormList';
11
11
  import useFormInstance from './hooks/useFormInstance';
12
+ import Wrapper from './FormWrapper';
12
13
  declare type InternalFormType = typeof InternalForm;
13
14
  interface FormInterface extends InternalFormType {
14
15
  useForm: typeof useForm;
@@ -18,6 +19,7 @@ interface FormInterface extends InternalFormType {
18
19
  List: typeof List;
19
20
  ErrorList: typeof ErrorList;
20
21
  Provider: typeof FormProvider;
22
+ Wrapper: typeof Wrapper;
21
23
  /** @deprecated Only for warning usage. Do not use. */
22
24
  create: () => void;
23
25
  }
@@ -1,3 +1,13 @@
1
+ import { FormInstance, Store } from 'rc-field-form/lib/interface';
2
+ import React from 'react';
1
3
  export { InternalNamePath, NamePath, Store, StoreValue } from 'rc-field-form/lib/interface';
2
4
  export { Options as ScrollOptions } from 'scroll-into-view-if-needed';
3
5
  export declare type FormLabelAlign = 'left' | 'right';
6
+ export declare type RenderProps = (values: Store, form: FormInstance) => JSX.Element | React.ReactNode;
7
+ export interface ISize {
8
+ width?: number;
9
+ height?: number;
10
+ }
11
+ export interface IWrapper {
12
+ children: React.ReactNode | RenderProps;
13
+ }
@@ -0,0 +1,2 @@
1
+ export default App;
2
+ declare function App(): JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;