@app-studio/web 0.8.38 → 0.8.40
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/components/Avatar/Avatar/Avatar.props.d.ts +1 -0
- package/dist/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Table/Table/Table.type.d.ts +10 -10
- package/dist/web.cjs.development.js +8 -5
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +8 -5
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +8 -5
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AvatarViewProps } from './Avatar.props';
|
|
3
|
-
export declare const AvatarView: ({ src, size, fallback, styles, imageError, setImageError, }: AvatarViewProps) => React.JSX.Element;
|
|
3
|
+
export declare const AvatarView: ({ src, size, fallback, styles, imageError, setImageError, onClick, }: AvatarViewProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AvatarProps } from './Avatar/Avatar.props';
|
|
3
|
-
export declare const Avatar: ({ src, size, styles, fallback }: AvatarProps) => React.JSX.Element;
|
|
3
|
+
export declare const Avatar: ({ src, size, styles, fallback, onClick, }: AvatarProps) => React.JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type TableViewStyles = {
|
|
3
|
-
table?:
|
|
4
|
-
thead?:
|
|
5
|
-
tfoot?:
|
|
6
|
-
tbody?:
|
|
7
|
-
tr?:
|
|
8
|
-
td?:
|
|
9
|
-
th?:
|
|
10
|
-
caption?:
|
|
3
|
+
table?: ViewProps;
|
|
4
|
+
thead?: ViewProps;
|
|
5
|
+
tfoot?: ViewProps;
|
|
6
|
+
tbody?: ViewProps;
|
|
7
|
+
tr?: ViewProps;
|
|
8
|
+
td?: ViewProps;
|
|
9
|
+
th?: ViewProps;
|
|
10
|
+
caption?: ViewProps;
|
|
11
11
|
};
|
|
12
12
|
export interface Column {
|
|
13
13
|
title: string;
|
|
@@ -15,5 +15,5 @@ export interface Column {
|
|
|
15
15
|
}
|
|
16
16
|
export interface FooterCell {
|
|
17
17
|
value: string;
|
|
18
|
-
props?:
|
|
18
|
+
props?: ViewProps;
|
|
19
19
|
}
|
|
@@ -1809,7 +1809,8 @@ var AvatarView = _ref => {
|
|
|
1809
1809
|
fallback = 'IM',
|
|
1810
1810
|
styles,
|
|
1811
1811
|
imageError,
|
|
1812
|
-
setImageError
|
|
1812
|
+
setImageError,
|
|
1813
|
+
onClick = () => {}
|
|
1813
1814
|
} = _ref;
|
|
1814
1815
|
// Determines the size of the avatar by mapping the size prop to the predefined AvatarSizeMap.
|
|
1815
1816
|
var avatarSize = AvatarSizeMap[size];
|
|
@@ -1827,7 +1828,8 @@ var AvatarView = _ref => {
|
|
|
1827
1828
|
borderWidth: "1px",
|
|
1828
1829
|
borderStyle: "solid",
|
|
1829
1830
|
borderColor: imageError ? 'black' : 'transparent',
|
|
1830
|
-
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)"
|
|
1831
|
+
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
|
|
1832
|
+
onClick: onClick
|
|
1831
1833
|
}, styles == null ? void 0 : styles.container), !imageError ? (/*#__PURE__*/React__default.createElement(appStudio.Image, {
|
|
1832
1834
|
alt: "IM",
|
|
1833
1835
|
src: src,
|
|
@@ -1846,7 +1848,8 @@ var AvatarComponent = _ref => {
|
|
|
1846
1848
|
src,
|
|
1847
1849
|
size,
|
|
1848
1850
|
styles,
|
|
1849
|
-
fallback
|
|
1851
|
+
fallback,
|
|
1852
|
+
onClick
|
|
1850
1853
|
} = _ref;
|
|
1851
1854
|
// Uses custom hook useAvatarState to manage the avatar image loading error state.
|
|
1852
1855
|
var {
|
|
@@ -1860,7 +1863,8 @@ var AvatarComponent = _ref => {
|
|
|
1860
1863
|
styles: styles,
|
|
1861
1864
|
fallback: fallback,
|
|
1862
1865
|
imageError: imageError,
|
|
1863
|
-
setImageError: setImageError
|
|
1866
|
+
setImageError: setImageError,
|
|
1867
|
+
onClick: onClick
|
|
1864
1868
|
});
|
|
1865
1869
|
// AvatarComponent is a functional component that wraps the AvatarView with added state logic.
|
|
1866
1870
|
};
|
|
@@ -3919,7 +3923,6 @@ var CheckboxView = _ref => {
|
|
|
3919
3923
|
container: Object.assign({
|
|
3920
3924
|
gap: 10,
|
|
3921
3925
|
display: 'flex',
|
|
3922
|
-
alignItems: 'center',
|
|
3923
3926
|
height: 'fit-content',
|
|
3924
3927
|
flexDirection: 'column',
|
|
3925
3928
|
width: 'fit-content',
|