@bigtablet/design-system 1.2.5 → 1.3.0

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.css CHANGED
@@ -30,6 +30,20 @@
30
30
  .card--p-lg {
31
31
  padding: 1.5rem;
32
32
  }
33
+ .card {
34
+ }
35
+ .card__title {
36
+ font-size: 1.25rem;
37
+ font-weight: 600;
38
+ line-height: 1.3;
39
+ margin-bottom: 0.75rem;
40
+ color: #1F2937;
41
+ }
42
+ .card {
43
+ }
44
+ .card__body {
45
+ width: 100%;
46
+ }
33
47
 
34
48
  /* src/ui/feedback/alert/style.scss */
35
49
  .alert-overlay {
package/dist/index.d.ts CHANGED
@@ -2,12 +2,14 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import * as react_toastify from 'react-toastify';
4
4
 
5
+ /** Card UI */
5
6
  interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ heading?: React.ReactNode;
6
8
  shadow?: "none" | "sm" | "md" | "lg";
7
9
  padding?: "none" | "sm" | "md" | "lg";
8
10
  bordered?: boolean;
9
11
  }
10
- declare const Card: ({ shadow, padding, bordered, className, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
12
+ declare const Card: ({ heading, shadow, padding, bordered, className, children, ...props }: CardProps) => react_jsx_runtime.JSX.Element;
11
13
 
12
14
  type AlertVariant = "info" | "success" | "warning" | "error";
13
15
  type AlertActionsAlign = "left" | "center" | "right";
package/dist/index.js CHANGED
@@ -10,10 +10,12 @@ import { ChevronDown, Check } from 'lucide-react';
10
10
 
11
11
  // src/ui/display/card/index.tsx
12
12
  var Card = ({
13
+ heading,
13
14
  shadow = "sm",
14
15
  padding = "md",
15
16
  bordered,
16
17
  className,
18
+ children,
17
19
  ...props
18
20
  }) => {
19
21
  const cls = [
@@ -23,7 +25,10 @@ var Card = ({
23
25
  bordered && "card--bordered",
24
26
  className
25
27
  ].filter(Boolean).join(" ");
26
- return /* @__PURE__ */ jsx("div", { className: cls, ...props });
28
+ return /* @__PURE__ */ jsxs("div", { className: cls, ...props, children: [
29
+ heading && /* @__PURE__ */ jsx("div", { className: "card__title", children: heading }),
30
+ /* @__PURE__ */ jsx("div", { className: "card__body", children })
31
+ ] });
27
32
  };
28
33
  var AlertContext = createContext(null);
29
34
  var useAlert = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigtablet/design-system",
3
- "version": "1.2.5",
3
+ "version": "1.3.0",
4
4
  "description": "Bigtablet Design System UI Components",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",