@terreno/ui 0.0.14 → 0.0.15
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/README.md +1 -1
- package/dist/Card.d.ts +1 -1
- package/dist/Card.js +2 -2
- package/dist/Card.js.map +1 -1
- package/package.json +1 -1
- package/src/Card.tsx +1 -2
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ differentiating based on screen size and format.
|
|
|
56
56
|
Check out the demo app for easily seeing how the UIs work in iOS/Android/Web
|
|
57
57
|
in apps/demo.
|
|
58
58
|
|
|
59
|
-
You can see the [web demo here](https://terreno-
|
|
59
|
+
You can see the [web demo here](https://terreno-demo.netlify.app)
|
|
60
60
|
|
|
61
61
|
# Installation
|
|
62
62
|
|
package/dist/Card.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { BoxProps } from "./Common";
|
|
2
|
-
export declare const Card: ({ children, color, padding,
|
|
2
|
+
export declare const Card: ({ children, color, padding, ...rest }: BoxProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Card.js
CHANGED
|
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { Box } from "./Box";
|
|
14
14
|
export const Card = (_a) => {
|
|
15
|
-
var { children, color = "base", padding = 4
|
|
16
|
-
return (_jsx(Box, Object.assign({ color: color, direction: "column", display: "flex", padding: padding, rounding: "md", shadow: true
|
|
15
|
+
var { children, color = "base", padding = 4 } = _a, rest = __rest(_a, ["children", "color", "padding"]);
|
|
16
|
+
return (_jsx(Box, Object.assign({ color: color, direction: "column", display: "flex", padding: padding, rounding: "md", shadow: true }, rest, { children: children })));
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=Card.js.map
|
package/dist/Card.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../src/Card.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../src/Card.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAA0D,EAAE,EAAE;QAA9D,EAAC,QAAQ,EAAE,KAAK,GAAG,MAAM,EAAE,OAAO,GAAG,CAAC,OAAoB,EAAf,IAAI,cAA/C,gCAAgD,CAAD;IAClE,OAAO,CACL,KAAC,GAAG,kBACF,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAC,IAAI,EACb,MAAM,UACF,IAAI,cAEP,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/Card.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {Box} from "./Box";
|
|
2
2
|
import type {BoxProps} from "./Common";
|
|
3
3
|
|
|
4
|
-
export const Card = ({children, color = "base", padding = 4,
|
|
4
|
+
export const Card = ({children, color = "base", padding = 4, ...rest}: BoxProps) => {
|
|
5
5
|
return (
|
|
6
6
|
<Box
|
|
7
7
|
color={color}
|
|
@@ -10,7 +10,6 @@ export const Card = ({children, color = "base", padding = 4, width, ...rest}: Bo
|
|
|
10
10
|
padding={padding}
|
|
11
11
|
rounding="md"
|
|
12
12
|
shadow
|
|
13
|
-
width={width}
|
|
14
13
|
{...rest}
|
|
15
14
|
>
|
|
16
15
|
{children}
|