@popgrids/ui 0.0.36 → 0.0.38
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/index.cjs +84 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +85 -4
- package/dist/index.js.map +1 -1
- package/dist/input-status.cjs +97 -0
- package/dist/input-status.cjs.map +1 -0
- package/dist/input-status.d.cts +30 -0
- package/dist/input-status.d.ts +30 -0
- package/dist/input-status.js +95 -0
- package/dist/input-status.js.map +1 -0
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tag.cjs +2 -2
- package/dist/tag.cjs.map +1 -1
- package/dist/tag.js +2 -2
- package/dist/tag.js.map +1 -1
- package/package.json +11 -1
package/dist/index.d.cts
CHANGED
|
@@ -10,6 +10,7 @@ export { D as DropdownMenu, a as DropdownMenuCheckboxItem, b as DropdownMenuCont
|
|
|
10
10
|
export { Footer } from './footer.cjs';
|
|
11
11
|
export { Input } from './input.cjs';
|
|
12
12
|
export { InputGroup, InputGroupAddon, InputGroupAddonAlign, InputGroupAddonProps, InputGroupButton, InputGroupButtonProps, InputGroupButtonSize, InputGroupInput, InputGroupInputProps, InputGroupProps, InputGroupText, InputGroupTextProps, InputGroupTextarea, InputGroupTextareaProps } from './input-group.cjs';
|
|
13
|
+
export { InputStatus, InputStatusProps, InputStatusTheme, InputStatusVariant } from './input-status.cjs';
|
|
13
14
|
export { Label } from './label.cjs';
|
|
14
15
|
export { Loader, LoaderProps } from './loader.cjs';
|
|
15
16
|
export { Logo, LogoProps, LogoTheme, LogoVariant } from './logo.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { D as DropdownMenu, a as DropdownMenuCheckboxItem, b as DropdownMenuCont
|
|
|
10
10
|
export { Footer } from './footer.js';
|
|
11
11
|
export { Input } from './input.js';
|
|
12
12
|
export { InputGroup, InputGroupAddon, InputGroupAddonAlign, InputGroupAddonProps, InputGroupButton, InputGroupButtonProps, InputGroupButtonSize, InputGroupInput, InputGroupInputProps, InputGroupProps, InputGroupText, InputGroupTextProps, InputGroupTextarea, InputGroupTextareaProps } from './input-group.js';
|
|
13
|
+
export { InputStatus, InputStatusProps, InputStatusTheme, InputStatusVariant } from './input-status.js';
|
|
13
14
|
export { Label } from './label.js';
|
|
14
15
|
export { Loader, LoaderProps } from './loader.js';
|
|
15
16
|
export { Logo, LogoProps, LogoTheme, LogoVariant } from './logo.js';
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useRender } from '@base-ui/react/use-render';
|
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { Button as Button$1 } from '@base-ui/react/button';
|
|
9
9
|
import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
|
|
10
|
-
import { Check, XClose, ChevronRight, InfoCircle } from '@untitledui/icons';
|
|
10
|
+
import { Check, XClose, ChevronRight, ThumbsDown, SlashCircle01, MessageAlertSquare, CheckCircle, ThumbsUp, Hourglass03, ChevronUp, ChevronDown, InfoCircle } from '@untitledui/icons';
|
|
11
11
|
import { Dialog } from '@base-ui/react/dialog';
|
|
12
12
|
import { Menu } from '@base-ui/react/menu';
|
|
13
13
|
import { Input as Input$1 } from '@base-ui/react/input';
|
|
@@ -1464,6 +1464,87 @@ function InputGroupTextarea({ className, ...props }) {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
);
|
|
1466
1466
|
}
|
|
1467
|
+
var inputStatusVariants = cva(
|
|
1468
|
+
"inline-flex h-10 min-w-[54px] cursor-pointer items-stretch rounded-sm border-0 bg-transparent p-0 outline-none transition-colors focus-visible:ring-[3px] focus-visible:ring-ring/60 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
1469
|
+
{
|
|
1470
|
+
variants: {
|
|
1471
|
+
theme: {
|
|
1472
|
+
approve: "text-success-700 dark:text-success-200",
|
|
1473
|
+
publish: "text-success-700 dark:text-success-200",
|
|
1474
|
+
feedback: "text-success-700 dark:text-success-200",
|
|
1475
|
+
flagged: "text-warning-700 dark:text-warning-200",
|
|
1476
|
+
review: "text-warning-700 dark:text-warning-200",
|
|
1477
|
+
delete: "text-error-600 dark:text-error-300",
|
|
1478
|
+
blocked: "text-error-600 dark:text-error-300",
|
|
1479
|
+
reject: "text-error-600 dark:text-error-300"
|
|
1480
|
+
},
|
|
1481
|
+
variant: {
|
|
1482
|
+
community: "",
|
|
1483
|
+
content: ""
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
defaultVariants: {
|
|
1487
|
+
theme: "approve",
|
|
1488
|
+
variant: "community"
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
);
|
|
1492
|
+
var inputStatusInnerVariants = cva(
|
|
1493
|
+
"flex flex-1 items-center gap-0.5 overflow-hidden rounded-sm py-2.5 pr-1.5 pl-[10px]",
|
|
1494
|
+
{
|
|
1495
|
+
variants: {
|
|
1496
|
+
theme: {
|
|
1497
|
+
approve: "bg-success-100 dark:bg-success-200/16",
|
|
1498
|
+
publish: "bg-success-100 dark:bg-success-200/16",
|
|
1499
|
+
feedback: "bg-success-100 dark:bg-success-200/16",
|
|
1500
|
+
flagged: "bg-warning-100 dark:bg-warning-200/16",
|
|
1501
|
+
review: "bg-warning-100 dark:bg-warning-200/16",
|
|
1502
|
+
delete: "bg-error-100 dark:bg-error-300/16",
|
|
1503
|
+
blocked: "bg-error-100 dark:bg-error-300/16",
|
|
1504
|
+
reject: "bg-error-100 dark:bg-error-300/16"
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
defaultVariants: {
|
|
1508
|
+
theme: "approve"
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
);
|
|
1512
|
+
var STATUS_ICON = {
|
|
1513
|
+
flagged: Hourglass03,
|
|
1514
|
+
review: Hourglass03,
|
|
1515
|
+
approve: ThumbsUp,
|
|
1516
|
+
publish: CheckCircle,
|
|
1517
|
+
feedback: MessageAlertSquare,
|
|
1518
|
+
delete: ThumbsDown,
|
|
1519
|
+
blocked: SlashCircle01,
|
|
1520
|
+
reject: ThumbsDown
|
|
1521
|
+
};
|
|
1522
|
+
function InputStatus({
|
|
1523
|
+
className,
|
|
1524
|
+
theme = "approve",
|
|
1525
|
+
variant = "community",
|
|
1526
|
+
open = false,
|
|
1527
|
+
"aria-expanded": ariaExpanded,
|
|
1528
|
+
type = "button",
|
|
1529
|
+
...props
|
|
1530
|
+
}) {
|
|
1531
|
+
const Icon = STATUS_ICON[theme];
|
|
1532
|
+
const expanded = ariaExpanded !== void 0 ? ariaExpanded : open;
|
|
1533
|
+
return /* @__PURE__ */ jsx(
|
|
1534
|
+
Button$1,
|
|
1535
|
+
{
|
|
1536
|
+
"data-slot": "input-status",
|
|
1537
|
+
type,
|
|
1538
|
+
"aria-expanded": expanded,
|
|
1539
|
+
className: cn(inputStatusVariants({ theme, variant }), className),
|
|
1540
|
+
...props,
|
|
1541
|
+
children: /* @__PURE__ */ jsxs("span", { className: inputStatusInnerVariants({ theme }), children: [
|
|
1542
|
+
/* @__PURE__ */ jsx(Icon, { className: "size-5", "aria-hidden": true }),
|
|
1543
|
+
open ? /* @__PURE__ */ jsx(ChevronUp, { className: "size-4", "aria-hidden": true }) : /* @__PURE__ */ jsx(ChevronDown, { className: "size-4", "aria-hidden": true })
|
|
1544
|
+
] })
|
|
1545
|
+
}
|
|
1546
|
+
);
|
|
1547
|
+
}
|
|
1467
1548
|
function Label({ className, render, ...props }) {
|
|
1468
1549
|
const defaultProps = {
|
|
1469
1550
|
"data-slot": "label",
|
|
@@ -1904,8 +1985,8 @@ var tagVariants = cva(
|
|
|
1904
1985
|
{
|
|
1905
1986
|
variants: {
|
|
1906
1987
|
selected: {
|
|
1907
|
-
false: "text-primary ring ring-primary ring-offset-0 focus-visible:bg-primary focus-visible:text-primary",
|
|
1908
|
-
true: "bg-primary text-primary-foreground dark:text-primary-foreground focus-visible:bg-primary focus-visible:text-primary-foreground dark:focus-visible:bg-primary dark:focus-visible:text-primary-foreground"
|
|
1988
|
+
false: "text-primary dark:text-primary-foreground ring ring-primary dark:ring-1 dark:ring-primary-foreground ring-offset-0 focus-visible:bg-primary focus-visible:text-primary",
|
|
1989
|
+
true: "bg-primary text-primary-foreground dark:ring-1 dark:ring-primary-foreground dark:bg-primary-foreground/5 dark:text-primary-foreground focus-visible:bg-primary focus-visible:text-primary-foreground dark:focus-visible:bg-primary dark:focus-visible:text-primary-foreground"
|
|
1909
1990
|
},
|
|
1910
1991
|
interactive: {
|
|
1911
1992
|
false: null,
|
|
@@ -2041,6 +2122,6 @@ function TemplateHeader({ className, image }) {
|
|
|
2041
2122
|
);
|
|
2042
2123
|
}
|
|
2043
2124
|
|
|
2044
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, BannerNotification, Button, ButtonLink, Checkbox, ContentBlock, DefaultHeader, DialogRoot as Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogViewport, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Footer, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, Loader, Logo, NotificationBadge, SectionFlourish, SectionHeader, Tag, TemplateHeader, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
2125
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, BannerNotification, Button, ButtonLink, Checkbox, ContentBlock, DefaultHeader, DialogRoot as Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DialogViewport, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Footer, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputStatus, Label, Loader, Logo, NotificationBadge, SectionFlourish, SectionHeader, Tag, TemplateHeader, Textarea, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
2045
2126
|
//# sourceMappingURL=index.js.map
|
|
2046
2127
|
//# sourceMappingURL=index.js.map
|