@datavac/ui-kit 1.0.7 → 1.1.1
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/index.js
CHANGED
|
@@ -1853,6 +1853,7 @@ var ht = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, gt = g, _t =
|
|
|
1853
1853
|
variants: {
|
|
1854
1854
|
variant: {
|
|
1855
1855
|
primary: "bg-accent text-white hover:bg-accent-hover",
|
|
1856
|
+
secondary: "bg-interactive text-fg hover:opacity-90",
|
|
1856
1857
|
dark: "bg-neutral text-white hover:opacity-90"
|
|
1857
1858
|
},
|
|
1858
1859
|
size: {
|
|
@@ -6703,8 +6704,10 @@ function Ju() {
|
|
|
6703
6704
|
//#endregion
|
|
6704
6705
|
//#region src/components/ThemeToggle/ThemeToggle.tsx
|
|
6705
6706
|
function Yu({ className: e }) {
|
|
6706
|
-
let { themeName: t, toggleTheme: n } = Ju(), r = t === "dark";
|
|
6707
|
-
return
|
|
6707
|
+
let { themeName: t, toggleTheme: n } = Ju(), r = t === "dark", [i, a] = l(!1);
|
|
6708
|
+
return o(() => {
|
|
6709
|
+
a(!0);
|
|
6710
|
+
}, []), i ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
|
|
6708
6711
|
className: G("hidden md:flex items-center gap-2", e),
|
|
6709
6712
|
children: [
|
|
6710
6713
|
/* @__PURE__ */ d("span", {
|
|
@@ -6741,7 +6744,7 @@ function Yu({ className: e }) {
|
|
|
6741
6744
|
children: /* @__PURE__ */ d(Fu, {})
|
|
6742
6745
|
})
|
|
6743
6746
|
]
|
|
6744
|
-
})] });
|
|
6747
|
+
})] }) : null;
|
|
6745
6748
|
}
|
|
6746
6749
|
//#endregion
|
|
6747
6750
|
export { Tu as Accordion, Eu as AccordionItem, Mu as ArrowsIcon, yt as Badge, vt as Button, tt as Caption, bt as Chip, xt as Counter, bl as Drawer, Au as EmptyState, ju as ErrorState, Qe as Heading, Nu as InfoCircleIcon, St as Input, et as Label, Pu as MenuIcon, Fu as MoonStarsIcon, Iu as PlusIcon, Ct as SearchBar, ku as Skeleton, Ou as Spinner, Lu as SunIcon, zu as Switch, $e as Text, qu as ThemeProvider, Yu as ThemeToggle, za as Tooltip, G as cn, Vu as darkTheme, Bu as defaultTheme, Uu as themes, Gu as tokensToCssVars, Ju as useTheme };
|