@oneplatformdev/ui 0.1.10-18 → 0.1.10-20

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,10 +1,10 @@
1
- import * as React from 'react';
2
- import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
- declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
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"> & {
1
+ import * as React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
5
+ declare function AccordionTrigger({ className, children, showChevron, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger> & {
6
6
  showChevron?: boolean;
7
- } & React.RefAttributes<HTMLButtonElement>>;
8
- declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
9
9
  export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
10
10
  //# sourceMappingURL=Accordion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../src/Accordion/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
1
- import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import * as e from "@radix-ui/react-accordion";
4
- import { ChevronDown as l } from "lucide-react";
5
- import { cn as c } from "@oneplatformdev/utils";
6
- const w = e.Root, f = s.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
7
- e.Item,
8
- {
9
- ref: r,
10
- className: c("border-b", t),
11
- ...o
12
- }
13
- ));
14
- f.displayName = "AccordionItem";
15
- const p = s.forwardRef(({ className: t, children: o, showChevron: r = !0, ...i }, m) => /* @__PURE__ */ a(e.Header, { className: "flex", children: /* @__PURE__ */ d(
16
- e.Trigger,
17
- {
18
- ref: m,
19
- className: c(
20
- "flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all text-left [&[data-state=open]>svg]:rotate-180",
21
- t
22
- ),
23
- onKeyDown: (n) => {
24
- n.key === " " && n.target === n.currentTarget && n.preventDefault();
25
- },
26
- ...i,
27
- children: [
28
- o,
29
- r && /* @__PURE__ */ a(l, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
30
- ]
31
- }
32
- ) }));
33
- p.displayName = e.Trigger.displayName;
34
- const N = s.forwardRef(({ className: t, children: o, ...r }, i) => /* @__PURE__ */ a(
35
- e.Content,
36
- {
37
- ref: i,
38
- className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
39
- ...r,
40
- children: /* @__PURE__ */ a("div", { className: c("pb-4 pt-0", t), children: o })
41
- }
42
- ));
43
- N.displayName = e.Content.displayName;
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import * as n from "@radix-ui/react-accordion";
3
+ import { ChevronDownIcon as c } from "lucide-react";
4
+ import { cn as i } from "@oneplatformdev/utils";
5
+ function u({
6
+ ...t
7
+ }) {
8
+ return /* @__PURE__ */ e(n.Root, { "data-slot": "accordion", ...t });
9
+ }
10
+ function f({
11
+ className: t,
12
+ ...o
13
+ }) {
14
+ return /* @__PURE__ */ e(
15
+ n.Item,
16
+ {
17
+ "data-slot": "accordion-item",
18
+ className: i("border-b last:border-b-0", t),
19
+ ...o
20
+ }
21
+ );
22
+ }
23
+ function p({
24
+ className: t,
25
+ children: o,
26
+ showChevron: r = !0,
27
+ ...a
28
+ }) {
29
+ return /* @__PURE__ */ e(n.Header, { className: "flex", children: /* @__PURE__ */ s(
30
+ n.Trigger,
31
+ {
32
+ "data-slot": "accordion-trigger",
33
+ className: i(
34
+ "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
35
+ t
36
+ ),
37
+ ...a,
38
+ children: [
39
+ o,
40
+ r && /* @__PURE__ */ e(c, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })
41
+ ]
42
+ }
43
+ ) });
44
+ }
45
+ function g({
46
+ className: t,
47
+ children: o,
48
+ ...r
49
+ }) {
50
+ return /* @__PURE__ */ e(
51
+ n.Content,
52
+ {
53
+ "data-slot": "accordion-content",
54
+ className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
55
+ ...r,
56
+ children: /* @__PURE__ */ e("div", { className: i("pt-0 pb-4", t), children: o })
57
+ }
58
+ );
59
+ }
44
60
  export {
45
- w as Accordion,
46
- N as AccordionContent,
61
+ u as Accordion,
62
+ g as AccordionContent,
47
63
  f as AccordionItem,
48
64
  p as AccordionTrigger
49
65
  };
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## 0.1.10-20 (2025-09-16)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated @oneplatformdev/utils to 0.1.1-70
6
+ - Updated @oneplatformdev/hooks to 0.1.0-56
7
+ - Updated @oneplatformdev/tokens to 0.0.1-43
8
+
9
+ ## 0.1.10-19 (2025-09-16)
10
+
11
+ ### 🧱 Updated Dependencies
12
+
13
+ - Updated @oneplatformdev/utils to 0.1.1-69
14
+ - Updated @oneplatformdev/hooks to 0.1.0-55
15
+ - Updated @oneplatformdev/tokens to 0.0.1-42
16
+
1
17
  ## 0.1.10-18 (2025-09-16)
2
18
 
3
19
  ### 🧱 Updated Dependencies
@@ -22,7 +22,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
22
22
  ref?: React.Ref<HTMLInputElement>;
23
23
  } & {
24
24
  asChild?: boolean;
25
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
25
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
26
26
  value?: string;
27
27
  onValueChange?: (search: string) => void;
28
28
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -66,7 +66,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
66
66
  ref?: React.Ref<HTMLDivElement>;
67
67
  } & {
68
68
  asChild?: boolean;
69
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
69
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "value" | "disabled"> & {
70
70
  disabled?: boolean;
71
71
  onSelect?: (value: string) => void;
72
72
  value?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/ui",
3
- "version": "0.1.10-18",
3
+ "version": "0.1.10-20",
4
4
  "description": "React hook library",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [
@@ -110,8 +110,8 @@
110
110
  "sonner": "^2.0.7",
111
111
  "vaul": "^1.1.2",
112
112
  "zod": "^4.1.8",
113
- "@oneplatformdev/tokens": "^0.0.1-41",
114
- "@oneplatformdev/hooks": "^0.1.0-54",
115
- "@oneplatformdev/utils": "^0.1.1-68"
113
+ "@oneplatformdev/tokens": "^0.0.1-43",
114
+ "@oneplatformdev/hooks": "^0.1.0-56",
115
+ "@oneplatformdev/utils": "^0.1.1-70"
116
116
  }
117
117
  }