@popgrids/ui 0.0.22 → 0.0.24
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/checkbox.cjs +37 -0
- package/dist/checkbox.cjs.map +1 -0
- package/dist/checkbox.d.cts +8 -0
- package/dist/checkbox.d.ts +8 -0
- package/dist/checkbox.js +35 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/dialog.cjs +11 -11
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.js +11 -11
- package/dist/dialog.js.map +1 -1
- package/dist/index.cjs +35 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +35 -13
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +11 -1
package/dist/index.js
CHANGED
|
@@ -3,8 +3,9 @@ import { clsx } from 'clsx';
|
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import { Button as Button$1 } from '@base-ui/react/button';
|
|
6
|
+
import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
|
|
7
|
+
import { Check, XClose, ChevronRight, InfoCircle } from '@untitledui/icons';
|
|
6
8
|
import { Dialog } from '@base-ui/react/dialog';
|
|
7
|
-
import { XClose, ChevronRight, Check, InfoCircle } from '@untitledui/icons';
|
|
8
9
|
import { Menu } from '@base-ui/react/menu';
|
|
9
10
|
import { Input as Input$1 } from '@base-ui/react/input';
|
|
10
11
|
import { mergeProps } from '@base-ui/react/merge-props';
|
|
@@ -525,6 +526,27 @@ function ContentBlock({ className, children, title, subhead, cta }) {
|
|
|
525
526
|
children && /* @__PURE__ */ jsx("div", { className: "prose prose-base max-w-(--width-xl) pb-3", children })
|
|
526
527
|
] });
|
|
527
528
|
}
|
|
529
|
+
function Checkbox({ className, ...props }) {
|
|
530
|
+
return /* @__PURE__ */ jsx(
|
|
531
|
+
Checkbox$1.Root,
|
|
532
|
+
{
|
|
533
|
+
"data-slot": "checkbox",
|
|
534
|
+
className: cn(
|
|
535
|
+
"border-foreground dark:bg-input/30 dark:data-checked:bg-primary aria-invalid:aria-checked:border-primary aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 data-disabled:cursor-not-allowed data-disabled:opacity-50 aria-invalid:ring-3 data-checked:border-foreground data-checked:bg-foreground data-checked:text-background",
|
|
536
|
+
className
|
|
537
|
+
),
|
|
538
|
+
...props,
|
|
539
|
+
children: /* @__PURE__ */ jsx(
|
|
540
|
+
Checkbox$1.Indicator,
|
|
541
|
+
{
|
|
542
|
+
"data-slot": "checkbox-indicator",
|
|
543
|
+
className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
|
|
544
|
+
children: /* @__PURE__ */ jsx(Check, {})
|
|
545
|
+
}
|
|
546
|
+
)
|
|
547
|
+
}
|
|
548
|
+
);
|
|
549
|
+
}
|
|
528
550
|
function DialogRoot(props) {
|
|
529
551
|
return /* @__PURE__ */ jsx(Dialog.Root, { "data-slot": "dialog", ...props });
|
|
530
552
|
}
|
|
@@ -586,17 +608,6 @@ function DialogContent({
|
|
|
586
608
|
"data-slot": "dialog-content",
|
|
587
609
|
className: "group/popup pointer-events-none flex h-full max-h-full min-h-0 w-full max-w-full justify-center overflow-hidden transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0",
|
|
588
610
|
children: [
|
|
589
|
-
showCloseButton && /* @__PURE__ */ jsxs(
|
|
590
|
-
DialogClose,
|
|
591
|
-
{
|
|
592
|
-
className: cn("pointer-events-auto fixed top-[7px] z-50 transition-all", { "left-4": closePosition === "top-left", "right-4": closePosition === "top-right", "group-data-closed/popup:duration-pop-hover group-data-open/popup:duration-pop-hover group-data-open/popup:ease-pop-hover group-data-closed/popup:ease-out group-data-ending-style/popup:scale-[0.96] group-data-ending-style/popup:opacity-0 group-data-starting-style/popup:scale-[0.96] group-data-starting-style/popup:opacity-0": !bottom, " group-data-starting-style/popup-scale-[0.96] group-data-ending-style/popup-scale-100 group-data-open/popup:animate-in group-data-closed/popup:animate-out group-data-closed/popup:duration-200 group-data-closed/popup:ease-[cubic-bezier(1,0,0.72,0.32)] group-data-ending-style/popup:translate-y-1/2 group-data-open/popup:duration-pop-hover group-data-open/popup:ease-[cubic-bezier(0.32,0.72,0,1)] group-data-starting-style/popup:translate-y-1/2": bottom }),
|
|
593
|
-
"aria-label": "Close",
|
|
594
|
-
children: [
|
|
595
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" }),
|
|
596
|
-
/* @__PURE__ */ jsx("span", { className: "before:bg-tint-700-reversed relative block before:absolute before:-inset-1.5 before:rounded-full before:backdrop-blur-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-primary-foreground text-background relative z-10 flex size-10 items-center justify-center rounded-full", children: /* @__PURE__ */ jsx(XClose, { className: "size-[18px]" }) }) })
|
|
597
|
-
]
|
|
598
|
-
}
|
|
599
|
-
),
|
|
600
611
|
/* @__PURE__ */ jsx(
|
|
601
612
|
"div",
|
|
602
613
|
{
|
|
@@ -611,6 +622,17 @@ function DialogContent({
|
|
|
611
622
|
...props,
|
|
612
623
|
children
|
|
613
624
|
}
|
|
625
|
+
),
|
|
626
|
+
showCloseButton && /* @__PURE__ */ jsxs(
|
|
627
|
+
DialogClose,
|
|
628
|
+
{
|
|
629
|
+
className: cn("pointer-events-auto fixed top-[7px] z-50 transition-all", { "left-4": closePosition === "top-left", "right-4": closePosition === "top-right", "group-data-closed/popup:duration-pop-hover group-data-open/popup:duration-pop-hover group-data-open/popup:ease-pop-hover group-data-closed/popup:ease-out group-data-ending-style/popup:scale-[0.96] group-data-ending-style/popup:opacity-0 group-data-starting-style/popup:scale-[0.96] group-data-starting-style/popup:opacity-0": !bottom, " group-data-starting-style/popup-scale-[0.96] group-data-ending-style/popup-scale-100 group-data-open/popup:animate-in group-data-closed/popup:animate-out group-data-closed/popup:duration-200 group-data-closed/popup:ease-[cubic-bezier(1,0,0.72,0.32)] group-data-ending-style/popup:translate-y-1/2 group-data-open/popup:duration-pop-hover group-data-open/popup:ease-[cubic-bezier(0.32,0.72,0,1)] group-data-starting-style/popup:translate-y-1/2": bottom }),
|
|
630
|
+
"aria-label": "Close",
|
|
631
|
+
children: [
|
|
632
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" }),
|
|
633
|
+
/* @__PURE__ */ jsx("span", { className: "before:bg-tint-700-reversed relative block before:absolute before:-inset-1.5 before:rounded-full before:backdrop-blur-sm", children: /* @__PURE__ */ jsx("span", { className: "bg-primary-foreground text-background relative z-10 flex size-10 items-center justify-center rounded-full", children: /* @__PURE__ */ jsx(XClose, { className: "size-[18px]" }) }) })
|
|
634
|
+
]
|
|
635
|
+
}
|
|
614
636
|
)
|
|
615
637
|
]
|
|
616
638
|
}
|
|
@@ -1454,6 +1476,6 @@ function Tag({
|
|
|
1454
1476
|
);
|
|
1455
1477
|
}
|
|
1456
1478
|
|
|
1457
|
-
export { BannerNotification, Button, ButtonLink, ContentBlock, 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, Label, Loader, NotificationBadge, SectionFlourish, SectionHeader, Tag, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
1479
|
+
export { BannerNotification, Button, ButtonLink, Checkbox, ContentBlock, 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, Label, Loader, NotificationBadge, SectionFlourish, SectionHeader, Tag, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
1458
1480
|
//# sourceMappingURL=index.js.map
|
|
1459
1481
|
//# sourceMappingURL=index.js.map
|