@codapet/design-system 0.3.3 → 0.3.4

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.d.mts CHANGED
@@ -394,11 +394,12 @@ declare function Separator({ className, orientation, decorative, ...props }: Rea
394
394
  declare function Sheet({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
395
395
  declare function SheetTrigger({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
396
396
  declare function SheetClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
397
- declare function SheetContent({ className, children, side, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
398
- side?: "top" | "right" | "bottom" | "left";
397
+ declare function SheetContent({ className, children, side, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
398
+ side?: 'top' | 'right' | 'bottom' | 'left';
399
+ showCloseButton?: boolean;
399
400
  }): react_jsx_runtime.JSX.Element;
400
- declare function SheetHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
401
- declare function SheetFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
401
+ declare function SheetHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
402
+ declare function SheetFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
402
403
  declare function SheetTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
403
404
  declare function SheetDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
404
405
 
package/dist/index.mjs CHANGED
@@ -3391,9 +3391,9 @@ function Separator5({
3391
3391
  }
3392
3392
 
3393
3393
  // src/components/ui/sheet.tsx
3394
- import "react";
3395
3394
  import * as SheetPrimitive from "@radix-ui/react-dialog";
3396
3395
  import { XIcon as XIcon2 } from "lucide-react";
3396
+ import "react";
3397
3397
  import { jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
3398
3398
  function Sheet({ ...props }) {
3399
3399
  return /* @__PURE__ */ jsx35(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
@@ -3433,6 +3433,7 @@ function SheetContent({
3433
3433
  className,
3434
3434
  children,
3435
3435
  side = "right",
3436
+ showCloseButton = true,
3436
3437
  ...props
3437
3438
  }) {
3438
3439
  return /* @__PURE__ */ jsxs18(SheetPortal, { children: [
@@ -3452,7 +3453,7 @@ function SheetContent({
3452
3453
  ...props,
3453
3454
  children: [
3454
3455
  children,
3455
- /* @__PURE__ */ jsxs18(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
3456
+ showCloseButton && /* @__PURE__ */ jsxs18(SheetPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
3456
3457
  /* @__PURE__ */ jsx35(XIcon2, { className: "size-4" }),
3457
3458
  /* @__PURE__ */ jsx35("span", { className: "sr-only", children: "Close" })
3458
3459
  ] })
@@ -4517,8 +4518,8 @@ function TableCaption({
4517
4518
  }
4518
4519
 
4519
4520
  // src/components/ui/tabs.tsx
4520
- import "react";
4521
4521
  import * as TabsPrimitive from "@radix-ui/react-tabs";
4522
+ import "react";
4522
4523
  import { jsx as jsx44 } from "react/jsx-runtime";
4523
4524
  function Tabs({
4524
4525
  className,
@@ -4542,7 +4543,7 @@ function TabsList({
4542
4543
  {
4543
4544
  "data-slot": "tabs-list",
4544
4545
  className: cn(
4545
- "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
4546
+ " text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
4546
4547
  className
4547
4548
  ),
4548
4549
  ...props
@@ -4558,7 +4559,7 @@ function TabsTrigger({
4558
4559
  {
4559
4560
  "data-slot": "tabs-trigger",
4560
4561
  className: cn(
4561
- "cursor-pointer data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
4562
+ "cursor-pointer data-[state=active]:border-b-2 data-[state=active]:border-brand-normal border-0 border-t-0 rounded-none data-[state=active]:text-black data-[state=active]:font-semibold data-[state=active]:bg-background dark:data-[state=active]:text-white focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-2 py-[6px] font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 text-zinc-500 font-sans border-b-1 border-b-gray-stroke-light text-sm",
4562
4563
  className
4563
4564
  ),
4564
4565
  ...props