@liner-fe/prism 1.8.4 → 1.8.6

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.
@@ -1 +1,4 @@
1
- export declare const Radio: () => import("react/jsx-runtime").JSX.Element;
1
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
2
+ export declare const Radio: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
3
+ Item: import("react").ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
4
+ };
@@ -0,0 +1,5 @@
1
+ import { HTMLAttributes } from 'react';
2
+ interface DescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
3
+ }
4
+ export declare const Description: ({ className, children, ...props }: DescriptionProps) => import("react/jsx-runtime").JSX.Element;
5
+ export {};
package/lib/index.mjs CHANGED
@@ -4990,69 +4990,8 @@ var IconButton = forwardRef4(
4990
4990
  );
4991
4991
 
4992
4992
  // src/components/Label/index.tsx
4993
- import { forwardRef as forwardRef7 } from "react";
4994
-
4995
- // ../../node_modules/@radix-ui/react-label/dist/index.mjs
4996
- import * as React3 from "react";
4997
-
4998
- // ../../node_modules/@radix-ui/react-primitive/dist/index.mjs
4999
- import * as React2 from "react";
5000
- import * as ReactDOM from "react-dom";
5001
- import { Slot as Slot3 } from "@radix-ui/react-slot";
5002
- import { jsx as jsx101 } from "react/jsx-runtime";
5003
- var NODES = [
5004
- "a",
5005
- "button",
5006
- "div",
5007
- "form",
5008
- "h2",
5009
- "h3",
5010
- "img",
5011
- "input",
5012
- "label",
5013
- "li",
5014
- "nav",
5015
- "ol",
5016
- "p",
5017
- "span",
5018
- "svg",
5019
- "ul"
5020
- ];
5021
- var Primitive = NODES.reduce((primitive, node) => {
5022
- const Node = React2.forwardRef((props, forwardedRef) => {
5023
- const { asChild, ...primitiveProps } = props;
5024
- const Comp = asChild ? Slot3 : node;
5025
- if (typeof window !== "undefined") {
5026
- window[Symbol.for("radix-ui")] = true;
5027
- }
5028
- return /* @__PURE__ */ jsx101(Comp, { ...primitiveProps, ref: forwardedRef });
5029
- });
5030
- Node.displayName = `Primitive.${node}`;
5031
- return { ...primitive, [node]: Node };
5032
- }, {});
5033
-
5034
- // ../../node_modules/@radix-ui/react-label/dist/index.mjs
5035
- import { jsx as jsx102 } from "react/jsx-runtime";
5036
- var NAME = "Label";
5037
- var Label = React3.forwardRef((props, forwardedRef) => {
5038
- return /* @__PURE__ */ jsx102(
5039
- Primitive.label,
5040
- {
5041
- ...props,
5042
- ref: forwardedRef,
5043
- onMouseDown: /* @__PURE__ */ __name((event) => {
5044
- const target = event.target;
5045
- if (target.closest("button, input, select, textarea")) return;
5046
- props.onMouseDown?.(event);
5047
- if (!event.defaultPrevented && event.detail > 1) event.preventDefault();
5048
- }, "onMouseDown")
5049
- }
5050
- );
5051
- });
5052
- Label.displayName = NAME;
5053
- var Root4 = Label;
5054
-
5055
- // src/components/Label/index.tsx
4993
+ import { forwardRef as forwardRef5 } from "react";
4994
+ import * as LabelPrimitive from "@radix-ui/react-label";
5056
4995
  import clsx11 from "clsx";
5057
4996
 
5058
4997
  // src/components/Label/style.module.scss
@@ -5061,10 +5000,10 @@ var style_module_default7 = {
5061
5000
  };
5062
5001
 
5063
5002
  // src/components/Label/index.tsx
5064
- import { jsx as jsx103 } from "react/jsx-runtime";
5065
- var Label2 = forwardRef7(({ className, ...props }, ref) => {
5066
- return /* @__PURE__ */ jsx103(
5067
- Root4,
5003
+ import { jsx as jsx101 } from "react/jsx-runtime";
5004
+ var Label = forwardRef5(({ className, ...props }, ref) => {
5005
+ return /* @__PURE__ */ jsx101(
5006
+ LabelPrimitive.Root,
5068
5007
  {
5069
5008
  ref,
5070
5009
  className: clsx11("lp-sys-typo-paragraph2-normal-medium", style_module_default7.label, className),
@@ -5080,7 +5019,7 @@ export {
5080
5019
  Heading,
5081
5020
  Icon,
5082
5021
  IconButton,
5083
- Label2 as Label,
5022
+ Label,
5084
5023
  Paragraph,
5085
5024
  Popover,
5086
5025
  TextButton,