@bonprix-ds/react-removed-item-placeholder 1.0.2 → 1.0.4

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.
@@ -5,8 +5,8 @@ import t from "@bonprix-ds/react-button";
5
5
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
6
6
  //#region src/RemovedItemPlaceholder.tsx
7
7
  var i = e({ slots: {
8
- root: "preflight w-full h-full flex flex-col px-8 py-19 items-center justify-center",
9
- label: "pb-3 typography-body1 text-clr-primary text-center"
8
+ root: "preflight py-19 flex h-full w-full flex-col items-center justify-center px-8",
9
+ label: "typography-body1 pb-3 text-center text-clr-primary"
10
10
  } }), a = ({ children: e, actionLabel: a, onClick: o }) => {
11
11
  let { root: s, label: c } = i();
12
12
  return /* @__PURE__ */ r("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"RemovedItemPlaceholder.js","names":[],"sources":["../../src/RemovedItemPlaceholder.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport Button from \"@bonprix-ds/react-button\";\n\nconst generateClasses = tv({\n slots: {\n root: \"preflight w-full h-full flex flex-col px-8 py-19 items-center justify-center\",\n label: \"pb-3 typography-body1 text-clr-primary text-center\",\n },\n});\n\nexport interface Props {\n /** A short text to be display in the placeholder. */\n children: string;\n /** The label for the action button. */\n actionLabel: string;\n /** Callback function, that is triggered when the action button is clicked. */\n onClick: () => void;\n}\n\nconst RemovedItemPlaceholder = ({ children, actionLabel, onClick }: Props) => {\n const { root, label } = generateClasses();\n\n return (\n <div className={root()}>\n <div className={label()}>{children}</div>\n <Button type=\"button\" variant=\"secondary\" onClick={onClick} contentWidth>\n {actionLabel}\n </Button>\n </div>\n );\n};\n\nexport default RemovedItemPlaceholder;\n"],"mappings":";;;;;;AAOA,IAAM,IAAkB,EAAG,EACzB,OAAO;CACL,MAAM;CACN,OAAO;AACT,EACF,CAAC,GAWK,KAA0B,EAAE,aAAU,gBAAa,iBAAqB;CAC5E,IAAM,EAAE,SAAM,aAAU,EAAgB;CAExC,OACE,kBAAC,OAAD;EAAK,WAAW,EAAK;EAArB,UAAA,CACE,kBAAC,OAAD;GAAK,WAAW,EAAM;GAAI;EAAc,CAAA,GACxC,kBAAC,GAAD;GAAQ,MAAK;GAAS,SAAQ;GAAqB;GAAS,cAAA;GACzD,UAAA;EACK,CAAA,CACL;;AAET"}
1
+ {"version":3,"file":"RemovedItemPlaceholder.js","names":["Button","generateClasses","tv","RemovedItemPlaceholder","root","label","actionLabel"],"sources":["../../src/RemovedItemPlaceholder.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport Button from \"@bonprix-ds/react-button\";\n\nconst generateClasses = tv({\n slots: {\n root: \"preflight py-19 flex h-full w-full flex-col items-center justify-center px-8\",\n label: \"typography-body1 pb-3 text-center text-clr-primary\",\n },\n});\n\nexport interface Props {\n /** A short text to be display in the placeholder. */\n children: string;\n /** The label for the action button. */\n actionLabel: string;\n /** Callback function, that is triggered when the action button is clicked. */\n onClick: () => void;\n}\n\nconst RemovedItemPlaceholder = ({ children, actionLabel, onClick }: Props) => {\n const { root, label } = generateClasses();\n\n return (\n <div className={root()}>\n <div className={label()}>{children}</div>\n <Button type=\"button\" variant=\"secondary\" onClick={onClick} contentWidth>\n {actionLabel}\n </Button>\n </div>\n );\n};\n\nexport default RemovedItemPlaceholder;\n"],"mappings":";;;;;;AAOA,IAAMC,IAAkBC,EAAG,EACzB,OAAO;CACL,MAAM;CACN,OAAO;AACT,EACF,CAAC,GAWKC,KAA0B,EAAE,aAAU,gBAAa,iBAAqB;CAC5E,IAAM,EAAE,SAAM,aAAUF,EAAgB;CAExC,OACE,kBAAC,OAAD;EAAK,WAAWG,EAAK;EAArB,UAAA,CACE,kBAAC,OAAD;GAAK,WAAWC,EAAM;GAAI;EAAc,CAAA,GACxC,kBAACL,GAAD;GAAQ,MAAK;GAAS,SAAQ;GAAqB;GAAS,cAAA;GACzD,UAAAM;EACK,CAAA,CACL;;AAET"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonprix-ds/react-removed-item-placeholder",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "RemovedItemPlaceholder component, implemented in React, for the Bonprix Design System.",
5
5
  "keywords": [],
6
6
  "license": "UNLICENSED",
@@ -32,18 +32,17 @@
32
32
  "provenance": true
33
33
  },
34
34
  "dependencies": {
35
- "@bonprix-ds/react-button": "1.1.1",
36
- "@bonprix-ds/utils": "0.2.2"
35
+ "@bonprix-ds/react-button": "1.1.3",
36
+ "@bonprix-ds/utils": "0.4.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/react": "19.3.0",
40
- "@vitejs/plugin-react": "6.1.1",
41
- "rollup-preserve-directives": "1.1.3",
42
- "vite": "8.3.0"
40
+ "vite": "8.3.2",
41
+ "@bonprix-ds/vite-config": "0.0.0"
43
42
  },
44
43
  "peerDependencies": {
45
- "react": "^19.3.0",
46
- "react-dom": "^19.3.0",
44
+ "react": "^19",
45
+ "react-dom": "^19",
47
46
  "tailwind-variants": "0.3.1"
48
47
  },
49
48
  "scripts": {