flufi-ui 0.1.6 → 0.1.8

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.
@@ -839,6 +839,7 @@ function Else(props) {
839
839
  import { jsx as jsx11 } from "preact/jsx-runtime";
840
840
  function Content(props) {
841
841
  return /* @__PURE__ */ jsx11("main", { class: addClass(
842
+ "content",
842
843
  props.class && `content-${props.class}`,
843
844
  props.wrapped && "wrapped",
844
845
  props.centered && "centered"
@@ -1184,6 +1185,7 @@ function Header1(props) {
1184
1185
  class: addClass(
1185
1186
  "header",
1186
1187
  props.underline && "underline",
1188
+ props.centered && "centered",
1187
1189
  props.class
1188
1190
  ),
1189
1191
  children: props.children
@@ -467,7 +467,7 @@ a.button {
467
467
  }
468
468
 
469
469
  /* src/components/Content/style.css */
470
- #app > div > main > main {
470
+ .content {
471
471
  flex: 1;
472
472
  display: flex;
473
473
  flex-direction: column;
@@ -555,9 +555,14 @@ a.button {
555
555
  }
556
556
 
557
557
  /* src/components/Header/Header.css */
558
- .header.underline {
559
- border-bottom: 1px solid var(--prim);
560
- padding-bottom: 2px;
558
+ .header {
559
+ &.underline {
560
+ border-bottom: 1px solid var(--prim);
561
+ padding-bottom: 2px;
562
+ }
563
+ &.centered {
564
+ text-align: center;
565
+ }
561
566
  }
562
567
  .mini-header {
563
568
  text-transform: uppercase;
@@ -180,6 +180,7 @@ declare function Header1(props: {
180
180
  children?: ComponentChildren;
181
181
  class?: string;
182
182
  underline?: boolean;
183
+ centered?: boolean;
183
184
  }): preact.JSX.Element;
184
185
  declare function Header2(props: {
185
186
  children?: ComponentChildren;
@@ -68,7 +68,7 @@ import {
68
68
  openContextMenuOn,
69
69
  showModal,
70
70
  useToast
71
- } from "../chunk-46MFYRTI.js";
71
+ } from "../chunk-7UIGI6VU.js";
72
72
  import "../chunk-4SMIDGNR.js";
73
73
  import "../chunk-6G3G7N5D.js";
74
74
  export {
package/dist/index.css CHANGED
@@ -579,7 +579,7 @@ a.button {
579
579
  }
580
580
 
581
581
  /* src/components/Content/style.css */
582
- #app > div > main > main {
582
+ .content {
583
583
  flex: 1;
584
584
  display: flex;
585
585
  flex-direction: column;
@@ -667,9 +667,14 @@ a.button {
667
667
  }
668
668
 
669
669
  /* src/components/Header/Header.css */
670
- .header.underline {
671
- border-bottom: 1px solid var(--prim);
672
- padding-bottom: 2px;
670
+ .header {
671
+ &.underline {
672
+ border-bottom: 1px solid var(--prim);
673
+ padding-bottom: 2px;
674
+ }
675
+ &.centered {
676
+ text-align: center;
677
+ }
673
678
  }
674
679
  .mini-header {
675
680
  text-transform: uppercase;
package/dist/index.js CHANGED
@@ -71,7 +71,7 @@ import {
71
71
  openContextMenuOn,
72
72
  showModal,
73
73
  useToast
74
- } from "./chunk-46MFYRTI.js";
74
+ } from "./chunk-7UIGI6VU.js";
75
75
  import {
76
76
  addClass,
77
77
  addExt,
package/dist/style.css CHANGED
@@ -579,7 +579,7 @@ a.button {
579
579
  }
580
580
 
581
581
  /* src/components/Content/style.css */
582
- #app > div > main > main {
582
+ .content {
583
583
  flex: 1;
584
584
  display: flex;
585
585
  flex-direction: column;
@@ -667,9 +667,14 @@ a.button {
667
667
  }
668
668
 
669
669
  /* src/components/Header/Header.css */
670
- .header.underline {
671
- border-bottom: 1px solid var(--prim);
672
- padding-bottom: 2px;
670
+ .header {
671
+ &.underline {
672
+ border-bottom: 1px solid var(--prim);
673
+ padding-bottom: 2px;
674
+ }
675
+ &.centered {
676
+ text-align: center;
677
+ }
673
678
  }
674
679
  .mini-header {
675
680
  text-transform: uppercase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flufi-ui",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "source": "src/index.ts",
6
6
  "main": "./dist/index.js",