@stackshift-ui/card 7.0.0-beta.3 → 7.0.0-beta.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/card",
3
3
  "description": "",
4
- "version": "7.0.0-beta.3",
4
+ "version": "7.0.0-beta.5",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -35,11 +35,11 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "classnames": "^2.5.1",
38
- "@stackshift-ui/scripts": "6.1.0-beta.2",
39
- "@stackshift-ui/system": "6.1.0-beta.3"
38
+ "@stackshift-ui/scripts": "7.0.0-beta.4",
39
+ "@stackshift-ui/system": "7.0.0-beta.5"
40
40
  },
41
41
  "peerDependencies": {
42
- "@stackshift-ui/system": ">=6.1.0-beta.3",
42
+ "@stackshift-ui/system": ">=7.0.0-beta.5",
43
43
  "@types/react": "16.8 - 19",
44
44
  "next": "10 - 14",
45
45
  "react": "16.8 - 19",
package/dist/card.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
- declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
- declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
5
- declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
6
- declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
- declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
- export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
package/dist/card.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var D=Object.create;var i=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var x=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},m=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of v(t))!b.call(e,c)&&c!==r&&i(e,c,{get:()=>t[c],enumerable:!(n=y(t,c))||n.enumerable});return e};var g=(e,t,r)=>(r=e!=null?D(E(e)):{},m(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),w=e=>m(i({},"__esModule",{value:!0}),e);var A={};x(A,{Card:()=>T,CardContent:()=>N,CardDescription:()=>M,CardFooter:()=>u,CardHeader:()=>R,CardTitle:()=>L});module.exports=w(A);var o=g(require("react")),a=require("@stackshift-ui/system"),s=require("react/jsx-runtime"),d="Card",l="CardHeader",p="CardTitle",f="CardDescription",C="CardContent",H="CardFooter",T=o.forwardRef(({className:e,...t},r)=>{let{[d]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t})});T.displayName=d;var R=o.forwardRef(({className:e,...t},r)=>{let{[l]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",e),...t})});R.displayName=l;var L=o.forwardRef(({className:e,...t},r)=>{let{[p]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("text-2xl font-semibold leading-none tracking-tight",e),...t})});L.displayName=p;var M=o.forwardRef(({className:e,...t},r)=>{let{[f]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("text-sm text-muted-foreground",e),...t})});M.displayName=f;var N=o.forwardRef(({className:e,...t},r)=>{let{[C]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("p-6 pt-0",e),...t})});N.displayName=C;var u=o.forwardRef(({className:e,...t},r)=>{let{[H]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("flex items-center p-6 pt-0",e),...t})});u.displayName=H;0&&(module.exports={Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle});
package/dist/card.mjs DELETED
@@ -1 +0,0 @@
1
- import{a,b,c,d,e,f}from"./chunk-ZD3UMUBY.mjs";import"./chunk-3EYN2AKU.mjs";export{a as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle};
@@ -1 +0,0 @@
1
- var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(a,{get:(b,c)=>(typeof require!="undefined"?require:b)[c]}):a)(function(a){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var l=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(e=h(b,d))||e.enumerable});return a};var o=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c};
@@ -1,75 +0,0 @@
1
- // src/card.tsx
2
- import * as React from "react";
3
- import { cn, DefaultComponent, useStackShiftUIComponents } from "@stackshift-ui/system";
4
- import { jsx } from "react/jsx-runtime";
5
- var displayName = "Card";
6
- var displayNameHeader = "CardHeader";
7
- var displayNameTitle = "CardTitle";
8
- var displayNameDescription = "CardDescription";
9
- var displayNameContent = "CardContent";
10
- var displayNameFooter = "CardFooter";
11
- var Card = React.forwardRef(
12
- ({ className, ...props }, ref) => {
13
- const { [displayName]: Component = DefaultComponent } = useStackShiftUIComponents();
14
- return /* @__PURE__ */ jsx(
15
- Component,
16
- {
17
- ref,
18
- className: cn("rounded-lg border bg-card text-card-foreground shadow-sm", className),
19
- ...props
20
- }
21
- );
22
- }
23
- );
24
- Card.displayName = displayName;
25
- var CardHeader = React.forwardRef(
26
- ({ className, ...props }, ref) => {
27
- const { [displayNameHeader]: Component = DefaultComponent } = useStackShiftUIComponents();
28
- return /* @__PURE__ */ jsx(Component, { ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props });
29
- }
30
- );
31
- CardHeader.displayName = displayNameHeader;
32
- var CardTitle = React.forwardRef(
33
- ({ className, ...props }, ref) => {
34
- const { [displayNameTitle]: Component = DefaultComponent } = useStackShiftUIComponents();
35
- return /* @__PURE__ */ jsx(
36
- Component,
37
- {
38
- ref,
39
- className: cn("text-2xl font-semibold leading-none tracking-tight", className),
40
- ...props
41
- }
42
- );
43
- }
44
- );
45
- CardTitle.displayName = displayNameTitle;
46
- var CardDescription = React.forwardRef(
47
- ({ className, ...props }, ref) => {
48
- const { [displayNameDescription]: Component = DefaultComponent } = useStackShiftUIComponents();
49
- return /* @__PURE__ */ jsx(Component, { ref, className: cn("text-sm text-muted-foreground", className), ...props });
50
- }
51
- );
52
- CardDescription.displayName = displayNameDescription;
53
- var CardContent = React.forwardRef(
54
- ({ className, ...props }, ref) => {
55
- const { [displayNameContent]: Component = DefaultComponent } = useStackShiftUIComponents();
56
- return /* @__PURE__ */ jsx(Component, { ref, className: cn("p-6 pt-0", className), ...props });
57
- }
58
- );
59
- CardContent.displayName = displayNameContent;
60
- var CardFooter = React.forwardRef(
61
- ({ className, ...props }, ref) => {
62
- const { [displayNameFooter]: Component = DefaultComponent } = useStackShiftUIComponents();
63
- return /* @__PURE__ */ jsx(Component, { ref, className: cn("flex items-center p-6 pt-0", className), ...props });
64
- }
65
- );
66
- CardFooter.displayName = displayNameFooter;
67
-
68
- export {
69
- Card,
70
- CardHeader,
71
- CardTitle,
72
- CardDescription,
73
- CardContent,
74
- CardFooter
75
- };
@@ -1,37 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __commonJS = (cb, mod) => function __require2() {
14
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") {
18
- for (let key of __getOwnPropNames(from))
19
- if (!__hasOwnProp.call(to, key) && key !== except)
20
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
- mod
31
- ));
32
-
33
- export {
34
- __require,
35
- __commonJS,
36
- __toESM
37
- };
@@ -1 +0,0 @@
1
- import*as n from"react";import{cn as o,DefaultComponent as s,useStackShiftUIComponents as c}from"@stackshift-ui/system";import{jsx as i}from"react/jsx-runtime";var m="Card",d="CardHeader",l="CardTitle",p="CardDescription",f="CardContent",C="CardFooter",H=n.forwardRef(({className:e,...t},a)=>{let{[m]:r=s}=c();return i(r,{ref:a,className:o("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t})});H.displayName=m;var T=n.forwardRef(({className:e,...t},a)=>{let{[d]:r=s}=c();return i(r,{ref:a,className:o("flex flex-col space-y-1.5 p-6",e),...t})});T.displayName=d;var R=n.forwardRef(({className:e,...t},a)=>{let{[l]:r=s}=c();return i(r,{ref:a,className:o("text-2xl font-semibold leading-none tracking-tight",e),...t})});R.displayName=l;var L=n.forwardRef(({className:e,...t},a)=>{let{[p]:r=s}=c();return i(r,{ref:a,className:o("text-sm text-muted-foreground",e),...t})});L.displayName=p;var M=n.forwardRef(({className:e,...t},a)=>{let{[f]:r=s}=c();return i(r,{ref:a,className:o("p-6 pt-0",e),...t})});M.displayName=f;var N=n.forwardRef(({className:e,...t},a)=>{let{[C]:r=s}=c();return i(r,{ref:a,className:o("flex items-center p-6 pt-0",e),...t})});N.displayName=C;export{H as a,T as b,R as c,L as d,M as e,N as f};
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./card";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";var D=Object.create;var i=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var x=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},m=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of v(t))!b.call(e,c)&&c!==r&&i(e,c,{get:()=>t[c],enumerable:!(n=y(t,c))||n.enumerable});return e};var g=(e,t,r)=>(r=e!=null?D(E(e)):{},m(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),w=e=>m(i({},"__esModule",{value:!0}),e);var A={};x(A,{Card:()=>T,CardContent:()=>M,CardDescription:()=>L,CardFooter:()=>N,CardHeader:()=>R,CardTitle:()=>u});module.exports=w(A);var o=g(require("react")),a=require("@stackshift-ui/system"),s=require("react/jsx-runtime"),d="Card",l="CardHeader",p="CardTitle",f="CardDescription",C="CardContent",H="CardFooter",T=o.forwardRef(({className:e,...t},r)=>{let{[d]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t})});T.displayName=d;var R=o.forwardRef(({className:e,...t},r)=>{let{[l]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",e),...t})});R.displayName=l;var u=o.forwardRef(({className:e,...t},r)=>{let{[p]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("text-2xl font-semibold leading-none tracking-tight",e),...t})});u.displayName=p;var L=o.forwardRef(({className:e,...t},r)=>{let{[f]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("text-sm text-muted-foreground",e),...t})});L.displayName=f;var M=o.forwardRef(({className:e,...t},r)=>{let{[C]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("p-6 pt-0",e),...t})});M.displayName=C;var N=o.forwardRef(({className:e,...t},r)=>{let{[H]:n=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,s.jsx)(n,{ref:r,className:(0,a.cn)("flex items-center p-6 pt-0",e),...t})});N.displayName=H;0&&(module.exports={Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle});
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as e,b as o,c as r,d as t,e as c,f}from"./chunk-ZD3UMUBY.mjs";import"./chunk-3EYN2AKU.mjs";export{e as Card,c as CardContent,t as CardDescription,f as CardFooter,o as CardHeader,r as CardTitle};
@@ -1,2 +0,0 @@
1
- import '@testing-library/jest-dom';
2
- export {};