@firecms/ui 3.0.0-canary.228 → 3.0.0-canary.231

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.
@@ -30,8 +30,9 @@ export type SelectItemProps<T extends SelectValue = string> = {
30
30
  children?: React.ReactNode;
31
31
  disabled?: boolean;
32
32
  className?: string;
33
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
33
34
  };
34
- export declare function SelectItem<T extends SelectValue = string>({ value, children, disabled, className }: SelectItemProps<T>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function SelectItem<T extends SelectValue = string>({ value, children, disabled, className, onClick }: SelectItemProps<T>): import("react/jsx-runtime").JSX.Element;
35
36
  export type SelectGroupProps = {
36
37
  label: React.ReactNode;
37
38
  children: React.ReactNode;
package/dist/index.es.js CHANGED
@@ -30620,12 +30620,13 @@ const Select = forwardRef(({
30620
30620
  });
30621
30621
  Select.displayName = "Select";
30622
30622
  function SelectItem(t0) {
30623
- const $ = c(11);
30623
+ const $ = c(12);
30624
30624
  const {
30625
30625
  value,
30626
30626
  children,
30627
30627
  disabled,
30628
- className
30628
+ className,
30629
+ onClick
30629
30630
  } = t0;
30630
30631
  const stringValue = String(value);
30631
30632
  const t1 = disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer";
@@ -30654,18 +30655,19 @@ function SelectItem(t0) {
30654
30655
  t4 = $[5];
30655
30656
  }
30656
30657
  let t5;
30657
- if ($[6] !== disabled || $[7] !== stringValue || $[8] !== t2 || $[9] !== t3) {
30658
- t5 = /* @__PURE__ */ jsxs(SelectPrimitive.Item, { value: stringValue, disabled, className: t2, children: [
30658
+ if ($[6] !== disabled || $[7] !== onClick || $[8] !== stringValue || $[9] !== t2 || $[10] !== t3) {
30659
+ t5 = /* @__PURE__ */ jsxs(SelectPrimitive.Item, { value: stringValue, disabled, onClick, className: t2, children: [
30659
30660
  t3,
30660
30661
  t4
30661
30662
  ] }, stringValue);
30662
30663
  $[6] = disabled;
30663
- $[7] = stringValue;
30664
- $[8] = t2;
30665
- $[9] = t3;
30666
- $[10] = t5;
30664
+ $[7] = onClick;
30665
+ $[8] = stringValue;
30666
+ $[9] = t2;
30667
+ $[10] = t3;
30668
+ $[11] = t5;
30667
30669
  } else {
30668
- t5 = $[10];
30670
+ t5 = $[11];
30669
30671
  }
30670
30672
  return t5;
30671
30673
  }