@liner-fe/prism 1.12.46 → 1.12.47
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/lib/components/Select/index.d.ts +2 -1
- package/lib/index.mjs +2 -2
- package/lib/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -14,10 +14,11 @@ export interface SelectProps extends ComponentPropsWithoutRef<typeof SelectPrimi
|
|
|
14
14
|
}
|
|
15
15
|
export interface SelectItemProps {
|
|
16
16
|
value: string;
|
|
17
|
+
text?: string;
|
|
17
18
|
disabled?: boolean;
|
|
18
19
|
icon?: IconProps;
|
|
19
20
|
onClick?: () => void;
|
|
20
21
|
}
|
|
21
22
|
export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<never>> & {
|
|
22
|
-
Item: ({ value, disabled, icon, onClick }: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
Item: ({ value, text, disabled, icon, onClick }: SelectItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
};
|
package/lib/index.mjs
CHANGED
|
@@ -8021,7 +8021,7 @@ var SelectRoot = forwardRef15((props, ref) => {
|
|
|
8021
8021
|
)
|
|
8022
8022
|
] });
|
|
8023
8023
|
});
|
|
8024
|
-
var SelectItem = /* @__PURE__ */ __name(({ value, disabled, icon, onClick }) => /* @__PURE__ */ jsxs108(
|
|
8024
|
+
var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) => /* @__PURE__ */ jsxs108(
|
|
8025
8025
|
SelectPrimitive.Item,
|
|
8026
8026
|
{
|
|
8027
8027
|
className: style_module_default13.item,
|
|
@@ -8032,7 +8032,7 @@ var SelectItem = /* @__PURE__ */ __name(({ value, disabled, icon, onClick }) =>
|
|
|
8032
8032
|
onClick?.();
|
|
8033
8033
|
},
|
|
8034
8034
|
children: [
|
|
8035
|
-
/* @__PURE__ */ jsx157(SelectPrimitive.ItemText, { children: /* @__PURE__ */ jsx157(Paragraph, { size: 3, type: "normal", weight: "medium", children: value }) }),
|
|
8035
|
+
/* @__PURE__ */ jsx157(SelectPrimitive.ItemText, { children: /* @__PURE__ */ jsx157(Paragraph, { size: 3, type: "normal", weight: "medium", children: text ?? value }) }),
|
|
8036
8036
|
icon && /* @__PURE__ */ jsx157(SelectPrimitive.Icon, { className: style_module_default13.icon, children: /* @__PURE__ */ jsx157(Icon, { size: "xs", ...icon }) }),
|
|
8037
8037
|
/* @__PURE__ */ jsx157(SelectPrimitive.ItemIndicator, { className: style_module_default13.itemIndicator, children: /* @__PURE__ */ jsx157(Icon, { fill: false, thick: true, size: "xs", name: "check-mark", type: "brand-label-primary" }) })
|
|
8038
8038
|
]
|