@ssa-ui-kit/core 2.19.1 → 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/ColorPicker/ColorPicker.d.ts +0 -1
- package/dist/components/DatePicker/types.d.ts +14 -0
- 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 +131 -45
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/NestedTable/useNestedTableRowContext.d.ts +0 -1
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
|
|
7499
7503
|
|
|
7500
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
|
|
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
|
|
|
@@ -12255,8 +12263,6 @@ const ColorPickerTrigger = () => {
|
|
|
12255
12263
|
})
|
|
12256
12264
|
});
|
|
12257
12265
|
};
|
|
12258
|
-
;// external "@rc-component/color-picker/assets/index.css"
|
|
12259
|
-
const index_css_namespaceObject = require("@rc-component/color-picker/assets/index.css");
|
|
12260
12266
|
;// ./src/components/ColorPicker/ColorPicker.tsx
|
|
12261
12267
|
function ColorPicker_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)."; }
|
|
12262
12268
|
|
|
@@ -12269,10 +12275,6 @@ function ColorPicker_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried t
|
|
|
12269
12275
|
|
|
12270
12276
|
|
|
12271
12277
|
var ColorPicker_ref = true ? {
|
|
12272
|
-
name: "dl37cv",
|
|
12273
|
-
styles: "gap:16px;padding:16px;border-radius:8px;box-shadow:0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05)"
|
|
12274
|
-
} : 0;
|
|
12275
|
-
var ColorPicker_ref2 = true ? {
|
|
12276
12278
|
name: "xyzkeb",
|
|
12277
12279
|
styles: "align-self:flex-start"
|
|
12278
12280
|
} : 0;
|
|
@@ -12282,6 +12284,7 @@ const ColorPicker = ({
|
|
|
12282
12284
|
colorsPalette = COLORS_PALETTE,
|
|
12283
12285
|
...rest
|
|
12284
12286
|
}) => {
|
|
12287
|
+
const theme = (0,react_namespaceObject.useTheme)();
|
|
12285
12288
|
const tabsConfig = {
|
|
12286
12289
|
colorPalette: {
|
|
12287
12290
|
tabId: 'color-palette',
|
|
@@ -12310,10 +12313,17 @@ const ColorPicker = ({
|
|
|
12310
12313
|
interactionsEnabled: 'click',
|
|
12311
12314
|
placement: 'top-start',
|
|
12312
12315
|
children: [(0,jsx_runtime_namespaceObject.jsx)(ColorPickerTrigger, {}), (0,jsx_runtime_namespaceObject.jsxs)(PopoverContent, {
|
|
12313
|
-
css:
|
|
12316
|
+
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
12317
|
+
gap: 16,
|
|
12318
|
+
padding: 16,
|
|
12319
|
+
borderRadius: 8,
|
|
12320
|
+
backgroundColor: theme.colors.white,
|
|
12321
|
+
zIndex: 10,
|
|
12322
|
+
boxShadow: '0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05)'
|
|
12323
|
+
}, true ? "" : 0, true ? "" : 0),
|
|
12314
12324
|
className: rest.classnames?.content,
|
|
12315
12325
|
children: [(0,jsx_runtime_namespaceObject.jsxs)(TabBar_TabBar, {
|
|
12316
|
-
css:
|
|
12326
|
+
css: ColorPicker_ref,
|
|
12317
12327
|
children: [(0,jsx_runtime_namespaceObject.jsx)(Tab_Tab, {
|
|
12318
12328
|
...tabsConfig.colorPalette
|
|
12319
12329
|
}), (0,jsx_runtime_namespaceObject.jsx)(Tab_Tab, {
|
|
@@ -13170,6 +13180,7 @@ const DatePickerMonthsSwitch = () => {
|
|
|
13170
13180
|
calendarViewDateTime,
|
|
13171
13181
|
dateMinDT,
|
|
13172
13182
|
dateMaxDT,
|
|
13183
|
+
classNames,
|
|
13173
13184
|
setCalendarViewDateTime,
|
|
13174
13185
|
onMonthChange
|
|
13175
13186
|
} = useDatePickerContext();
|
|
@@ -13200,6 +13211,7 @@ const DatePickerMonthsSwitch = () => {
|
|
|
13200
13211
|
}
|
|
13201
13212
|
return (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
|
|
13202
13213
|
css: DatePickerMonthsSwitch_ref,
|
|
13214
|
+
className: classNames?.monthsSwitch?.wrapper,
|
|
13203
13215
|
children: [(0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
|
|
13204
13216
|
endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
13205
13217
|
name: "carrot-left",
|
|
@@ -13207,6 +13219,7 @@ const DatePickerMonthsSwitch = () => {
|
|
|
13207
13219
|
tooltip: "Previous month",
|
|
13208
13220
|
color: isMinMonthReached ? theme.colors.grey : theme.colors.greyDarker
|
|
13209
13221
|
}),
|
|
13222
|
+
className: classNames?.monthsSwitch?.previousMonth,
|
|
13210
13223
|
variant: 'tertiary',
|
|
13211
13224
|
"aria-label": "Previous month",
|
|
13212
13225
|
"data-testid": "previous-month",
|
|
@@ -13227,6 +13240,7 @@ const DatePickerMonthsSwitch = () => {
|
|
|
13227
13240
|
tooltip: "Next month",
|
|
13228
13241
|
color: isMaxMonthReached ? theme.colors.grey : theme.colors.greyDarker
|
|
13229
13242
|
}),
|
|
13243
|
+
className: classNames?.monthsSwitch?.nextMonth,
|
|
13230
13244
|
variant: 'tertiary',
|
|
13231
13245
|
onClick: handleNextMonth,
|
|
13232
13246
|
isDisabled: isMaxMonthReached,
|
|
@@ -13261,7 +13275,8 @@ const DatePickerHeader = () => {
|
|
|
13261
13275
|
const {
|
|
13262
13276
|
calendarType,
|
|
13263
13277
|
setCalendarType,
|
|
13264
|
-
calendarViewDateTime
|
|
13278
|
+
calendarViewDateTime,
|
|
13279
|
+
classNames
|
|
13265
13280
|
} = useDatePickerContext();
|
|
13266
13281
|
const handleCalendarTypeChange = () => {
|
|
13267
13282
|
if (calendarType === 'days') {
|
|
@@ -13272,6 +13287,7 @@ const DatePickerHeader = () => {
|
|
|
13272
13287
|
};
|
|
13273
13288
|
return (0,jsx_runtime_namespaceObject.jsxs)(PopoverHeading, {
|
|
13274
13289
|
css: DatePickerHeader_ref,
|
|
13290
|
+
className: classNames?.header,
|
|
13275
13291
|
as: 'div',
|
|
13276
13292
|
children: [(0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
|
|
13277
13293
|
endIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
@@ -13306,11 +13322,12 @@ const DatePickerCalendar = () => {
|
|
|
13306
13322
|
years: YearsView
|
|
13307
13323
|
};
|
|
13308
13324
|
const {
|
|
13309
|
-
calendarType
|
|
13325
|
+
calendarType,
|
|
13326
|
+
classNames
|
|
13310
13327
|
} = useDatePickerContext();
|
|
13311
13328
|
const Component = components[calendarType];
|
|
13312
13329
|
return (0,jsx_runtime_namespaceObject.jsxs)(PopoverContent, {
|
|
13313
|
-
className:
|
|
13330
|
+
className: ['popover', classNames?.calendar].filter(Boolean).join(' '),
|
|
13314
13331
|
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
13315
13332
|
background: theme.colors.white,
|
|
13316
13333
|
boxShadow: `-4px 4px 14px 0px ${theme.colors.greyDarker14}`,
|
|
@@ -13344,6 +13361,7 @@ const DatePickerTrigger = () => {
|
|
|
13344
13361
|
format,
|
|
13345
13362
|
name,
|
|
13346
13363
|
label,
|
|
13364
|
+
classNames,
|
|
13347
13365
|
openCalendarMode,
|
|
13348
13366
|
inputRef,
|
|
13349
13367
|
inputProps,
|
|
@@ -13384,6 +13402,7 @@ const DatePickerTrigger = () => {
|
|
|
13384
13402
|
return (0,jsx_runtime_namespaceObject.jsxs)((external_react_default()).Fragment, {
|
|
13385
13403
|
children: [label && (0,jsx_runtime_namespaceObject.jsx)(Label_Label, {
|
|
13386
13404
|
htmlFor: name,
|
|
13405
|
+
className: classNames?.label,
|
|
13387
13406
|
children: label
|
|
13388
13407
|
}), (0,jsx_runtime_namespaceObject.jsx)(PopoverTrigger, {
|
|
13389
13408
|
asChild: true,
|
|
@@ -13392,6 +13411,7 @@ const DatePickerTrigger = () => {
|
|
|
13392
13411
|
placeholder: format,
|
|
13393
13412
|
ref: inputRef,
|
|
13394
13413
|
disabled: disabled,
|
|
13414
|
+
className: classNames?.trigger?.input,
|
|
13395
13415
|
register: register,
|
|
13396
13416
|
inputProps: {
|
|
13397
13417
|
onBlur: handleBlur,
|
|
@@ -13419,6 +13439,7 @@ const DatePickerTrigger = () => {
|
|
|
13419
13439
|
variant: "tertiary",
|
|
13420
13440
|
"aria-label": "Calendar",
|
|
13421
13441
|
isDisabled: disabled,
|
|
13442
|
+
className: classNames?.trigger?.calendarIcon,
|
|
13422
13443
|
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
13423
13444
|
padding: 0,
|
|
13424
13445
|
cursor: openCalendarMode === 'input' || disabled ? 'default' : 'pointer',
|
|
@@ -16964,6 +16985,39 @@ const LinksTabBar = ({
|
|
|
16964
16985
|
;// ./src/components/Modal/index.ts
|
|
16965
16986
|
|
|
16966
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
|
+
};
|
|
16967
17021
|
;// ./src/components/NestedTable/NestedTableRowContext.tsx
|
|
16968
17022
|
|
|
16969
17023
|
|
|
@@ -17000,7 +17054,7 @@ const NestedTableRowProvider = ({
|
|
|
17000
17054
|
children: children
|
|
17001
17055
|
});
|
|
17002
17056
|
};
|
|
17003
|
-
;// ./src/components/NestedTable/useNestedTableRowContext.ts
|
|
17057
|
+
;// ./src/components/NestedTable/hooks/useNestedTableRowContext.ts
|
|
17004
17058
|
|
|
17005
17059
|
|
|
17006
17060
|
const useNestedTableRowContext = () => (0,external_react_namespaceObject.useContext)(NestedTableRowContext);
|
|
@@ -17034,6 +17088,7 @@ const NestedTableCell = ({
|
|
|
17034
17088
|
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
17035
17089
|
borderRight: 'none',
|
|
17036
17090
|
borderBottom: 'none',
|
|
17091
|
+
background: 'transparent',
|
|
17037
17092
|
...notSubHeaderCSS
|
|
17038
17093
|
}, true ? "" : 0, true ? "" : 0),
|
|
17039
17094
|
...props,
|
|
@@ -17042,6 +17097,10 @@ const NestedTableCell = ({
|
|
|
17042
17097
|
})
|
|
17043
17098
|
});
|
|
17044
17099
|
};
|
|
17100
|
+
;// ./src/components/NestedTable/hooks/useNestedTableContext.ts
|
|
17101
|
+
|
|
17102
|
+
|
|
17103
|
+
const useNestedTableContext = () => (0,external_react_namespaceObject.useContext)(NestedTableContext);
|
|
17045
17104
|
;// ./src/components/NestedTable/components/NestedTableCellSubHeader.tsx
|
|
17046
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)."; }
|
|
17047
17106
|
|
|
@@ -17060,6 +17119,10 @@ const NestedTableCellSubHeader = ({
|
|
|
17060
17119
|
isHeader,
|
|
17061
17120
|
...props
|
|
17062
17121
|
}) => {
|
|
17122
|
+
const {
|
|
17123
|
+
collapsedIconName = 'carrot-up',
|
|
17124
|
+
expandedIconName = 'carrot-down'
|
|
17125
|
+
} = useNestedTableContext();
|
|
17063
17126
|
const {
|
|
17064
17127
|
childRowsCount,
|
|
17065
17128
|
isSubHeader: isSubHeaderGlobal,
|
|
@@ -17067,7 +17130,7 @@ const NestedTableCellSubHeader = ({
|
|
|
17067
17130
|
} = useNestedTableRowContext();
|
|
17068
17131
|
const isSubHeader = childRowsCount > 1 ? isSubHeaderGlobal : false;
|
|
17069
17132
|
const content = isHeader ? '' : isSubHeader ? (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
17070
|
-
name: isCollapsed ?
|
|
17133
|
+
name: isCollapsed ? collapsedIconName : expandedIconName,
|
|
17071
17134
|
size: 18,
|
|
17072
17135
|
css: NestedTableCellSubHeader_ref,
|
|
17073
17136
|
tooltip: "",
|
|
@@ -17076,6 +17139,7 @@ const NestedTableCellSubHeader = ({
|
|
|
17076
17139
|
}) : '';
|
|
17077
17140
|
return (0,jsx_runtime_namespaceObject.jsx)(NestedTableCell, {
|
|
17078
17141
|
css: NestedTableCellSubHeader_ref2,
|
|
17142
|
+
as: isHeader ? 'th' : 'td',
|
|
17079
17143
|
...props,
|
|
17080
17144
|
children: content
|
|
17081
17145
|
});
|
|
@@ -17105,7 +17169,9 @@ const NestedTableRow = ({
|
|
|
17105
17169
|
} = useNestedTableRowContext();
|
|
17106
17170
|
const headerCSS = isSubHeader ? {
|
|
17107
17171
|
background: theme.colors.greyLighter60
|
|
17108
|
-
} : {
|
|
17172
|
+
} : {
|
|
17173
|
+
background: theme.colors.white
|
|
17174
|
+
};
|
|
17109
17175
|
const classNames = [];
|
|
17110
17176
|
if (isSubHeader) {
|
|
17111
17177
|
classNames.push('first-row');
|
|
@@ -17114,9 +17180,11 @@ const NestedTableRow = ({
|
|
|
17114
17180
|
classNames.push('collapsed');
|
|
17115
17181
|
}
|
|
17116
17182
|
const notSubHeaderCSS = !isSubHeader && isCollapsed ? {
|
|
17183
|
+
height: 0,
|
|
17117
17184
|
maxHeight: 0,
|
|
17118
17185
|
padding: 0,
|
|
17119
17186
|
'& td': {
|
|
17187
|
+
height: 0,
|
|
17120
17188
|
maxHeight: 0,
|
|
17121
17189
|
padding: 0
|
|
17122
17190
|
}
|
|
@@ -17144,6 +17212,7 @@ const NestedTableRow = ({
|
|
|
17144
17212
|
|
|
17145
17213
|
|
|
17146
17214
|
|
|
17215
|
+
|
|
17147
17216
|
;// ./src/components/NestedTable/WithNestedTableRow.tsx
|
|
17148
17217
|
|
|
17149
17218
|
|
|
@@ -18461,7 +18530,7 @@ const TypeaheadOptionsBase = /*#__PURE__*/base_default()("ul", true ? {
|
|
|
18461
18530
|
}) => `drop-shadow(-4px 4px 14px ${theme.colors.greyDarker14})`, ";overflow-y:auto;max-height:350px;" + ( true ? "" : 0));
|
|
18462
18531
|
const TypeaheadOption = /*#__PURE__*/base_default()("li", true ? {
|
|
18463
18532
|
target: "e1vig1dw5"
|
|
18464
|
-
} : 0)("display:flex;align-items:center;padding:
|
|
18533
|
+
} : 0)("display:flex;align-items:center;padding:0 16px;border:none;cursor:pointer;font-size:14px;gap:8px;padding:10px 12px;min-height:40px;line-height:20px;justify-content:space-between;overflow:hidden;text-overflow:ellipsis;background:", ({
|
|
18465
18534
|
isActive,
|
|
18466
18535
|
theme
|
|
18467
18536
|
}) => isActive ? theme.colors.blueRoyal12 : 'none', ";&:hover{background:rgba(72, 125, 225, 0.06);}" + ( true ? "" : 0));
|
|
@@ -18484,16 +18553,16 @@ const TypeaheadItem = /*#__PURE__*/base_default()("div", true ? {
|
|
|
18484
18553
|
}) => theme.colors.grey, ";color:", ({
|
|
18485
18554
|
theme,
|
|
18486
18555
|
isDisabled
|
|
18487
|
-
}) => isDisabled ? theme.colors.grey : theme.colors.greyDarker, ";font-weight:500;font-size:14px;height:
|
|
18556
|
+
}) => isDisabled ? theme.colors.grey : theme.colors.greyDarker, ";font-weight:500;font-size:14px;min-height:20px;align-items:center;padding:6px;user-select:none;overflow:hidden;" + ( true ? "" : 0));
|
|
18488
18557
|
const TypeaheadItemLabel = /*#__PURE__*/base_default()("div", true ? {
|
|
18489
18558
|
target: "e1vig1dw3"
|
|
18490
18559
|
} : 0)("color:", ({
|
|
18491
18560
|
theme,
|
|
18492
18561
|
isDisabled
|
|
18493
|
-
}) => isDisabled ? theme.colors.grey : theme.colors.greyDarker, ";font-size:14px;font-weight:500;display:
|
|
18562
|
+
}) => isDisabled ? theme.colors.grey : theme.colors.greyDarker, ";font-size:14px;font-weight:500;display:block;gap:6px;align-items:center;cursor:default;overflow:hidden;text-overflow:ellipsis;" + ( true ? "" : 0));
|
|
18494
18563
|
const TypeaheadItemCross = /*#__PURE__*/base_default()(Button_Button, true ? {
|
|
18495
18564
|
target: "e1vig1dw2"
|
|
18496
|
-
} : 0)("background:none;padding:0;padding-right:5;&:active,&:focus,&:hover{cursor:", ({
|
|
18565
|
+
} : 0)("background:none;padding:0;padding-right:5;height:auto;&:active,&:focus,&:hover{cursor:", ({
|
|
18497
18566
|
isDisabled
|
|
18498
18567
|
}) => isDisabled ? 'default' : 'pointer', ";background:none;box-shadow:none;}&:disabled{background:none;}" + ( true ? "" : 0));
|
|
18499
18568
|
const TypeaheadInputsGroupWrapper = /*#__PURE__*/base_default()(Wrapper_Wrapper, true ? {
|
|
@@ -18869,19 +18938,35 @@ function TypeaheadOption_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tri
|
|
|
18869
18938
|
|
|
18870
18939
|
|
|
18871
18940
|
|
|
18941
|
+
|
|
18872
18942
|
var TypeaheadOption_ref = true ? {
|
|
18873
|
-
name: "
|
|
18874
|
-
styles: "
|
|
18943
|
+
name: "1gz2b5f",
|
|
18944
|
+
styles: "overflow:hidden;text-overflow:ellipsis"
|
|
18945
|
+
} : 0;
|
|
18946
|
+
var TypeaheadOption_ref2 = true ? {
|
|
18947
|
+
name: "1kqn2f4",
|
|
18948
|
+
styles: "height:auto;padding:0"
|
|
18949
|
+
} : 0;
|
|
18950
|
+
var TypeaheadOption_ref3 = true ? {
|
|
18951
|
+
name: "abxjv3",
|
|
18952
|
+
styles: "margin-left:auto;min-width:10px"
|
|
18875
18953
|
} : 0;
|
|
18876
18954
|
const TypeaheadOption_TypeaheadOption = ({
|
|
18877
18955
|
children,
|
|
18878
18956
|
...rest
|
|
18879
18957
|
}) => (0,jsx_runtime_namespaceObject.jsxs)(TypeaheadOption, {
|
|
18880
18958
|
...rest,
|
|
18881
|
-
children: [
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18959
|
+
children: [(0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
18960
|
+
css: TypeaheadOption_ref,
|
|
18961
|
+
children: [children, ' ']
|
|
18962
|
+
}), rest.isActive && (0,jsx_runtime_namespaceObject.jsx)(Button_Button, {
|
|
18963
|
+
variant: "tertiary",
|
|
18964
|
+
css: TypeaheadOption_ref2,
|
|
18965
|
+
startIcon: (0,jsx_runtime_namespaceObject.jsx)(Icon_Icon, {
|
|
18966
|
+
name: "check",
|
|
18967
|
+
size: 10,
|
|
18968
|
+
css: TypeaheadOption_ref3
|
|
18969
|
+
})
|
|
18885
18970
|
})]
|
|
18886
18971
|
});
|
|
18887
18972
|
;// ./src/components/Typeahead/components/TypeaheadItem.ts
|
|
@@ -18897,8 +18982,8 @@ const TypeaheadItemImage = /*#__PURE__*/base_default()("img", true ? {
|
|
|
18897
18982
|
const TypeaheadItemIcon = /*#__PURE__*/base_default()(Icon_Icon, true ? {
|
|
18898
18983
|
target: "e1rxxx7l0"
|
|
18899
18984
|
} : 0)( true ? {
|
|
18900
|
-
name: "
|
|
18901
|
-
styles: "width:18px;height:18px;border-radius:50
|
|
18985
|
+
name: "ebppw3",
|
|
18986
|
+
styles: "width:18px;height:18px;border-radius:50%;margin-right:6px;vertical-align:middle"
|
|
18902
18987
|
} : 0);
|
|
18903
18988
|
;// ./src/components/Typeahead/utils.tsx
|
|
18904
18989
|
|
|
@@ -20240,6 +20325,7 @@ const JsonSchemaForm_Form = /*#__PURE__*/base_default()(UnstyledForm, true ? {
|
|
|
20240
20325
|
|
|
20241
20326
|
|
|
20242
20327
|
|
|
20328
|
+
|
|
20243
20329
|
|
|
20244
20330
|
|
|
20245
20331
|
;// ./src/contexts/Translation/config.ts
|