@knapsack/sandbox-components 4.65.4--canary.4280.27cfc07.0 → 4.65.4
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -0
- package/dist/react/card.d.ts +2 -2
- package/dist/react/card.d.ts.map +1 -1
- package/dist/react/card.js +2 -2
- package/dist/react/card.js.map +1 -1
- package/package.json +7 -7
- package/src/react/card.tsx +4 -2
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
# v4.65.4 (Fri Jun 21 2024)
|
2
|
+
|
3
|
+
#### 🐛 Bug Fix
|
4
|
+
|
5
|
+
- KSP-5208: add children to ks-sandbox card component [#4286](https://github.com/knapsack-labs/app-monorepo/pull/4286) ([@brittanysmart](https://github.com/brittanysmart))
|
6
|
+
- Update card.css ([@GormanDesign](https://github.com/GormanDesign))
|
7
|
+
- Update grid.css ([@GormanDesign](https://github.com/GormanDesign))
|
8
|
+
- Update grid.tsx ([@GormanDesign](https://github.com/GormanDesign))
|
9
|
+
|
10
|
+
#### 🏠 Internal
|
11
|
+
|
12
|
+
- adds additional check for if the bounding box is undefined [#4293](https://github.com/knapsack-labs/app-monorepo/pull/4293) ([@mabry1985](https://github.com/mabry1985))
|
13
|
+
- update sandbox grid component [#4273](https://github.com/knapsack-labs/app-monorepo/pull/4273) ([@GormanDesign](https://github.com/GormanDesign))
|
14
|
+
|
15
|
+
#### Authors: 3
|
16
|
+
|
17
|
+
- Brittany Smart ([@brittanysmart](https://github.com/brittanysmart))
|
18
|
+
- Josh Mabry ([@mabry1985](https://github.com/mabry1985))
|
19
|
+
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
20
|
+
|
21
|
+
---
|
22
|
+
|
1
23
|
# v4.65.3 (Tue Jun 11 2024)
|
2
24
|
|
3
25
|
#### 🐛 Bug Fix
|
package/dist/react/card.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
2
2
|
interface CardProps {
|
3
3
|
title?: string;
|
4
4
|
description?: string;
|
5
5
|
imgUrl?: string;
|
6
6
|
}
|
7
|
-
export declare const Card: React.FC<CardProps
|
7
|
+
export declare const Card: React.FC<PropsWithChildren<CardProps>>;
|
8
8
|
export {};
|
9
9
|
//# sourceMappingURL=card.d.ts.map
|
package/dist/react/card.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/react/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/react/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAsBvD,CAAC"}
|
package/dist/react/card.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import clsx from 'clsx';
|
3
|
-
export const Card = ({ title = 'Title', description = 'Description', imgUrl, }) => {
|
3
|
+
export const Card = ({ title = 'Title', description = 'Description', imgUrl, children, }) => {
|
4
4
|
return (_jsxs("aside", { className: clsx({
|
5
5
|
card: true,
|
6
|
-
}), children: [imgUrl && _jsx("img", { src: imgUrl, alt: "Card" }), _jsxs("div", { className: "card-content", children: [title && _jsx("header", { children: title }), description && (_jsx("p", { className: "card-content--description", children: description }))] })] }));
|
6
|
+
}), children: [imgUrl && _jsx("img", { src: imgUrl, alt: "Card" }), _jsxs("div", { className: "card-content", children: [title && _jsx("header", { children: title }), description && (_jsx("p", { className: "card-content--description", children: description })), children] })] }));
|
7
7
|
};
|
8
8
|
//# sourceMappingURL=card.js.map
|
package/dist/react/card.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../src/react/card.tsx"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAQxB,MAAM,CAAC,MAAM,IAAI,
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../src/react/card.tsx"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAQxB,MAAM,CAAC,MAAM,IAAI,GAA2C,CAAC,EAC3D,KAAK,GAAG,OAAO,EACf,WAAW,GAAG,aAAa,EAC3B,MAAM,EACN,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,iBACE,SAAS,EAAE,IAAI,CAAC;YACd,IAAI,EAAE,IAAI;SACX,CAAC,aAED,MAAM,IAAI,cAAK,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,MAAM,GAAG,EAC1C,eAAK,SAAS,EAAC,cAAc,aAC1B,KAAK,IAAI,2BAAS,KAAK,GAAU,EACjC,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,2BAA2B,YAAE,WAAW,GAAK,CAC3D,EACA,QAAQ,IACL,IACA,CACT,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/sandbox-components",
|
3
3
|
"description": "",
|
4
|
-
"version": "4.65.4
|
4
|
+
"version": "4.65.4",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
7
7
|
"./css": "./dist/css/ks-sandbox-styles.css",
|
@@ -37,11 +37,11 @@
|
|
37
37
|
"vue": "^3.4.27"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@knapsack/eslint-config-starter": "4.65.4
|
41
|
-
"@knapsack/postcss-config-starter": "4.65.4
|
42
|
-
"@knapsack/prettier-config": "4.65.4
|
43
|
-
"@knapsack/sandbox-tokens": "4.65.4
|
44
|
-
"@knapsack/typescript-config-starter": "4.65.4
|
40
|
+
"@knapsack/eslint-config-starter": "4.65.4",
|
41
|
+
"@knapsack/postcss-config-starter": "4.65.4",
|
42
|
+
"@knapsack/prettier-config": "4.65.4",
|
43
|
+
"@knapsack/sandbox-tokens": "4.65.4",
|
44
|
+
"@knapsack/typescript-config-starter": "4.65.4",
|
45
45
|
"@types/node": "^20.12.12",
|
46
46
|
"@types/react": "^18.3.3",
|
47
47
|
"eslint": "^8.57.0",
|
@@ -59,5 +59,5 @@
|
|
59
59
|
"directory": "apps/ui/libs/sandbox-components",
|
60
60
|
"type": "git"
|
61
61
|
},
|
62
|
-
"gitHead": "
|
62
|
+
"gitHead": "8e93f7e2e08f3862e9e6ab92bbb27bdc8524baa6"
|
63
63
|
}
|
package/src/react/card.tsx
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
2
2
|
import clsx from 'clsx';
|
3
3
|
|
4
4
|
interface CardProps {
|
@@ -7,10 +7,11 @@ interface CardProps {
|
|
7
7
|
imgUrl?: string;
|
8
8
|
}
|
9
9
|
|
10
|
-
export const Card: React.FC<CardProps
|
10
|
+
export const Card: React.FC<PropsWithChildren<CardProps>> = ({
|
11
11
|
title = 'Title',
|
12
12
|
description = 'Description',
|
13
13
|
imgUrl,
|
14
|
+
children,
|
14
15
|
}) => {
|
15
16
|
return (
|
16
17
|
<aside
|
@@ -24,6 +25,7 @@ export const Card: React.FC<CardProps> = ({
|
|
24
25
|
{description && (
|
25
26
|
<p className="card-content--description">{description}</p>
|
26
27
|
)}
|
28
|
+
{children}
|
27
29
|
</div>
|
28
30
|
</aside>
|
29
31
|
);
|