@ssa-ui-kit/core 2.19.2 → 2.20.0
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/NestedTable/NestedTableContext.d.ts +3 -0
- package/dist/components/NestedTable/components/NestedTable.d.ts +3 -0
- package/dist/components/NestedTable/components/NestedTableCell.d.ts +2 -1
- package/dist/components/NestedTable/components/index.d.ts +1 -0
- package/dist/components/NestedTable/hooks/index.d.ts +2 -0
- package/dist/components/NestedTable/hooks/useNestedTableContext.d.ts +1 -0
- package/dist/components/NestedTable/hooks/useNestedTableRowContext.d.ts +1 -0
- package/dist/components/NestedTable/index.d.ts +1 -1
- package/dist/components/NestedTable/stories/NestedTableStory.d.ts +2 -0
- package/dist/components/NestedTable/types.d.ts +5 -0
- package/dist/components/Table/stories/NoControlOrders/StoryComponent.d.ts +1 -0
- package/dist/components/Table/stories/NoControlOrders/components/ActionMore.d.ts +4 -0
- package/dist/components/Table/stories/NoControlOrders/components/Reason.d.ts +3 -0
- package/dist/components/Table/stories/NoControlOrders/components/TableList.d.ts +2 -0
- package/dist/components/Table/stories/NoControlOrders/components/TableRow.d.ts +2 -0
- package/dist/components/Table/stories/NoControlOrders/components/index.d.ts +4 -0
- package/dist/components/Table/stories/NoControlOrders/mockData.d.ts +14 -0
- package/dist/components/Table/stories/NoControlOrders/types.d.ts +15 -0
- package/dist/components/Table/stories/StyledTable/StoryComponent.d.ts +1 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionIcon.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionItem.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionMore.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionRun.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/Actions.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionsWrapper.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/consts.d.ts +5 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/index.d.ts +6 -0
- package/dist/components/Table/stories/StyledTable/components/Exchange/Exchange.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/Exchange/consts.d.ts +15 -0
- package/dist/components/Table/stories/StyledTable/components/Exchange/index.d.ts +1 -0
- package/dist/components/Table/stories/StyledTable/components/Exchange/types.d.ts +5 -0
- package/dist/components/Table/stories/StyledTable/components/PNL.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/ROI.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/TableTag.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Trade/Trade.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/Trade/consts.d.ts +14 -0
- package/dist/components/Table/stories/StyledTable/components/Trade/index.d.ts +1 -0
- package/dist/components/Table/stories/StyledTable/components/Trade/types.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/index.d.ts +6 -0
- package/dist/components/Table/stories/StyledTable/index.d.ts +1 -0
- package/dist/components/Table/stories/StyledTable/mockData.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/types.d.ts +26 -0
- package/dist/components/TableCellHeader/TableCellHeader.d.ts +3 -0
- package/dist/components/TableCellHeader/index.d.ts +1 -0
- package/dist/components/TableRow/TableRow.d.ts +3 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +79 -22
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/NestedTable/useNestedTableRowContext.d.ts +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NestedTableContextType } from './types';
|
|
2
|
+
export declare const NestedTableContext: import("react").Context<NestedTableContextType>;
|
|
3
|
+
export declare const NestedTableProvider: ({ children, collapsedIconName, expandedIconName, }: React.PropsWithChildren<NestedTableContextType>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
import { CommonProps } from '../../../types/emotion';
|
|
3
|
+
export declare const NestedTableCell: ({ children, ...props }: React.PropsWithChildren<HTMLAttributes<HTMLTableCellElement>> & CommonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useNestedTableContext: () => import("../types").NestedTableContextType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useNestedTableRowContext: () => import("../types").NestedTableRowContextType;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
+
export declare const NestedDefaultRow: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const NestedTableDefaultStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
1
3
|
export declare const NestedTableStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IconProps } from '../Icon/types';
|
|
3
|
+
export type NestedTableContextType = {
|
|
4
|
+
collapsedIconName?: IconProps['name'];
|
|
5
|
+
expandedIconName?: IconProps['name'];
|
|
6
|
+
};
|
|
2
7
|
export type NestedTableRowContextType = {
|
|
3
8
|
isCollapsed: boolean;
|
|
4
9
|
isSubHeader: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NoControlOrdersStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const noControlOrdersData: {
|
|
2
|
+
id: number;
|
|
3
|
+
exchange: import("../StyledTable/components/Exchange/types").ExchangeType;
|
|
4
|
+
account: string;
|
|
5
|
+
botName: string;
|
|
6
|
+
botRun: string;
|
|
7
|
+
orderId: string;
|
|
8
|
+
status: boolean;
|
|
9
|
+
reason: string;
|
|
10
|
+
pair: string;
|
|
11
|
+
orderSize: string;
|
|
12
|
+
orderType: "SELL";
|
|
13
|
+
isDisabled: boolean;
|
|
14
|
+
}[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ExchangeType } from '../StyledTable/components/Exchange/types';
|
|
2
|
+
export interface NoControlOrdersItem {
|
|
3
|
+
id: number;
|
|
4
|
+
exchange: ExchangeType;
|
|
5
|
+
account: string;
|
|
6
|
+
botName: string;
|
|
7
|
+
botRun: string;
|
|
8
|
+
orderId: string;
|
|
9
|
+
status: boolean;
|
|
10
|
+
reason: string;
|
|
11
|
+
pair: string;
|
|
12
|
+
orderSize: string;
|
|
13
|
+
orderType: 'SELL';
|
|
14
|
+
isDisabled: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledTableStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const exchangeIcons: {
|
|
2
|
+
binance: {
|
|
3
|
+
icon: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
kraken: {
|
|
7
|
+
icon: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
bittrex: {
|
|
11
|
+
icon: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type ExchangeIconsType = typeof exchangeIcons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Exchange } from './Exchange';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Trade } from './Trade';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ExchangeType } from './components/Exchange/types';
|
|
2
|
+
import { TradeType } from './components/Trade/types';
|
|
3
|
+
export interface PNL {
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
isIncreasing: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ROI {
|
|
9
|
+
amount: number;
|
|
10
|
+
isIncreasing: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface StyledTableItem {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
creationDate: string;
|
|
16
|
+
exchange: ExchangeType;
|
|
17
|
+
status: TradeType;
|
|
18
|
+
pair: string;
|
|
19
|
+
pnl: PNL;
|
|
20
|
+
roi: ROI;
|
|
21
|
+
isDisabled: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface StyledTableProps {
|
|
24
|
+
children: React.ReactElement<React.PropsWithChildren<StyledTableItem>>[];
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TableCellHeader';
|
|
@@ -2,5 +2,7 @@ import { CommonProps } from '../../types/emotion';
|
|
|
2
2
|
declare const TableRow: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
as?: React.ElementType;
|
|
5
|
-
} & CommonProps
|
|
5
|
+
} & CommonProps & {
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
|
|
6
8
|
export default TableRow;
|
|
@@ -53,6 +53,7 @@ export { default as TabBar } from './TabBar';
|
|
|
53
53
|
export { default as Table } from './Table';
|
|
54
54
|
export { default as TableBody } from './TableBody';
|
|
55
55
|
export { default as TableCell } from './TableCell';
|
|
56
|
+
export { default as TableCellHeader } from './TableCellHeader';
|
|
56
57
|
export { default as TableHead } from './TableHead';
|
|
57
58
|
export { default as TableRow } from './TableRow';
|
|
58
59
|
export { default as Tag } from './Tag';
|
|
@@ -113,3 +114,4 @@ export * from './WithVisibleUpToLG';
|
|
|
113
114
|
export * from './Wrapper';
|
|
114
115
|
export * as JsonSchema from './JsonSchemaForm';
|
|
115
116
|
export type { DropdownOptionProps } from './DropdownOptions';
|
|
117
|
+
export type { RadioProps } from './Radio/types';
|
package/dist/index.js
CHANGED
|
@@ -136,6 +136,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
136
136
|
MultipleDropdownNotification: () => (/* reexport */ MultipleDropdownNotification_MultipleDropdownNotification),
|
|
137
137
|
MultipleDropdownOptions: () => (/* reexport */ MultipleDropdownOptions_MultipleDropdownOptions),
|
|
138
138
|
NavBar: () => (/* reexport */ NavBar),
|
|
139
|
+
NestedTable: () => (/* reexport */ NestedTable),
|
|
139
140
|
NestedTableCell: () => (/* reexport */ NestedTableCell),
|
|
140
141
|
NestedTableCellSubHeader: () => (/* reexport */ NestedTableCellSubHeader),
|
|
141
142
|
NestedTableRow: () => (/* reexport */ NestedTableRow),
|
|
@@ -190,6 +191,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
190
191
|
Table: () => (/* reexport */ Table_Table),
|
|
191
192
|
TableBody: () => (/* reexport */ TableBody_TableBody),
|
|
192
193
|
TableCell: () => (/* reexport */ TableCell_TableCell),
|
|
194
|
+
TableCellHeader: () => (/* reexport */ TableCellHeader_TableCellHeader),
|
|
193
195
|
TableFilterCheckbox: () => (/* reexport */ TableFilterCheckbox),
|
|
194
196
|
TableFilterTrigger: () => (/* reexport */ TableFilterTrigger),
|
|
195
197
|
TableFilterTriggerWithNotification: () => (/* reexport */ TableFilterTriggerWithNotification),
|
|
@@ -7473,8 +7475,8 @@ function Table_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stri
|
|
|
7473
7475
|
const Table = /*#__PURE__*/base_default()("table", true ? {
|
|
7474
7476
|
target: "ef55xbt0"
|
|
7475
7477
|
} : 0)( true ? {
|
|
7476
|
-
name: "
|
|
7477
|
-
styles: "display:table;width:100%;border-collapse:collapse;border-spacing:0"
|
|
7478
|
+
name: "1qa51hv",
|
|
7479
|
+
styles: "display:table;width:100%;border-collapse:collapse;border-spacing:0;background:none"
|
|
7478
7480
|
} : 0);
|
|
7479
7481
|
/* harmony default export */ const Table_Table = (Table);
|
|
7480
7482
|
;// ./src/components/TableBody/TableBody.tsx
|
|
@@ -7483,8 +7485,8 @@ function TableBody_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to
|
|
|
7483
7485
|
const TableBody = /*#__PURE__*/base_default()("tbody", true ? {
|
|
7484
7486
|
target: "erj4fs00"
|
|
7485
7487
|
} : 0)( true ? {
|
|
7486
|
-
name: "
|
|
7487
|
-
styles: "display:table-row-group"
|
|
7488
|
+
name: "96lg8t",
|
|
7489
|
+
styles: "display:table-row-group;& tr:last-child td:first-of-type{border-bottom-left-radius:20px;}& tr:last-child td:last-child{border-bottom-right-radius:20px;}& tr:not([aria-disabled='true']):hover{& td{background-color:#eef1f7;}}"
|
|
7488
7490
|
} : 0);
|
|
7489
7491
|
/* harmony default export */ const TableBody_TableBody = (TableBody);
|
|
7490
7492
|
;// ./src/components/TableCell/TableCell.tsx
|
|
@@ -7493,31 +7495,37 @@ const TableCell = /*#__PURE__*/base_default()("td", true ? {
|
|
|
7493
7495
|
target: "e9xnb9j0"
|
|
7494
7496
|
} : 0)("display:table-cell;vertical-align:inherit;text-align:", ({
|
|
7495
7497
|
align
|
|
7496
|
-
}) => align ? align : 'left', ";border-
|
|
7498
|
+
}) => align ? align : 'left', ";border:none;padding:0 16px;background:#fff;font-size:12px;font-weight:500;white-space:nowrap;height:44px;& a{display:flex;align-items:center;height:44px;padding:0 18px;}&:first-of-type a{padding-left:16px;}", ({
|
|
7499
|
+
theme
|
|
7500
|
+
}) => theme.mediaQueries.lg, "{font-size:14px;}" + ( true ? "" : 0));
|
|
7497
7501
|
/* harmony default export */ const TableCell_TableCell = (TableCell);
|
|
7498
|
-
;// ./src/components/
|
|
7502
|
+
;// ./src/components/TableCellHeader/TableCellHeader.tsx
|
|
7503
|
+
|
|
7499
7504
|
|
|
7505
|
+
const TableCellHeader = props => (0,jsx_runtime_namespaceObject.jsx)(TableCell_TableCell, {
|
|
7506
|
+
as: "th",
|
|
7507
|
+
...props
|
|
7508
|
+
});
|
|
7509
|
+
/* harmony default export */ const TableCellHeader_TableCellHeader = (TableCellHeader);
|
|
7510
|
+
;// ./src/components/TableHead/TableHead.tsx
|
|
7500
7511
|
|
|
7501
7512
|
const TableHead = /*#__PURE__*/base_default()("thead", true ? {
|
|
7502
7513
|
target: "e1ezyu020"
|
|
7503
|
-
} : 0)({
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
[`& ${TableCell_TableCell}`]: {
|
|
7507
|
-
borderBottom: '1px solid white',
|
|
7508
|
-
borderRight: '1px solid white'
|
|
7509
|
-
}
|
|
7510
|
-
}, true ? "" : 0);
|
|
7514
|
+
} : 0)("display:table-header-group;background:none;font-size:12px;& tr{box-shadow:inset 0 -1px 0 #eaecf0;white-space:nowrap;font-weight:700;&:first-of-type{border-top-left-radius:20px;}&:last-child{cursor:default;border-top-right-radius:20px;}& td,& th{font-weight:700;box-shadow:rgb(234, 236, 240) 0 -1px 0 inset;&:first-of-type{padding-left:16px;border-top-left-radius:20px;}&:last-child{border-top-right-radius:20px;}}}", ({
|
|
7515
|
+
theme
|
|
7516
|
+
}) => theme.mediaQueries.lg, "{font-size:14px;}" + ( true ? "" : 0));
|
|
7511
7517
|
/* harmony default export */ const TableHead_TableHead = (TableHead);
|
|
7512
7518
|
;// ./src/components/TableRow/TableRow.tsx
|
|
7513
7519
|
|
|
7514
|
-
function TableRow_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
7515
7520
|
const TableRow = /*#__PURE__*/base_default()("tr", true ? {
|
|
7516
7521
|
target: "epe3ucm0"
|
|
7517
|
-
} : 0)(
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7522
|
+
} : 0)("display:table-row;outline:0;vertical-align:middle;border:none;padding:0 16px;height:44px;& tr:first-of-type{padding-left:18px;}", ({
|
|
7523
|
+
isDisabled
|
|
7524
|
+
}) => isDisabled && {
|
|
7525
|
+
opacity: 0.6,
|
|
7526
|
+
cursor: 'default',
|
|
7527
|
+
userSelect: 'none'
|
|
7528
|
+
}, ";" + ( true ? "" : 0));
|
|
7521
7529
|
/* harmony default export */ const TableRow_TableRow = (TableRow);
|
|
7522
7530
|
;// ./src/components/Tag/styles.ts
|
|
7523
7531
|
|
|
@@ -16977,6 +16985,39 @@ const LinksTabBar = ({
|
|
|
16977
16985
|
;// ./src/components/Modal/index.ts
|
|
16978
16986
|
|
|
16979
16987
|
|
|
16988
|
+
;// ./src/components/NestedTable/NestedTableContext.tsx
|
|
16989
|
+
|
|
16990
|
+
|
|
16991
|
+
const NestedTableContext = /*#__PURE__*/(0,external_react_namespaceObject.createContext)({
|
|
16992
|
+
collapsedIconName: 'carrot-up',
|
|
16993
|
+
expandedIconName: 'carrot-down'
|
|
16994
|
+
});
|
|
16995
|
+
const NestedTableProvider = ({
|
|
16996
|
+
children,
|
|
16997
|
+
collapsedIconName = 'carrot-up',
|
|
16998
|
+
expandedIconName = 'carrot-down'
|
|
16999
|
+
}) => (0,jsx_runtime_namespaceObject.jsx)(NestedTableContext.Provider, {
|
|
17000
|
+
value: {
|
|
17001
|
+
collapsedIconName,
|
|
17002
|
+
expandedIconName
|
|
17003
|
+
},
|
|
17004
|
+
children: children
|
|
17005
|
+
});
|
|
17006
|
+
;// ./src/components/NestedTable/components/NestedTable.tsx
|
|
17007
|
+
|
|
17008
|
+
|
|
17009
|
+
|
|
17010
|
+
const NestedTable = ({
|
|
17011
|
+
children,
|
|
17012
|
+
...rest
|
|
17013
|
+
}) => {
|
|
17014
|
+
return (0,jsx_runtime_namespaceObject.jsx)(NestedTableProvider, {
|
|
17015
|
+
...rest,
|
|
17016
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(Table_Table, {
|
|
17017
|
+
children: children
|
|
17018
|
+
})
|
|
17019
|
+
});
|
|
17020
|
+
};
|
|
16980
17021
|
;// ./src/components/NestedTable/NestedTableRowContext.tsx
|
|
16981
17022
|
|
|
16982
17023
|
|
|
@@ -17013,7 +17054,7 @@ const NestedTableRowProvider = ({
|
|
|
17013
17054
|
children: children
|
|
17014
17055
|
});
|
|
17015
17056
|
};
|
|
17016
|
-
;// ./src/components/NestedTable/useNestedTableRowContext.ts
|
|
17057
|
+
;// ./src/components/NestedTable/hooks/useNestedTableRowContext.ts
|
|
17017
17058
|
|
|
17018
17059
|
|
|
17019
17060
|
const useNestedTableRowContext = () => (0,external_react_namespaceObject.useContext)(NestedTableRowContext);
|
|
@@ -17047,6 +17088,7 @@ const NestedTableCell = ({
|
|
|
17047
17088
|
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
17048
17089
|
borderRight: 'none',
|
|
17049
17090
|
borderBottom: 'none',
|
|
17091
|
+
background: 'transparent',
|
|
17050
17092
|
...notSubHeaderCSS
|
|
17051
17093
|
}, true ? "" : 0, true ? "" : 0),
|
|
17052
17094
|
...props,
|
|
@@ -17055,6 +17097,10 @@ const NestedTableCell = ({
|
|
|
17055
17097
|
})
|
|
17056
17098
|
});
|
|
17057
17099
|
};
|
|
17100
|
+
;// ./src/components/NestedTable/hooks/useNestedTableContext.ts
|
|
17101
|
+
|
|
17102
|
+
|
|
17103
|
+
const useNestedTableContext = () => (0,external_react_namespaceObject.useContext)(NestedTableContext);
|
|
17058
17104
|
;// ./src/components/NestedTable/components/NestedTableCellSubHeader.tsx
|
|
17059
17105
|
function NestedTableCellSubHeader_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
17060
17106
|
|
|
@@ -17073,6 +17119,10 @@ const NestedTableCellSubHeader = ({
|
|
|
17073
17119
|
isHeader,
|
|
17074
17120
|
...props
|
|
17075
17121
|
}) => {
|
|
17122
|
+
const {
|
|
17123
|
+
collapsedIconName = 'carrot-up',
|
|
17124
|
+
expandedIconName = 'carrot-down'
|
|
17125
|
+
} = useNestedTableContext();
|
|
17076
17126
|
const {
|
|
17077
17127
|
childRowsCount,
|
|
17078
17128
|
isSubHeader: isSubHeaderGlobal,
|
|
@@ -17080,7 +17130,7 @@ const NestedTableCellSubHeader = ({
|
|
|
17080
17130
|
} = useNestedTableRowContext();
|
|
17081
17131
|
const isSubHeader = childRowsCount > 1 ? isSubHeaderGlobal : false;
|
|
17082
17132
|
const content = isHeader ? '' : isSubHeader ? (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
17083
|
-
name: isCollapsed ?
|
|
17133
|
+
name: isCollapsed ? collapsedIconName : expandedIconName,
|
|
17084
17134
|
size: 18,
|
|
17085
17135
|
css: NestedTableCellSubHeader_ref,
|
|
17086
17136
|
tooltip: "",
|
|
@@ -17089,6 +17139,7 @@ const NestedTableCellSubHeader = ({
|
|
|
17089
17139
|
}) : '';
|
|
17090
17140
|
return (0,jsx_runtime_namespaceObject.jsx)(NestedTableCell, {
|
|
17091
17141
|
css: NestedTableCellSubHeader_ref2,
|
|
17142
|
+
as: isHeader ? 'th' : 'td',
|
|
17092
17143
|
...props,
|
|
17093
17144
|
children: content
|
|
17094
17145
|
});
|
|
@@ -17118,7 +17169,9 @@ const NestedTableRow = ({
|
|
|
17118
17169
|
} = useNestedTableRowContext();
|
|
17119
17170
|
const headerCSS = isSubHeader ? {
|
|
17120
17171
|
background: theme.colors.greyLighter60
|
|
17121
|
-
} : {
|
|
17172
|
+
} : {
|
|
17173
|
+
background: theme.colors.white
|
|
17174
|
+
};
|
|
17122
17175
|
const classNames = [];
|
|
17123
17176
|
if (isSubHeader) {
|
|
17124
17177
|
classNames.push('first-row');
|
|
@@ -17127,9 +17180,11 @@ const NestedTableRow = ({
|
|
|
17127
17180
|
classNames.push('collapsed');
|
|
17128
17181
|
}
|
|
17129
17182
|
const notSubHeaderCSS = !isSubHeader && isCollapsed ? {
|
|
17183
|
+
height: 0,
|
|
17130
17184
|
maxHeight: 0,
|
|
17131
17185
|
padding: 0,
|
|
17132
17186
|
'& td': {
|
|
17187
|
+
height: 0,
|
|
17133
17188
|
maxHeight: 0,
|
|
17134
17189
|
padding: 0
|
|
17135
17190
|
}
|
|
@@ -17157,6 +17212,7 @@ const NestedTableRow = ({
|
|
|
17157
17212
|
|
|
17158
17213
|
|
|
17159
17214
|
|
|
17215
|
+
|
|
17160
17216
|
;// ./src/components/NestedTable/WithNestedTableRow.tsx
|
|
17161
17217
|
|
|
17162
17218
|
|
|
@@ -20269,6 +20325,7 @@ const JsonSchemaForm_Form = /*#__PURE__*/base_default()(UnstyledForm, true ? {
|
|
|
20269
20325
|
|
|
20270
20326
|
|
|
20271
20327
|
|
|
20328
|
+
|
|
20272
20329
|
|
|
20273
20330
|
|
|
20274
20331
|
;// ./src/contexts/Translation/config.ts
|