@uoguelph/react-components 1.6.0-rc.9 → 1.6.0

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/accordion.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import { jsx as o } from "react/jsx-runtime";
3
- import { Disclosure as t } from "@headlessui/react";
4
- import { twMerge as e } from "tailwind-merge";
5
- import { AccordionContext as m } from "./accordion-context.js";
6
- import { AccordionButton as x } from "./accordion-button.js";
7
- import { AccordionContent as h } from "./accordion-content.js";
8
- function d({ children: r, className: c }) {
9
- const i = e("my-2 [&_p:last-child]:mb-0", c);
10
- return /* @__PURE__ */ o(t, { children: ({ open: n }) => /* @__PURE__ */ o("div", { className: `uofg-accordion ${i}`, children: /* @__PURE__ */ o(m.Provider, { value: { isOpen: n }, children: r }) }) });
3
+ import { Disclosure as e } from "@headlessui/react";
4
+ import { twMerge as m } from "tailwind-merge";
5
+ import { AccordionContext as d } from "./accordion-context.js";
6
+ import { AccordionButton as A } from "./accordion-button.js";
7
+ import { AccordionContent as v } from "./accordion-content.js";
8
+ function p({ id: r, children: c, className: i }) {
9
+ const n = m("my-2 [&_p:last-child]:mb-0", i);
10
+ return /* @__PURE__ */ o(e, { children: ({ open: t }) => /* @__PURE__ */ o("div", { id: r, className: `uofg-accordion ${n}`, children: /* @__PURE__ */ o(d.Provider, { value: { isOpen: t }, children: c }) }) });
11
11
  }
12
- d.displayName = "Accordion";
12
+ p.displayName = "Accordion";
13
13
  export {
14
- d as Accordion,
15
- x as AccordionButton,
16
- h as AccordionContent
14
+ p as Accordion,
15
+ A as AccordionButton,
16
+ v as AccordionContent
17
17
  };
@@ -1,5 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export type AccordionProps = PropsWithChildren<{
3
+ id?: string;
3
4
  /** Additional classes to apply to the accordion. */
4
5
  className?: string;
5
6
  }>;
@@ -7,7 +8,7 @@ export type AccordionProps = PropsWithChildren<{
7
8
  * The Accordion component is used for organizing information into collapsible sections which respond to user
8
9
  * interaction.
9
10
  */
10
- export declare function Accordion({ children, className }: AccordionProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function Accordion({ id, children, className }: AccordionProps): import("react/jsx-runtime").JSX.Element;
11
12
  export declare namespace Accordion {
12
13
  var displayName: string;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uoguelph/react-components",
3
- "version": "1.6.0-rc.9",
3
+ "version": "1.6.0",
4
4
  "description": "University of Guelph React Components Library",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -78,5 +78,5 @@
78
78
  "bugs": {
79
79
  "url": "https://github.com/ccswbs/uofg-components/issues"
80
80
  },
81
- "gitHead": "6c25126bfb94174d37db1f4aa32ceffec0081689"
81
+ "gitHead": "2409f3ce0aeb3693b323f3a0c36841672aa4f1cc"
82
82
  }