stone-kit
Version:
uikit for redesign
76 lines (75 loc) • 1.99 kB
JavaScript
import { jsxs as t, jsx as r } from "react/jsx-runtime";
import { c as N } from "../../../index-rKuIKazb.js";
const x = "_destination_1c7de_1", n = "_destinationName_1c7de_40", w = "_routeText_1c7de_45", g = "_whiteStroke_1c7de_65", k = "_routeWrapper_1c7de_78", _ = {
destination: x,
"auto-width": "_auto-width_1c7de_29",
"full-width": "_full-width_1c7de_33",
"medium-size": "_medium-size_1c7de_37",
destinationName: n,
routeText: w,
"large-size": "_large-size_1c7de_51",
whiteStroke: g,
routeWrapper: k,
"medium-size_m": "_medium-size_m_1c7de_109",
"large-size_m": "_large-size_m_1c7de_122",
"medium-size_l": "_medium-size_l_1c7de_137",
"large-size_l": "_large-size_l_1c7de_150"
}, b = N.bind(_), f = ({
size: m = "medium",
size_m: c,
size_l: a,
destination: e = { destName: "", color: "" },
variant: d = "whiteStroke",
width: i = "auto",
routes: l = [],
checked: o,
onChange: u,
additionalClass: p = "",
...h
}) => /* @__PURE__ */ t(
"label",
{
className: b(
_.destination,
_[`${m}-size`],
_[`${c}-size_m`],
_[`${a}-size_l`],
_[`${d}`],
_[`${i}-width`],
p
),
...h,
htmlFor: e.destName,
children: [
/* @__PURE__ */ r(
"input",
{
id: e.destName,
checked: o,
onChange: u,
type: "checkbox",
name: e.destName,
value: e.destName
}
),
/* @__PURE__ */ t("div", { className: _.destination, children: [
(e == null ? void 0 : e.color) && /* @__PURE__ */ r("span", { style: { background: (e == null ? void 0 : e.color) ?? "" } }),
e.destName
] }),
l.map((s, z) => /* @__PURE__ */ t(
"div",
{
className: _.routeWrapper,
children: [
s.type,
/* @__PURE__ */ r("div", { className: _.routeText, children: s.text })
]
},
z
))
]
}
);
export {
f as DestinationTab
};