@deix/rossini-core 4.0.0 → 4.1.1
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/components/display/PaginatedList/ListItem.d.ts +20 -0
- package/lib/components/display/PaginatedList/ListItem.d.ts.map +1 -0
- package/lib/components/display/PaginatedList/ListItem.js +83 -0
- package/lib/components/display/PaginatedList/PaginatedList.d.ts +21 -0
- package/lib/components/display/PaginatedList/PaginatedList.d.ts.map +1 -0
- package/lib/components/display/PaginatedList/PaginatedList.js +109 -0
- package/lib/components/display/index.d.ts +4 -0
- package/lib/components/display/index.d.ts.map +1 -1
- package/lib/components/display/index.js +2 -0
- package/lib/components/index.d.ts +2 -2
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StringTranslation } from '../../../types';
|
|
3
|
+
export type Density = 'compact' | 'standard' | 'comfortable';
|
|
4
|
+
export interface ListItemProps {
|
|
5
|
+
id: string;
|
|
6
|
+
title: StringTranslation | string | React.ReactNode;
|
|
7
|
+
subtitle?: StringTranslation | string | React.ReactNode;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
actions?: {
|
|
10
|
+
label: StringTranslation | string;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
}[];
|
|
13
|
+
density?: Density;
|
|
14
|
+
rowIcon?: React.ReactNode;
|
|
15
|
+
canClick?: boolean;
|
|
16
|
+
listId: number;
|
|
17
|
+
}
|
|
18
|
+
declare const ListItem: ({ id, title, subtitle, onClick, actions, density, rowIcon, canClick, listId, }: ListItemProps) => React.JSX.Element;
|
|
19
|
+
export default ListItem;
|
|
20
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/display/PaginatedList/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,OAAO,EAAuB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxE,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC;AAE7D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACpD,QAAQ,CAAC,EAAE,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACxD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAAC;QAClC,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,EAAE,CAAC;IACJ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAQD,QAAA,MAAM,QAAQ,GAAI,gFAUf,aAAa,sBA8Hf,CAAC;AACF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { MoreVert } from '@mui/icons-material';
|
|
4
|
+
import { IconButton, ListItem as MuiListItem, Menu, MenuItem, Box, ListItemAvatar, ListItemText, useTheme, } from '@mui/material';
|
|
5
|
+
import { isStringTranslation } from '../../../types';
|
|
6
|
+
import { useLocale } from '../../../utils/hooks/useLocale';
|
|
7
|
+
/* const densityPaddingMap = {
|
|
8
|
+
compact: 0,
|
|
9
|
+
standard: 0,
|
|
10
|
+
comfortable: 1,
|
|
11
|
+
};*/
|
|
12
|
+
const ListItem = ({ id, title, subtitle, onClick, actions = [], density = 'standard', rowIcon, canClick = false, listId, }) => {
|
|
13
|
+
const locale = useLocale();
|
|
14
|
+
const theme = useTheme();
|
|
15
|
+
// Item Options
|
|
16
|
+
const [itemMenuAnchorEl, setItemMenuAnchorEl] = useState(null);
|
|
17
|
+
const isItemMenuOpen = Boolean(itemMenuAnchorEl);
|
|
18
|
+
return (React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement(MuiListItem, { disablePadding: true, key: id, dense: density === 'compact', sx: {
|
|
20
|
+
'&::before': listId > 0
|
|
21
|
+
? {
|
|
22
|
+
content: '""',
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
top: 0,
|
|
25
|
+
left: '0%',
|
|
26
|
+
width: '95%',
|
|
27
|
+
borderTop: `1px solid ${theme.palette.primary.light}`,
|
|
28
|
+
}
|
|
29
|
+
: undefined,
|
|
30
|
+
flexDirection: { xs: 'column', sm: 'row' },
|
|
31
|
+
alignItems: { xs: 'flex-start', sm: 'center' },
|
|
32
|
+
gap: 1,
|
|
33
|
+
},
|
|
34
|
+
// enable click only if not processing
|
|
35
|
+
style: { cursor: canClick ? 'pointer' : 'default' }, onClick: canClick && onClick ? () => onClick() : undefined, secondaryAction: actions.length > 0 ? (React.createElement(IconButton, { "aria-label": 'options', onClick: (e) => setItemMenuAnchorEl(e.currentTarget) },
|
|
36
|
+
React.createElement(MoreVert, null))) : undefined },
|
|
37
|
+
React.createElement(Box, { sx: {
|
|
38
|
+
display: 'flex',
|
|
39
|
+
width: '100%',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
gap: 1,
|
|
42
|
+
} },
|
|
43
|
+
rowIcon && (React.createElement(ListItemAvatar, { sx: {
|
|
44
|
+
minWidth: { xs: '28px', sm: '56px' }, // default is 56px, reduce to make it tighter
|
|
45
|
+
mr: { xs: 0, sm: 1 }, // control spacing to the right
|
|
46
|
+
} }, rowIcon)),
|
|
47
|
+
React.createElement(ListItemText, { primary: isStringTranslation(title)
|
|
48
|
+
? title[locale]
|
|
49
|
+
: title || 'Missing Item Title', secondary: subtitle
|
|
50
|
+
? isStringTranslation(subtitle)
|
|
51
|
+
? subtitle[locale]
|
|
52
|
+
: subtitle
|
|
53
|
+
: undefined }))),
|
|
54
|
+
React.createElement(Menu, { anchorEl: itemMenuAnchorEl, id: 'options-menu', open: isItemMenuOpen, onClose: () => setItemMenuAnchorEl(null), onClick: () => setItemMenuAnchorEl(null), slotProps: {
|
|
55
|
+
paper: {
|
|
56
|
+
elevation: 0,
|
|
57
|
+
sx: {
|
|
58
|
+
overflow: 'visible',
|
|
59
|
+
filter: 'drop-shadow(0px 2px 8px rgba(0,0,0,0.32))',
|
|
60
|
+
mt: 1.5,
|
|
61
|
+
'& .MuiAvatar-root': {
|
|
62
|
+
width: 32,
|
|
63
|
+
height: 32,
|
|
64
|
+
ml: -0.5,
|
|
65
|
+
mr: 1,
|
|
66
|
+
},
|
|
67
|
+
'&:before': {
|
|
68
|
+
content: '""',
|
|
69
|
+
display: 'block',
|
|
70
|
+
position: 'absolute',
|
|
71
|
+
top: 0,
|
|
72
|
+
right: 14,
|
|
73
|
+
width: 10,
|
|
74
|
+
height: 10,
|
|
75
|
+
bgcolor: 'background.paper',
|
|
76
|
+
transform: 'translateY(-50%) rotate(45deg)',
|
|
77
|
+
zIndex: 0,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
}, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' } }, actions.map((action) => (React.createElement(MenuItem, { onClick: action.onClick }, isStringTranslation(action.label) ? action.label[locale] : action.label))))));
|
|
82
|
+
};
|
|
83
|
+
export default ListItem;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ListItemProps } from './ListItem';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface PaginatedListProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
items: ListItemProps[];
|
|
8
|
+
totalItems: number;
|
|
9
|
+
page: number;
|
|
10
|
+
onPageChange: (page: number) => void;
|
|
11
|
+
pageSize: number;
|
|
12
|
+
onPageSizeChange: (page: number) => void;
|
|
13
|
+
rowsPerPageOptions?: number[];
|
|
14
|
+
menu?: ReactNode[];
|
|
15
|
+
densityMenuEnabled?: boolean;
|
|
16
|
+
maxHeight?: string | number;
|
|
17
|
+
emptyDataLabel?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const PaginatedList: ({ title, subtitle, items, totalItems, page, onPageChange, pageSize, rowsPerPageOptions, onPageSizeChange, menu, densityMenuEnabled, maxHeight, emptyDataLabel, }: PaginatedListProps) => React.JSX.Element;
|
|
20
|
+
export default PaginatedList;
|
|
21
|
+
//# sourceMappingURL=PaginatedList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaginatedList.d.ts","sourceRoot":"","sources":["../../../../src/components/display/PaginatedList/PaginatedList.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAqB5C,OAAiB,EAAW,aAAa,EAAE,MAAM,YAAY,CAAC;AAI9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA2BD,QAAA,MAAM,aAAa,GAAI,kKAcpB,kBAAkB,sBA4KpB,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import TableRowsIcon from '@mui/icons-material/TableRows';
|
|
4
|
+
import ViewHeadlineIcon from '@mui/icons-material/ViewHeadline';
|
|
5
|
+
import ViewStreamIcon from '@mui/icons-material/ViewStream';
|
|
6
|
+
import { Button, Card, CardContent, CardHeader, Grid, List, ListItemIcon, ListItemText, Menu, MenuItem, Pagination, Select, Typography, Box, } from '@mui/material';
|
|
7
|
+
import ListItem from './ListItem';
|
|
8
|
+
import { useLocale } from '../../../utils/hooks/useLocale';
|
|
9
|
+
import usePersistedState from '../../../utils/hooks/usePersistedState';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
const densityIconMap = {
|
|
12
|
+
compact: React.createElement(ViewHeadlineIcon, null),
|
|
13
|
+
standard: React.createElement(TableRowsIcon, null),
|
|
14
|
+
comfortable: React.createElement(ViewStreamIcon, null),
|
|
15
|
+
};
|
|
16
|
+
const paginatedListTranslations = {
|
|
17
|
+
rowsPerPage: {
|
|
18
|
+
it: 'Righe per pagina',
|
|
19
|
+
en: 'Rows per page',
|
|
20
|
+
},
|
|
21
|
+
of: {
|
|
22
|
+
it: 'di',
|
|
23
|
+
en: 'of',
|
|
24
|
+
},
|
|
25
|
+
density: {
|
|
26
|
+
it: 'Densità',
|
|
27
|
+
en: 'Density',
|
|
28
|
+
},
|
|
29
|
+
emptyDataLabel: {
|
|
30
|
+
it: 'Non ci sono dati',
|
|
31
|
+
en: 'No data available',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
const PaginatedList = ({ title, subtitle, items, totalItems, page = 0, onPageChange, pageSize = 10, rowsPerPageOptions = [10, 25, 50], onPageSizeChange, menu = [], densityMenuEnabled = false, maxHeight = '90vh', emptyDataLabel, }) => {
|
|
35
|
+
const locale = useLocale();
|
|
36
|
+
// Appearance
|
|
37
|
+
const [listDensity, setListDensity] = usePersistedState(`listDensity`, 'standard');
|
|
38
|
+
const [densityMenuAnchorEl, setDensityMenuAnchorEl] = useState(null);
|
|
39
|
+
const isDensityMenuOpen = Boolean(densityMenuAnchorEl);
|
|
40
|
+
return (React.createElement(React.Fragment, null,
|
|
41
|
+
React.createElement(Card, { style: { borderRadius: '16px', padding: '16px' } },
|
|
42
|
+
items.length === 0 && (React.createElement(Typography, { variant: 'h6', sx: { textAlign: 'center' } }, emptyDataLabel || paginatedListTranslations.emptyDataLabel[locale])),
|
|
43
|
+
items.length > 0 && (React.createElement(React.Fragment, null,
|
|
44
|
+
React.createElement(CardHeader, { title: title, subheader: subtitle, action: React.createElement(Box, { sx: {
|
|
45
|
+
display: 'flex',
|
|
46
|
+
alignItems: 'center',
|
|
47
|
+
} },
|
|
48
|
+
menu,
|
|
49
|
+
densityMenuEnabled && (React.createElement(Button, { size: 'small', variant: 'text', startIcon: densityIconMap[listDensity || 'standard'], sx: { ml: 2 }, onClick: (e) => setDensityMenuAnchorEl(e.currentTarget) }, paginatedListTranslations.density[locale] || 'Density'))) }),
|
|
50
|
+
React.createElement(CardContent, { sx: {
|
|
51
|
+
pt: 0,
|
|
52
|
+
'&:last-child': {
|
|
53
|
+
pb: 0, // MUI resetta l'ultimo CardContent → qui lo forzi
|
|
54
|
+
},
|
|
55
|
+
} },
|
|
56
|
+
React.createElement(List, { dense: listDensity === 'compact', sx: {
|
|
57
|
+
width: '100%',
|
|
58
|
+
position: 'relative',
|
|
59
|
+
overflow: 'auto',
|
|
60
|
+
maxHeight: maxHeight,
|
|
61
|
+
} }, items.map((item) => (React.createElement(ListItem, { ...item, key: item.id, density: listDensity })))),
|
|
62
|
+
React.createElement(Grid, { container: true, justifyContent: 'space-between' },
|
|
63
|
+
React.createElement(Grid, { size: { xs: 12, md: 3 }, sx: { textAlign: 'start' } },
|
|
64
|
+
React.createElement(Typography, { variant: 'caption', sx: { mr: 2 } },
|
|
65
|
+
paginatedListTranslations.rowsPerPage[locale] ||
|
|
66
|
+
'Rows per page',
|
|
67
|
+
":"),
|
|
68
|
+
React.createElement(Select, { labelId: 'page-size-select-label', id: 'page-size-select', value: Number(pageSize), label: 'Rows per Page', onChange: (event) => {
|
|
69
|
+
onPageSizeChange(Number(event.target.value));
|
|
70
|
+
}, variant: 'standard' }, rowsPerPageOptions.map((opt) => (React.createElement(MenuItem, { key: opt, value: Number(opt) },
|
|
71
|
+
React.createElement(Typography, { variant: 'caption', sx: { mr: 2 } }, opt)))))),
|
|
72
|
+
React.createElement(Grid, { size: { xs: 12, md: 6 } },
|
|
73
|
+
React.createElement(Box, { sx: { display: 'flex', justifyContent: 'center' } },
|
|
74
|
+
React.createElement(Pagination, { count: Math.ceil(totalItems / pageSize), size: 'small', showFirstButton: true, showLastButton: true, page: page + 1, onChange: onPageChange
|
|
75
|
+
? (_evt, page) => onPageChange(page - 1)
|
|
76
|
+
: undefined, sx: { mr: 4 } }))),
|
|
77
|
+
React.createElement(Grid, { size: { xs: 12, md: 3 }, sx: { textAlign: 'end' } },
|
|
78
|
+
React.createElement(Typography, { variant: 'caption' },
|
|
79
|
+
page * pageSize + 1,
|
|
80
|
+
"-",
|
|
81
|
+
Math.min((page + 1) * pageSize, totalItems),
|
|
82
|
+
' ',
|
|
83
|
+
paginatedListTranslations.of[locale],
|
|
84
|
+
" ",
|
|
85
|
+
totalItems))))))),
|
|
86
|
+
React.createElement(Menu, { anchorEl: densityMenuAnchorEl, id: 'density-menu', open: isDensityMenuOpen, onClose: () => setDensityMenuAnchorEl(null) },
|
|
87
|
+
React.createElement(MenuItem, { key: 'dense', onClick: () => {
|
|
88
|
+
setListDensity('compact');
|
|
89
|
+
setDensityMenuAnchorEl(null);
|
|
90
|
+
} },
|
|
91
|
+
React.createElement(ListItemIcon, null,
|
|
92
|
+
React.createElement(ViewHeadlineIcon, { fontSize: 'small' })),
|
|
93
|
+
React.createElement(ListItemText, null, "Compact")),
|
|
94
|
+
React.createElement(MenuItem, { key: 'standard', onClick: () => {
|
|
95
|
+
setListDensity('standard');
|
|
96
|
+
setDensityMenuAnchorEl(null);
|
|
97
|
+
} },
|
|
98
|
+
React.createElement(ListItemIcon, null,
|
|
99
|
+
React.createElement(TableRowsIcon, { fontSize: 'small' })),
|
|
100
|
+
React.createElement(ListItemText, null, "Standard")),
|
|
101
|
+
React.createElement(MenuItem, { key: 'comfortable', onClick: () => {
|
|
102
|
+
setListDensity('comfortable');
|
|
103
|
+
setDensityMenuAnchorEl(null);
|
|
104
|
+
} },
|
|
105
|
+
React.createElement(ListItemIcon, null,
|
|
106
|
+
React.createElement(ViewStreamIcon, { fontSize: 'small' })),
|
|
107
|
+
React.createElement(ListItemText, null, "Comfortable")))));
|
|
108
|
+
};
|
|
109
|
+
export default PaginatedList;
|
|
@@ -4,4 +4,8 @@ export { default as ImprovementChip } from './StyledValue/ImprovementChip';
|
|
|
4
4
|
export type { ImprovementChipProps } from './StyledValue/ImprovementChip';
|
|
5
5
|
export { default as StyledValue } from './StyledValue/StyledValue';
|
|
6
6
|
export type { FetchedValue, StyledValueProps } from './StyledValue/StyledValue';
|
|
7
|
+
export { default as ListItem } from './PaginatedList/ListItem';
|
|
8
|
+
export { default as PaginatedList } from './PaginatedList/PaginatedList';
|
|
9
|
+
export type { ListItemProps } from './PaginatedList/ListItem';
|
|
10
|
+
export type { PaginatedListProps } from './PaginatedList/PaginatedList';
|
|
7
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/display/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/display/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC;AACvE,YAAY,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as Accordion } from './Accordion/Accordion';
|
|
2
2
|
export { default as ImprovementChip } from './StyledValue/ImprovementChip';
|
|
3
3
|
export { default as StyledValue } from './StyledValue/StyledValue';
|
|
4
|
+
export { default as ListItem } from './PaginatedList/ListItem';
|
|
5
|
+
export { default as PaginatedList } from './PaginatedList/PaginatedList';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Avatar, LanguageSelect, ToggleButtonGroup } from './buttons';
|
|
2
2
|
export type { AvatarProps, ButtonGroupOption, LanguageSelectProps, ToggleButtonGroupProps, } from './buttons';
|
|
3
|
-
export { Accordion, StyledValue, ImprovementChip } from './display';
|
|
4
|
-
export type { AccordionProps, StyledValueProps, ImprovementChipProps, FetchedValue, } from './display';
|
|
3
|
+
export { Accordion, StyledValue, ImprovementChip, ListItem, PaginatedList } from './display';
|
|
4
|
+
export type { AccordionProps, StyledValueProps, ImprovementChipProps, FetchedValue, ListItemProps, PaginatedListProps } from './display';
|
|
5
5
|
export { Link } from './i18n';
|
|
6
6
|
export type { LinkProps } from './i18n';
|
|
7
7
|
export { MinimalLayout, StandardLayout } from './layout';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACtE,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACtE,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC7F,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,kBAAkB,EACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACzD,YAAY,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,YAAY,GACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Avatar, LanguageSelect, ToggleButtonGroup } from './buttons';
|
|
2
|
-
export { Accordion, StyledValue, ImprovementChip } from './display';
|
|
2
|
+
export { Accordion, StyledValue, ImprovementChip, ListItem, PaginatedList } from './display';
|
|
3
3
|
export { Link } from './i18n';
|
|
4
4
|
export { MinimalLayout, StandardLayout } from './layout';
|
|
5
5
|
export { CircularLoading } from './progress';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Accordion, Avatar, CircularLoading, ImprovementChip, LanguageSelect, Link, MinimalLayout, PageProvider, StandardLayout, StyledValue, ToggleButtonGroup, useUserInfo, } from './components';
|
|
2
|
-
export type { AccordionProps, AppLogoInfo, AvatarProps, ButtonGroupOption, CircularLoadingProps, FetchedValue, FooterProps, ImprovementChipProps, LanguageSelectProps, LinkProps, PageProviderProps, SidebarLink, SidebarProps, StyledValueProps, ToggleButtonGroupProps, UserInfo, } from './components';
|
|
1
|
+
export { Accordion, Avatar, CircularLoading, ImprovementChip, LanguageSelect, Link, MinimalLayout, PageProvider, StandardLayout, StyledValue, ToggleButtonGroup, useUserInfo, ListItem, PaginatedList, } from './components';
|
|
2
|
+
export type { AccordionProps, AppLogoInfo, AvatarProps, ButtonGroupOption, CircularLoadingProps, FetchedValue, FooterProps, ImprovementChipProps, LanguageSelectProps, LinkProps, PageProviderProps, SidebarLink, SidebarProps, StyledValueProps, ToggleButtonGroupProps, UserInfo, ListItemProps, PaginatedListProps, } from './components';
|
|
3
3
|
export { isStringTranslation } from './types';
|
|
4
4
|
export type { DBRow, DBRows, Language, Locale, PaginatedResponse, Query, StringTranslation, } from './types';
|
|
5
5
|
export { camelToSnake, colorToRgb, commonStart, createI18nMiddleware, dateDiff, getTextColor, getTimeStr, hexToRgb, interpolate, isValidDate, stringToColor, toLocalStandardDateString, toTitleCase, useAPI, useLocale, usePathname, usePersistedState, } from './utils';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,eAAe,EACf,eAAe,EACf,cAAc,EACd,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,eAAe,EACf,eAAe,EACf,cAAc,EACd,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,mBAAmB,EACnB,SAAS,EACT,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACR,aAAa,EACb,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,YAAY,EACV,KAAK,EACL,MAAM,EACN,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,KAAK,EACL,iBAAiB,GAClB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,YAAY,EACZ,UAAU,EACV,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,WAAW,EACX,WAAW,EACX,aAAa,EACb,yBAAyB,EACzB,WAAW,EACX,MAAM,EACN,SAAS,EACT,WAAW,EACX,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Accordion, Avatar, CircularLoading, ImprovementChip, LanguageSelect, Link, MinimalLayout, PageProvider, StandardLayout, StyledValue, ToggleButtonGroup, useUserInfo, } from './components';
|
|
1
|
+
export { Accordion, Avatar, CircularLoading, ImprovementChip, LanguageSelect, Link, MinimalLayout, PageProvider, StandardLayout, StyledValue, ToggleButtonGroup, useUserInfo, ListItem, PaginatedList, } from './components';
|
|
2
2
|
export { isStringTranslation } from './types';
|
|
3
3
|
export { camelToSnake, colorToRgb, commonStart, createI18nMiddleware, dateDiff, getTextColor, getTimeStr, hexToRgb, interpolate, isValidDate, stringToColor, toLocalStandardDateString, toTitleCase, useAPI, useLocale, usePathname, usePersistedState, } from './utils';
|