@oneplatformdev/ui 0.0.1-beta.89 → 0.0.1-beta.90

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.
@@ -2,6 +2,8 @@ import * as React from 'react';
2
2
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
3
  declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
4
  declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
6
+ showChevron?: boolean;
7
+ } & React.RefAttributes<HTMLButtonElement>>;
6
8
  declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
9
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,9 +1,9 @@
1
- import { jsx as a, jsxs as d } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as m } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
3
  import * as e from "@radix-ui/react-accordion";
4
- import { ChevronDown as m } from "lucide-react";
4
+ import { ChevronDown as l } from "lucide-react";
5
5
  import { cn as c } from "@oneplatformdev/utils";
6
- const u = e.Root, l = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
6
+ const w = e.Root, f = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
7
7
  e.Item,
8
8
  {
9
9
  ref: r,
@@ -11,11 +11,11 @@ const u = e.Root, l = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ *
11
11
  ...o
12
12
  }
13
13
  ));
14
- l.displayName = "AccordionItem";
15
- const f = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__ */ a(e.Header, { className: "flex", children: /* @__PURE__ */ d(
14
+ f.displayName = "AccordionItem";
15
+ const p = s.forwardRef(({ className: t, children: o, showChevron: r = !0, ...i }, d) => /* @__PURE__ */ a(e.Header, { className: "flex", children: /* @__PURE__ */ m(
16
16
  e.Trigger,
17
17
  {
18
- ref: i,
18
+ ref: d,
19
19
  className: c(
20
20
  "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",
21
21
  t
@@ -23,15 +23,15 @@ const f = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__
23
23
  onKeyDown: (n) => {
24
24
  n.key === " " && n.target === n.currentTarget && n.preventDefault();
25
25
  },
26
- ...r,
26
+ ...i,
27
27
  children: [
28
28
  o,
29
- /* @__PURE__ */ a(m, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
29
+ r && /* @__PURE__ */ a(l, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
30
30
  ]
31
31
  }
32
32
  ) }));
33
- f.displayName = e.Trigger.displayName;
34
- const p = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__ */ a(
33
+ p.displayName = e.Trigger.displayName;
34
+ const N = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__ */ a(
35
35
  e.Content,
36
36
  {
37
37
  ref: i,
@@ -40,10 +40,10 @@ const p = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__
40
40
  children: /* @__PURE__ */ a("div", { className: c("pb-4 pt-0", t), children: o })
41
41
  }
42
42
  ));
43
- p.displayName = e.Content.displayName;
43
+ N.displayName = e.Content.displayName;
44
44
  export {
45
- u as Accordion,
46
- p as AccordionContent,
47
- l as AccordionItem,
48
- f as AccordionTrigger
45
+ w as Accordion,
46
+ N as AccordionContent,
47
+ f as AccordionItem,
48
+ p as AccordionTrigger
49
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/ui",
3
- "version": "0.0.1-beta.89",
3
+ "version": "0.0.1-beta.90",
4
4
  "description": "UI React Components.",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [