@bccampus/ui-components 0.9.8 → 0.9.10

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.
@@ -3,7 +3,7 @@ import { S as Slot, a as Slottable } from "../../_chunks/index.js";
3
3
  import { PageSection } from "./page-section.js";
4
4
  function PageHeader({ children, asChild, logo, ...props }) {
5
5
  const Comp = asChild ? Slot : "div";
6
- return /* @__PURE__ */ jsx(PageSection, { py: "none", className: "sticky top-0 right-0 left-0 z-50 bg-background", ...props, children: /* @__PURE__ */ jsxs(Comp, { className: "h-page-nav overflow-hidden flex flex-row flex-nowrap border-b-1 border-b-complement-1-50 gap-2 sm:gap-12 justify-between items-center sm:justify-start", children: [
6
+ return /* @__PURE__ */ jsx(PageSection, { py: "none", className: "sticky top-0 right-0 left-0 z-50 bg-background", ...props, children: /* @__PURE__ */ jsxs(Comp, { className: "h-page-nav flex flex-row flex-nowrap border-b-1 border-b-complement-1-50 gap-2 sm:gap-12 justify-between items-center sm:justify-start", children: [
7
7
  logo,
8
8
  /* @__PURE__ */ jsx(Slottable, { children })
9
9
  ] }) });
@@ -1,7 +1,14 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { c as cn } from "../../_chunks/utils.js";
3
3
  function Page({ className, ...props }) {
4
- return /* @__PURE__ */ jsx("div", { "data-slot": "page", className: cn("group/page @container/page relative w-full", className), ...props });
4
+ return /* @__PURE__ */ jsx(
5
+ "div",
6
+ {
7
+ "data-slot": "page",
8
+ className: cn("group/page @container/page relative w-full min-h-svh", className),
9
+ ...props
10
+ }
11
+ );
5
12
  }
6
13
  export {
7
14
  Page
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bccampus/ui-components",
3
- "version": "0.9.8",
3
+ "version": "0.9.10",
4
4
  "description": "BCcampus React components",
5
5
  "type": "module",
6
6
  "exports": {
@@ -10,7 +10,7 @@ function PageHeader({ children, asChild, logo, ...props }: PageHeaderProps) {
10
10
  const Comp = asChild ? Root : "div";
11
11
  return (
12
12
  <PageSection py="none" className="sticky top-0 right-0 left-0 z-50 bg-background" {...props}>
13
- <Comp className="h-page-nav overflow-hidden flex flex-row flex-nowrap border-b-1 border-b-complement-1-50 gap-2 sm:gap-12 justify-between items-center sm:justify-start">
13
+ <Comp className="h-page-nav flex flex-row flex-nowrap border-b-1 border-b-complement-1-50 gap-2 sm:gap-12 justify-between items-center sm:justify-start">
14
14
  {logo}
15
15
  <Slottable>{children}</Slottable>
16
16
  </Comp>
@@ -4,7 +4,11 @@ export type PageProps = React.ComponentProps<"div">;
4
4
 
5
5
  function Page({ className, ...props }: PageProps) {
6
6
  return (
7
- <div data-slot="page" className={cn("group/page @container/page relative w-full", className)} {...props} />
7
+ <div
8
+ data-slot="page"
9
+ className={cn("group/page @container/page relative w-full min-h-svh", className)}
10
+ {...props}
11
+ />
8
12
  );
9
13
  }
10
14
 
@@ -79,6 +79,20 @@
79
79
  }
80
80
  }
81
81
 
82
+ footer {
83
+ a {
84
+ @apply no-underline;
85
+
86
+ &:hover {
87
+ @apply underline outline-none text-foreground;
88
+ }
89
+
90
+ &[data-slot] {
91
+ @apply no-underline;
92
+ }
93
+ }
94
+ }
95
+
82
96
  a:not([data-slot="button-icon"], .no-external)[href^="http"]::after,
83
97
  .external::after {
84
98
  @apply bg-current inline-block w-4 h-4 ml-1 mr-1 -mb-0.75;
@@ -9,6 +9,9 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
9
9
  // https://vite.dev/config/
10
10
  export default defineConfig({
11
11
  plugins: [react(), tailwindcss()],
12
+ server: {
13
+ allowedHosts: ["desk.sailfish-dragon.ts.net"],
14
+ },
12
15
  resolve: {
13
16
  alias: {
14
17
  "@": path.resolve(__dirname, "./src"),