@liner-fe/prism 2.1.33 → 2.1.35

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.cjs CHANGED
@@ -9051,29 +9051,39 @@ var import_react15 = require("react");
9051
9051
 
9052
9052
  // src/components/Radio/style.module.scss
9053
9053
  var style_module_default12 = {
9054
- "radio": "_radio_igep6_1",
9055
- "radio-item": "_radio-item_igep6_5",
9056
- "indicator": "_indicator_igep6_45",
9057
- "label-wrapper": "_label-wrapper_igep6_51",
9058
- "description": "_description_igep6_61"
9054
+ "radio-item": "_radio-item_184np_1",
9055
+ "indicator": "_indicator_184np_44",
9056
+ "label-wrapper": "_label-wrapper_184np_50",
9057
+ "description": "_description_184np_60"
9059
9058
  };
9060
9059
 
9061
9060
  // src/components/Radio/index.tsx
9062
9061
  var import_jsx_runtime171 = require("react/jsx-runtime");
9063
9062
  var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
9064
- var RadioRoot = (0, import_react15.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(RadioGroupPrimitive.Root, { className: (0, import_clsx14.default)(style_module_default12.radio, className), ...props }));
9063
+ var RadioRoot = (0, import_react15.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(RadioGroupPrimitive.Root, { ref, className, ...props }));
9064
+ RadioRoot.displayName = "RadioRoot";
9065
9065
  var RadioItem = (0, import_react15.forwardRef)(
9066
9066
  ({ className, label, description, ...props }, ref) => {
9067
- const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(Label, { position: "right", htmlFor: props.id, children: [
9067
+ const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(Label, { position: "right", children: [
9068
9068
  /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("div", { className: style_module_default12["label-wrapper"], children: [
9069
9069
  label,
9070
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Paragraph, { className: style_module_default12.description, size: 3, type: "normal", weight: "regular", children: description })
9070
+ description && /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Paragraph, { className: style_module_default12.description, size: 3, type: "normal", weight: "regular", children: description })
9071
9071
  ] }),
9072
9072
  children
9073
9073
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_jsx_runtime171.Fragment, { children }), "RadioItemWrapper");
9074
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(RadioItemWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(RadioGroupPrimitive.Item, { ref, className: (0, import_clsx14.default)(style_module_default12["radio-item"], className), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(RadioGroupPrimitive.Indicator, { className: style_module_default12.indicator, children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(RadioIndicator, {}) }) }) });
9074
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(RadioItemWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
9075
+ RadioGroupPrimitive.Item,
9076
+ {
9077
+ ref,
9078
+ className: (0, import_clsx14.default)(style_module_default12["radio-item"], className),
9079
+ ...props,
9080
+ "aria-label": label,
9081
+ children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(RadioGroupPrimitive.Indicator, { className: style_module_default12.indicator, children: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(RadioIndicator, {}) })
9082
+ }
9083
+ ) });
9075
9084
  }
9076
9085
  );
9086
+ RadioItem.displayName = "RadioItem";
9077
9087
  var Radio = Object.assign(RadioRoot, {
9078
9088
  Item: RadioItem
9079
9089
  });