@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.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
+
import React__default from 'react';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import { ClassValue } from 'clsx';
|
|
6
7
|
|
|
@@ -18,6 +19,11 @@ interface ElementProps {
|
|
|
18
19
|
style?: React.CSSProperties;
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
interface TypographyProps extends ElementProps {
|
|
23
|
+
tagName: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
24
|
+
textContent: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
type InputProperties = {
|
|
22
28
|
placeholder?: string;
|
|
23
29
|
regexPattern?: string;
|
|
@@ -81,6 +87,11 @@ declare const Flex: ({ children, className, style }: ElementProps) => react_jsx_
|
|
|
81
87
|
|
|
82
88
|
declare const Grid: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
83
89
|
|
|
90
|
+
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React__default.DetailedReactHTMLElement<{
|
|
91
|
+
style: React__default.CSSProperties | undefined;
|
|
92
|
+
className: string;
|
|
93
|
+
}, HTMLElement>;
|
|
94
|
+
|
|
84
95
|
declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
|
|
85
96
|
|
|
86
97
|
declare const EmailInput: ({ className, style, ...props }: EmailInputProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -121,4 +132,4 @@ declare const ImageControl: ({ className, style, imageUrl }: LogoProps) => react
|
|
|
121
132
|
|
|
122
133
|
declare function cn(...inputs: ClassValue[]): string;
|
|
123
134
|
|
|
124
|
-
export { Button, CheckboxInput, DateRange, Dropdown, EmailInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Logo, MultiCheckbox, Notification, PasswordInput, PhoneInput, Profile, RadioInput, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, UrlInput, buttonVariants, cn };
|
|
135
|
+
export { Button, CheckboxInput, DateRange, Dropdown, EmailInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Logo, MultiCheckbox, Notification, PasswordInput, PhoneInput, Profile, RadioInput, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, Typography, UrlInput, buttonVariants, cn };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
+
import React__default from 'react';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import { ClassValue } from 'clsx';
|
|
6
7
|
|
|
@@ -18,6 +19,11 @@ interface ElementProps {
|
|
|
18
19
|
style?: React.CSSProperties;
|
|
19
20
|
}
|
|
20
21
|
|
|
22
|
+
interface TypographyProps extends ElementProps {
|
|
23
|
+
tagName: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
24
|
+
textContent: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
type InputProperties = {
|
|
22
28
|
placeholder?: string;
|
|
23
29
|
regexPattern?: string;
|
|
@@ -81,6 +87,11 @@ declare const Flex: ({ children, className, style }: ElementProps) => react_jsx_
|
|
|
81
87
|
|
|
82
88
|
declare const Grid: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
83
89
|
|
|
90
|
+
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React__default.DetailedReactHTMLElement<{
|
|
91
|
+
style: React__default.CSSProperties | undefined;
|
|
92
|
+
className: string;
|
|
93
|
+
}, HTMLElement>;
|
|
94
|
+
|
|
84
95
|
declare const TextInput: ({ className, style, ...props }: TextInputProps) => react_jsx_runtime.JSX.Element;
|
|
85
96
|
|
|
86
97
|
declare const EmailInput: ({ className, style, ...props }: EmailInputProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -121,4 +132,4 @@ declare const ImageControl: ({ className, style, imageUrl }: LogoProps) => react
|
|
|
121
132
|
|
|
122
133
|
declare function cn(...inputs: ClassValue[]): string;
|
|
123
134
|
|
|
124
|
-
export { Button, CheckboxInput, DateRange, Dropdown, EmailInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Logo, MultiCheckbox, Notification, PasswordInput, PhoneInput, Profile, RadioInput, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, UrlInput, buttonVariants, cn };
|
|
135
|
+
export { Button, CheckboxInput, DateRange, Dropdown, EmailInput, Flex as FlexLayout, Grid as GridLayout, ImageControl as Logo, MultiCheckbox, Notification, PasswordInput, PhoneInput, Profile, RadioInput, Spacer, StagesComponent as Stages, SwitchToggle, Table, Tabs, TextInput, Textarea, Typography, UrlInput, buttonVariants, cn };
|
package/dist/index.js
CHANGED
|
@@ -51,6 +51,7 @@ __export(index_exports, {
|
|
|
51
51
|
Tabs: () => Tabs_default,
|
|
52
52
|
TextInput: () => TextInput,
|
|
53
53
|
Textarea: () => Textarea2,
|
|
54
|
+
Typography: () => Typography_default,
|
|
54
55
|
UrlInput: () => UrlInput,
|
|
55
56
|
buttonVariants: () => buttonVariants,
|
|
56
57
|
cn: () => cn
|
|
@@ -137,6 +138,29 @@ var Grid_default = Grid;
|
|
|
137
138
|
|
|
138
139
|
// src/components/Basic/Typography/Typography.tsx
|
|
139
140
|
var import_react = __toESM(require("react"));
|
|
141
|
+
var Typography = ({
|
|
142
|
+
className,
|
|
143
|
+
style,
|
|
144
|
+
tagName,
|
|
145
|
+
textContent
|
|
146
|
+
}) => {
|
|
147
|
+
const Tag = tagName || "h1";
|
|
148
|
+
return import_react.default.createElement(
|
|
149
|
+
Tag,
|
|
150
|
+
{
|
|
151
|
+
style,
|
|
152
|
+
className: cn(className, "pointer-events-auto")
|
|
153
|
+
},
|
|
154
|
+
[
|
|
155
|
+
import_react.default.createElement("span", {
|
|
156
|
+
key: "html",
|
|
157
|
+
className: "pointer-events-none",
|
|
158
|
+
dangerouslySetInnerHTML: { __html: textContent }
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
);
|
|
162
|
+
};
|
|
163
|
+
var Typography_default = Typography;
|
|
140
164
|
|
|
141
165
|
// src/components/Basic/Shape/Shape.tsx
|
|
142
166
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
@@ -1641,6 +1665,7 @@ var Logo_default = ImageControl;
|
|
|
1641
1665
|
Tabs,
|
|
1642
1666
|
TextInput,
|
|
1643
1667
|
Textarea,
|
|
1668
|
+
Typography,
|
|
1644
1669
|
UrlInput,
|
|
1645
1670
|
buttonVariants,
|
|
1646
1671
|
cn
|