norma-library 0.6.983 → 0.6.984
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "norma-library",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.984",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.",
|
|
6
6
|
"scripts": {
|
|
@@ -6,11 +6,11 @@ export const Container = styled.div`
|
|
|
6
6
|
padding: 15px;
|
|
7
7
|
`
|
|
8
8
|
|
|
9
|
-
export const TableContainer = styled.div
|
|
10
|
-
overflow-x: auto;
|
|
9
|
+
export const TableContainer = styled.div<{ $sticky?: boolean}>`
|
|
10
|
+
overflow-x: ${(props) => (props.$sticky ? 'initial' : 'auto')};
|
|
11
|
+
width: 100%;
|
|
11
12
|
`
|
|
12
13
|
|
|
13
|
-
|
|
14
14
|
export const Table = styled.table`
|
|
15
15
|
display: table;
|
|
16
16
|
width: 100%;
|
|
@@ -144,7 +144,7 @@ const UncontrolledTable = (props: UncontrolledTableProps) => {
|
|
|
144
144
|
onDragEnd={handleDragEnd}
|
|
145
145
|
sensors={sensors}
|
|
146
146
|
>
|
|
147
|
-
<S.TableContainer
|
|
147
|
+
<S.TableContainer $sticky={sticky?.enabled}>
|
|
148
148
|
<S.Table className={tableClassName || ''}>
|
|
149
149
|
<S.Thead $sticky={sticky?.enabled} $stickyTopP={sticky?.top}>
|
|
150
150
|
{table.getHeaderGroups().map((headerGroup: any) => (
|