@oneplatformdev/ui 0.1.10-1 → 0.1.10-11

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/Badge/Badge.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { badgeVariants } from './badgeVariants';
2
- import { BadgeProps } from './/Badge.types';
3
- declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
4
- export { Badge, badgeVariants };
1
+ import { BadgeProps } from './Badge.types';
2
+ export declare function Badge({ className, variant, asChild, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
3
+ export default Badge;
5
4
  //# sourceMappingURL=Badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/Badge/Badge.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAI1D;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/Badge/Badge.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,wBAAgB,KAAK,CAAC,EACL,SAAS,EACT,OAAO,EACP,OAAe,EACf,GAAG,KAAK,EACT,EAAE,UAAU,2CAU3B;AAED,eAAe,KAAK,CAAA"}
package/Badge/Badge.js CHANGED
@@ -1,10 +1,23 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { cn as a } from "@oneplatformdev/utils";
3
- import { badgeVariants as i } from "./badgeVariants.js";
4
- function p({ className: r, variant: o, ...m }) {
5
- return /* @__PURE__ */ t("div", { className: a(i({ variant: o }), r), ...m });
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { badgeVariants as s } from "./badgeVariants.js";
3
+ import { Slot as e } from "@radix-ui/react-slot";
4
+ import { cn as p } from "@oneplatformdev/utils";
5
+ function c({
6
+ className: o,
7
+ variant: a,
8
+ asChild: t = !1,
9
+ ...r
10
+ }) {
11
+ return /* @__PURE__ */ m(
12
+ t ? e : "span",
13
+ {
14
+ "data-slot": "badge",
15
+ className: p(s({ variant: a }), o),
16
+ ...r
17
+ }
18
+ );
6
19
  }
7
20
  export {
8
- p as Badge,
9
- i as badgeVariants
21
+ c as Badge,
22
+ c as default
10
23
  };
@@ -1,6 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import { badgeVariants } from './badgeVariants';
3
3
  import * as React from "react";
4
- export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
4
+ export interface BadgeProps extends React.ComponentProps<"span">, VariantProps<typeof badgeVariants> {
5
+ asChild?: boolean;
5
6
  }
6
7
  //# sourceMappingURL=Badge.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.types.d.ts","sourceRoot":"","sources":["../../src/Badge/Badge.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG"}
1
+ {"version":3,"file":"Badge.types.d.ts","sourceRoot":"","sources":["../../src/Badge/Badge.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAClC,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"badgeVariants.d.ts","sourceRoot":"","sources":["../../src/Badge/badgeVariants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;8EAkBzB,CAAA"}
1
+ {"version":3,"file":"badgeVariants.d.ts","sourceRoot":"","sources":["../../src/Badge/badgeVariants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;8EAmBzB,CAAA"}
@@ -1,13 +1,13 @@
1
1
  import { cva as r } from "class-variance-authority";
2
2
  const t = r(
3
- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
3
+ "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
4
4
  {
5
5
  variants: {
6
6
  variant: {
7
- default: "border-transparent bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
8
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
9
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/80",
10
- outline: "text-foreground"
7
+ default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
8
+ secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
9
+ destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
10
+ outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
11
11
  }
12
12
  },
13
13
  defaultVariants: {
package/Button/Button.js CHANGED
@@ -3,22 +3,21 @@ import * as i from "react";
3
3
  import { Slot as u } from "@radix-ui/react-slot";
4
4
  import { cn as c } from "@oneplatformdev/utils";
5
5
  import { buttonVariants as l } from "./buttonVariants.js";
6
- import "../Tooltip/TooltipRoot.js";
7
- import { Tooltip as d } from "../Tooltip/Tooltip.js";
6
+ import { TooltipRoot as d } from "../Tooltip/TooltipRoot.js";
8
7
  const y = i.forwardRef(
9
- ({ disabled: o, className: a, variant: e, size: p, asChild: n = !1, title: t = "", tooltip: r, ...s }, f) => /* @__PURE__ */ m(
8
+ ({ disabled: o, className: a, variant: e, size: n, asChild: p = !1, title: t = "", tooltip: r, ...s }, f) => /* @__PURE__ */ m(
10
9
  d,
11
10
  {
12
11
  open: o || !t && !r ? !1 : void 0,
13
12
  message: r || t,
14
13
  delay: 300,
15
14
  children: /* @__PURE__ */ m(
16
- n ? u : "button",
15
+ p ? u : "button",
17
16
  {
18
17
  type: "button",
19
18
  ref: f,
20
19
  disabled: o,
21
- className: c(l({ variant: e, size: p, className: a })),
20
+ className: c(l({ variant: e, size: n, className: a })),
22
21
  ...s
23
22
  }
24
23
  )
@@ -1 +1 @@
1
- {"version":3,"file":"buttonVariants.d.ts","sourceRoot":"","sources":["../../src/Button/buttonVariants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;8EAkC1B,CAAA"}
1
+ {"version":3,"file":"buttonVariants.d.ts","sourceRoot":"","sources":["../../src/Button/buttonVariants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;8EAmC1B,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- const r = e(
2
+ const t = e(
3
3
  [
4
4
  "inline-flex items-center justify-center gap-2",
5
5
  "whitespace-nowrap rounded-lg text-sm font-medium",
6
6
  "transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",
7
7
  "disabled:pointer-events-none disabled:opacity-50",
8
- "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
8
+ "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
9
+ "cursor-pointer"
9
10
  ],
10
11
  {
11
12
  variants: {
@@ -31,5 +32,5 @@ const r = e(
31
32
  }
32
33
  );
33
34
  export {
34
- r as buttonVariants
35
+ t as buttonVariants
35
36
  };
@@ -2,10 +2,9 @@ import { jsx as n } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
3
  import { cn as l } from "@oneplatformdev/utils";
4
4
  import { buttonIconVariants as u } from "./buttonIconVariants.js";
5
- import "../Tooltip/TooltipRoot.js";
6
- import { Tooltip as d } from "../Tooltip/Tooltip.js";
5
+ import { TooltipRoot as d } from "../Tooltip/TooltipRoot.js";
7
6
  const h = f.forwardRef(
8
- ({ disabled: o, className: m, variant: e, color: p, size: a, rounded: s, title: t = "", tooltip: r, ...i }, c) => /* @__PURE__ */ n(
7
+ ({ disabled: o, className: e, variant: m, color: a, size: p, rounded: s, title: t = "", tooltip: r, ...i }, c) => /* @__PURE__ */ n(
9
8
  d,
10
9
  {
11
10
  open: o || !t && !r ? !1 : void 0,
@@ -14,7 +13,7 @@ const h = f.forwardRef(
14
13
  children: /* @__PURE__ */ n(
15
14
  "button",
16
15
  {
17
- className: l(u({ variant: e, size: a, color: p, disabled: o, rounded: s, className: m })),
16
+ className: l(u({ variant: m, size: p, color: a, disabled: o, rounded: s, className: e })),
18
17
  ref: c,
19
18
  disabled: !!o,
20
19
  ...i
package/CHANGELOG.md CHANGED
@@ -1,3 +1,83 @@
1
+ ## 0.1.10-11 (2025-09-15)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated @oneplatformdev/utils to 0.1.1-61
6
+ - Updated @oneplatformdev/hooks to 0.1.0-47
7
+ - Updated @oneplatformdev/tokens to 0.0.1-34
8
+
9
+ ## 0.1.10-10 (2025-09-15)
10
+
11
+ ### 🧱 Updated Dependencies
12
+
13
+ - Updated @oneplatformdev/utils to 0.1.1-60
14
+ - Updated @oneplatformdev/hooks to 0.1.0-46
15
+ - Updated @oneplatformdev/tokens to 0.0.1-33
16
+
17
+ ## 0.1.10-9 (2025-09-15)
18
+
19
+ ### 🧱 Updated Dependencies
20
+
21
+ - Updated @oneplatformdev/utils to 0.1.1-59
22
+ - Updated @oneplatformdev/hooks to 0.1.0-45
23
+ - Updated @oneplatformdev/tokens to 0.0.1-32
24
+
25
+ ## 0.1.10-8 (2025-09-15)
26
+
27
+ ### 🧱 Updated Dependencies
28
+
29
+ - Updated @oneplatformdev/utils to 0.1.1-58
30
+ - Updated @oneplatformdev/hooks to 0.1.0-44
31
+ - Updated @oneplatformdev/tokens to 0.0.1-31
32
+
33
+ ## 0.1.10-7 (2025-09-15)
34
+
35
+ ### 🧱 Updated Dependencies
36
+
37
+ - Updated @oneplatformdev/utils to 0.1.1-57
38
+ - Updated @oneplatformdev/hooks to 0.1.0-43
39
+ - Updated @oneplatformdev/tokens to 0.0.1-30
40
+
41
+ ## 0.1.10-6 (2025-09-15)
42
+
43
+ ### 🧱 Updated Dependencies
44
+
45
+ - Updated @oneplatformdev/utils to 0.1.1-56
46
+ - Updated @oneplatformdev/hooks to 0.1.0-42
47
+ - Updated @oneplatformdev/tokens to 0.0.1-29
48
+
49
+ ## 0.1.10-5 (2025-09-15)
50
+
51
+ ### 🧱 Updated Dependencies
52
+
53
+ - Updated @oneplatformdev/utils to 0.1.1-55
54
+ - Updated @oneplatformdev/hooks to 0.1.0-41
55
+ - Updated @oneplatformdev/tokens to 0.0.1-28
56
+
57
+ ## 0.1.10-4 (2025-09-15)
58
+
59
+ ### 🧱 Updated Dependencies
60
+
61
+ - Updated @oneplatformdev/utils to 0.1.1-54
62
+ - Updated @oneplatformdev/hooks to 0.1.0-40
63
+ - Updated @oneplatformdev/tokens to 0.0.1-27
64
+
65
+ ## 0.1.10-3 (2025-09-15)
66
+
67
+ ### 🧱 Updated Dependencies
68
+
69
+ - Updated @oneplatformdev/utils to 0.1.1-53
70
+ - Updated @oneplatformdev/hooks to 0.1.0-39
71
+ - Updated @oneplatformdev/tokens to 0.0.1-26
72
+
73
+ ## 0.1.10-2 (2025-09-15)
74
+
75
+ ### 🧱 Updated Dependencies
76
+
77
+ - Updated @oneplatformdev/utils to 0.1.1-52
78
+ - Updated @oneplatformdev/hooks to 0.1.0-38
79
+ - Updated @oneplatformdev/tokens to 0.0.1-25
80
+
1
81
  ## 0.1.10-1 (2025-09-15)
2
82
 
3
83
  ### 🧱 Updated Dependencies
@@ -1,4 +1,4 @@
1
- import { IComboboxOptionsNodeProps } from '..';
1
+ import { IComboboxOptionsNodeProps } from './Combobox.types';
2
2
  export declare const ComboboxOptionItem: import('react').ForwardRefExoticComponent<IComboboxOptionsNodeProps & {
3
3
  children?: import('react').ReactNode | undefined;
4
4
  } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxOptionItem.d.ts","sourceRoot":"","sources":["../../src/Combobox/ComboboxOptionItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAe,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAM5E,eAAO,MAAM,kBAAkB;;kDAsC7B,CAAC"}
1
+ {"version":3,"file":"ComboboxOptionItem.d.ts","sourceRoot":"","sources":["../../src/Combobox/ComboboxOptionItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAM7D,eAAO,MAAM,kBAAkB;;kDAsC7B,CAAC"}
@@ -1,108 +1,46 @@
1
- import { jsxs as s, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as c } from "react";
3
- /* empty css */
4
- import "../Accordion/Accordion.js";
5
- import "../Alert/Alert.js";
6
- import "../AlertDialog/AlertDialogRoot.js";
7
- import { cn as m } from "@oneplatformdev/utils";
8
- import "recharts";
9
- import "../Chart/Chart.js";
10
- import "../Sidebar/Sidebar.js";
11
- import "@radix-ui/react-aspect-ratio";
12
- import "../Avatar/Avatar.js";
13
- import "../Badge/badgeVariants.js";
14
- import "../Breadcrumb/Breadcrumb.js";
15
- import "../Button/Button.js";
16
- import "../Button/buttonVariants.js";
17
- import "../ButtonIcon/ButtonIcon.js";
18
- import "../ButtonIcon/buttonIconVariants.js";
19
- import "../Calendar/Calendar.js";
20
- import "../Card/Card.js";
21
- import "../Carousel/Carousel.js";
22
- import "../Checkbox/Checkbox.js";
23
- import "@radix-ui/react-collapsible";
24
- import "./Combobox.js";
25
3
  import { CommandItem as f } from "../Command/Command.js";
26
- import "../DropdownMenu/DropdownMenu.js";
27
- import "../Table/Table.js";
28
- import "@tanstack/react-table";
29
4
  import { Check as d } from "lucide-react";
30
- import "../DatePicker/DatePicker.js";
31
- import "../Dialog/Dialog.js";
32
- import "../Dialog/DialogOverlayScope.js";
33
- import "../Drawer/Drawer.js";
34
- import "../Form/Form.js";
35
- import "../FormInput/FormInput.js";
36
- import "../Select/SelectRoot.js";
37
- import "../Textarea/Textarea.js";
38
- import "../Separator/Separator.js";
39
- import "../HoverCard/HoverCard.js";
40
- import "../Input/Input.js";
41
- import "../InputOTP/InputOTP.js";
42
- import "../Label/Label.js";
43
- import "../Label/labelVariants.js";
44
- import "../LoadingMask/RenderLoadingMask.js";
45
- import "../LoadedIcon/LoadedIcon.js";
46
- import "../LoadingProgress/loadingProgressVariants.js";
47
- import "../Menubar/Menubar.js";
48
- import "../NavigationMenu/NavigationMenu.js";
49
- import "../NavigationMenu/navigationMenuVariants.js";
50
- import "../Pagination/Pagination.js";
51
- import "../Popover/Popover.js";
52
- import "../Progress/Progress.js";
53
- import "../RadioGroup/RadioGroup.js";
54
- import "react-resizable-panels";
55
- import "../ScrollArea/ScrollArea.js";
56
- import "@oneplatformdev/hooks";
57
- import "../Sheet/Sheet.js";
58
- import "../Slider/Slider.js";
59
- import "next-themes";
60
- import "sonner";
61
- import "../Switch/Switch.js";
62
- import "../Tabs/TabsRoot.js";
63
- import "../Toast/Toast.js";
64
- import "../Toggle/Toggle.js";
65
- import "../ToggleGroup/ToggleGroup.js";
66
- import "../Tooltip/TooltipRoot.js";
67
- import "../Dropzone/Dropzone.js";
68
- const u = 8, So = c((p, e) => {
69
- const { children: l, setOpen: a, option: o, onChangeOption: t, value: i = "", deep: n = 0 } = p;
5
+ import { cn as t } from "@oneplatformdev/utils";
6
+ const u = 8, C = c((i, n) => {
7
+ const { children: r, setOpen: m, option: e, onChangeOption: o, value: l = "", deep: p = 0 } = i;
70
8
  return /* @__PURE__ */ s(
71
9
  f,
72
10
  {
73
- ref: e,
74
- value: o.value,
11
+ ref: n,
12
+ value: e.value,
75
13
  onSelect: () => {
76
- i === o.value ? t?.({ value: "", label: "" }) : t?.(o), a(!1);
14
+ l === e.value ? o?.({ value: "", label: "" }) : o?.(e), m(!1);
77
15
  },
78
16
  style: {
79
- paddingLeft: (n + 1) * u
17
+ paddingLeft: (p + 1) * u
80
18
  },
81
19
  children: [
82
- l,
83
- /* @__PURE__ */ r(
20
+ r,
21
+ /* @__PURE__ */ a(
84
22
  "span",
85
23
  {
86
- className: m(
24
+ className: t(
87
25
  "overflow-hidden whitespace-wrap text-ellipsis line-clamp-2"
88
26
  ),
89
- children: o.label
27
+ children: e.label
90
28
  }
91
29
  ),
92
- /* @__PURE__ */ r(
30
+ /* @__PURE__ */ a(
93
31
  d,
94
32
  {
95
- className: m(
33
+ className: t(
96
34
  "ml-auto",
97
- i === o.value ? "opacity-100" : "opacity-0"
35
+ l === e.value ? "opacity-100" : "opacity-0"
98
36
  )
99
37
  }
100
38
  )
101
39
  ]
102
40
  },
103
- o.value
41
+ e.value
104
42
  );
105
43
  });
106
44
  export {
107
- So as ComboboxOptionItem
45
+ C as ComboboxOptionItem
108
46
  };
@@ -7,7 +7,7 @@ import { Button as f } from "../Button/Button.js";
7
7
  import "../Button/buttonVariants.js";
8
8
  import { Calendar as p } from "../Calendar/Calendar.js";
9
9
  import { Popover as u, PopoverTrigger as h, PopoverContent as y } from "../Popover/Popover.js";
10
- import { uk as t } from "../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/uk.js";
10
+ import { uk as t } from "date-fns/locale";
11
11
  const g = i.forwardRef(
12
12
  (a, m) => {
13
13
  const {
@@ -1,5 +1,5 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
- import { FormRenderControlExtendProps } from '../Form';
2
+ import { FormRenderControlExtendProps } from '@oneplatformdev/ui/Form';
3
3
  import { RadioProps } from '../Radio';
4
4
  export interface FormRadioGroupProps<Data extends FieldValues> extends FormRenderControlExtendProps<Data>, Partial<Omit<RadioProps, 'name'>> {
5
5
  }
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import * as PopoverPrimitive from '@radix-ui/react-popover';
3
- declare const Popover: (props: React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
4
- declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
6
- declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
7
  export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
8
8
  //# sourceMappingURL=Popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../src/Popover/Popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAK5D,QAAA,MAAM,OAAO,GACX,OAAO,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,4CAIpE,CAAC;AAEF,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,aAAa,4GAA0B,CAAA;AAE7C,QAAA,MAAM,cAAc,gKAwBlB,CAAA;AAGF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../src/Popover/Popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAI3D,iBAAS,OAAO,CAAC,EACE,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAErE;AAED,iBAAS,cAAc,CAAC,EACE,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAE/E;AAED,iBAAS,cAAc,CAAC,EACE,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAe/E;AAED,iBAAS,aAAa,CAAC,EACE,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,2CAE7E;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
@@ -1,36 +1,44 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import * as p from "react";
3
- import * as o from "@radix-ui/react-popover";
4
- import { cn as l } from "@oneplatformdev/utils";
5
- import { useDialogOverlayContainer as c } from "../Dialog/DialogOverlayScope.js";
6
- const h = (t) => {
7
- const { modal: e, ...r } = t;
8
- return /* @__PURE__ */ a(o.Root, { modal: e, ...r });
9
- }, P = o.Trigger, b = o.Anchor, f = p.forwardRef(({ className: t, align: e = "center", sideOffset: r = 4, style: n, avoidCollisions: i = !0, ...d }, s) => {
10
- const m = c();
11
- return /* @__PURE__ */ a(o.Portal, { container: m, children: /* @__PURE__ */ a(
12
- o.Content,
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as e from "@radix-ui/react-popover";
3
+ import { cn as i } from "@oneplatformdev/utils";
4
+ function s({
5
+ ...o
6
+ }) {
7
+ return /* @__PURE__ */ t(e.Root, { "data-slot": "popover", ...o });
8
+ }
9
+ function m({
10
+ ...o
11
+ }) {
12
+ return /* @__PURE__ */ t(e.Trigger, { "data-slot": "popover-trigger", ...o });
13
+ }
14
+ function f({
15
+ className: o,
16
+ align: r = "center",
17
+ sideOffset: a = 4,
18
+ ...n
19
+ }) {
20
+ return /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ t(
21
+ e.Content,
13
22
  {
14
- ref: s,
15
- align: e,
16
- sideOffset: r,
17
- className: l(
18
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
19
- t
23
+ "data-slot": "popover-content",
24
+ align: r,
25
+ sideOffset: a,
26
+ className: i(
27
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
28
+ o
20
29
  ),
21
- style: {
22
- pointerEvents: "auto",
23
- ...n
24
- },
25
- ...d,
26
- avoidCollisions: i
30
+ ...n
27
31
  }
28
32
  ) });
29
- });
30
- f.displayName = o.Content.displayName;
33
+ }
34
+ function l({
35
+ ...o
36
+ }) {
37
+ return /* @__PURE__ */ t(e.Anchor, { "data-slot": "popover-anchor", ...o });
38
+ }
31
39
  export {
32
- h as Popover,
33
- b as PopoverAnchor,
40
+ s as Popover,
41
+ l as PopoverAnchor,
34
42
  f as PopoverContent,
35
- P as PopoverTrigger
43
+ m as PopoverTrigger
36
44
  };
package/Sheet/Sheet.d.ts CHANGED
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
7
7
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
8
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const sheetVariants: (props?: ({
10
- side?: "top" | "right" | "bottom" | "left" | null | undefined;
10
+ side?: "top" | "bottom" | "right" | "left" | null | undefined;
11
11
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
12
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
13
  slotProps?: {
@@ -3,19 +3,18 @@ import * as i from "react";
3
3
  import { Slot as h } from "@radix-ui/react-slot";
4
4
  import { cva as _ } from "class-variance-authority";
5
5
  import { PanelLeft as I } from "lucide-react";
6
- import { useIsMobile as z } from "../packages/hooks/src/useIsMobile/useIsMobile.js";
6
+ import { useIsMobile as z } from "../hooks/dist/useIsMobile/useIsMobile.js";
7
7
  import { cn as d } from "@oneplatformdev/utils";
8
8
  import { Button as B } from "../Button/Button.js";
9
9
  import "../Button/buttonVariants.js";
10
10
  import { Input as E } from "../Input/Input.js";
11
11
  import { Separator as T } from "../Separator/Separator.js";
12
12
  import { Sheet as A, SheetContent as D } from "../Sheet/Sheet.js";
13
- import { Skeleton as M } from "../Skeleton/Skeleton.js";
14
- import { TooltipProvider as O, TooltipTrigger as G, TooltipContent as H } from "../Tooltip/TooltipRoot.js";
15
- import { Tooltip as K } from "../Tooltip/Tooltip.js";
16
- const L = "sidebar:state", j = 3600 * 24 * 7, P = "16rem", $ = "18rem", V = "3rem", W = "b", R = i.createContext(null);
13
+ import { Skeleton as R } from "../Skeleton/Skeleton.js";
14
+ import { TooltipProvider as O, TooltipRoot as G, TooltipTrigger as H, TooltipContent as K } from "../Tooltip/TooltipRoot.js";
15
+ const L = "sidebar:state", j = 3600 * 24 * 7, P = "16rem", $ = "18rem", V = "3rem", W = "b", M = i.createContext(null);
17
16
  function N() {
18
- const a = i.useContext(R);
17
+ const a = i.useContext(M);
19
18
  if (!a)
20
19
  throw new Error("useSidebar must be used within a SidebarProvider.");
21
20
  return a;
@@ -55,7 +54,7 @@ const q = i.forwardRef(
55
54
  }),
56
55
  [y, g, x, c, p, u, w]
57
56
  );
58
- return /* @__PURE__ */ r(R.Provider, { value: k, children: /* @__PURE__ */ r(O, { delayDuration: 0, children: /* @__PURE__ */ r(
57
+ return /* @__PURE__ */ r(M.Provider, { value: k, children: /* @__PURE__ */ r(O, { delayDuration: 0, children: /* @__PURE__ */ r(
59
58
  "div",
60
59
  {
61
60
  style: {
@@ -384,10 +383,10 @@ const se = _(
384
383
  );
385
384
  return n ? (typeof n == "string" && (n = {
386
385
  children: n
387
- }), /* @__PURE__ */ S(K, { children: [
388
- /* @__PURE__ */ r(G, { asChild: !0, children: v }),
386
+ }), /* @__PURE__ */ S(G, { children: [
387
+ /* @__PURE__ */ r(H, { asChild: !0, children: v }),
389
388
  /* @__PURE__ */ r(
390
- H,
389
+ K,
391
390
  {
392
391
  side: "right",
393
392
  align: "center",
@@ -448,14 +447,14 @@ const be = i.forwardRef(({ className: a, showIcon: e = !1, ...t }, o) => {
448
447
  ...t,
449
448
  children: [
450
449
  e && /* @__PURE__ */ r(
451
- M,
450
+ R,
452
451
  {
453
452
  className: "size-4 rounded-md",
454
453
  "data-sidebar": "menu-skeleton-icon"
455
454
  }
456
455
  ),
457
456
  /* @__PURE__ */ r(
458
- M,
457
+ R,
459
458
  {
460
459
  className: "h-4 flex-1 max-w-(--skeleton-width)",
461
460
  "data-sidebar": "menu-skeleton-text",
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as SwitchPrimitives from "@radix-ui/react-switch";
3
- declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
2
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
3
+ declare function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
4
  export { Switch };
5
5
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../src/Switch/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAI1D,QAAA,MAAM,MAAM,8JAkBV,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../src/Switch/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAIzD,iBAAS,MAAM,CAAC,EACE,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAkBnE;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}