@uoguelph/react-components 1.5.0-rc.7 → 1.5.0-rc.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.
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import { jsx as t, jsxs as m, Fragment as c } from "react/jsx-runtime";
3
- import { f as p } from "./solid-D5UM1RKH.js";
4
- import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
5
- import { ListboxButton as a } from "@headlessui/react";
6
- import { twMerge as b } from "tailwind-merge";
7
- import { tv as l } from "tailwind-variants";
3
+ import { f } from "./solid-D5UM1RKH.js";
4
+ import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
5
+ import { ListboxButton as l } from "@headlessui/react";
6
+ import { twMerge as a } from "tailwind-merge";
7
+ import { tv as b } from "tailwind-variants";
8
8
  function d({ children: o, className: e, ...n }) {
9
- const r = l({
9
+ const r = b({
10
10
  slots: {
11
- button: "uofg-select-button ui-open:rounded-b-none ui-open:border-blue flex w-(--button-width) items-center justify-between gap-2 rounded-md border border-grey-light bg-white px-4 py-2.5 shadow-sm transition-colors group-focus-within:border-blue group-focus-within:outline-none",
11
+ button: "uofg-select-button ui-open:rounded-b-none ui-open:border-blue flex w-full items-center justify-between gap-2 rounded-md border border-grey-light bg-white px-4 py-2.5 shadow-sm transition-colors group-focus-within:border-blue group-focus-within:outline-none",
12
12
  icon: "ui-open:rotate-180 h-5 w-5 text-body-copy transition-transform"
13
13
  }
14
14
  }), { button: i, icon: s } = r();
15
- return /* @__PURE__ */ t(a, { ...n, className: b(i(), e), children: (u) => /* @__PURE__ */ m(c, { children: [
15
+ return /* @__PURE__ */ t(l, { ...n, className: a(i(), e), children: (u) => /* @__PURE__ */ m(c, { children: [
16
16
  typeof o == "function" ? o(u) : o,
17
- /* @__PURE__ */ t(f, { className: s(), icon: p })
17
+ /* @__PURE__ */ t(p, { className: s(), icon: f })
18
18
  ] }) });
19
19
  }
20
20
  d.displayName = "SelectButton";
@@ -4,7 +4,7 @@ import { ListboxOptions as s } from "@headlessui/react";
4
4
  import { twMerge as n } from "tailwind-merge";
5
5
  function u({ children: o, className: e, ...t }) {
6
6
  const r = n(
7
- "ui-open:border-blue z-10 max-h-[20rem] w-full overflow-auto rounded-b-md border border-t-0 border-grey-light bg-white shadow-md transition duration-300 ease-out group-focus-within:border-blue group-focus-within:outline-none data-[closed]:opacity-0 md:absolute",
7
+ "ui-open:border-blue z-10 max-h-[20rem] w-(--button-width) overflow-auto rounded-b-md border border-t-0 border-grey-light bg-white shadow-md transition duration-300 ease-out group-focus-within:border-blue group-focus-within:outline-none data-[closed]:opacity-0 md:absolute",
8
8
  e
9
9
  );
10
10
  return /* @__PURE__ */ i(s, { ...t, className: r, children: o });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.5.0-rc.7",
3
+ "version": "1.5.0-rc.8",
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": "9daa818bacd02ee9daf7de37bfeaad2be1a15457"
79
+ "gitHead": "06a2d1a34bd871dede914f70878897a2c7510d9b"
80
80
  }