@sakura-ui/sakura-ui 0.1.19 → 0.1.20

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sakura-ui/sakura-ui",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "keywords": [],
5
5
  "author": "glassonion1",
6
6
  "homepage": "https://github.com/glassonion1/sakura-ui",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sakura-ui/core",
3
- "version": "0.1.33",
3
+ "version": "0.1.36",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "glassonion1",
@@ -23,8 +23,6 @@ export const Card = (props: CardProps) => {
23
23
  sm:rounded-3xl
24
24
  text-sumi-900
25
25
  overflow-hidden
26
- px-6
27
- py-4
28
26
  flex flex-col
29
27
  gap-2
30
28
  `
@@ -51,8 +49,6 @@ export const CardImg = (props: CardImgProps) => {
51
49
 
52
50
  const style = `
53
51
  object-cover
54
- -px-6
55
- -py-4
56
52
  `
57
53
 
58
54
  return <img id={ctx.id} className={cx(style, className)} {...restProps} />
@@ -69,6 +65,9 @@ export const CardHeader = (props: CardHeaderProps) => {
69
65
  const style = `
70
66
  text-base
71
67
  font-medium
68
+ first:pt-4
69
+ last:pb-4
70
+ px-6
72
71
  `
73
72
 
74
73
  return (
@@ -85,6 +84,9 @@ export const CardBody = (props: CardBodyProps) => {
85
84
 
86
85
  const style = `
87
86
  text-base-sm
87
+ first:pt-4
88
+ last:pb-4
89
+ px-6
88
90
  `
89
91
 
90
92
  return (
@@ -102,6 +104,9 @@ export const CardFooter = (props: CardFooterProps) => {
102
104
 
103
105
  const style = `
104
106
  text-base-sm
107
+ first:pt-4
108
+ last:pb-4
109
+ px-6
105
110
  `
106
111
 
107
112
  return (
@@ -1,7 +1,8 @@
1
1
  export { Button, type ButtonProps } from './Button'
2
- export { Card, CardHeader, CardBody, CardFooter } from './Card'
2
+ export { Card, CardImg, CardHeader, CardBody, CardFooter } from './Card'
3
3
  export type {
4
4
  CardProps,
5
+ CardImgProps,
5
6
  CardHeaderProps,
6
7
  CardBodyProps,
7
8
  CardFooterProps
@@ -1,6 +1,7 @@
1
1
  export {
2
2
  Button,
3
3
  Card,
4
+ CardImg,
4
5
  CardHeader,
5
6
  CardBody,
6
7
  CardFooter,
@@ -33,6 +34,7 @@ export {
33
34
  export type {
34
35
  ButtonProps,
35
36
  CardProps,
37
+ CardImgProps,
36
38
  CardHeaderProps,
37
39
  CardBodyProps,
38
40
  CardFooterProps,