ixia-ui-react 1.4.2 → 1.4.3

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
@@ -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"
@@ -2473,10 +2473,10 @@ function CodeBlockSelect({ className, children, ref, ...props }) {
2473
2473
  ...props,
2474
2474
  variant: "ghost",
2475
2475
  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, {
2476
+ }), /* @__PURE__ */ jsx(SelectPopup, { children: /* @__PURE__ */ jsxs(SelectList, { children: [children, items.map(({ label, id }) => /* @__PURE__ */ jsx(SelectItem, {
2477
2477
  value: id,
2478
- children: label
2479
- }, id)) })] }) })]
2478
+ children: /* @__PURE__ */ jsx(SelectTitle, { children: label })
2479
+ }, id))] }) })]
2480
2480
  });
2481
2481
  }
2482
2482
  //#endregion