@liner-fe/prism 1.9.2 → 1.9.3
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.mjs +38 -5
- package/lib/index.mjs.map +3 -3
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4820,6 +4820,7 @@ var style_module_default3 = {
|
|
|
4820
4820
|
import { useEffect, useRef, useState } from "react";
|
|
4821
4821
|
|
|
4822
4822
|
// src/components/Typography/Paragraph.tsx
|
|
4823
|
+
import { vars } from "@liner-fe/design-token";
|
|
4823
4824
|
import clsx3 from "clsx";
|
|
4824
4825
|
|
|
4825
4826
|
// src/components/Typography/style.module.scss
|
|
@@ -4859,7 +4860,14 @@ var Paragraph = /* @__PURE__ */ __name(({
|
|
|
4859
4860
|
color = "neutral-label-primary",
|
|
4860
4861
|
...rest
|
|
4861
4862
|
}) => {
|
|
4862
|
-
return /* @__PURE__ */ jsx97(
|
|
4863
|
+
return /* @__PURE__ */ jsx97(
|
|
4864
|
+
"p",
|
|
4865
|
+
{
|
|
4866
|
+
...rest,
|
|
4867
|
+
className: clsx3(`lp-sys-typo-paragraph${size}-${type}-${weight}`, style_module_default4.paragraph, vars.color[color], className),
|
|
4868
|
+
children
|
|
4869
|
+
}
|
|
4870
|
+
);
|
|
4863
4871
|
}, "Paragraph");
|
|
4864
4872
|
|
|
4865
4873
|
// src/components/Toast/index.tsx
|
|
@@ -4921,6 +4929,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
4921
4929
|
|
|
4922
4930
|
// src/components/Typography/Heading.tsx
|
|
4923
4931
|
import clsx4 from "clsx";
|
|
4932
|
+
import { vars as vars2 } from "@liner-fe/design-token";
|
|
4924
4933
|
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
4925
4934
|
var Heading = /* @__PURE__ */ __name(({
|
|
4926
4935
|
size,
|
|
@@ -4931,11 +4940,19 @@ var Heading = /* @__PURE__ */ __name(({
|
|
|
4931
4940
|
...rest
|
|
4932
4941
|
}) => {
|
|
4933
4942
|
const Element = `h${size}`;
|
|
4934
|
-
return /* @__PURE__ */ jsx99(
|
|
4943
|
+
return /* @__PURE__ */ jsx99(
|
|
4944
|
+
Element,
|
|
4945
|
+
{
|
|
4946
|
+
...rest,
|
|
4947
|
+
className: clsx4(`lp-sys-typo-heading${size}-${type}`, style_module_default4.heading, vars2.color[color], className),
|
|
4948
|
+
children
|
|
4949
|
+
}
|
|
4950
|
+
);
|
|
4935
4951
|
}, "Heading");
|
|
4936
4952
|
|
|
4937
4953
|
// src/components/Typography/Display.tsx
|
|
4938
4954
|
import clsx5 from "clsx";
|
|
4955
|
+
import { vars as vars3 } from "@liner-fe/design-token";
|
|
4939
4956
|
import { jsx as jsx100 } from "react/jsx-runtime";
|
|
4940
4957
|
var Display = /* @__PURE__ */ __name(({
|
|
4941
4958
|
size,
|
|
@@ -4946,10 +4963,18 @@ var Display = /* @__PURE__ */ __name(({
|
|
|
4946
4963
|
color = "neutral-label-primary",
|
|
4947
4964
|
...rest
|
|
4948
4965
|
}) => {
|
|
4949
|
-
return /* @__PURE__ */ jsx100(
|
|
4966
|
+
return /* @__PURE__ */ jsx100(
|
|
4967
|
+
"p",
|
|
4968
|
+
{
|
|
4969
|
+
...rest,
|
|
4970
|
+
className: clsx5(`lp-sys-typo-display${size}-${type}-${weight}`, style_module_default4.display, vars3.color[color], className),
|
|
4971
|
+
children
|
|
4972
|
+
}
|
|
4973
|
+
);
|
|
4950
4974
|
}, "Display");
|
|
4951
4975
|
|
|
4952
4976
|
// src/components/Typography/Title.tsx
|
|
4977
|
+
import { vars as vars4 } from "@liner-fe/design-token";
|
|
4953
4978
|
import clsx6 from "clsx";
|
|
4954
4979
|
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
4955
4980
|
var Title2 = /* @__PURE__ */ __name(({
|
|
@@ -4961,11 +4986,19 @@ var Title2 = /* @__PURE__ */ __name(({
|
|
|
4961
4986
|
color = "neutral-label-primary",
|
|
4962
4987
|
...rest
|
|
4963
4988
|
}) => {
|
|
4964
|
-
return /* @__PURE__ */ jsx101(
|
|
4989
|
+
return /* @__PURE__ */ jsx101(
|
|
4990
|
+
"p",
|
|
4991
|
+
{
|
|
4992
|
+
...rest,
|
|
4993
|
+
className: clsx6(`lp-sys-typo-title${size}-${type}-${weight}`, style_module_default4.title, vars4.color[color], className),
|
|
4994
|
+
children
|
|
4995
|
+
}
|
|
4996
|
+
);
|
|
4965
4997
|
}, "Title");
|
|
4966
4998
|
|
|
4967
4999
|
// src/components/Typography/Caption.tsx
|
|
4968
5000
|
import clsx7 from "clsx";
|
|
5001
|
+
import { vars as vars5 } from "@liner-fe/design-token";
|
|
4969
5002
|
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
4970
5003
|
var Caption = /* @__PURE__ */ __name(({
|
|
4971
5004
|
children,
|
|
@@ -4980,7 +5013,7 @@ var Caption = /* @__PURE__ */ __name(({
|
|
|
4980
5013
|
"caption",
|
|
4981
5014
|
{
|
|
4982
5015
|
...rest,
|
|
4983
|
-
className: clsx7(`lp-sys-typo-caption${size}-${type}-${weight}`, style_module_default4.caption, color, className),
|
|
5016
|
+
className: clsx7(`lp-sys-typo-caption${size}-${type}-${weight}`, style_module_default4.caption, vars5.color[color], className),
|
|
4984
5017
|
children
|
|
4985
5018
|
}
|
|
4986
5019
|
);
|