ixia-ui-react 1.4.2 → 1.4.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.ts CHANGED
@@ -750,10 +750,10 @@ declare function CodeBlock$1({ items, defaultValue, className, ref, ...props }:
750
750
  export declare function CodeBlockActions({ className, ref, ...props }: CodeBlockActionsProps): import("react").JSX.Element;
751
751
  //#endregion
752
752
  //#region src/components/code-block/code-block-copy.d.ts
753
- export declare function CodeBlockCopy({ className, children, ref, ...props }: CodeBlockCopyProps): React$1.JSX.Element | undefined;
753
+ export declare function CodeBlockCopy({ className, children, ref, ...props }: CodeBlockCopyProps): React$1.JSX.Element;
754
754
  //#endregion
755
755
  //#region src/components/code-block/code-block-download.d.ts
756
- export declare function CodeBlockDownload({ className, children, ref, ...props }: CodeBlockDownloadProps): React$1.JSX.Element | undefined;
756
+ export declare function CodeBlockDownload({ className, children, ref, ...props }: CodeBlockDownloadProps): React$1.JSX.Element;
757
757
  //#endregion
758
758
  //#region src/components/code-block/code-block-header.d.ts
759
759
  type CodeBlockHeaderProps = React.ComponentProps<'div'>;
package/dist/index.js CHANGED
@@ -1661,7 +1661,7 @@ function SelectItem({ className, children, ref, ...props }) {
1661
1661
  className: "flex flex-col",
1662
1662
  children
1663
1663
  }), /* @__PURE__ */ jsx(Select$1.ItemIndicator, {
1664
- className: "place-self-end self-center",
1664
+ className: "place-self-end self-center [&>svg]:size-sm",
1665
1665
  children: /* @__PURE__ */ jsx(CheckIcon, { weight: "bold" })
1666
1666
  })]
1667
1667
  });
@@ -1708,14 +1708,14 @@ function SelectPopup({ className, children, ref, ...props }) {
1708
1708
  //#region src/components/select/select-title.tsx
1709
1709
  function SelectTitle({ className, ref, ...props }) {
1710
1710
  return /* @__PURE__ */ jsx("span", {
1711
- className: cn("flex items-center gap-2xs font-body text-base leading-none font-medium text-on-surface transition-colors group-data-highlighted/item:text-neutral-on-container group-data-selected/item:text-neutral-on-default", className),
1711
+ className: cn("flex h-lg items-center gap-2xs font-body text-base leading-none font-medium text-on-surface transition-colors group-data-highlighted/item:text-neutral-on-container group-data-selected/item:text-neutral-on-default", className),
1712
1712
  ref,
1713
1713
  ...props
1714
1714
  });
1715
1715
  }
1716
1716
  //#endregion
1717
1717
  //#region src/components/select/select.types.ts
1718
- const selectVariants = cva("flex items-center justify-between outline outline-transparent transition-all duration-100 hover:cursor-pointer aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:outline-error-border data-disabled:cursor-not-allowed [&_[data-value]]:min-w-0 [&_[data-value]]:flex-1", {
1718
+ const selectVariants = cva("flex items-center justify-between outline outline-transparent transition-all duration-100 hover:cursor-pointer aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:outline-error-border data-disabled:cursor-not-allowed [&_[data-value]]:min-w-0 [&_[data-value]]:flex-1 [&:has([data-value]>svg:only-child)]:aspect-square [&:has([data-value]>svg:only-child)]:justify-center [&:has([data-value]>svg:only-child)]:p-0 [&:has([data-value]>svg:only-child)_[data-value]]:flex-none", {
1719
1719
  defaultVariants: {
1720
1720
  size: "medium",
1721
1721
  variant: "primary"
@@ -2349,7 +2349,7 @@ function useCodeBlock() {
2349
2349
  //#region src/components/code-block/code-block-actions.tsx
2350
2350
  function CodeBlockActions({ className, ref, ...props }) {
2351
2351
  return /* @__PURE__ */ jsx("div", {
2352
- className: cn("absolute top-3xs right-3xs flex items-center gap-3xs", className),
2352
+ className: cn("absolute top-2xs right-2xs flex items-center gap-3xs", className),
2353
2353
  ref,
2354
2354
  ...props
2355
2355
  });
@@ -2378,7 +2378,6 @@ function CodeBlockCopy({ className, children, ref, ...props }) {
2378
2378
  console.error("Failed to copy text:", error);
2379
2379
  }
2380
2380
  };
2381
- if (React.isValidElement(currentValue.content)) return;
2382
2381
  return /* @__PURE__ */ jsxs(Button, {
2383
2382
  "aria-label": "Copy code",
2384
2383
  onClick: handleClick,
@@ -2419,7 +2418,6 @@ function CodeBlockDownload({ className, children, ref, ...props }) {
2419
2418
  console.error("Failed to download file:", error);
2420
2419
  }
2421
2420
  };
2422
- if (React.isValidElement(currentValue.content)) return;
2423
2421
  return /* @__PURE__ */ jsxs(Button, {
2424
2422
  "aria-label": "Download file",
2425
2423
  onClick: handleClick,
@@ -2473,10 +2471,10 @@ function CodeBlockSelect({ className, children, ref, ...props }) {
2473
2471
  ...props,
2474
2472
  variant: "ghost",
2475
2473
  children: [/* @__PURE__ */ jsx(SelectValue, { children: (value) => items.find((item) => item.id === value)?.label }), /* @__PURE__ */ jsx(SelectIcon, { children: /* @__PURE__ */ jsx(CaretUpDownIcon, { weight: "bold" }) })]
2476
- }), /* @__PURE__ */ jsx(SelectPopup, { children: /* @__PURE__ */ jsxs(SelectList, { children: [children, /* @__PURE__ */ jsx(SelectGroup, { children: items.map(({ label, id }) => /* @__PURE__ */ jsx(SelectItem, {
2474
+ }), /* @__PURE__ */ jsx(SelectPopup, { children: /* @__PURE__ */ jsxs(SelectList, { children: [children, items.map(({ label, id }) => /* @__PURE__ */ jsx(SelectItem, {
2477
2475
  value: id,
2478
- children: label
2479
- }, id)) })] }) })]
2476
+ children: /* @__PURE__ */ jsx(SelectTitle, { children: label })
2477
+ }, id))] }) })]
2480
2478
  });
2481
2479
  }
2482
2480
  //#endregion