uibee 3.0.1 → 3.1.0
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.
|
@@ -408,15 +408,15 @@ declare function LeftBarPanel({
|
|
|
408
408
|
className
|
|
409
409
|
}: LeftBarPanelProps): import("react").JSX.Element;
|
|
410
410
|
//#endregion
|
|
411
|
-
//#region src/components/container/
|
|
412
|
-
type
|
|
411
|
+
//#region src/components/container/card.d.ts
|
|
412
|
+
type CardProps = {
|
|
413
413
|
children: ReactNode;
|
|
414
414
|
className?: string;
|
|
415
415
|
};
|
|
416
|
-
declare function
|
|
416
|
+
declare function Card({
|
|
417
417
|
children,
|
|
418
418
|
className
|
|
419
|
-
}:
|
|
419
|
+
}: CardProps): import("react").JSX.Element;
|
|
420
420
|
//#endregion
|
|
421
421
|
//#region src/components/container/iconBubble.d.ts
|
|
422
422
|
declare const tones: {
|
|
@@ -703,4 +703,4 @@ declare function Toggle<T>({
|
|
|
703
703
|
right
|
|
704
704
|
}: ToggleProps<T>): import("react").JSX.Element;
|
|
705
705
|
//#endregion
|
|
706
|
-
export { Accordion, AccordionGroup, Alert, type BilingualString, Button, Checkbox, ConfirmPopup, Footer, type FooterColumn, type FooterProps, type FooterSocialLink, type FooterSocialLink as LoginSocialLinkData,
|
|
706
|
+
export { Accordion, AccordionGroup, Alert, type BilingualString, Button, Card, Checkbox, ConfirmPopup, Footer, type FooterColumn, type FooterProps, type FooterSocialLink, type FooterSocialLink as LoginSocialLinkData, Highlight, IconBubble, Input, type Lang, LanguageToggle, LeftBarPanel, LoginPage, Logo, LogoSmall, MarkdownRender, MenuButton, MultiSelect, NavDropdown, NavItem, Navbar, PageContainer, Pagination, PulseDot, Radio, Range, SearchInput, Select, SeverityPill, StatCard, Switch, TabPanel, Table, Tabs, TagInput, Textarea, ThemeToggle, Toaster, Toggle, VersionTag, loginAddress, loginCopyright, loginEmail, loginSocialLinks, loginSponsor, toast };
|
|
@@ -2257,10 +2257,10 @@ function LeftBarPanel({ color, children, className = "" }) {
|
|
|
2257
2257
|
});
|
|
2258
2258
|
}
|
|
2259
2259
|
//#endregion
|
|
2260
|
-
//#region src/components/container/
|
|
2261
|
-
function
|
|
2260
|
+
//#region src/components/container/card.tsx
|
|
2261
|
+
function Card({ children, className = "" }) {
|
|
2262
2262
|
return /* @__PURE__ */ jsx("section", {
|
|
2263
|
-
className: `rounded-xl border border-login-500/30 bg-login-
|
|
2263
|
+
className: `rounded-xl border border-login-500/30 bg-login-500/50 ${className}`,
|
|
2264
2264
|
children
|
|
2265
2265
|
});
|
|
2266
2266
|
}
|
|
@@ -2286,7 +2286,7 @@ function IconBubble({ icon: Icon, tone = "slate", size = "md" }) {
|
|
|
2286
2286
|
//#endregion
|
|
2287
2287
|
//#region src/components/container/statCard.tsx
|
|
2288
2288
|
function StatCard({ label, value, icon, tone = "slate" }) {
|
|
2289
|
-
return /* @__PURE__ */ jsxs(
|
|
2289
|
+
return /* @__PURE__ */ jsxs(Card, {
|
|
2290
2290
|
className: "p-4",
|
|
2291
2291
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
2292
2292
|
className: "mb-3 flex items-center gap-3",
|
|
@@ -3241,4 +3241,4 @@ function Toggle({ value, onChange, left, right }) {
|
|
|
3241
3241
|
});
|
|
3242
3242
|
}
|
|
3243
3243
|
//#endregion
|
|
3244
|
-
export { Accordion, AccordionGroup, Alert, Button, Checkbox, ConfirmPopup, Footer,
|
|
3244
|
+
export { Accordion, AccordionGroup, Alert, Button, Card, Checkbox, ConfirmPopup, Footer, Highlight, IconBubble, Input, LanguageToggle, LeftBarPanel, LoginPage, Logo, LogoSmall, MarkdownRender, MenuButton, MultiSelect, NavDropdown, NavItem, Navbar, PageContainer, Pagination, PulseDot, Radio, Range, SearchInput, Select, SeverityPill, StatCard, Switch, TabPanel, Table, Tabs, TagInput, Textarea, ThemeToggle, Toaster, Toggle, VersionTag, loginAddress, loginCopyright, loginEmail, loginSocialLinks, loginSponsor, toast };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ReactNode } from 'react'
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type CardProps = {
|
|
4
4
|
children: ReactNode
|
|
5
5
|
className?: string
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export default function
|
|
8
|
+
export default function Card({ children, className = '' }: CardProps) {
|
|
9
9
|
return (
|
|
10
|
-
<section className={`rounded-xl border border-login-500/30 bg-login-
|
|
10
|
+
<section className={`rounded-xl border border-login-500/30 bg-login-500/50 ${className}`}>
|
|
11
11
|
{children}
|
|
12
12
|
</section>
|
|
13
13
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ElementType } from 'react'
|
|
2
|
-
import
|
|
2
|
+
import Card from './card'
|
|
3
3
|
import IconBubble, { type IconBubbleTone } from './iconBubble'
|
|
4
4
|
|
|
5
5
|
type StatCardProps = {
|
|
@@ -11,7 +11,7 @@ type StatCardProps = {
|
|
|
11
11
|
|
|
12
12
|
export default function StatCard({ label, value, icon, tone = 'slate' }: StatCardProps) {
|
|
13
13
|
return (
|
|
14
|
-
<
|
|
14
|
+
<Card className='p-4'>
|
|
15
15
|
<div className='mb-3 flex items-center gap-3'>
|
|
16
16
|
<IconBubble icon={icon} tone={tone} />
|
|
17
17
|
<span className='text-sm font-medium text-login-200'>{label}</span>
|
|
@@ -19,6 +19,6 @@ export default function StatCard({ label, value, icon, tone = 'slate' }: StatCar
|
|
|
19
19
|
<div className='truncate text-lg font-semibold text-login-50' title={value}>
|
|
20
20
|
{value}
|
|
21
21
|
</div>
|
|
22
|
-
</
|
|
22
|
+
</Card>
|
|
23
23
|
)
|
|
24
24
|
}
|
package/src/components/index.ts
CHANGED
|
@@ -34,7 +34,7 @@ export type { LoginSocialLinkData } from './footer/loginContent'
|
|
|
34
34
|
export { default as PageContainer} from './container/page'
|
|
35
35
|
export { default as Highlight } from './container/highlight'
|
|
36
36
|
export { default as LeftBarPanel } from './container/leftBarPanel'
|
|
37
|
-
export { default as
|
|
37
|
+
export { default as Card } from './container/card'
|
|
38
38
|
export { default as IconBubble } from './container/iconBubble'
|
|
39
39
|
export { default as StatCard } from './container/statCard'
|
|
40
40
|
export { Tabs, TabPanel } from './container/tabs'
|