@liner-fe/prism 1.12.32 → 1.12.33

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.
@@ -15,5 +15,5 @@ interface IPropsNormalMedium extends ITypographyCommon<HTMLElement> {
15
15
  weight: MEDIUM;
16
16
  }
17
17
  export type ICaptionProps = IPropsNormalBold | IPropsNormalRegular | IPropsNormalMedium;
18
- export declare const Caption: ({ children, size, weight, type, className, color, ...rest }: ICaptionProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Caption: import("react").ForwardRefExoticComponent<ICaptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
19
19
  export {};
@@ -4,4 +4,4 @@ export interface IDisplayProps extends ITypographyCommon {
4
4
  type: 'accent' | 'normal';
5
5
  weight: 'black';
6
6
  }
7
- export declare const Display: ({ size, type, weight, className, children, color, ...rest }: IDisplayProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Display: import("react").ForwardRefExoticComponent<IDisplayProps & import("react").RefAttributes<HTMLParagraphElement>>;
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  import { ITypographyCommon } from '../types';
2
3
  export interface IHeadingProps extends ITypographyCommon<HTMLHeadingElement> {
3
4
  type: 'answer';
4
5
  size: 1 | 2 | 3 | 4 | 5 | 6;
5
6
  }
6
- export declare const Heading: ({ size, children, type, className, color, ...rest }: IHeadingProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Heading: React.ForwardRefExoticComponent<IHeadingProps & React.RefAttributes<HTMLHeadingElement>>;
@@ -20,4 +20,4 @@ export interface IPropsAnswer extends ITypographyCommon {
20
20
  weight: BOLD | REGULAR;
21
21
  }
22
22
  export type ParagraphProps = IPropsNormal | IPropsPost | IPropsAccent | IPropsAnswer;
23
- export declare const Paragraph: ({ size, type, weight, className, children, color, ...rest }: ParagraphProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const Paragraph: import("react").ForwardRefExoticComponent<ParagraphProps & import("react").RefAttributes<HTMLParagraphElement>>;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { ACCENT, BOLD, ITypographyCommon, MEDIUM, NORMAL } from '../types';
2
3
  export interface ITitleProps extends ITypographyCommon {
3
4
  type: ACCENT | NORMAL;
4
5
  weight: BOLD | MEDIUM;
5
6
  size: 1 | 2 | 3 | 4;
6
7
  }
7
- export declare const Title: ({ weight, size, type, className, children, color, ...rest }: ITitleProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const Title: React.ForwardRefExoticComponent<ITitleProps & React.RefAttributes<HTMLParagraphElement>>;
package/lib/index.mjs CHANGED
@@ -6893,6 +6893,7 @@ import { useEffect, useRef, useState } from "react";
6893
6893
 
6894
6894
  // src/components/Typography/Set/Paragraph.tsx
6895
6895
  import clsx3 from "clsx";
6896
+ import { forwardRef as forwardRef2 } from "react";
6896
6897
 
6897
6898
  // src/components/Typography/utils.ts
6898
6899
  import { cva as cva3 } from "class-variance-authority";
@@ -6934,24 +6935,19 @@ var colorVariants = cva3(style_module_default4.typography, {
6934
6935
 
6935
6936
  // src/components/Typography/Set/Paragraph.tsx
6936
6937
  import { jsx as jsx139 } from "react/jsx-runtime";
6937
- var Paragraph = /* @__PURE__ */ __name(({
6938
- size,
6939
- type,
6940
- weight,
6941
- className,
6942
- children,
6943
- color = "neutral-label-primary",
6944
- ...rest
6945
- }) => {
6946
- return /* @__PURE__ */ jsx139(
6947
- "p",
6948
- {
6949
- ...rest,
6950
- className: clsx3(`lp-sys-typo-paragraph${size}-${type}-${weight}`, colorVariants({ type: color }), className),
6951
- children
6952
- }
6953
- );
6954
- }, "Paragraph");
6938
+ var Paragraph = forwardRef2(
6939
+ ({ size, type, weight, className, children, color = "neutral-label-primary", ...rest }, ref) => {
6940
+ return /* @__PURE__ */ jsx139(
6941
+ "p",
6942
+ {
6943
+ ...rest,
6944
+ className: clsx3(`lp-sys-typo-paragraph${size}-${type}-${weight}`, colorVariants({ type: color }), className),
6945
+ ref,
6946
+ children
6947
+ }
6948
+ );
6949
+ }
6950
+ );
6955
6951
 
6956
6952
  // src/components/Toast/index.tsx
6957
6953
  import { useRecoilValue, useSetRecoilState as useSetRecoilState2 } from "recoil";
@@ -7026,97 +7022,82 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
7026
7022
  }, "SingleToast");
7027
7023
 
7028
7024
  // src/components/Typography/Set/Heading.tsx
7025
+ import { forwardRef as forwardRef3 } from "react";
7029
7026
  import clsx4 from "clsx";
7030
7027
  import { jsx as jsx141 } from "react/jsx-runtime";
7031
- var Heading = /* @__PURE__ */ __name(({
7032
- size,
7033
- children,
7034
- type,
7035
- className,
7036
- color = "neutral-label-primary",
7037
- ...rest
7038
- }) => {
7039
- const Element = `h${size}`;
7040
- return /* @__PURE__ */ jsx141(
7041
- Element,
7042
- {
7043
- ...rest,
7044
- className: clsx4(`lp-sys-typo-heading${size}-${type}`, colorVariants({ type: color }), className),
7045
- children
7046
- }
7047
- );
7048
- }, "Heading");
7028
+ var Heading = forwardRef3(
7029
+ ({ size, children, type, className, color = "neutral-label-primary", ...rest }, ref) => {
7030
+ const Element = `h${size}`;
7031
+ return /* @__PURE__ */ jsx141(
7032
+ Element,
7033
+ {
7034
+ ...rest,
7035
+ className: clsx4(`lp-sys-typo-heading${size}-${type}`, colorVariants({ type: color }), className),
7036
+ ref,
7037
+ children
7038
+ }
7039
+ );
7040
+ }
7041
+ );
7049
7042
 
7050
7043
  // src/components/Typography/Set/Caption.tsx
7051
7044
  import clsx5 from "clsx";
7045
+ import { forwardRef as forwardRef4 } from "react";
7052
7046
  import { jsx as jsx142 } from "react/jsx-runtime";
7053
- var Caption = /* @__PURE__ */ __name(({
7054
- children,
7055
- size,
7056
- weight,
7057
- type,
7058
- className,
7059
- color = "neutral-label-primary",
7060
- ...rest
7061
- }) => {
7062
- return /* @__PURE__ */ jsx142(
7063
- "p",
7064
- {
7065
- ...rest,
7066
- className: clsx5(
7067
- `lp-sys-typo-caption${size}-${type}-${weight}`,
7068
- style_module_default4.caption,
7069
- colorVariants({ type: color }),
7070
- className
7071
- ),
7072
- children
7073
- }
7074
- );
7075
- }, "Caption");
7047
+ var Caption = forwardRef4(
7048
+ ({ children, size, weight, type, className, color = "neutral-label-primary", ...rest }, ref) => {
7049
+ return /* @__PURE__ */ jsx142(
7050
+ "p",
7051
+ {
7052
+ ...rest,
7053
+ className: clsx5(
7054
+ `lp-sys-typo-caption${size}-${type}-${weight}`,
7055
+ style_module_default4.caption,
7056
+ colorVariants({ type: color }),
7057
+ className
7058
+ ),
7059
+ ref,
7060
+ children
7061
+ }
7062
+ );
7063
+ }
7064
+ );
7076
7065
 
7077
7066
  // src/components/Typography/Set/Title.tsx
7067
+ import { forwardRef as forwardRef5 } from "react";
7078
7068
  import clsx6 from "clsx";
7079
7069
  import { jsx as jsx143 } from "react/jsx-runtime";
7080
- var Title2 = /* @__PURE__ */ __name(({
7081
- weight,
7082
- size,
7083
- type,
7084
- className,
7085
- children,
7086
- color = "neutral-label-primary",
7087
- ...rest
7088
- }) => {
7089
- return /* @__PURE__ */ jsx143(
7090
- "p",
7091
- {
7092
- ...rest,
7093
- className: clsx6(`lp-sys-typo-title${size}-${type}-${weight}`, colorVariants({ type: color }), className),
7094
- children
7095
- }
7096
- );
7097
- }, "Title");
7070
+ var Title2 = forwardRef5(
7071
+ ({ weight, size, type, className, children, color = "neutral-label-primary", ...rest }, ref) => {
7072
+ return /* @__PURE__ */ jsx143(
7073
+ "p",
7074
+ {
7075
+ ...rest,
7076
+ className: clsx6(`lp-sys-typo-title${size}-${type}-${weight}`, colorVariants({ type: color }), className),
7077
+ ref,
7078
+ children
7079
+ }
7080
+ );
7081
+ }
7082
+ );
7098
7083
 
7099
7084
  // src/components/Typography/Set/Display.tsx
7100
7085
  import clsx7 from "clsx";
7086
+ import { forwardRef as forwardRef6 } from "react";
7101
7087
  import { jsx as jsx144 } from "react/jsx-runtime";
7102
- var Display = /* @__PURE__ */ __name(({
7103
- size,
7104
- type,
7105
- weight,
7106
- className,
7107
- children,
7108
- color = "neutral-label-primary",
7109
- ...rest
7110
- }) => {
7111
- return /* @__PURE__ */ jsx144(
7112
- "p",
7113
- {
7114
- ...rest,
7115
- className: clsx7(`lp-sys-typo-display${size}-${type}-${weight}`, colorVariants({ type: color }), className),
7116
- children
7117
- }
7118
- );
7119
- }, "Display");
7088
+ var Display = forwardRef6(
7089
+ ({ size, type, weight, className, children, color = "neutral-label-primary", ...rest }, ref) => {
7090
+ return /* @__PURE__ */ jsx144(
7091
+ "p",
7092
+ {
7093
+ ref,
7094
+ ...rest,
7095
+ className: clsx7(`lp-sys-typo-display${size}-${type}-${weight}`, colorVariants({ type: color }), className),
7096
+ children
7097
+ }
7098
+ );
7099
+ }
7100
+ );
7120
7101
 
7121
7102
  // src/components/Typography/Responsive/index.tsx
7122
7103
  import { createMedia } from "@artsy/fresnel";
@@ -7133,7 +7114,7 @@ var rootMediaStyle = AppMedia.createMediaStyle();
7133
7114
  var { Media, MediaContextProvider } = AppMedia;
7134
7115
 
7135
7116
  // src/components/Popover/index.tsx
7136
- import * as React from "react";
7117
+ import * as React3 from "react";
7137
7118
  import * as PopoverPrimitive from "@radix-ui/react-popover";
7138
7119
 
7139
7120
  // src/components/Popover/style.module.scss
@@ -7200,7 +7181,7 @@ var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ js
7200
7181
  )
7201
7182
  }
7202
7183
  ), "PopoverAnchor");
7203
- var PopoverContent = React.forwardRef(
7184
+ var PopoverContent = React3.forwardRef(
7204
7185
  ({
7205
7186
  level = "primary",
7206
7187
  position = "top",
@@ -7267,7 +7248,7 @@ var Popover = Object.assign(PopoverRoot, {
7267
7248
 
7268
7249
  // src/components/Tooltip/index.tsx
7269
7250
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
7270
- import { forwardRef as forwardRef3 } from "react";
7251
+ import { forwardRef as forwardRef8 } from "react";
7271
7252
 
7272
7253
  // src/components/Tooltip/style.module.scss
7273
7254
  var style_module_default6 = {
@@ -7284,7 +7265,7 @@ var tooltipVariants = cva5([style_module_default6.tooltip, "lp-sys-typo-caption1
7284
7265
  var TooltipProvider = TooltipPrimitive.Provider;
7285
7266
  var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx146(TooltipPrimitive.Root, { delayDuration: 0, children }), "TooltipRoot");
7286
7267
  var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx146(TooltipPrimitive.Trigger, { asChild: true, children: by }), "TooltipTrigger");
7287
- var TooltipContent = forwardRef3(
7268
+ var TooltipContent = forwardRef8(
7288
7269
  ({ description, position = "top", className, offset = DEFAULT_OFFSET2, ...props }, ref) => /* @__PURE__ */ jsx146(
7289
7270
  TooltipPrimitive.Content,
7290
7271
  {
@@ -7305,7 +7286,7 @@ var Tooltip = Object.assign(TooltipRoot, {
7305
7286
 
7306
7287
  // src/components/IconButton/index.tsx
7307
7288
  import { cva as cva6 } from "class-variance-authority";
7308
- import { forwardRef as forwardRef4 } from "react";
7289
+ import { forwardRef as forwardRef9 } from "react";
7309
7290
  import clsx10 from "clsx";
7310
7291
 
7311
7292
  // src/components/IconButton/style.module.scss
@@ -7358,7 +7339,7 @@ var iconButtonVariants = cva6([style_module_default7.iconButton], {
7358
7339
  }
7359
7340
  }
7360
7341
  });
7361
- var IconButton = forwardRef4(
7342
+ var IconButton = forwardRef9(
7362
7343
  ({ asChild, level = "primary", name, thick = false, fill = false, size = "m", className, ...rest }, ref) => {
7363
7344
  const Comp = asChild ? Slot2 : "button";
7364
7345
  return /* @__PURE__ */ jsx147(Comp, { ...rest, className: clsx10(iconButtonVariants({ level, size }), className), ref, children: /* @__PURE__ */ jsx147(
@@ -7386,11 +7367,11 @@ var style_module_default8 = {
7386
7367
  };
7387
7368
 
7388
7369
  // src/components/CheckBox/index.tsx
7389
- import { forwardRef as forwardRef6 } from "react";
7370
+ import { forwardRef as forwardRef11 } from "react";
7390
7371
  import clsx12 from "clsx";
7391
7372
 
7392
7373
  // src/components/_Label/index.tsx
7393
- import { forwardRef as forwardRef5 } from "react";
7374
+ import { forwardRef as forwardRef10 } from "react";
7394
7375
  import * as LabelPrimitive from "@radix-ui/react-label";
7395
7376
  import clsx11 from "clsx";
7396
7377
 
@@ -7444,7 +7425,7 @@ var defaultLabelVariants = cva7(["lp-sys-typo-paragraph2-normal-medium", style_m
7444
7425
  }
7445
7426
  }
7446
7427
  });
7447
- var Label = forwardRef5(
7428
+ var Label = forwardRef10(
7448
7429
  ({
7449
7430
  className,
7450
7431
  level = "primary",
@@ -7472,7 +7453,7 @@ var Label = forwardRef5(
7472
7453
 
7473
7454
  // src/components/CheckBox/index.tsx
7474
7455
  import { Fragment as Fragment3, jsx as jsx149, jsxs as jsxs103 } from "react/jsx-runtime";
7475
- var Checkbox = forwardRef6(
7456
+ var Checkbox = forwardRef11(
7476
7457
  ({ className, label, description, ...props }, ref) => {
7477
7458
  const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs103(Label, { position: "right", htmlFor: props.id, children: [
7478
7459
  /* @__PURE__ */ jsxs103("div", { className: style_module_default8["label-wrapper"], children: [
@@ -7488,7 +7469,7 @@ var Checkbox = forwardRef6(
7488
7469
  // src/components/Radio/index.tsx
7489
7470
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
7490
7471
  import clsx13 from "clsx";
7491
- import { forwardRef as forwardRef7 } from "react";
7472
+ import { forwardRef as forwardRef12 } from "react";
7492
7473
 
7493
7474
  // src/components/Radio/style.module.scss
7494
7475
  var style_module_default10 = {
@@ -7502,8 +7483,8 @@ var style_module_default10 = {
7502
7483
  // src/components/Radio/index.tsx
7503
7484
  import { Fragment as Fragment4, jsx as jsx150, jsxs as jsxs104 } from "react/jsx-runtime";
7504
7485
  var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx150("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx150("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
7505
- var RadioRoot = forwardRef7(({ className, ...props }, ref) => /* @__PURE__ */ jsx150(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
7506
- var RadioItem = forwardRef7(
7486
+ var RadioRoot = forwardRef12(({ className, ...props }, ref) => /* @__PURE__ */ jsx150(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
7487
+ var RadioItem = forwardRef12(
7507
7488
  ({ className, label, description, ...props }, ref) => {
7508
7489
  const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs104(Label, { position: "right", htmlFor: props.id, children: [
7509
7490
  /* @__PURE__ */ jsxs104("div", { className: style_module_default10["label-wrapper"], children: [
@@ -7521,7 +7502,7 @@ var Radio = Object.assign(RadioRoot, {
7521
7502
 
7522
7503
  // src/components/Textfield/index.tsx
7523
7504
  import {
7524
- forwardRef as forwardRef8,
7505
+ forwardRef as forwardRef13,
7525
7506
  useId,
7526
7507
  useImperativeHandle,
7527
7508
  useRef as useRef2,
@@ -7562,7 +7543,7 @@ var defaultTextfieldVariants = cva8(style_module_default11.textfield, {
7562
7543
  }
7563
7544
  }
7564
7545
  });
7565
- var Textfield = forwardRef8((props, ref) => {
7546
+ var Textfield = forwardRef13((props, ref) => {
7566
7547
  const {
7567
7548
  id = useId(),
7568
7549
  type,
@@ -7696,7 +7677,7 @@ var Textfield = forwardRef8((props, ref) => {
7696
7677
  });
7697
7678
 
7698
7679
  // src/components/Slider/index.tsx
7699
- import { forwardRef as forwardRef9 } from "react";
7680
+ import { forwardRef as forwardRef14 } from "react";
7700
7681
 
7701
7682
  // src/components/Slider/style.module.scss
7702
7683
  var style_module_default12 = {
@@ -7714,7 +7695,7 @@ var style_module_default12 = {
7714
7695
  // src/components/Slider/index.tsx
7715
7696
  import * as SliderPrimitive from "@radix-ui/react-slider";
7716
7697
  import { Fragment as Fragment6, jsx as jsx152, jsxs as jsxs106 } from "react/jsx-runtime";
7717
- var SliderRoot = forwardRef9((props, ref) => {
7698
+ var SliderRoot = forwardRef14((props, ref) => {
7718
7699
  const { label, tooltip, rangeLeft, rangeRight, min, max, step = 50, ...rest } = props;
7719
7700
  return /* @__PURE__ */ jsx152(Fragment6, { children: /* @__PURE__ */ jsxs106(Tooltip.Provider, { children: [
7720
7701
  /* @__PURE__ */ jsx152(Label, { level: "secondary", size: "m", offset: "high", className: style_module_default12.label, children: label }),
@@ -7770,10 +7751,10 @@ var style_module_default13 = {
7770
7751
  };
7771
7752
 
7772
7753
  // src/components/Select/index.tsx
7773
- import { forwardRef as forwardRef10, useEffect as useEffect2, useState as useState4 } from "react";
7754
+ import { forwardRef as forwardRef15, useEffect as useEffect2, useState as useState4 } from "react";
7774
7755
  import clsx15 from "clsx";
7775
7756
  import { Fragment as Fragment7, jsx as jsx153, jsxs as jsxs107 } from "react/jsx-runtime";
7776
- var SelectContent = forwardRef10((props, ref) => {
7757
+ var SelectContent = forwardRef15((props, ref) => {
7777
7758
  const { id, isResponsive, popSide, sideOffset, listLabel, children } = props;
7778
7759
  return /* @__PURE__ */ jsx153(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx153(
7779
7760
  SelectPrimitive.Content,
@@ -7807,7 +7788,7 @@ var SelectContent = forwardRef10((props, ref) => {
7807
7788
  }
7808
7789
  ) });
7809
7790
  });
7810
- var SelectRoot = forwardRef10((props, ref) => {
7791
+ var SelectRoot = forwardRef15((props, ref) => {
7811
7792
  const {
7812
7793
  id,
7813
7794
  placeholder,