achery-ui 0.5.2 → 0.5.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/dist/index.cjs +30 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +25 -6
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +30 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -798,9 +798,8 @@ function NavGroup({ label: label4, items, activeId, onItemClick, renderLink, col
|
|
|
798
798
|
] });
|
|
799
799
|
}
|
|
800
800
|
function NavItem({ item: item2, active, onClick, renderLink, collapsed }) {
|
|
801
|
-
const glyphStyle = active ? { filter: "invert(1)" } : void 0;
|
|
802
801
|
const content3 = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
803
|
-
item2.glyph ? /* @__PURE__ */ jsxRuntime.jsx(Glyph, { name: item2.glyph, size: 14,
|
|
802
|
+
item2.glyph ? /* @__PURE__ */ jsxRuntime.jsx(Glyph, { name: item2.glyph, size: 14, "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx("span", {}),
|
|
804
803
|
!collapsed && /* @__PURE__ */ jsxRuntime.jsx("span", { children: item2.label }),
|
|
805
804
|
!collapsed && item2.count !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: item2.countTone === "accent" ? countAccent : navItemCount, children: item2.count })
|
|
806
805
|
] });
|
|
@@ -872,9 +871,10 @@ function Avatar({ initials: initials2, size = "md", tone = "neutral", className
|
|
|
872
871
|
}
|
|
873
872
|
|
|
874
873
|
// src/components/AppBar/AppBar.css.ts
|
|
875
|
-
var accentPicker = "
|
|
876
|
-
var accentSwatch = "
|
|
874
|
+
var accentPicker = "AppBar_accentPicker__uqki99a";
|
|
875
|
+
var accentSwatch = "AppBar_accentSwatch__uqki99b";
|
|
877
876
|
var actions = "AppBar_actions__uqki998";
|
|
877
|
+
var actionsInner = "AppBar_actionsInner__uqki999";
|
|
878
878
|
var appBar = "AppBar_appBar__uqki990";
|
|
879
879
|
var brand = "AppBar_brand__uqki991";
|
|
880
880
|
var brandDivider = "AppBar_brandDivider__uqki993";
|
|
@@ -938,30 +938,32 @@ function AppBar({
|
|
|
938
938
|
searchKbd2 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: searchKbd, children: searchKbd2 })
|
|
939
939
|
] }),
|
|
940
940
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: actions, children: [
|
|
941
|
-
|
|
942
|
-
"
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
941
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: actionsInner, children: [
|
|
942
|
+
onAccentChange && /* @__PURE__ */ jsxRuntime.jsx("div", { className: accentPicker, role: "group", "aria-label": "Brand colour", children: chunkLJ24EJ3N_cjs.accentColorNames.map((name) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
943
|
+
"button",
|
|
944
|
+
{
|
|
945
|
+
className: accentSwatch,
|
|
946
|
+
"data-active": name === accent,
|
|
947
|
+
onClick: () => onAccentChange(name),
|
|
948
|
+
"aria-label": name,
|
|
949
|
+
"aria-pressed": name === accent,
|
|
950
|
+
style: { background: chunkLJ24EJ3N_cjs.accentColors[name].main }
|
|
951
|
+
},
|
|
952
|
+
name
|
|
953
|
+
)) }),
|
|
954
|
+
onToggleTheme && /* @__PURE__ */ jsxRuntime.jsx(
|
|
955
|
+
Button,
|
|
956
|
+
{
|
|
957
|
+
variant: "ghost",
|
|
958
|
+
size: "sm",
|
|
959
|
+
glyph: isDark ? "sun" : "moon",
|
|
960
|
+
onClick: onToggleTheme,
|
|
961
|
+
"aria-label": isDark ? "Switch to light mode" : "Switch to dark mode"
|
|
962
|
+
}
|
|
963
|
+
),
|
|
964
|
+
onNewClick && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "accent", size: "sm", glyph: "plus", onClick: onNewClick, children: "New" }),
|
|
965
|
+
actions2
|
|
966
|
+
] }),
|
|
965
967
|
avatarInitials && /* @__PURE__ */ jsxRuntime.jsx(Avatar, { initials: avatarInitials, size: "sm", tone: "neutral" })
|
|
966
968
|
] })
|
|
967
969
|
] });
|