@fpkit/acss 0.4.9 → 0.4.10
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/libs/index.cjs +26 -26
- package/libs/index.cjs.map +1 -1
- package/libs/index.d.cts +7 -0
- package/libs/index.d.ts +7 -0
- package/libs/index.js +2 -2
- package/libs/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/cards/README.md +80 -0
- package/src/components/cards/card.stories.tsx +3 -3
- package/src/components/cards/card.tsx +36 -0
|
@@ -86,6 +86,41 @@ export const Content = ({
|
|
|
86
86
|
|
|
87
87
|
Content.displayName = 'Content'
|
|
88
88
|
|
|
89
|
+
/*
|
|
90
|
+
* Footer component
|
|
91
|
+
*
|
|
92
|
+
* Renders a footer section for the Card component using the UI component.
|
|
93
|
+
*
|
|
94
|
+
* @param {Object} props - Component props
|
|
95
|
+
* @param {ReactNode} props.children - Footer content
|
|
96
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
97
|
+
* @param {Object} [props.styles] - Inline styles
|
|
98
|
+
*
|
|
99
|
+
* @returns {ReactElement} Footer component
|
|
100
|
+
*/
|
|
101
|
+
export const Footer = ({
|
|
102
|
+
children,
|
|
103
|
+
className,
|
|
104
|
+
styles,
|
|
105
|
+
...props
|
|
106
|
+
}: React.PropsWithChildren<{
|
|
107
|
+
className?: string
|
|
108
|
+
styles?: React.CSSProperties
|
|
109
|
+
}>) => {
|
|
110
|
+
return (
|
|
111
|
+
<UI
|
|
112
|
+
as="section"
|
|
113
|
+
className={`card-footer ${className || ''}`}
|
|
114
|
+
styles={styles}
|
|
115
|
+
{...props}
|
|
116
|
+
>
|
|
117
|
+
{children}
|
|
118
|
+
</UI>
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
Footer.displayName = 'Footer'
|
|
123
|
+
|
|
89
124
|
/*
|
|
90
125
|
* Card component
|
|
91
126
|
*
|
|
@@ -127,3 +162,4 @@ export default Card
|
|
|
127
162
|
Card.displayName = 'Card'
|
|
128
163
|
Card.Title = Title
|
|
129
164
|
Card.Content = Content
|
|
165
|
+
Card.Footer = Footer
|