@algorithm-shift/design-system 1.2.4 → 1.2.5
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/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -78,6 +78,29 @@ var Grid_default = Grid;
|
|
|
78
78
|
|
|
79
79
|
// src/components/Basic/Typography/Typography.tsx
|
|
80
80
|
import React from "react";
|
|
81
|
+
var Typography = ({
|
|
82
|
+
className,
|
|
83
|
+
style,
|
|
84
|
+
tagName,
|
|
85
|
+
textContent
|
|
86
|
+
}) => {
|
|
87
|
+
const Tag = tagName || "h1";
|
|
88
|
+
return React.createElement(
|
|
89
|
+
Tag,
|
|
90
|
+
{
|
|
91
|
+
style,
|
|
92
|
+
className: cn(className, "pointer-events-auto")
|
|
93
|
+
},
|
|
94
|
+
[
|
|
95
|
+
React.createElement("span", {
|
|
96
|
+
key: "html",
|
|
97
|
+
className: "pointer-events-none",
|
|
98
|
+
dangerouslySetInnerHTML: { __html: textContent }
|
|
99
|
+
})
|
|
100
|
+
]
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
var Typography_default = Typography;
|
|
81
104
|
|
|
82
105
|
// src/components/Basic/Shape/Shape.tsx
|
|
83
106
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
@@ -1585,6 +1608,7 @@ export {
|
|
|
1585
1608
|
Tabs_default as Tabs,
|
|
1586
1609
|
TextInput,
|
|
1587
1610
|
Textarea2 as Textarea,
|
|
1611
|
+
Typography_default as Typography,
|
|
1588
1612
|
UrlInput,
|
|
1589
1613
|
buttonVariants,
|
|
1590
1614
|
cn
|