@drivenets/design-system 0.0.3 → 0.0.4
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/CHANGELOG.md +6 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.cjs +157 -52
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts +5 -5
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.js +157 -52
- package/dist/components/ds-alert-banner/ds-alert-banner.js.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -1
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js.map +1 -1
- package/dist/components/ds-breadcrumb/ds-breadcrumb.cjs +59 -16
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js +59 -16
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js.map +1 -1
- package/dist/components/ds-button/ds-button.cjs +18 -2
- package/dist/components/ds-button/ds-button.d.cts +2 -2
- package/dist/components/ds-button/ds-button.d.ts +2 -2
- package/dist/components/ds-button/ds-button.js +18 -2
- package/dist/components/ds-button/ds-button.js.map +1 -1
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.cjs +79 -10
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +79 -10
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js.map +1 -1
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.cjs +78 -10
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +78 -10
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js.map +1 -1
- package/dist/components/ds-checkbox/ds-checkbox.cjs +89 -18
- package/dist/components/ds-checkbox/ds-checkbox.js +89 -18
- package/dist/components/ds-checkbox/ds-checkbox.js.map +1 -1
- package/dist/components/ds-chip/ds-chip.cjs +100 -30
- package/dist/components/ds-chip/ds-chip.js +100 -30
- package/dist/components/ds-chip/ds-chip.js.map +1 -1
- package/dist/components/ds-chip-group/ds-chip-group.cjs +6 -6
- package/dist/components/ds-chip-group/ds-chip-group.js +6 -6
- package/dist/components/ds-chip-group/ds-chip-group.js.map +1 -1
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.cjs +210 -56
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +8 -8
- package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -1
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +8 -8
- package/dist/components/ds-confirmation/ds-confirmation.js +210 -56
- package/dist/components/ds-confirmation/ds-confirmation.js.map +1 -1
- package/dist/components/ds-dialog/ds-dialog.js.map +1 -1
- package/dist/components/ds-drawer/ds-drawer.cjs +261 -61
- package/dist/components/ds-drawer/ds-drawer.d.cts +9 -9
- package/dist/components/ds-drawer/ds-drawer.d.ts +9 -9
- package/dist/components/ds-drawer/ds-drawer.js +261 -61
- package/dist/components/ds-drawer/ds-drawer.js.map +1 -1
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +481 -135
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +481 -135
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js.map +1 -1
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.cjs +146 -56
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +2 -2
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +2 -2
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js +146 -56
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js.map +1 -1
- package/dist/components/ds-file-upload/components/file-upload/file-upload.cjs +190 -69
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js +190 -69
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.cjs +273 -132
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +273 -132
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js.map +1 -1
- package/dist/components/ds-file-upload/ds-file-upload.cjs +96 -16
- package/dist/components/ds-file-upload/ds-file-upload.js +96 -16
- package/dist/components/ds-file-upload/ds-file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/errors/file-upload-errors.js.map +1 -1
- package/dist/components/ds-file-upload/hooks/use-file-upload.cjs +93 -93
- package/dist/components/ds-file-upload/hooks/use-file-upload.js +93 -93
- package/dist/components/ds-file-upload/hooks/use-file-upload.js.map +1 -1
- package/dist/components/ds-file-upload/types/accept-types.js.map +1 -1
- package/dist/components/ds-file-upload/utils/accept-utils.js.map +1 -1
- package/dist/components/ds-file-upload/utils/constants.js.map +1 -1
- package/dist/components/ds-file-upload/utils/file-factory.js.map +1 -1
- package/dist/components/ds-file-upload/utils/format-file-size.js.map +1 -1
- package/dist/components/ds-file-upload/utils/generate-helper-text.js.map +1 -1
- package/dist/components/ds-file-upload/utils/get-error-message.js.map +1 -1
- package/dist/components/ds-file-upload/utils/is-file-equal.js.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.cjs +119 -34
- package/dist/components/ds-form-control/ds-form-control.d.cts +7 -7
- package/dist/components/ds-form-control/ds-form-control.d.ts +7 -7
- package/dist/components/ds-form-control/ds-form-control.d.ts.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.js +119 -34
- package/dist/components/ds-form-control/ds-form-control.js.map +1 -1
- package/dist/components/ds-form-control/ds-form-control.types.js.map +1 -1
- package/dist/components/ds-grid/ds-grid.js.map +1 -1
- package/dist/components/ds-icon/ds-icon.cjs +84 -13
- package/dist/components/ds-icon/ds-icon.js +84 -13
- package/dist/components/ds-icon/ds-icon.js.map +1 -1
- package/dist/components/ds-icon/ds-icon.types.d.cts.map +1 -1
- package/dist/components/ds-icon/ds-icon.types.js.map +1 -1
- package/dist/components/ds-modal/ds-modal.cjs +222 -55
- package/dist/components/ds-modal/ds-modal.d.cts +8 -8
- package/dist/components/ds-modal/ds-modal.d.cts.map +1 -1
- package/dist/components/ds-modal/ds-modal.d.ts +8 -8
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -1
- package/dist/components/ds-modal/ds-modal.js +222 -55
- package/dist/components/ds-modal/ds-modal.js.map +1 -1
- package/dist/components/ds-number-input/ds-number-input.cjs +136 -49
- package/dist/components/ds-number-input/ds-number-input.js +136 -49
- package/dist/components/ds-number-input/ds-number-input.js.map +1 -1
- package/dist/components/ds-panel/ds-panel.cjs +111 -19
- package/dist/components/ds-panel/ds-panel.d.cts +2 -2
- package/dist/components/ds-panel/ds-panel.d.cts.map +1 -1
- package/dist/components/ds-panel/ds-panel.js +111 -19
- package/dist/components/ds-panel/ds-panel.js.map +1 -1
- package/dist/components/ds-password-input/ds-password-input.cjs +108 -41
- package/dist/components/ds-password-input/ds-password-input.js +108 -41
- package/dist/components/ds-password-input/ds-password-input.js.map +1 -1
- package/dist/components/ds-popover/ds-popover.cjs +50 -12
- package/dist/components/ds-popover/ds-popover.js +50 -12
- package/dist/components/ds-popover/ds-popover.js.map +1 -1
- package/dist/components/ds-radio-group/ds-radio-group.cjs +209 -53
- package/dist/components/ds-radio-group/ds-radio-group.js +209 -53
- package/dist/components/ds-radio-group/ds-radio-group.js.map +1 -1
- package/dist/components/ds-select/ds-select.cjs +198 -89
- package/dist/components/ds-select/ds-select.d.cts +2 -2
- package/dist/components/ds-select/ds-select.d.cts.map +1 -1
- package/dist/components/ds-select/ds-select.js +198 -89
- package/dist/components/ds-select/ds-select.js.map +1 -1
- package/dist/components/ds-select/select-items-chips.cjs +73 -22
- package/dist/components/ds-select/select-items-chips.js +73 -22
- package/dist/components/ds-select/select-items-chips.js.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.cjs +208 -46
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +2 -2
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js +208 -46
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js.map +1 -1
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js.map +1 -1
- package/dist/components/ds-spinner/ds-spinner.cjs +90 -20
- package/dist/components/ds-spinner/ds-spinner.js +90 -20
- package/dist/components/ds-spinner/ds-spinner.js.map +1 -1
- package/dist/components/ds-spinner/ds-spinner.types.js.map +1 -1
- package/dist/components/ds-status-badge/ds-status-badge.cjs +54 -11
- package/dist/components/ds-status-badge/ds-status-badge.js +54 -11
- package/dist/components/ds-status-badge/ds-status-badge.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-content.cjs +59 -13
- package/dist/components/ds-stepper/components/ds-step-content.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-content.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step-content.js +59 -13
- package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-description.cjs +14 -5
- package/dist/components/ds-stepper/components/ds-step-description.js +14 -5
- package/dist/components/ds-stepper/components/ds-step-description.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-label.cjs +14 -5
- package/dist/components/ds-stepper/components/ds-step-label.js +14 -5
- package/dist/components/ds-stepper/components/ds-step-label.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step-next-button.cjs +23 -6
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step-next-button.js +23 -6
- package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -1
- package/dist/components/ds-stepper/components/ds-step.cjs +106 -25
- package/dist/components/ds-stepper/components/ds-step.d.cts +2 -2
- package/dist/components/ds-stepper/components/ds-step.d.ts +2 -2
- package/dist/components/ds-stepper/components/ds-step.js +106 -25
- package/dist/components/ds-stepper/components/ds-step.js.map +1 -1
- package/dist/components/ds-stepper/ds-stepper.cjs +62 -15
- package/dist/components/ds-stepper/ds-stepper.d.cts +2 -2
- package/dist/components/ds-stepper/ds-stepper.d.cts.map +1 -1
- package/dist/components/ds-stepper/ds-stepper.d.ts +2 -2
- package/dist/components/ds-stepper/ds-stepper.js +62 -15
- package/dist/components/ds-stepper/ds-stepper.js.map +1 -1
- package/dist/components/ds-stepper/hooks/use-stepper.js.map +1 -1
- package/dist/components/ds-stepper/hooks/use-steps.cjs +29 -9
- package/dist/components/ds-stepper/hooks/use-steps.js +29 -9
- package/dist/components/ds-stepper/hooks/use-steps.js.map +1 -1
- package/dist/components/ds-system-status/ds-system-status.cjs +37 -7
- package/dist/components/ds-system-status/ds-system-status.js +37 -7
- package/dist/components/ds-system-status/ds-system-status.js.map +1 -1
- package/dist/components/ds-system-status/ds-system-status.types.js.map +1 -1
- package/dist/components/ds-table/components/core-table/core-table.cjs +281 -48
- package/dist/components/ds-table/components/core-table/core-table.js +281 -48
- package/dist/components/ds-table/components/core-table/core-table.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.cjs +134 -50
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +134 -50
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.cjs +140 -43
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js +140 -43
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.cjs +37 -6
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js +37 -6
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js.map +1 -1
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.cjs +272 -100
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +272 -100
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js.map +1 -1
- package/dist/components/ds-table/context/ds-table-context.js.map +1 -1
- package/dist/components/ds-table/ds-table.cjs +15 -15
- package/dist/components/ds-table/ds-table.d.cts +2 -2
- package/dist/components/ds-table/ds-table.js +15 -15
- package/dist/components/ds-table/ds-table.js.map +1 -1
- package/dist/components/ds-table/hooks/use-drag-and-drop.cjs +126 -38
- package/dist/components/ds-table/hooks/use-drag-and-drop.js +126 -38
- package/dist/components/ds-table/hooks/use-drag-and-drop.js.map +1 -1
- package/dist/components/ds-table/utils/column-styling.js.map +1 -1
- package/dist/components/ds-table/utils/create-columns-grid-template.js.map +1 -1
- package/dist/components/ds-table/utils/merge-refs.js.map +1 -1
- package/dist/components/ds-text-input/ds-text-input.cjs +128 -43
- package/dist/components/ds-text-input/ds-text-input.js +128 -43
- package/dist/components/ds-text-input/ds-text-input.js.map +1 -1
- package/dist/components/ds-text-input/ds-text-input.types.js.map +1 -1
- package/dist/components/ds-textarea/ds-textarea.cjs +66 -22
- package/dist/components/ds-textarea/ds-textarea.js +66 -22
- package/dist/components/ds-textarea/ds-textarea.js.map +1 -1
- package/dist/components/ds-toast/ds-toast-context.cjs +62 -17
- package/dist/components/ds-toast/ds-toast-context.js +62 -17
- package/dist/components/ds-toast/ds-toast-context.js.map +1 -1
- package/dist/components/ds-toast/ds-toast.cjs +90 -26
- package/dist/components/ds-toast/ds-toast.js +90 -26
- package/dist/components/ds-toast/ds-toast.js.map +1 -1
- package/dist/components/ds-tooltip/ds-tooltip.cjs +51 -13
- package/dist/components/ds-tooltip/ds-tooltip.js +51 -13
- package/dist/components/ds-tooltip/ds-tooltip.js.map +1 -1
- package/dist/components/ds-typography/ds-typography.cjs +51 -7
- package/dist/components/ds-typography/ds-typography.config.js.map +1 -1
- package/dist/components/ds-typography/ds-typography.js +51 -7
- package/dist/components/ds-typography/ds-typography.js.map +1 -1
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.cjs +91 -30
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +5 -5
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +5 -5
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js +91 -30
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +7 -1
|
@@ -1,70 +1,303 @@
|
|
|
1
1
|
import core_table_module_default from "./core-table.module.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import classNames from "classnames";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
|
|
5
6
|
//#region src/components/ds-table/components/core-table/core-table.tsx
|
|
6
|
-
function Table(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
function Table(t0) {
|
|
8
|
+
const $ = c(10);
|
|
9
|
+
let className;
|
|
10
|
+
let props;
|
|
11
|
+
let ref;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({className, ref, ...props} = t0);
|
|
14
|
+
$[0] = t0;
|
|
15
|
+
$[1] = className;
|
|
16
|
+
$[2] = props;
|
|
17
|
+
$[3] = ref;
|
|
18
|
+
} else {
|
|
19
|
+
className = $[1];
|
|
20
|
+
props = $[2];
|
|
21
|
+
ref = $[3];
|
|
22
|
+
}
|
|
23
|
+
let t1;
|
|
24
|
+
if ($[4] !== className) {
|
|
25
|
+
t1 = classNames(core_table_module_default.table, className);
|
|
26
|
+
$[4] = className;
|
|
27
|
+
$[5] = t1;
|
|
28
|
+
} else t1 = $[5];
|
|
29
|
+
let t2;
|
|
30
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
31
|
+
t2 = /* @__PURE__ */ jsx("table", {
|
|
32
|
+
ref,
|
|
33
|
+
className: t1,
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
$[6] = props;
|
|
37
|
+
$[7] = ref;
|
|
38
|
+
$[8] = t1;
|
|
39
|
+
$[9] = t2;
|
|
40
|
+
} else t2 = $[9];
|
|
41
|
+
return t2;
|
|
12
42
|
}
|
|
13
43
|
Table.displayName = "Table";
|
|
14
|
-
function TableHeader(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
44
|
+
function TableHeader(t0) {
|
|
45
|
+
const $ = c(10);
|
|
46
|
+
let className;
|
|
47
|
+
let props;
|
|
48
|
+
let ref;
|
|
49
|
+
if ($[0] !== t0) {
|
|
50
|
+
({className, ref, ...props} = t0);
|
|
51
|
+
$[0] = t0;
|
|
52
|
+
$[1] = className;
|
|
53
|
+
$[2] = props;
|
|
54
|
+
$[3] = ref;
|
|
55
|
+
} else {
|
|
56
|
+
className = $[1];
|
|
57
|
+
props = $[2];
|
|
58
|
+
ref = $[3];
|
|
59
|
+
}
|
|
60
|
+
let t1;
|
|
61
|
+
if ($[4] !== className) {
|
|
62
|
+
t1 = classNames(core_table_module_default.tableHeader, className);
|
|
63
|
+
$[4] = className;
|
|
64
|
+
$[5] = t1;
|
|
65
|
+
} else t1 = $[5];
|
|
66
|
+
let t2;
|
|
67
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
68
|
+
t2 = /* @__PURE__ */ jsx("thead", {
|
|
69
|
+
ref,
|
|
70
|
+
className: t1,
|
|
71
|
+
...props
|
|
72
|
+
});
|
|
73
|
+
$[6] = props;
|
|
74
|
+
$[7] = ref;
|
|
75
|
+
$[8] = t1;
|
|
76
|
+
$[9] = t2;
|
|
77
|
+
} else t2 = $[9];
|
|
78
|
+
return t2;
|
|
20
79
|
}
|
|
21
80
|
TableHeader.displayName = "TableHeader";
|
|
22
|
-
function TableBody(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
81
|
+
function TableBody(t0) {
|
|
82
|
+
const $ = c(10);
|
|
83
|
+
let className;
|
|
84
|
+
let props;
|
|
85
|
+
let ref;
|
|
86
|
+
if ($[0] !== t0) {
|
|
87
|
+
({className, ref, ...props} = t0);
|
|
88
|
+
$[0] = t0;
|
|
89
|
+
$[1] = className;
|
|
90
|
+
$[2] = props;
|
|
91
|
+
$[3] = ref;
|
|
92
|
+
} else {
|
|
93
|
+
className = $[1];
|
|
94
|
+
props = $[2];
|
|
95
|
+
ref = $[3];
|
|
96
|
+
}
|
|
97
|
+
let t1;
|
|
98
|
+
if ($[4] !== className) {
|
|
99
|
+
t1 = classNames(core_table_module_default.tableBody, className);
|
|
100
|
+
$[4] = className;
|
|
101
|
+
$[5] = t1;
|
|
102
|
+
} else t1 = $[5];
|
|
103
|
+
let t2;
|
|
104
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
105
|
+
t2 = /* @__PURE__ */ jsx("tbody", {
|
|
106
|
+
ref,
|
|
107
|
+
className: t1,
|
|
108
|
+
...props
|
|
109
|
+
});
|
|
110
|
+
$[6] = props;
|
|
111
|
+
$[7] = ref;
|
|
112
|
+
$[8] = t1;
|
|
113
|
+
$[9] = t2;
|
|
114
|
+
} else t2 = $[9];
|
|
115
|
+
return t2;
|
|
28
116
|
}
|
|
29
117
|
TableBody.displayName = "TableBody";
|
|
30
|
-
function TableFooter(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
118
|
+
function TableFooter(t0) {
|
|
119
|
+
const $ = c(10);
|
|
120
|
+
let className;
|
|
121
|
+
let props;
|
|
122
|
+
let ref;
|
|
123
|
+
if ($[0] !== t0) {
|
|
124
|
+
({className, ref, ...props} = t0);
|
|
125
|
+
$[0] = t0;
|
|
126
|
+
$[1] = className;
|
|
127
|
+
$[2] = props;
|
|
128
|
+
$[3] = ref;
|
|
129
|
+
} else {
|
|
130
|
+
className = $[1];
|
|
131
|
+
props = $[2];
|
|
132
|
+
ref = $[3];
|
|
133
|
+
}
|
|
134
|
+
let t1;
|
|
135
|
+
if ($[4] !== className) {
|
|
136
|
+
t1 = classNames(core_table_module_default.tableFooter, className);
|
|
137
|
+
$[4] = className;
|
|
138
|
+
$[5] = t1;
|
|
139
|
+
} else t1 = $[5];
|
|
140
|
+
let t2;
|
|
141
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
142
|
+
t2 = /* @__PURE__ */ jsx("tfoot", {
|
|
143
|
+
ref,
|
|
144
|
+
className: t1,
|
|
145
|
+
...props
|
|
146
|
+
});
|
|
147
|
+
$[6] = props;
|
|
148
|
+
$[7] = ref;
|
|
149
|
+
$[8] = t1;
|
|
150
|
+
$[9] = t2;
|
|
151
|
+
} else t2 = $[9];
|
|
152
|
+
return t2;
|
|
36
153
|
}
|
|
37
154
|
TableFooter.displayName = "TableFooter";
|
|
38
|
-
function TableRow(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
155
|
+
function TableRow(t0) {
|
|
156
|
+
const $ = c(10);
|
|
157
|
+
let className;
|
|
158
|
+
let props;
|
|
159
|
+
let ref;
|
|
160
|
+
if ($[0] !== t0) {
|
|
161
|
+
({className, ref, ...props} = t0);
|
|
162
|
+
$[0] = t0;
|
|
163
|
+
$[1] = className;
|
|
164
|
+
$[2] = props;
|
|
165
|
+
$[3] = ref;
|
|
166
|
+
} else {
|
|
167
|
+
className = $[1];
|
|
168
|
+
props = $[2];
|
|
169
|
+
ref = $[3];
|
|
170
|
+
}
|
|
171
|
+
let t1;
|
|
172
|
+
if ($[4] !== className) {
|
|
173
|
+
t1 = classNames(core_table_module_default.tableRow, className);
|
|
174
|
+
$[4] = className;
|
|
175
|
+
$[5] = t1;
|
|
176
|
+
} else t1 = $[5];
|
|
177
|
+
let t2;
|
|
178
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
179
|
+
t2 = /* @__PURE__ */ jsx("tr", {
|
|
180
|
+
ref,
|
|
181
|
+
className: t1,
|
|
182
|
+
...props
|
|
183
|
+
});
|
|
184
|
+
$[6] = props;
|
|
185
|
+
$[7] = ref;
|
|
186
|
+
$[8] = t1;
|
|
187
|
+
$[9] = t2;
|
|
188
|
+
} else t2 = $[9];
|
|
189
|
+
return t2;
|
|
44
190
|
}
|
|
45
191
|
TableRow.displayName = "TableRow";
|
|
46
|
-
function TableHead(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
192
|
+
function TableHead(t0) {
|
|
193
|
+
const $ = c(10);
|
|
194
|
+
let className;
|
|
195
|
+
let props;
|
|
196
|
+
let ref;
|
|
197
|
+
if ($[0] !== t0) {
|
|
198
|
+
({className, ref, ...props} = t0);
|
|
199
|
+
$[0] = t0;
|
|
200
|
+
$[1] = className;
|
|
201
|
+
$[2] = props;
|
|
202
|
+
$[3] = ref;
|
|
203
|
+
} else {
|
|
204
|
+
className = $[1];
|
|
205
|
+
props = $[2];
|
|
206
|
+
ref = $[3];
|
|
207
|
+
}
|
|
208
|
+
let t1;
|
|
209
|
+
if ($[4] !== className) {
|
|
210
|
+
t1 = classNames(core_table_module_default.tableHead, className);
|
|
211
|
+
$[4] = className;
|
|
212
|
+
$[5] = t1;
|
|
213
|
+
} else t1 = $[5];
|
|
214
|
+
let t2;
|
|
215
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
216
|
+
t2 = /* @__PURE__ */ jsx("th", {
|
|
217
|
+
ref,
|
|
218
|
+
className: t1,
|
|
219
|
+
...props
|
|
220
|
+
});
|
|
221
|
+
$[6] = props;
|
|
222
|
+
$[7] = ref;
|
|
223
|
+
$[8] = t1;
|
|
224
|
+
$[9] = t2;
|
|
225
|
+
} else t2 = $[9];
|
|
226
|
+
return t2;
|
|
52
227
|
}
|
|
53
228
|
TableHead.displayName = "TableHead";
|
|
54
|
-
function TableCell(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
229
|
+
function TableCell(t0) {
|
|
230
|
+
const $ = c(10);
|
|
231
|
+
let className;
|
|
232
|
+
let props;
|
|
233
|
+
let ref;
|
|
234
|
+
if ($[0] !== t0) {
|
|
235
|
+
({className, ref, ...props} = t0);
|
|
236
|
+
$[0] = t0;
|
|
237
|
+
$[1] = className;
|
|
238
|
+
$[2] = props;
|
|
239
|
+
$[3] = ref;
|
|
240
|
+
} else {
|
|
241
|
+
className = $[1];
|
|
242
|
+
props = $[2];
|
|
243
|
+
ref = $[3];
|
|
244
|
+
}
|
|
245
|
+
let t1;
|
|
246
|
+
if ($[4] !== className) {
|
|
247
|
+
t1 = classNames(core_table_module_default.tableCell, className);
|
|
248
|
+
$[4] = className;
|
|
249
|
+
$[5] = t1;
|
|
250
|
+
} else t1 = $[5];
|
|
251
|
+
let t2;
|
|
252
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
253
|
+
t2 = /* @__PURE__ */ jsx("td", {
|
|
254
|
+
ref,
|
|
255
|
+
className: t1,
|
|
256
|
+
...props
|
|
257
|
+
});
|
|
258
|
+
$[6] = props;
|
|
259
|
+
$[7] = ref;
|
|
260
|
+
$[8] = t1;
|
|
261
|
+
$[9] = t2;
|
|
262
|
+
} else t2 = $[9];
|
|
263
|
+
return t2;
|
|
60
264
|
}
|
|
61
265
|
TableCell.displayName = "TableCell";
|
|
62
|
-
function TableCaption(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
266
|
+
function TableCaption(t0) {
|
|
267
|
+
const $ = c(10);
|
|
268
|
+
let className;
|
|
269
|
+
let props;
|
|
270
|
+
let ref;
|
|
271
|
+
if ($[0] !== t0) {
|
|
272
|
+
({className, ref, ...props} = t0);
|
|
273
|
+
$[0] = t0;
|
|
274
|
+
$[1] = className;
|
|
275
|
+
$[2] = props;
|
|
276
|
+
$[3] = ref;
|
|
277
|
+
} else {
|
|
278
|
+
className = $[1];
|
|
279
|
+
props = $[2];
|
|
280
|
+
ref = $[3];
|
|
281
|
+
}
|
|
282
|
+
let t1;
|
|
283
|
+
if ($[4] !== className) {
|
|
284
|
+
t1 = classNames(core_table_module_default.tableCaption, className);
|
|
285
|
+
$[4] = className;
|
|
286
|
+
$[5] = t1;
|
|
287
|
+
} else t1 = $[5];
|
|
288
|
+
let t2;
|
|
289
|
+
if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
|
|
290
|
+
t2 = /* @__PURE__ */ jsx("caption", {
|
|
291
|
+
ref,
|
|
292
|
+
className: t1,
|
|
293
|
+
...props
|
|
294
|
+
});
|
|
295
|
+
$[6] = props;
|
|
296
|
+
$[7] = ref;
|
|
297
|
+
$[8] = t1;
|
|
298
|
+
$[9] = t2;
|
|
299
|
+
} else t2 = $[9];
|
|
300
|
+
return t2;
|
|
68
301
|
}
|
|
69
302
|
TableCaption.displayName = "TableCaption";
|
|
70
303
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-table.js","names":["classnames","styles"],"sources":["../../../../../src/components/ds-table/components/core-table/core-table.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref, TdHTMLAttributes, ThHTMLAttributes } from 'react';\nimport classnames from 'classnames';\nimport styles from './core-table.module.scss';\n\ntype TableProps = HTMLAttributes<HTMLTableElement> & { ref?: Ref<HTMLTableElement> };\n\nfunction Table({ className, ref, ...props }: TableProps) {\n\treturn <table ref={ref} className={classnames(styles.table, className)} {...props} />;\n}\n\nTable.displayName = 'Table';\n\ntype TableHeaderProps = HTMLAttributes<HTMLTableSectionElement> & {\n\tref?: Ref<HTMLTableSectionElement>;\n};\n\nfunction TableHeader({ className, ref, ...props }: TableHeaderProps) {\n\treturn <thead ref={ref} className={classnames(styles.tableHeader, className)} {...props} />;\n}\n\nTableHeader.displayName = 'TableHeader';\n\ntype TableBodyProps = HTMLAttributes<HTMLTableSectionElement> & {\n\tref?: Ref<HTMLTableSectionElement>;\n};\n\nfunction TableBody({ className, ref, ...props }: TableBodyProps) {\n\treturn <tbody ref={ref} className={classnames(styles.tableBody, className)} {...props} />;\n}\n\nTableBody.displayName = 'TableBody';\n\ntype TableFooterProps = HTMLAttributes<HTMLTableSectionElement> & {\n\tref?: Ref<HTMLTableSectionElement>;\n};\n\nfunction TableFooter({ className, ref, ...props }: TableFooterProps) {\n\treturn <tfoot ref={ref} className={classnames(styles.tableFooter, className)} {...props} />;\n}\n\nTableFooter.displayName = 'TableFooter';\n\ntype TableRowProps = HTMLAttributes<HTMLTableRowElement> & {\n\tref?: Ref<HTMLTableRowElement>;\n};\n\nfunction TableRow({ className, ref, ...props }: TableRowProps) {\n\treturn <tr ref={ref} className={classnames(styles.tableRow, className)} {...props} />;\n}\n\nTableRow.displayName = 'TableRow';\n\ntype TableHeadProps = ThHTMLAttributes<HTMLTableCellElement> & {\n\tref?: Ref<HTMLTableCellElement>;\n};\n\nfunction TableHead({ className, ref, ...props }: TableHeadProps) {\n\treturn <th ref={ref} className={classnames(styles.tableHead, className)} {...props} />;\n}\n\nTableHead.displayName = 'TableHead';\n\ntype TableCellProps = TdHTMLAttributes<HTMLTableCellElement> & {\n\tref?: Ref<HTMLTableCellElement>;\n};\n\nfunction TableCell({ className, ref, ...props }: TableCellProps) {\n\treturn <td ref={ref} className={classnames(styles.tableCell, className)} {...props} />;\n}\n\nTableCell.displayName = 'TableCell';\n\ntype TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement> & {\n\tref?: Ref<HTMLTableCaptionElement>;\n};\n\nfunction TableCaption({ className, ref, ...props }: TableCaptionProps) {\n\treturn <caption ref={ref} className={classnames(styles.tableCaption, className)} {...props} />;\n}\n\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"core-table.js","names":["HTMLAttributes","Ref","TdHTMLAttributes","ThHTMLAttributes","classnames","styles","TableProps","HTMLTableElement","ref","Table","t0","$","_c","className","props","t1","table","t2","displayName","TableHeaderProps","HTMLTableSectionElement","TableHeader","tableHeader","TableBodyProps","TableBody","tableBody","TableFooterProps","TableFooter","tableFooter","TableRowProps","HTMLTableRowElement","TableRow","tableRow","TableHeadProps","HTMLTableCellElement","TableHead","tableHead","TableCellProps","TableCell","tableCell","TableCaptionProps","HTMLTableCaptionElement","TableCaption","tableCaption"],"sources":["../../../../../src/components/ds-table/components/core-table/core-table.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref, TdHTMLAttributes, ThHTMLAttributes } from 'react';\nimport classnames from 'classnames';\nimport styles from './core-table.module.scss';\n\ntype TableProps = HTMLAttributes<HTMLTableElement> & { ref?: Ref<HTMLTableElement> };\n\nfunction Table({ className, ref, ...props }: TableProps) {\n\treturn <table ref={ref} className={classnames(styles.table, className)} {...props} />;\n}\n\nTable.displayName = 'Table';\n\ntype TableHeaderProps = HTMLAttributes<HTMLTableSectionElement> & {\n\tref?: Ref<HTMLTableSectionElement>;\n};\n\nfunction TableHeader({ className, ref, ...props }: TableHeaderProps) {\n\treturn <thead ref={ref} className={classnames(styles.tableHeader, className)} {...props} />;\n}\n\nTableHeader.displayName = 'TableHeader';\n\ntype TableBodyProps = HTMLAttributes<HTMLTableSectionElement> & {\n\tref?: Ref<HTMLTableSectionElement>;\n};\n\nfunction TableBody({ className, ref, ...props }: TableBodyProps) {\n\treturn <tbody ref={ref} className={classnames(styles.tableBody, className)} {...props} />;\n}\n\nTableBody.displayName = 'TableBody';\n\ntype TableFooterProps = HTMLAttributes<HTMLTableSectionElement> & {\n\tref?: Ref<HTMLTableSectionElement>;\n};\n\nfunction TableFooter({ className, ref, ...props }: TableFooterProps) {\n\treturn <tfoot ref={ref} className={classnames(styles.tableFooter, className)} {...props} />;\n}\n\nTableFooter.displayName = 'TableFooter';\n\ntype TableRowProps = HTMLAttributes<HTMLTableRowElement> & {\n\tref?: Ref<HTMLTableRowElement>;\n};\n\nfunction TableRow({ className, ref, ...props }: TableRowProps) {\n\treturn <tr ref={ref} className={classnames(styles.tableRow, className)} {...props} />;\n}\n\nTableRow.displayName = 'TableRow';\n\ntype TableHeadProps = ThHTMLAttributes<HTMLTableCellElement> & {\n\tref?: Ref<HTMLTableCellElement>;\n};\n\nfunction TableHead({ className, ref, ...props }: TableHeadProps) {\n\treturn <th ref={ref} className={classnames(styles.tableHead, className)} {...props} />;\n}\n\nTableHead.displayName = 'TableHead';\n\ntype TableCellProps = TdHTMLAttributes<HTMLTableCellElement> & {\n\tref?: Ref<HTMLTableCellElement>;\n};\n\nfunction TableCell({ className, ref, ...props }: TableCellProps) {\n\treturn <td ref={ref} className={classnames(styles.tableCell, className)} {...props} />;\n}\n\nTableCell.displayName = 'TableCell';\n\ntype TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement> & {\n\tref?: Ref<HTMLTableCaptionElement>;\n};\n\nfunction TableCaption({ className, ref, ...props }: TableCaptionProps) {\n\treturn <caption ref={ref} className={classnames(styles.tableCaption, className)} {...props} />;\n}\n\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow };\n"],"mappings":";;;;;;AAMA,SAAAS,MAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAN;AAAA,KAAAG,EAAA,OAAAD,IAAA;AAAe,GAAA,CAAAG,WAAAL,QAAAM,SAAAJ;AAAwCC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAH;QAAA;AAAAK,cAAAF,EAAA;AAAAG,UAAAH,EAAA;AAAAH,QAAAG,EAAA;;CAAA,IAAAI;AAAA,KAAAJ,EAAA,OAAAE,WAAA;AACnBE,OAAAX,WAAWC,0BAAMW,OAAQH,UAAU;AAAAF,IAAA,KAAAE;AAAAF,IAAA,KAAAI;OAAAA,MAAAJ,EAAA;CAAA,IAAAM;AAAA,KAAAN,EAAA,OAAAG,SAAAH,EAAA,OAAAH,OAAAG,EAAA,OAAAI,IAAA;AAA/DE,OAAA,oBAAA;GAAYT;GAAgB,WAAAO;GAAmC,GAAMD;IAAS;AAAAH,I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AAAL,QAAAM,SAAAJ;AAA+CC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAH;QAAA;AAAAK,cAAAF,EAAA;AAAAG,UAAAH,EAAA;AAAAH,QAAAG,EAAA;;CAAA,IAAAI;AAAA,KAAAJ,EAAA,OAAAE,WAAA;AAC/BE,OAAAX,WAAWC,0BAAMsC,cAAe9B,UAAU;AAAAF,IAAA,KAAAE;AAAAF,IAAA,KAAAI;OAAAA,MAAAJ,EAAA;CAAA,IAAAM;AAAA,KAAAN,EAAA,OAAAG,SAAAH,EAAA,OAAAH,OAAAG,EAAA,OAAAI,IAAA;AAAxEE,OAAA,oBAAA;GAAcT;GAAgB,WAAAO;GAA0C,GAAMD;IAAS;AAAAH,IAAA,KAAAG;AAAAH,IAAA,KAAAH;AAAAG,IAAA,KAAAI;AAAAJ,IAAA,KAAAM;OAAAA,MAAAN,EAAA;AAAA,QAAvFM;;AAGRyB,aAAaxB,cAAc"}
|
|
@@ -4,74 +4,158 @@ require('../../../ds-icon/index.cjs');
|
|
|
4
4
|
const require_ds_button = require('../../../ds-button/ds-button.cjs');
|
|
5
5
|
require('../../../ds-button/index.cjs');
|
|
6
6
|
const require_ds_table_bulk_actions_module = require('./ds-table-bulk-actions.module.cjs');
|
|
7
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
7
8
|
let classnames = require("classnames");
|
|
8
9
|
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
9
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
11
|
let react = require("react");
|
|
11
12
|
|
|
12
13
|
//#region src/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.tsx
|
|
13
|
-
const DsTableBulkActions = (
|
|
14
|
+
const DsTableBulkActions = (t0) => {
|
|
15
|
+
const $ = (0, react_compiler_runtime.c)(25);
|
|
16
|
+
const { numSelectedRows, actions, onClearSelection } = t0;
|
|
14
17
|
const [isRendered, setIsRendered] = (0, react.useState)(false);
|
|
15
18
|
const [animationClass, setAnimationClass] = (0, react.useState)("");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
setAnimationClass(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
let t1;
|
|
20
|
+
let t2;
|
|
21
|
+
if ($[0] !== isRendered || $[1] !== numSelectedRows) {
|
|
22
|
+
t1 = () => {
|
|
23
|
+
if (numSelectedRows > 0) {
|
|
24
|
+
setIsRendered(true);
|
|
25
|
+
setAnimationClass(require_ds_table_bulk_actions_module.default.entering);
|
|
26
|
+
} else if (isRendered) {
|
|
27
|
+
setAnimationClass(require_ds_table_bulk_actions_module.default.exiting);
|
|
28
|
+
const timer = setTimeout(() => {
|
|
29
|
+
setIsRendered(false);
|
|
30
|
+
setAnimationClass("");
|
|
31
|
+
}, 300);
|
|
32
|
+
return () => clearTimeout(timer);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
t2 = [numSelectedRows, isRendered];
|
|
36
|
+
$[0] = isRendered;
|
|
37
|
+
$[1] = numSelectedRows;
|
|
38
|
+
$[2] = t1;
|
|
39
|
+
$[3] = t2;
|
|
40
|
+
} else {
|
|
41
|
+
t1 = $[2];
|
|
42
|
+
t2 = $[3];
|
|
43
|
+
}
|
|
44
|
+
(0, react.useEffect)(t1, t2);
|
|
29
45
|
if (!isRendered) return null;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
46
|
+
let t3;
|
|
47
|
+
if ($[4] !== animationClass) {
|
|
48
|
+
t3 = (0, classnames.default)(require_ds_table_bulk_actions_module.default.bulkActionsContainer, animationClass);
|
|
49
|
+
$[4] = animationClass;
|
|
50
|
+
$[5] = t3;
|
|
51
|
+
} else t3 = $[5];
|
|
52
|
+
let t4;
|
|
53
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
54
|
+
t4 = (0, classnames.default)(require_ds_table_bulk_actions_module.default.selectedCountBadge, require_ds_table_bulk_actions_module.default.bold);
|
|
55
|
+
$[6] = t4;
|
|
56
|
+
} else t4 = $[6];
|
|
57
|
+
let t5;
|
|
58
|
+
if ($[7] !== numSelectedRows) {
|
|
59
|
+
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
33
60
|
className: require_ds_table_bulk_actions_module.default.selectedCountContainer,
|
|
34
61
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
35
|
-
className:
|
|
62
|
+
className: t4,
|
|
36
63
|
children: numSelectedRows
|
|
37
64
|
})
|
|
38
|
-
})
|
|
65
|
+
});
|
|
66
|
+
$[7] = numSelectedRows;
|
|
67
|
+
$[8] = t5;
|
|
68
|
+
} else t5 = $[8];
|
|
69
|
+
let t6;
|
|
70
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
71
|
+
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
72
|
+
className: require_ds_table_bulk_actions_module.default.bulkActionsInfo,
|
|
73
|
+
children: "items selected"
|
|
74
|
+
});
|
|
75
|
+
$[9] = t6;
|
|
76
|
+
} else t6 = $[9];
|
|
77
|
+
let t7;
|
|
78
|
+
if ($[10] !== actions) {
|
|
79
|
+
t7 = actions.map(_temp);
|
|
80
|
+
$[10] = actions;
|
|
81
|
+
$[11] = t7;
|
|
82
|
+
} else t7 = $[11];
|
|
83
|
+
let t8;
|
|
84
|
+
if ($[12] !== t7) {
|
|
85
|
+
t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
86
|
+
className: require_ds_table_bulk_actions_module.default.bulkActionsActions,
|
|
87
|
+
children: t7
|
|
88
|
+
});
|
|
89
|
+
$[12] = t7;
|
|
90
|
+
$[13] = t8;
|
|
91
|
+
} else t8 = $[13];
|
|
92
|
+
let t9;
|
|
93
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
94
|
+
t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, { icon: "close" });
|
|
95
|
+
$[14] = t9;
|
|
96
|
+
} else t9 = $[14];
|
|
97
|
+
let t10;
|
|
98
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
99
|
+
t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
100
|
+
className: require_ds_table_bulk_actions_module.default.medium,
|
|
101
|
+
children: "Esc"
|
|
102
|
+
});
|
|
103
|
+
$[15] = t10;
|
|
104
|
+
} else t10 = $[15];
|
|
105
|
+
let t11;
|
|
106
|
+
if ($[16] !== onClearSelection) {
|
|
107
|
+
t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_button.default, {
|
|
108
|
+
variant: "borderless",
|
|
109
|
+
size: "small",
|
|
110
|
+
color: "neutral-2",
|
|
111
|
+
contentClassName: require_ds_table_bulk_actions_module.default.escapeButtonContent,
|
|
112
|
+
onClick: onClearSelection,
|
|
113
|
+
children: [t9, t10]
|
|
114
|
+
});
|
|
115
|
+
$[16] = onClearSelection;
|
|
116
|
+
$[17] = t11;
|
|
117
|
+
} else t11 = $[17];
|
|
118
|
+
let t12;
|
|
119
|
+
if ($[18] !== t11 || $[19] !== t8) {
|
|
120
|
+
t12 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
39
121
|
className: require_ds_table_bulk_actions_module.default.bulkActionsContent,
|
|
40
122
|
children: [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}),
|
|
45
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
46
|
-
className: require_ds_table_bulk_actions_module.default.bulkActionsActions,
|
|
47
|
-
children: actions.map((action, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_button.default, {
|
|
48
|
-
variant: "borderless",
|
|
49
|
-
size: "small",
|
|
50
|
-
className: require_ds_table_bulk_actions_module.default.actionButton,
|
|
51
|
-
contentClassName: require_ds_table_bulk_actions_module.default.actionButtonContent,
|
|
52
|
-
onClick: action.onClick,
|
|
53
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, { icon: action.icon }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
54
|
-
className: (require_ds_table_bulk_actions_module.default["p-s"], require_ds_table_bulk_actions_module.default.medium),
|
|
55
|
-
children: action.label
|
|
56
|
-
})]
|
|
57
|
-
}, index))
|
|
58
|
-
}),
|
|
59
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_button.default, {
|
|
60
|
-
variant: "borderless",
|
|
61
|
-
size: "small",
|
|
62
|
-
color: "neutral-2",
|
|
63
|
-
contentClassName: require_ds_table_bulk_actions_module.default.escapeButtonContent,
|
|
64
|
-
onClick: onClearSelection,
|
|
65
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, { icon: "close" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
66
|
-
className: (require_ds_table_bulk_actions_module.default["p-s"], require_ds_table_bulk_actions_module.default.medium),
|
|
67
|
-
children: "Esc"
|
|
68
|
-
})]
|
|
69
|
-
})
|
|
123
|
+
t6,
|
|
124
|
+
t8,
|
|
125
|
+
t11
|
|
70
126
|
]
|
|
71
|
-
})
|
|
72
|
-
|
|
127
|
+
});
|
|
128
|
+
$[18] = t11;
|
|
129
|
+
$[19] = t8;
|
|
130
|
+
$[20] = t12;
|
|
131
|
+
} else t12 = $[20];
|
|
132
|
+
let t13;
|
|
133
|
+
if ($[21] !== t12 || $[22] !== t3 || $[23] !== t5) {
|
|
134
|
+
t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
135
|
+
className: t3,
|
|
136
|
+
children: [t5, t12]
|
|
137
|
+
});
|
|
138
|
+
$[21] = t12;
|
|
139
|
+
$[22] = t3;
|
|
140
|
+
$[23] = t5;
|
|
141
|
+
$[24] = t13;
|
|
142
|
+
} else t13 = $[24];
|
|
143
|
+
return t13;
|
|
73
144
|
};
|
|
74
145
|
var ds_table_bulk_actions_default = DsTableBulkActions;
|
|
146
|
+
function _temp(action, index) {
|
|
147
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_ds_button.default, {
|
|
148
|
+
variant: "borderless",
|
|
149
|
+
size: "small",
|
|
150
|
+
className: require_ds_table_bulk_actions_module.default.actionButton,
|
|
151
|
+
contentClassName: require_ds_table_bulk_actions_module.default.actionButtonContent,
|
|
152
|
+
onClick: action.onClick,
|
|
153
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ds_icon.default, { icon: action.icon }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
154
|
+
className: require_ds_table_bulk_actions_module.default.medium,
|
|
155
|
+
children: action.label
|
|
156
|
+
})]
|
|
157
|
+
}, index);
|
|
158
|
+
}
|
|
75
159
|
|
|
76
160
|
//#endregion
|
|
77
161
|
exports.default = ds_table_bulk_actions_default;
|