@liner-fe/prism 2.9.46 → 2.9.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/index.d.ts CHANGED
@@ -336,6 +336,7 @@ declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & reac
336
336
 
337
337
  interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof Checkbox$1.Root> {
338
338
  label?: string;
339
+ labelComponent?: ReactNode;
339
340
  description?: string;
340
341
  }
341
342
  declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLButtonElement>>;
package/lib/index.js CHANGED
@@ -1739,11 +1739,11 @@ Label.displayName = "Label";
1739
1739
  import { IconCheckMark } from "@liner-fe/icon";
1740
1740
  import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
1741
1741
  var Checkbox = forwardRef12(
1742
- ({ className, label, description, ...props }, ref) => {
1742
+ ({ className, label, labelComponent, description, ...props }, ref) => {
1743
1743
  const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs6(Label, { position: "right", htmlFor: props.id, children: [
1744
- /* @__PURE__ */ jsxs6("div", { className: style_module_default9["label-wrapper"], children: [
1744
+ labelComponent ? labelComponent : /* @__PURE__ */ jsxs6("div", { className: style_module_default9["label-wrapper"], children: [
1745
1745
  label,
1746
- /* @__PURE__ */ jsx15(Paragraph, { className: style_module_default9.description, size: 3, type: "normal", weight: "regular", children: description })
1746
+ description && /* @__PURE__ */ jsx15(Paragraph, { className: style_module_default9.description, size: 3, type: "normal", weight: "regular", children: description })
1747
1747
  ] }),
1748
1748
  children
1749
1749
  ] }) : /* @__PURE__ */ jsx15(Fragment4, { children }), "CheckboxWrapper");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liner-fe/prism",
3
- "version": "2.9.46",
3
+ "version": "2.9.47",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "dependencies": {