@clickhouse/click-ui 0.0.149 → 0.0.151

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.
@@ -37623,7 +37623,7 @@ const SidebarCollapsibleTitle = ({
37623
37623
  children,
37624
37624
  open: open2,
37625
37625
  onOpenChange,
37626
- iconDir,
37626
+ iconDir = "start",
37627
37627
  icon,
37628
37628
  selected,
37629
37629
  type = "main",
@@ -37634,8 +37634,9 @@ const SidebarCollapsibleTitle = ({
37634
37634
  }
37635
37635
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Collapsible, { open: open2, onOpenChange, children: [
37636
37636
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SidebarTitleWrapper, { as: Collapsible.Trigger, $collapsible: true, iconDir, "data-selected": selected, $type: type, ...props, children: [
37637
- icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: "sm" }),
37638
- label
37637
+ icon && iconDir === "start" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: "sm" }),
37638
+ label,
37639
+ icon && iconDir === "end" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: "sm" })
37639
37640
  ] }),
37640
37641
  /* @__PURE__ */ jsxRuntimeExports.jsx(Collapsible.Content, { children })
37641
37642
  ] });
@@ -37640,7 +37640,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
37640
37640
  children,
37641
37641
  open: open2,
37642
37642
  onOpenChange,
37643
- iconDir,
37643
+ iconDir = "start",
37644
37644
  icon,
37645
37645
  selected,
37646
37646
  type = "main",
@@ -37651,8 +37651,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
37651
37651
  }
37652
37652
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Collapsible, { open: open2, onOpenChange, children: [
37653
37653
  /* @__PURE__ */ jsxRuntimeExports.jsxs(SidebarTitleWrapper, { as: Collapsible.Trigger, $collapsible: true, iconDir, "data-selected": selected, $type: type, ...props, children: [
37654
- icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: "sm" }),
37655
- label
37654
+ icon && iconDir === "start" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: "sm" }),
37655
+ label,
37656
+ icon && iconDir === "end" && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: "sm" })
37656
37657
  ] }),
37657
37658
  /* @__PURE__ */ jsxRuntimeExports.jsx(Collapsible.Content, { children })
37658
37659
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "v0.0.149",
3
+ "version": "0.0.151",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",