@layerfi/components 0.1.28 → 0.1.29
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/.idea/layer-react.iml +9 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/esm/index.js +1688 -1482
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +18 -2
- package/dist/index.js +1750 -1544
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +74 -7
- package/dist/styles/index.css.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1087,6 +1087,7 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelect' {
|
|
|
1087
1087
|
disabled?: boolean;
|
|
1088
1088
|
className?: string;
|
|
1089
1089
|
excludeMatches?: boolean;
|
|
1090
|
+
asDrawer?: boolean;
|
|
1090
1091
|
};
|
|
1091
1092
|
export enum OptionActionType {
|
|
1092
1093
|
CATEGORY = "category",
|
|
@@ -1111,7 +1112,18 @@ declare module '@layerfi/components/components/CategorySelect/CategorySelect' {
|
|
|
1111
1112
|
}
|
|
1112
1113
|
export const mapCategoryToOption: (category: Category) => CategoryOption;
|
|
1113
1114
|
export const mapSuggestedMatchToOption: (record: SuggestedMatch) => CategoryOption;
|
|
1114
|
-
export const CategorySelect: ({ bankTransaction, name, value, onChange, disabled, className, excludeMatches, }: Props) => React.JSX.Element;
|
|
1115
|
+
export const CategorySelect: ({ bankTransaction, name, value, onChange, disabled, className, excludeMatches, asDrawer, }: Props) => React.JSX.Element;
|
|
1116
|
+
export {};
|
|
1117
|
+
|
|
1118
|
+
}
|
|
1119
|
+
declare module '@layerfi/components/components/CategorySelect/CategorySelectDrawer' {
|
|
1120
|
+
import React from 'react';
|
|
1121
|
+
import { CategoryOption } from '@layerfi/components/components/CategorySelect/CategorySelect';
|
|
1122
|
+
interface CategorySelectDrawerProps {
|
|
1123
|
+
onSelect: (value: CategoryOption) => void;
|
|
1124
|
+
selected?: CategoryOption;
|
|
1125
|
+
}
|
|
1126
|
+
export const CategorySelectDrawer: ({ onSelect, selected, }: CategorySelectDrawerProps) => React.JSX.Element;
|
|
1115
1127
|
export {};
|
|
1116
1128
|
|
|
1117
1129
|
}
|
|
@@ -1346,7 +1358,7 @@ declare module '@layerfi/components/components/DetailsList/index' {
|
|
|
1346
1358
|
}
|
|
1347
1359
|
declare module '@layerfi/components/components/Drawer/Drawer' {
|
|
1348
1360
|
import React from 'react';
|
|
1349
|
-
export const Drawer: ({ isOpen, onClose, children }: {
|
|
1361
|
+
export const Drawer: ({ isOpen, onClose, children, }: {
|
|
1350
1362
|
isOpen: boolean;
|
|
1351
1363
|
onClose: () => void;
|
|
1352
1364
|
children: React.ReactNode;
|
|
@@ -2663,6 +2675,8 @@ declare module '@layerfi/components/contexts/DrawerContext/DrawerContext' {
|
|
|
2663
2675
|
export const DrawerContext: import("react").Context<{
|
|
2664
2676
|
content?: import("react").ReactNode;
|
|
2665
2677
|
setContent: (content: import("react").ReactNode) => void;
|
|
2678
|
+
finishClosing: () => void;
|
|
2679
|
+
isClosing: boolean;
|
|
2666
2680
|
close: () => void;
|
|
2667
2681
|
}>;
|
|
2668
2682
|
|
|
@@ -2930,6 +2944,8 @@ declare module '@layerfi/components/hooks/useDrawer/useDrawer' {
|
|
|
2930
2944
|
type UseDrawer = () => {
|
|
2931
2945
|
content?: ReactNode;
|
|
2932
2946
|
setContent: (content: ReactNode) => void;
|
|
2947
|
+
finishClosing: () => void;
|
|
2948
|
+
isClosing: boolean;
|
|
2933
2949
|
close: () => void;
|
|
2934
2950
|
};
|
|
2935
2951
|
export const useDrawer: UseDrawer;
|