Skip to content

Commit 272aa08

Browse files
committed
Update Card and Box typing
1 parent a679ca1 commit 272aa08

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

docs/pages/components/cards.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default Layout({...meta})
77

88
`Card` is used to contain information together. There are multiple ways to customize the content within the card. Cards are 100% wide unless otherwise stated.
99

10-
For information on Card style and usage guidelines, check out [Card Design Guidelines](/design/card).
10+
For information on Card style and usage guidelines, check out [Card Design Guidelines](/design/cards).
1111

1212
#### Example
1313

docs/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -986,10 +986,10 @@
986986
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed"
987987
integrity sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==
988988

989-
"@hack4impact-uiuc/bridge@^1.2.3":
990-
version "1.2.2"
991-
resolved "https://registry.yarnpkg.com/@hack4impact-uiuc/bridge/-/bridge-1.2.2.tgz#652b0d80943a99340a5ba535b92176e5d8472452"
992-
integrity sha512-J2UT2JLxk25YgcecLXoqPS9fhB5ZNJjXTwmESpKhUbfOHwdYHHAvPBe/qiTDUcNc5cHADw/1zaQ5+un1V0wjgQ==
989+
"@hack4impact-uiuc/bridge@^1.2.5":
990+
version "1.2.5"
991+
resolved "https://registry.yarnpkg.com/@hack4impact-uiuc/bridge/-/bridge-1.2.5.tgz#dc9d799938c2bddedc277e6618d43cf2f293d5ab"
992+
integrity sha512-C7id+SlAJluaXpM11EueRauX/ovRdWY8aXo0hEChBQhUO7Gj3bMnu1Gm9WjR2SW9tKr/WwnrO9PyWVqIHVlpeA==
993993
dependencies:
994994
"@styled-system/prop-types" "^5.1.5"
995995
"@styled-system/theme-get" "^5.1.2"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hack4impact-uiuc/bridge",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"description": "Hack4Impact UIUC's Design System + React Component library",
55
"main": "dist/index.js",
66
"author": "Timothy Ko <[email protected]>",

src/components/Box/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FlexboxProps, Theme } from "styled-system";
22
import { FunctionComponent } from "react";
3-
import { BorderProps, CommonProps } from "../../utils/common";
3+
import { BordersProps, CommonProps } from "../../utils/common";
44

55
export interface BoxProps extends BordersProps, CommonProps, FlexboxProps {
66
theme?: Theme;

src/components/Card/index.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { FunctionComponent, HTMLProps } from "react";
22
import { Theme } from "styled-system";
33
import { CommonProps, TypographyProps } from "../../utils/common";
4-
import { BoxProps } from "../Box";
4+
import { FlexProps } from "../Flex";
55

6-
interface CardWrapperProps extends BoxProps {
7-
theme: Theme;
6+
interface CardWrapperProps extends FlexProps {
7+
theme?: Theme;
88
}
99

1010
// TODO: is there better naming for this?
1111
interface CardTypographyProps extends CommonProps, TypographyProps {
12-
theme: Theme;
12+
theme?: Theme;
1313
}
1414

1515
export interface CardProps extends CardWrapperProps {}
@@ -21,7 +21,7 @@ export interface CardContentProps extends CardWrapperProps {}
2121
export interface CardFooterProps extends CardWrapperProps {}
2222

2323
export interface CardImageProps extends HTMLProps<HTMLImageElement> {
24-
theme: Theme;
24+
theme?: Theme;
2525
}
2626

2727
export interface CardOverlineProps extends CardTypographyProps {}

0 commit comments

Comments
 (0)