@uoguelph/react-components 1.4.2 → 1.4.3-rc.1

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.
Files changed (2) hide show
  1. package/dist/layout.js +6 -5
  2. package/package.json +2 -2
package/dist/layout.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsxs as t, Fragment as n, jsx as o } from "react/jsx-runtime";
2
- import { Transition as s } from "@headlessui/react";
2
+ import { Transition as c } from "@headlessui/react";
3
3
  import { tv as a } from "tailwind-variants";
4
4
  import { LoadingIndicator as f } from "./loading-indicator.js";
5
5
  import { LayoutContent as g } from "./layout-content.js";
6
6
  function p({ children: r, loading: e }) {
7
- const i = a({
7
+ const l = a({
8
8
  slots: {
9
9
  placeholder: [
10
10
  "text-uog-color-red",
@@ -27,6 +27,7 @@ function p({ children: r, loading: e }) {
27
27
  skipLink: [
28
28
  "bg-uog-color-yellow",
29
29
  "sr-only",
30
+ "focus:not-sr-only",
30
31
  "left-0",
31
32
  "z-[1000]",
32
33
  "fixed",
@@ -39,11 +40,11 @@ function p({ children: r, loading: e }) {
39
40
  "focus:px-2"
40
41
  ]
41
42
  }
42
- }), { placeholder: l, skipLink: c } = i();
43
+ }), { placeholder: i, skipLink: s } = l();
43
44
  return /* @__PURE__ */ t(n, { children: [
44
- /* @__PURE__ */ o(s, { show: !!e, children: /* @__PURE__ */ o("div", { className: `uofg-layout-placeholder ${l()}`, children: /* @__PURE__ */ o(f, { children: typeof e != "boolean" && e }) }) }),
45
+ /* @__PURE__ */ o(c, { show: !!e, children: /* @__PURE__ */ o("div", { className: `uofg-layout-placeholder ${i()}`, children: /* @__PURE__ */ o(f, { children: typeof e != "boolean" && e }) }) }),
45
46
  !e && /* @__PURE__ */ t(n, { children: [
46
- /* @__PURE__ */ o("a", { className: c(), href: "#content", children: "Skip to main content" }),
47
+ /* @__PURE__ */ o("a", { className: s(), href: "#content", children: "Skip to main content" }),
47
48
  /* @__PURE__ */ o("div", { className: "uofg-layout flex flex-1 flex-col", children: r })
48
49
  ] })
49
50
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.4.2",
3
+ "version": "1.4.3-rc.1",
4
4
  "description": "University of Guelph React Components Library",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -76,5 +76,5 @@
76
76
  "bugs": {
77
77
  "url": "https://github.com/ccswbs/uofg-components/issues"
78
78
  },
79
- "gitHead": "1faa164970a84ddf4e452875832d0fb05af165d9"
79
+ "gitHead": "53cac555db3f586740d333adfd7c72c91c589bb0"
80
80
  }