@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 +3 -4
- package/Badge/Badge.d.ts.map +1 -1
- package/Badge/Badge.js +20 -7
- package/Badge/Badge.types.d.ts +2 -1
- package/Badge/Badge.types.d.ts.map +1 -1
- package/Badge/badgeVariants.d.ts.map +1 -1
- package/Badge/badgeVariants.js +5 -5
- package/Button/Button.js +4 -5
- package/Button/buttonVariants.d.ts.map +1 -1
- package/Button/buttonVariants.js +4 -3
- package/ButtonIcon/ButtonIcon.js +3 -4
- package/CHANGELOG.md +80 -0
- package/Combobox/ComboboxOptionItem.d.ts +1 -1
- package/Combobox/ComboboxOptionItem.d.ts.map +1 -1
- package/Combobox/ComboboxOptionItem.js +17 -79
- package/DatePicker/DatePicker.js +1 -1
- package/FormRadio/FormRadio.types.d.ts +1 -1
- package/Popover/Popover.d.ts +6 -6
- package/Popover/Popover.d.ts.map +1 -1
- package/Popover/Popover.js +37 -29
- package/Sheet/Sheet.d.ts +1 -1
- package/Sidebar/Sidebar.js +11 -12
- package/Switch/Switch.d.ts +2 -2
- package/Switch/Switch.d.ts.map +1 -1
- package/Switch/Switch.js +29 -25
- package/Textarea/useAutosizeTextArea.d.ts +1 -1
- package/Tooltip/TooltipRoot.d.ts +4 -4
- package/Tooltip/TooltipRoot.d.ts.map +1 -1
- package/Tooltip/TooltipRoot.js +52 -20
- package/{packages/hooks/src → hooks/dist}/useIsMobile/useIsMobile.js +5 -5
- package/index.d.ts.map +1 -1
- package/index.js +371 -372
- package/package.json +15 -24
- package/styles.css +0 -1
package/Badge/Badge.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
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
|
package/Badge/Badge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/Badge/Badge.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
9
|
-
|
|
21
|
+
c as Badge,
|
|
22
|
+
c as default
|
|
10
23
|
};
|
package/Badge/Badge.types.d.ts
CHANGED
|
@@ -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.
|
|
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,
|
|
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;;
|
|
1
|
+
{"version":3,"file":"badgeVariants.d.ts","sourceRoot":"","sources":["../../src/Badge/badgeVariants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;8EAmBzB,CAAA"}
|
package/Badge/badgeVariants.js
CHANGED
|
@@ -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
|
|
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
|
|
8
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/
|
|
9
|
-
destructive: "border-transparent bg-destructive text-destructive-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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;;;
|
|
1
|
+
{"version":3,"file":"buttonVariants.d.ts","sourceRoot":"","sources":["../../src/Button/buttonVariants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;8EAmC1B,CAAA"}
|
package/Button/buttonVariants.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { cva as e } from "class-variance-authority";
|
|
2
|
-
const
|
|
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
|
-
|
|
35
|
+
t as buttonVariants
|
|
35
36
|
};
|
package/ButtonIcon/ButtonIcon.js
CHANGED
|
@@ -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:
|
|
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:
|
|
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":"
|
|
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
|
|
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 "
|
|
31
|
-
|
|
32
|
-
|
|
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:
|
|
74
|
-
value:
|
|
11
|
+
ref: n,
|
|
12
|
+
value: e.value,
|
|
75
13
|
onSelect: () => {
|
|
76
|
-
|
|
14
|
+
l === e.value ? o?.({ value: "", label: "" }) : o?.(e), m(!1);
|
|
77
15
|
},
|
|
78
16
|
style: {
|
|
79
|
-
paddingLeft: (
|
|
17
|
+
paddingLeft: (p + 1) * u
|
|
80
18
|
},
|
|
81
19
|
children: [
|
|
82
|
-
|
|
83
|
-
/* @__PURE__ */
|
|
20
|
+
r,
|
|
21
|
+
/* @__PURE__ */ a(
|
|
84
22
|
"span",
|
|
85
23
|
{
|
|
86
|
-
className:
|
|
24
|
+
className: t(
|
|
87
25
|
"overflow-hidden whitespace-wrap text-ellipsis line-clamp-2"
|
|
88
26
|
),
|
|
89
|
-
children:
|
|
27
|
+
children: e.label
|
|
90
28
|
}
|
|
91
29
|
),
|
|
92
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ a(
|
|
93
31
|
d,
|
|
94
32
|
{
|
|
95
|
-
className:
|
|
33
|
+
className: t(
|
|
96
34
|
"ml-auto",
|
|
97
|
-
|
|
35
|
+
l === e.value ? "opacity-100" : "opacity-0"
|
|
98
36
|
)
|
|
99
37
|
}
|
|
100
38
|
)
|
|
101
39
|
]
|
|
102
40
|
},
|
|
103
|
-
|
|
41
|
+
e.value
|
|
104
42
|
);
|
|
105
43
|
});
|
|
106
44
|
export {
|
|
107
|
-
|
|
45
|
+
C as ComboboxOptionItem
|
|
108
46
|
};
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -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 "
|
|
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 '
|
|
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
|
}
|
package/Popover/Popover.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import * as PopoverPrimitive from
|
|
3
|
-
declare
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
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
|
package/Popover/Popover.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../src/Popover/Popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,
|
|
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"}
|
package/Popover/Popover.js
CHANGED
|
@@ -1,36 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
align:
|
|
16
|
-
sideOffset:
|
|
17
|
-
className:
|
|
18
|
-
"
|
|
19
|
-
|
|
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
|
-
|
|
22
|
-
pointerEvents: "auto",
|
|
23
|
-
...n
|
|
24
|
-
},
|
|
25
|
-
...d,
|
|
26
|
-
avoidCollisions: i
|
|
30
|
+
...n
|
|
27
31
|
}
|
|
28
32
|
) });
|
|
29
|
-
}
|
|
30
|
-
|
|
33
|
+
}
|
|
34
|
+
function l({
|
|
35
|
+
...o
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ t(e.Anchor, { "data-slot": "popover-anchor", ...o });
|
|
38
|
+
}
|
|
31
39
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
40
|
+
s as Popover,
|
|
41
|
+
l as PopoverAnchor,
|
|
34
42
|
f as PopoverContent,
|
|
35
|
-
|
|
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" | "
|
|
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?: {
|
package/Sidebar/Sidebar.js
CHANGED
|
@@ -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 "../
|
|
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
|
|
14
|
-
import { TooltipProvider as O,
|
|
15
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
388
|
-
/* @__PURE__ */ r(
|
|
386
|
+
}), /* @__PURE__ */ S(G, { children: [
|
|
387
|
+
/* @__PURE__ */ r(H, { asChild: !0, children: v }),
|
|
389
388
|
/* @__PURE__ */ r(
|
|
390
|
-
|
|
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
|
-
|
|
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
|
-
|
|
457
|
+
R,
|
|
459
458
|
{
|
|
460
459
|
className: "h-4 flex-1 max-w-(--skeleton-width)",
|
|
461
460
|
"data-sidebar": "menu-skeleton-text",
|
package/Switch/Switch.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
3
|
-
declare
|
|
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
|
package/Switch/Switch.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|