@umami/react-zen 0.145.0 → 0.146.0

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.d.mts CHANGED
@@ -581,7 +581,7 @@ interface SidebarProps extends ColumnProps {
581
581
  children?: ReactNode;
582
582
  }
583
583
  declare function Sidebar({ variant, isCollapsed, muteItems, showBorder, className, children, ...props }: SidebarProps): react.JSX.Element;
584
- declare function SidebarSection({ title, children, }: {
584
+ declare function SidebarSection({ title, className, children, ...props }: {
585
585
  title?: string;
586
586
  children: ReactNode;
587
587
  } & ColumnProps): react.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -581,7 +581,7 @@ interface SidebarProps extends ColumnProps {
581
581
  children?: ReactNode;
582
582
  }
583
583
  declare function Sidebar({ variant, isCollapsed, muteItems, showBorder, className, children, ...props }: SidebarProps): react.JSX.Element;
584
- declare function SidebarSection({ title, children, }: {
584
+ declare function SidebarSection({ title, className, children, ...props }: {
585
585
  title?: string;
586
586
  children: ReactNode;
587
587
  } & ColumnProps): react.JSX.Element;
package/dist/index.js CHANGED
@@ -26519,7 +26519,6 @@ function FormSubmitButton({
26519
26519
  const {
26520
26520
  formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
26521
26521
  } = useFormContext();
26522
- console.log({ isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful });
26523
26522
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
26524
26523
  LoadingButton,
26525
26524
  {
@@ -31749,9 +31748,11 @@ function Sidebar({
31749
31748
  }
31750
31749
  function SidebarSection({
31751
31750
  title,
31752
- children
31751
+ className,
31752
+ children,
31753
+ ...props
31753
31754
  }) {
31754
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Column, { className: Sidebar_default.section, children: [
31755
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Column, { ...props, className: (0, import_classnames46.default)(Sidebar_default.section, className), children: [
31755
31756
  title && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: Sidebar_default.title, children: title }),
31756
31757
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: Sidebar_default.content, children })
31757
31758
  ] });
package/dist/index.mjs CHANGED
@@ -26404,7 +26404,6 @@ function FormSubmitButton({
26404
26404
  const {
26405
26405
  formState: { isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful }
26406
26406
  } = useFormContext();
26407
- console.log({ isDirty, isValid, isSubmitting, isSubmitted, isSubmitSuccessful });
26408
26407
  return /* @__PURE__ */ jsx20(
26409
26408
  LoadingButton,
26410
26409
  {
@@ -31638,9 +31637,11 @@ function Sidebar({
31638
31637
  }
31639
31638
  function SidebarSection({
31640
31639
  title,
31641
- children
31640
+ className,
31641
+ children,
31642
+ ...props
31642
31643
  }) {
31643
- return /* @__PURE__ */ jsxs35(Column, { className: Sidebar_default.section, children: [
31644
+ return /* @__PURE__ */ jsxs35(Column, { ...props, className: (0, import_classnames46.default)(Sidebar_default.section, className), children: [
31644
31645
  title && /* @__PURE__ */ jsx61("div", { className: Sidebar_default.title, children: title }),
31645
31646
  /* @__PURE__ */ jsx61("div", { className: Sidebar_default.content, children })
31646
31647
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.145.0",
3
+ "version": "0.146.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",