Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
67 lines
1.7 KiB
Plaintext
67 lines
1.7 KiB
Plaintext
'use client';
|
|
|
|
import { c as _c } from "react/compiler-runtime";
|
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
import React from 'react';
|
|
import { useTranslation } from '../../providers/Translation/index.js';
|
|
import { Button } from '../Button/index.js';
|
|
import './index.scss';
|
|
const baseClass = 'list-selection';
|
|
export function ListSelection_v4(t0) {
|
|
const $ = _c(5);
|
|
const {
|
|
count,
|
|
ListActions,
|
|
SelectionActions
|
|
} = t0;
|
|
const {
|
|
t
|
|
} = useTranslation();
|
|
let t1;
|
|
if ($[0] !== ListActions || $[1] !== SelectionActions || $[2] !== count || $[3] !== t) {
|
|
t1 = _jsxs("div", {
|
|
className: baseClass,
|
|
children: [_jsx("span", {
|
|
children: t("general:selectedCount", {
|
|
count,
|
|
label: ""
|
|
})
|
|
}), ListActions && ListActions.length > 0 && _jsxs(React.Fragment, {
|
|
children: [_jsx("span", {
|
|
children: "\u2014"
|
|
}), _jsx("div", {
|
|
className: `${baseClass}__actions`,
|
|
children: ListActions
|
|
})]
|
|
}), SelectionActions && SelectionActions.length > 0 && _jsxs(React.Fragment, {
|
|
children: [_jsx("span", {
|
|
children: "\u2014"
|
|
}), _jsx("div", {
|
|
className: `${baseClass}__actions`,
|
|
children: SelectionActions
|
|
})]
|
|
})]
|
|
});
|
|
$[0] = ListActions;
|
|
$[1] = SelectionActions;
|
|
$[2] = count;
|
|
$[3] = t;
|
|
$[4] = t1;
|
|
} else {
|
|
t1 = $[4];
|
|
}
|
|
return t1;
|
|
}
|
|
export function ListSelectionButton({
|
|
children,
|
|
className,
|
|
...props
|
|
}) {
|
|
return /*#__PURE__*/_jsx(Button, {
|
|
...props,
|
|
buttonStyle: "none",
|
|
className: [`${baseClass}__button`, className].filter(Boolean).join(' '),
|
|
children: children
|
|
});
|
|
}
|
|
//# sourceMappingURL=index.js.map |