@algorithm-shift/design-system 1.3.101 → 1.3.102
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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -27,6 +27,7 @@ interface ElementProps {
|
|
|
27
27
|
interface TypographyProps extends ElementProps {
|
|
28
28
|
tagName?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
29
29
|
textContent?: string;
|
|
30
|
+
onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
interface ImageProps extends ElementProps {
|
|
@@ -246,7 +247,7 @@ interface BreadcrumbProps extends ElementProps {
|
|
|
246
247
|
interface ButtonGroupProps extends ElementProps {
|
|
247
248
|
textContent?: string;
|
|
248
249
|
list?: Record<string, any>;
|
|
249
|
-
onGroupItemClick?: (data: { item: Record<string, any>}) => void;
|
|
250
|
+
onGroupItemClick?: (data: { item: Record<string, any> }) => void;
|
|
250
251
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
251
252
|
}
|
|
252
253
|
interface AccordionProps extends ElementProps {
|
|
@@ -309,9 +310,10 @@ declare const ImageControl: ({ className, style, imageUrl, altText, apiUrl, ...p
|
|
|
309
310
|
|
|
310
311
|
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
311
312
|
|
|
312
|
-
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React$1.DetailedReactHTMLElement<{
|
|
313
|
+
declare const Typography: ({ className, style, tagName, textContent, onClick, }: TypographyProps) => React$1.DetailedReactHTMLElement<{
|
|
313
314
|
style: React$1.CSSProperties | undefined;
|
|
314
315
|
className: string;
|
|
316
|
+
onClick: ((e: React$1.MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
|
|
315
317
|
}, HTMLElement>;
|
|
316
318
|
|
|
317
319
|
declare const Breadcrumb: ({ list, className, style }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ interface ElementProps {
|
|
|
27
27
|
interface TypographyProps extends ElementProps {
|
|
28
28
|
tagName?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
29
29
|
textContent?: string;
|
|
30
|
+
onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
interface ImageProps extends ElementProps {
|
|
@@ -246,7 +247,7 @@ interface BreadcrumbProps extends ElementProps {
|
|
|
246
247
|
interface ButtonGroupProps extends ElementProps {
|
|
247
248
|
textContent?: string;
|
|
248
249
|
list?: Record<string, any>;
|
|
249
|
-
onGroupItemClick?: (data: { item: Record<string, any>}) => void;
|
|
250
|
+
onGroupItemClick?: (data: { item: Record<string, any> }) => void;
|
|
250
251
|
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
251
252
|
}
|
|
252
253
|
interface AccordionProps extends ElementProps {
|
|
@@ -309,9 +310,10 @@ declare const ImageControl: ({ className, style, imageUrl, altText, apiUrl, ...p
|
|
|
309
310
|
|
|
310
311
|
declare const Shape: ({ children, className, style }: ElementProps) => react_jsx_runtime.JSX.Element;
|
|
311
312
|
|
|
312
|
-
declare const Typography: ({ className, style, tagName, textContent, }: TypographyProps) => React$1.DetailedReactHTMLElement<{
|
|
313
|
+
declare const Typography: ({ className, style, tagName, textContent, onClick, }: TypographyProps) => React$1.DetailedReactHTMLElement<{
|
|
313
314
|
style: React$1.CSSProperties | undefined;
|
|
314
315
|
className: string;
|
|
316
|
+
onClick: ((e: React$1.MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
|
|
315
317
|
}, HTMLElement>;
|
|
316
318
|
|
|
317
319
|
declare const Breadcrumb: ({ list, className, style }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -622,14 +622,16 @@ var Typography = ({
|
|
|
622
622
|
className,
|
|
623
623
|
style,
|
|
624
624
|
tagName,
|
|
625
|
-
textContent
|
|
625
|
+
textContent,
|
|
626
|
+
onClick
|
|
626
627
|
}) => {
|
|
627
628
|
const Tag = tagName || "h1";
|
|
628
629
|
return import_react7.default.createElement(
|
|
629
630
|
Tag,
|
|
630
631
|
{
|
|
631
632
|
style,
|
|
632
|
-
className: cn(className, "pointer-events-auto")
|
|
633
|
+
className: cn(className, "pointer-events-auto"),
|
|
634
|
+
onClick
|
|
633
635
|
},
|
|
634
636
|
[
|
|
635
637
|
import_react7.default.createElement("span", {
|