@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, ConditionalValue } from '@chakra-ui/react';
2
- import { ThemeSpaceVariable, ThemeStyleProps } from '../../theme/index.js';
3
- export type CustomListProps = {
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?: ConditionalValue<ThemeSpaceVariable | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "auto"> | undefined;
6
+ spacing?: ChakraList.RootProps["gap"];
6
7
  };
7
- export type ListProps = CustomListProps & ChakraList.RootProps & ThemeStyleProps;
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,kBAAkB,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC7B,iDAAiD;IACjD,OAAO,CAAC,EACL,gBAAgB,CACd,kBAAkB,GAClB,CAAC,MAAM,GAAG,EAAE,CAAC,GACb,cAAc,GACd,SAAS,GACT,SAAS,GACT,QAAQ,GACR,cAAc,GACd,OAAO,GACP,MAAM,CACP,GACD,SAAS,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,UAAU,CAAC,SAAS,GAAG,eAAe,CAAC;AAEjF;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACpB,UAAmC,EACnC,aAAsB,EACtB,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,SAAS,2CAMX"}
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 m } from "react/jsx-runtime";
2
- import { List as e } from "@chakra-ui/react";
3
- import { ThemeFontVariable as n } from "../../theme/theme-types.js";
4
- function a({
5
- fontFamily: o = n.Body,
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
- children: r,
8
- ...i
7
+ spacing: r,
8
+ children: i,
9
+ ...m
9
10
  }) {
10
- return /* @__PURE__ */ m(e.Root, { fontFamily: o, listStyleType: t, ...i, children: r });
11
+ return /* @__PURE__ */ e(n.Root, { gap: r, fontFamily: o, listStyleType: t, ...m, children: i });
11
12
  }
12
13
  export {
13
- a as List
14
+ L as List
14
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspeco/casper-ui-library",
3
- "version": "9.2.0",
3
+ "version": "9.2.1",
4
4
  "prettier": "@caspeco/prettier-config",
5
5
  "type": "module",
6
6
  "sideEffects": false,