@versini/ui-card 1.1.1 → 1.1.2

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/dist/index.d.ts CHANGED
@@ -1,57 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { SpacingProps } from '@versini/ui-private/dist/utilities';
2
+ import { CardProps } from '@versini/ui-card-types';
3
3
 
4
4
  declare const CARD_CLASSNAME = "av-card";
5
5
 
6
- type CardProps = {
7
- /**
8
- * The children to render.
9
- */
10
- children: React.ReactNode;
11
- /**
12
- * If the header prop is not provided, the Card must be
13
- * described via aria-labelledby.
14
- */
15
- "aria-labelledby"?: string;
16
- /**
17
- * CSS class(es) to add to the body.
18
- */
19
- bodyClassName?: string;
20
- /**
21
- * CSS class(es) to add to the main component wrapper.
22
- */
23
- className?: string;
24
- /**
25
- * If true, the card will be smaller.
26
- */
27
- compact?: boolean;
28
- /**
29
- * The content to render in the footer.
30
- */
31
- footer?: React.ReactNode;
32
- /**
33
- * CSS class(es) to add to the footer.
34
- */
35
- footerClassName?: string;
36
- /**
37
- * The content to render in the header.
38
- */
39
- header?: React.ReactNode;
40
- /**
41
- * CSS class(es) to add to the header.
42
- */
43
- headerClassName?: string;
44
- /**
45
- * The mode of Card. This will change the color of the Card.
46
- */
47
- mode?: "darker" | "dark" | "light" | "system" | "alt-system";
48
- /**
49
- * Whether or not to render the Card with a border.
50
- * @default false
51
- */
52
- noBorder?: boolean;
53
- } & SpacingProps;
54
-
55
6
  declare const Card: ({ header, headerClassName, footer, footerClassName, children, className, bodyClassName, "aria-labelledby": ariaLabelledby, spacing, mode, compact, noBorder, ...otherProps }: CardProps) => react_jsx_runtime.JSX.Element;
56
7
 
57
8
  export { CARD_CLASSNAME, Card };
package/dist/index.js CHANGED
@@ -2,13 +2,13 @@ import { jsx as n, jsxs as v } from "react/jsx-runtime";
2
2
  import { useId as x } from "react";
3
3
  import b from "clsx";
4
4
  /*!
5
- @versini/ui-card v1.1.1
5
+ @versini/ui-card v1.1.2
6
6
  © 2024 gizmette.com
7
7
  */
8
8
  try {
9
9
  window.__VERSINI_UI_CARD__ || (window.__VERSINI_UI_CARD__ = {
10
- version: "1.1.1",
11
- buildTime: "12/18/2024 01:22 PM EST",
10
+ version: "1.1.2",
11
+ buildTime: "12/23/2024 01:47 PM EST",
12
12
  homepage: "https://github.com/aversini/ui-components",
13
13
  license: "MIT"
14
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-card",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -39,6 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@tailwindcss/typography": "0.5.15",
42
+ "@versini/ui-card-types": "1.0.0",
42
43
  "@versini/ui-hooks": "4.3.0",
43
44
  "@versini/ui-private": "1.5.1",
44
45
  "clsx": "2.1.1",
@@ -47,5 +48,5 @@
47
48
  "sideEffects": [
48
49
  "**/*.css"
49
50
  ],
50
- "gitHead": "123c2555b25210da73697c4fdd3b6a5f67a3b993"
51
+ "gitHead": "bda577b38b651f8850ba239592a8ea974f528b77"
51
52
  }