@caspeco/casper-ui-library 9.2.0 → 9.2.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.
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { List as ChakraList
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { List as ChakraList } from '@chakra-ui/react';
|
|
2
|
+
import { ThemeStyleProps } from '../../theme/index.js';
|
|
3
|
+
type ChakraListProps = Pick<ChakraList.RootProps, "listStyleType" | "children">;
|
|
4
|
+
type CustomListProps = {
|
|
4
5
|
/** Adjust vertical spacing between List Items */
|
|
5
|
-
spacing?:
|
|
6
|
+
spacing?: ChakraList.RootProps["gap"];
|
|
6
7
|
};
|
|
7
|
-
export type ListProps = CustomListProps &
|
|
8
|
+
export type ListProps = CustomListProps & ChakraListProps & ThemeStyleProps;
|
|
8
9
|
/**
|
|
9
10
|
* List is used to display list items.
|
|
10
11
|
*
|
|
11
12
|
* @see Docs https://caspeco.github.io/casper-ui-library/components/list
|
|
12
13
|
*/
|
|
13
|
-
export declare function List({ fontFamily, listStyleType, children, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function List({ fontFamily, listStyleType, spacing, children, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
14
16
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../lib/components/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAqB,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../lib/components/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAElE,KAAK,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,eAAe,GAAG,UAAU,CAAC,CAAC;AAGhF,KAAK,eAAe,GAAG;IACtB,iDAAiD;IACjD,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,eAAe,GAAG,eAAe,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACpB,UAAmC,EACnC,aAAsB,EACtB,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,SAAS,2CAMX"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { List as
|
|
3
|
-
import { ThemeFontVariable as
|
|
4
|
-
function
|
|
5
|
-
fontFamily: o =
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { List as n } from "@chakra-ui/react";
|
|
3
|
+
import { ThemeFontVariable as p } from "../../theme/theme-types.js";
|
|
4
|
+
function L({
|
|
5
|
+
fontFamily: o = p.Body,
|
|
6
6
|
listStyleType: t = "none",
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
spacing: r,
|
|
8
|
+
children: i,
|
|
9
|
+
...m
|
|
9
10
|
}) {
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ e(n.Root, { gap: r, fontFamily: o, listStyleType: t, ...m, children: i });
|
|
11
12
|
}
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
L as List
|
|
14
15
|
};
|