@liner-fe/prism 1.12.19 → 1.12.20

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.
@@ -16,8 +16,9 @@ export interface SelectItemProps {
16
16
  value: string;
17
17
  disabled?: boolean;
18
18
  icon?: IconProps;
19
+ onClick?: () => void;
19
20
  }
20
21
  export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<never>> & {
21
- Item: ({ value, disabled, icon }: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
22
+ Item: ({ value, disabled, icon, onClick }: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
22
23
  };
23
24
  export {};
package/lib/index.mjs CHANGED
@@ -7892,11 +7892,23 @@ var SelectRoot = forwardRef10((props, ref) => {
7892
7892
  )
7893
7893
  ] });
7894
7894
  });
7895
- var SelectItem = /* @__PURE__ */ __name(({ value, disabled, icon }) => /* @__PURE__ */ jsxs107(SelectPrimitive.Item, { className: style_module_default13.item, value, disabled, children: [
7896
- /* @__PURE__ */ jsx152(SelectPrimitive.ItemText, { className: "item", children: /* @__PURE__ */ jsx152(Paragraph, { size: 3, type: "normal", weight: "medium", children: value }) }),
7897
- icon && /* @__PURE__ */ jsx152(SelectPrimitive.Icon, { className: style_module_default13.icon, children: /* @__PURE__ */ jsx152(Icon, { size: "xs", ...icon }) }),
7898
- /* @__PURE__ */ jsx152(SelectPrimitive.ItemIndicator, { className: style_module_default13.itemIndicator, children: /* @__PURE__ */ jsx152(Icon, { fill: false, thick: true, size: "xs", name: "check-mark", type: "brand-label-primary" }) })
7899
- ] }), "SelectItem");
7895
+ var SelectItem = /* @__PURE__ */ __name(({ value, disabled, icon, onClick }) => /* @__PURE__ */ jsxs107(
7896
+ SelectPrimitive.Item,
7897
+ {
7898
+ className: style_module_default13.item,
7899
+ value,
7900
+ disabled,
7901
+ onClick: (e) => {
7902
+ e.stopPropagation();
7903
+ onClick?.();
7904
+ },
7905
+ children: [
7906
+ /* @__PURE__ */ jsx152(SelectPrimitive.ItemText, { className: "item", children: /* @__PURE__ */ jsx152(Paragraph, { size: 3, type: "normal", weight: "medium", children: value }) }),
7907
+ icon && /* @__PURE__ */ jsx152(SelectPrimitive.Icon, { className: style_module_default13.icon, children: /* @__PURE__ */ jsx152(Icon, { size: "xs", ...icon }) }),
7908
+ /* @__PURE__ */ jsx152(SelectPrimitive.ItemIndicator, { className: style_module_default13.itemIndicator, children: /* @__PURE__ */ jsx152(Icon, { fill: false, thick: true, size: "xs", name: "check-mark", type: "brand-label-primary" }) })
7909
+ ]
7910
+ }
7911
+ ), "SelectItem");
7900
7912
  var Select = Object.assign(SelectRoot, {
7901
7913
  Item: SelectItem
7902
7914
  });