@empreint/ui 1.0.0 → 1.0.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.
@@ -36,21 +36,25 @@ var re = { button: "_button_1x0jf_1" }, ie = ({ children: n, type: r = "button",
36
36
  "data-size": a,
37
37
  children: n
38
38
  }), _ = {
39
- container: "_container_13muw_1",
40
- header: "_header_13muw_9",
41
- body: "_body_13muw_13",
42
- footer: "_footer_13muw_18"
43
- }, v = ({ children: n, className: r }) => /* @__PURE__ */ t("div", {
44
- className: e(_.container, r),
39
+ card: "_card_1rxu3_1",
40
+ header: "_header_1rxu3_10",
41
+ body: "_body_1rxu3_14",
42
+ footer: "_footer_1rxu3_19"
43
+ }, v = ({ children: n, className: r, ...i }) => /* @__PURE__ */ t("div", {
44
+ ...i,
45
+ className: e(_.card, r),
45
46
  children: n
46
47
  });
47
- v.Header = ({ children: n, className: r }) => /* @__PURE__ */ t("div", {
48
+ v.Header = ({ children: n, className: r, ...i }) => /* @__PURE__ */ t("div", {
49
+ ...i,
48
50
  className: e(_.header, r),
49
51
  children: n
50
- }), v.Body = ({ children: n, className: r }) => /* @__PURE__ */ t("div", {
52
+ }), v.Body = ({ children: n, className: r, ...i }) => /* @__PURE__ */ t("div", {
53
+ ...i,
51
54
  className: e(_.body, r),
52
55
  children: n
53
- }), v.Footer = ({ children: n, className: r }) => /* @__PURE__ */ t("div", {
56
+ }), v.Footer = ({ children: n, className: r, ...i }) => /* @__PURE__ */ t("div", {
57
+ ...i,
54
58
  className: e(_.footer, r),
55
59
  children: n
56
60
  });
@@ -1,23 +1,7 @@
1
- import { ReactNode } from 'react';
2
- export type CardProps = {
3
- children: ReactNode;
4
- className?: string;
5
- };
1
+ import { ComponentProps } from 'react';
6
2
  export declare const Card: {
7
- ({ children, className }: CardProps): import("react/jsx-runtime").JSX.Element;
8
- Header: ({ children, className }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
9
- Body: ({ children, className }: CardBodyProps) => import("react/jsx-runtime").JSX.Element;
10
- Footer: ({ children, className }: CardFooterProps) => import("react/jsx-runtime").JSX.Element;
11
- };
12
- export type CardHeaderProps = {
13
- children: ReactNode;
14
- className?: string;
15
- };
16
- export type CardBodyProps = {
17
- children: ReactNode;
18
- className?: string;
19
- };
20
- export type CardFooterProps = {
21
- children: ReactNode;
22
- className?: string;
3
+ ({ children, className, ...rest }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
+ Header: ({ children, className, ...rest }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
5
+ Body: ({ children, className, ...rest }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
6
+ Footer: ({ children, className, ...rest }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
23
7
  };
@@ -1,2 +1 @@
1
1
  export * from './wizard';
2
- export * from './wizard.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empreint/ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -26,7 +26,8 @@
26
26
  "dist"
27
27
  ],
28
28
  "publishConfig": {
29
- "access": "public"
29
+ "access": "public",
30
+ "provenance": true
30
31
  },
31
32
  "author": {
32
33
  "name": "Vincent Graul",
@@ -37,6 +38,7 @@
37
38
  "lint": "biome lint",
38
39
  "test": "vitest run",
39
40
  "build": "vite build",
41
+ "build-storybook": "storybook build",
40
42
  "changeset": "changeset",
41
43
  "release": "bun run build && changeset publish",
42
44
  "prepare": "husky"
@@ -57,6 +59,7 @@
57
59
  "@commitlint/cli": "^20.5.3",
58
60
  "@commitlint/config-conventional": "^20.5.3",
59
61
  "@storybook/addon-a11y": "^10.3.6",
62
+ "@storybook/addon-docs": "^10.3.6",
60
63
  "@storybook/addon-vitest": "^10.3.6",
61
64
  "@storybook/react": "^10.3.6",
62
65
  "@storybook/react-vite": "^10.3.6",
@@ -71,6 +74,7 @@
71
74
  "playwright": "^1.59.1",
72
75
  "react": "^19.2.5",
73
76
  "react-dom": "^19.2.5",
77
+ "remark-gfm": "^4.0.1",
74
78
  "storybook": "^10.3.6",
75
79
  "typescript": "^6.0.3",
76
80
  "vite": "^8.0.10",
@@ -1,8 +0,0 @@
1
- export type StepProps = {
2
- step: number;
3
- totalSteps: number;
4
- onPreviousStep: () => void;
5
- onNextStep: () => void;
6
- isFirstStep: boolean;
7
- isLastStep: boolean;
8
- };