@postxl/ui-components 1.6.4 → 1.7.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.
package/dist/index.js CHANGED
@@ -1380,9 +1380,9 @@ function ComboboxDemo() {
1380
1380
 
1381
1381
  //#endregion
1382
1382
  //#region src/spinner/spinner.tsx
1383
- function Spinner({ classNames }) {
1383
+ function Spinner({ className }) {
1384
1384
  return /* @__PURE__ */ jsx("div", {
1385
- className: cn("flex justify-center items-center w-full h-full", classNames),
1385
+ className: cn("flex justify-center items-center w-full h-full", className),
1386
1386
  children: /* @__PURE__ */ jsxs("svg", {
1387
1387
  className: "w-auto text-[inherit] h-full animate-spin",
1388
1388
  xmlns: "http://www.w3.org/2000/svg",
@@ -1409,7 +1409,7 @@ function Loader({ label, disabled }) {
1409
1409
  className: "flex absolute z-1 left-0 top-0 bottom-0 right-0 bg-secondary/50",
1410
1410
  children: /* @__PURE__ */ jsxs("div", {
1411
1411
  className: "flex items-center justify-center flex-1 flex-col",
1412
- children: [/* @__PURE__ */ jsx(Spinner, { classNames: "w-[24px] h-[25px]" }), label && /* @__PURE__ */ jsx("h3", {
1412
+ children: [/* @__PURE__ */ jsx(Spinner, { className: "w-[24px] h-[25px]" }), label && /* @__PURE__ */ jsx("h3", {
1413
1413
  className: "pb-0 pt-3 font-medium text-xl mb-2 text-muted-foreground",
1414
1414
  children: label
1415
1415
  })]
@@ -1466,7 +1466,7 @@ const CommandInput = React.forwardRef(({ className, wrapperClassName, loading, r
1466
1466
  variant,
1467
1467
  inputSize
1468
1468
  }), wrapperClassName),
1469
- children: [loading ? /* @__PURE__ */ jsx(Spinner, { classNames: "size-4" }) : /* @__PURE__ */ jsx(MagnifyingGlassIcon, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command$1.Input, {
1469
+ children: [loading ? /* @__PURE__ */ jsx(Spinner, { className: "size-4" }) : /* @__PURE__ */ jsx(MagnifyingGlassIcon, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ jsx(Command$1.Input, {
1470
1470
  ref,
1471
1471
  "data-slot": "command-input",
1472
1472
  className: cn("placeholder:text-muted-foreground flex w-full rounded bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className),
@@ -9164,10 +9164,11 @@ PaginationEllipsis.displayName = "PaginationEllipsis";
9164
9164
 
9165
9165
  //#endregion
9166
9166
  //#region src/progress/progress.tsx
9167
- const Progress = ({ value, size = "100%" }) => {
9167
+ const Progress = ({ value, size = "100%", className }) => {
9168
9168
  return /* @__PURE__ */ jsxs("div", {
9169
+ "data-testid": "progress-bar",
9169
9170
  style: { "--parent-width": size },
9170
- className: "w-(--parent-width) flex justify-center relative rounded-md overflow-hidden h-2 mt-8",
9171
+ className: cn("w-(--parent-width) flex justify-center relative rounded-md overflow-hidden h-2 mt-8", className),
9171
9172
  children: [/* @__PURE__ */ jsx("div", {
9172
9173
  className: "w-full absolute top-0 left-0 h-2.5 bg-(--discreet-border)",
9173
9174
  "data-testid": "progress-bg"
@@ -11427,11 +11428,12 @@ function Tabs({ className,...props }) {
11427
11428
  ...props
11428
11429
  });
11429
11430
  }
11430
- const tabsListVariants = cva("w-fit text-muted-foreground inline-flex items-center justify-center rounded-lg", {
11431
+ const tabsListVariants = cva("w-fit text-muted-foreground inline-flex items-center justify-center", {
11431
11432
  variants: {
11432
11433
  variant: {
11433
- default: "bg-muted p-[3px]",
11434
- protocol: "bg-transparent"
11434
+ default: "rounded-lg bg-muted p-[3px]",
11435
+ protocol: "rounded-lg bg-transparent",
11436
+ underline: "border-b border-border bg-transparent p-0 rounded-none"
11435
11437
  },
11436
11438
  size: {
11437
11439
  default: "h-9",
@@ -11458,7 +11460,8 @@ function TabsList({ className, variant, size, asChild = false,...props }) {
11458
11460
  }
11459
11461
  const tabsTriggerVariants = cva("h-[100%] text-lg inline-flex items-center justify-center gap-1.5 font-medium whitespace-nowrap focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 text-foreground", { variants: { variant: {
11460
11462
  default: "h-[calc(100%-1px)] flex-1 rounded-md border border-transparent px-2 py-1 transition-[color,box-shadow] dark:text-muted-foreground data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:shadow-sm",
11461
- protocol: "bg-transparent border-b-2 border-b-transparent hover:text-primary hover:border-b-primary data-[state=active]:border-b-primary data-[state=active]:text-primary"
11463
+ protocol: "bg-transparent border-b-2 border-b-transparent hover:text-primary hover:border-b-primary data-[state=active]:border-b-primary data-[state=active]:text-primary",
11464
+ underline: "rounded-none border-b-2 border-transparent px-4 py-2 hover:border-primary/50 hover:text-foreground data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:shadow-none"
11462
11465
  } } });
11463
11466
  function TabsTrigger({ className, variant, asChild = false,...props }) {
11464
11467
  const Comp = asChild ? Slot : TabsPrimitive.Trigger;