@lundal/zed-solid 0.0.16 → 0.0.17

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/Header.d.ts CHANGED
@@ -4,6 +4,7 @@ export type HeaderProps = {
4
4
  style?: JSX.CSSProperties;
5
5
  appIcon: JSX.Element;
6
6
  appName: string;
7
+ buttons?: JSX.Element;
7
8
  children?: JSX.Element;
8
9
  };
9
10
  export declare function Header(props: HeaderProps): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { JSX } from 'solid-js';
2
- export type NavHeaderProps = {
2
+ export type NavHeadingProps = {
3
3
  class?: string;
4
4
  style?: JSX.CSSProperties;
5
5
  children: JSX.Element;
6
6
  };
7
- export declare function NavHeader(props: NavHeaderProps): JSX.Element;
7
+ export declare function NavHeading(props: NavHeadingProps): JSX.Element;
package/dist/index.css CHANGED
@@ -349,7 +349,7 @@ dialog:focus-visible {
349
349
  font-weight: 500;
350
350
  }
351
351
 
352
- .z-nav--header {
352
+ .z-nav--heading {
353
353
  padding: 24px 24px 12px 24px;
354
354
  }
355
355
 
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export * from './IconButton.tsx';
13
13
  export * from './Link.tsx';
14
14
  export * from './Message.tsx';
15
15
  export * from './Nav.tsx';
16
- export * from './NavHeader.tsx';
16
+ export * from './NavHeading.tsx';
17
17
  export * from './NavLink.tsx';
18
18
  export * from './Page.tsx';
19
19
  export * from './RadioButtons.tsx';
package/dist/index.js CHANGED
@@ -556,13 +556,14 @@ function Form(props) {
556
556
  return _el$;
557
557
  })();
558
558
  }
559
- var _tmpl$$d = /* @__PURE__ */ template(`<header><a class=z-header--app href=/><span></span></a><div class=z-header--buttons>`);
559
+ var _tmpl$$d = /* @__PURE__ */ template(`<header><a class=z-header--app href=/><span></span></a><div class=z-header--children></div><div class=z-header--buttons>`);
560
560
  function Header(props) {
561
561
  return (() => {
562
- var _el$ = _tmpl$$d(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling;
562
+ var _el$ = _tmpl$$d(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$2.nextSibling, _el$5 = _el$4.nextSibling;
563
563
  insert(_el$2, () => props.appIcon, _el$3);
564
564
  insert(_el$3, () => props.appName);
565
565
  insert(_el$4, () => props.children);
566
+ insert(_el$5, () => props.buttons);
566
567
  createRenderEffect((_p$) => {
567
568
  var _v$ = mergeClasses("z-header", props.class), _v$2 = props.style;
568
569
  _v$ !== _p$.e && className(_el$, _p$.e = _v$);
@@ -787,12 +788,12 @@ function Nav(props) {
787
788
  })();
788
789
  }
789
790
  var _tmpl$$7 = /* @__PURE__ */ template(`<div>`);
790
- function NavHeader(props) {
791
+ function NavHeading(props) {
791
792
  return (() => {
792
793
  var _el$ = _tmpl$$7();
793
794
  insert(_el$, () => props.children);
794
795
  createRenderEffect((_p$) => {
795
- var _v$ = mergeClasses("z-nav--header", props.class), _v$2 = props.style;
796
+ var _v$ = mergeClasses("z-nav--heading", props.class), _v$2 = props.style;
796
797
  _v$ !== _p$.e && className(_el$, _p$.e = _v$);
797
798
  _p$.t = style(_el$, _v$2, _p$.t);
798
799
  return _p$;
@@ -1095,7 +1096,7 @@ export {
1095
1096
  Link,
1096
1097
  Message,
1097
1098
  Nav,
1098
- NavHeader,
1099
+ NavHeading,
1099
1100
  NavLink,
1100
1101
  Page,
1101
1102
  RadioButtons,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lundal/zed-solid",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "license": "LGPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",