@dartcom/ui-kit 2.8.0 → 2.9.1
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/README.md +1 -1
- package/dist/cjs/components/form/form.js +13 -17
- package/dist/cjs/components/form/form.js.map +1 -1
- package/dist/cjs/components/list/list.js +26 -5
- package/dist/cjs/components/list/list.js.map +1 -1
- package/dist/cjs/node_modules/react-hook-form/dist/index.esm.js +0 -118
- package/dist/cjs/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/dist/esm/components/form/form.js +1 -1
- package/dist/esm/components/form/form.js.map +1 -1
- package/dist/esm/components/list/list.js +1 -1
- package/dist/esm/components/list/list.js.map +1 -1
- package/dist/esm/node_modules/react-hook-form/dist/index.esm.js +1 -1
- package/dist/esm/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/dist/esm/types/components/form/form.d.ts +2 -2
- package/dist/esm/types/components/form/form.d.ts.map +1 -1
- package/dist/esm/types/components/list/list.d.ts +6 -2
- package/dist/esm/types/components/list/list.d.ts.map +1 -1
- package/dist/esm/types/components/list/list.stories.d.ts +2 -0
- package/dist/esm/types/components/list/list.stories.d.ts.map +1 -1
- package/dist/esm/types/components/list/stories/constants.d.ts +1 -0
- package/dist/esm/types/components/list/stories/constants.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/material';
|
|
3
|
+
import { StringOrNumber } from '@/types';
|
|
3
4
|
interface CustomListProps<T> {
|
|
4
5
|
items: T[];
|
|
5
6
|
columnsCount?: number;
|
|
6
7
|
title?: string;
|
|
7
8
|
getContent: (item: T, index: number) => React.JSX.Element;
|
|
8
|
-
getKey: (item: T, index: number) =>
|
|
9
|
+
getKey: (item: T, index: number) => StringOrNumber;
|
|
9
10
|
onClick?: (item: T, index: number) => void;
|
|
10
11
|
sx?: {
|
|
12
|
+
root?: SxProps;
|
|
11
13
|
list?: SxProps;
|
|
14
|
+
title?: SxProps;
|
|
12
15
|
item?: SxProps;
|
|
13
16
|
};
|
|
17
|
+
isShowNoData?: boolean;
|
|
14
18
|
}
|
|
15
|
-
declare function CustomList<T>({ items, columnsCount, getContent, title, getKey, onClick, sx, }: CustomListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function CustomList<T>({ items, columnsCount, getContent, title, getKey, onClick, sx, isShowNoData, }: CustomListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
20
|
export default CustomList;
|
|
17
21
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/components/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAuB,OAAO,EAAc,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/components/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAuB,OAAO,EAAc,MAAM,eAAe,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAIzC,UAAU,eAAe,CAAC,CAAC;IACzB,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAC1D,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,cAAc,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAE3C,EAAE,CAAC,EAAE;QACH,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;IAEF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,iBAAS,UAAU,CAAC,CAAC,EAAE,EACrB,KAAK,EACL,YAAgB,EAChB,UAAU,EACV,KAAK,EACL,MAAM,EACN,OAAO,EACP,EAAE,EAEF,YAAmB,GACpB,EAAE,eAAe,CAAC,CAAC,CAAC,2CA0DpB;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -5,5 +5,7 @@ export default meta;
|
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
6
6
|
export declare const Primary: Story;
|
|
7
7
|
export declare const Empty: Story;
|
|
8
|
+
export declare const EmptyAndTitle: Story;
|
|
9
|
+
export declare const EmptyNoShow: Story;
|
|
8
10
|
export declare const WithTitle: Story;
|
|
9
11
|
//# sourceMappingURL=list.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/list/list.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAO3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"list.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/list/list.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAO3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list/stories/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,YAAY,EAAE,SAAS,EAenC,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/components/list/stories/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,UAAU,EAAE,SAAS,EAAO,CAAC;AAE1C,eAAO,MAAM,YAAY,EAAE,SAAS,EAenC,CAAC"}
|