uibee 3.0.1 → 3.1.1
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/dist/src/components/index.d.ts +5 -5
- package/dist/src/components/index.js +16 -13
- package/dist/style.css +3 -0
- package/package.json +1 -1
- package/src/components/container/{glassCard.tsx → card.tsx} +3 -3
- package/src/components/container/statCard.tsx +3 -3
- package/src/components/index.ts +1 -1
- package/src/components/inputs/searchInput.tsx +13 -9
|
@@ -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 };
|
|
@@ -825,14 +825,17 @@ function SearchInput({ placeholder = "Search...", variant = "default" }) {
|
|
|
825
825
|
className: "pl-10 pr-4 py-2 border-b outline-none w-64"
|
|
826
826
|
})]
|
|
827
827
|
});
|
|
828
|
-
else return /* @__PURE__ */ jsx(
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
828
|
+
else return /* @__PURE__ */ jsx("div", {
|
|
829
|
+
className: "w-fit min-w-48",
|
|
830
|
+
children: /* @__PURE__ */ jsx(Input, {
|
|
831
|
+
name: "search",
|
|
832
|
+
icon: /* @__PURE__ */ jsx(Search, { className: "w-5 h-5" }),
|
|
833
|
+
value: searchValue,
|
|
834
|
+
onChange: handleChange,
|
|
835
|
+
onKeyDown: handleKeyDown,
|
|
836
|
+
onBlur: () => handleSearch(searchValue),
|
|
837
|
+
placeholder
|
|
838
|
+
})
|
|
836
839
|
});
|
|
837
840
|
}
|
|
838
841
|
//#endregion
|
|
@@ -2257,10 +2260,10 @@ function LeftBarPanel({ color, children, className = "" }) {
|
|
|
2257
2260
|
});
|
|
2258
2261
|
}
|
|
2259
2262
|
//#endregion
|
|
2260
|
-
//#region src/components/container/
|
|
2261
|
-
function
|
|
2263
|
+
//#region src/components/container/card.tsx
|
|
2264
|
+
function Card({ children, className = "" }) {
|
|
2262
2265
|
return /* @__PURE__ */ jsx("section", {
|
|
2263
|
-
className: `rounded-xl border border-login-500/30 bg-login-
|
|
2266
|
+
className: `rounded-xl border border-login-500/30 bg-login-500/50 ${className}`,
|
|
2264
2267
|
children
|
|
2265
2268
|
});
|
|
2266
2269
|
}
|
|
@@ -2286,7 +2289,7 @@ function IconBubble({ icon: Icon, tone = "slate", size = "md" }) {
|
|
|
2286
2289
|
//#endregion
|
|
2287
2290
|
//#region src/components/container/statCard.tsx
|
|
2288
2291
|
function StatCard({ label, value, icon, tone = "slate" }) {
|
|
2289
|
-
return /* @__PURE__ */ jsxs(
|
|
2292
|
+
return /* @__PURE__ */ jsxs(Card, {
|
|
2290
2293
|
className: "p-4",
|
|
2291
2294
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
2292
2295
|
className: "mb-3 flex items-center gap-3",
|
|
@@ -3241,4 +3244,4 @@ function Toggle({ value, onChange, left, right }) {
|
|
|
3241
3244
|
});
|
|
3242
3245
|
}
|
|
3243
3246
|
//#endregion
|
|
3244
|
-
export { Accordion, AccordionGroup, Alert, Button, Checkbox, ConfirmPopup, Footer,
|
|
3247
|
+
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/dist/style.css
CHANGED
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'
|
|
@@ -59,14 +59,18 @@ export default function SearchInput({ placeholder = 'Search...', variant = 'defa
|
|
|
59
59
|
</div>
|
|
60
60
|
)
|
|
61
61
|
} else {
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
return (
|
|
63
|
+
<div className='w-fit min-w-48'>
|
|
64
|
+
<Input
|
|
65
|
+
name='search'
|
|
66
|
+
icon={<Search className='w-5 h-5' />}
|
|
67
|
+
value={searchValue}
|
|
68
|
+
onChange={handleChange}
|
|
69
|
+
onKeyDown={handleKeyDown}
|
|
70
|
+
onBlur={() => handleSearch(searchValue)}
|
|
71
|
+
placeholder={placeholder}
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
74
|
+
)
|
|
71
75
|
}
|
|
72
76
|
}
|