@yuno-payments/dashboard-design-system 0.0.44 → 0.0.46

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.
Files changed (52) hide show
  1. package/dist/components/atoms/card/card.d.ts +1 -1
  2. package/dist/components/atoms/checkbox/checkbox.d.ts +1 -1
  3. package/dist/components/atoms/checkbox/checkbox.js +11 -11
  4. package/dist/components/atoms/icon/icon.d.ts +1 -0
  5. package/dist/components/atoms/icon/icon.js +19 -18
  6. package/dist/components/atoms/index.d.ts +7 -3
  7. package/dist/components/atoms/input/input.js +10 -10
  8. package/dist/components/atoms/password-input/password-input.js +33 -30
  9. package/dist/components/atoms/radio-group/index.d.ts +1 -0
  10. package/dist/components/atoms/radio-group/radio-group.js +33 -0
  11. package/dist/components/atoms/switch/switch.js +47 -0
  12. package/dist/components/atoms/textarea/index.d.ts +1 -0
  13. package/dist/components/atoms/textarea/textarea.d.ts +12 -0
  14. package/dist/components/atoms/textarea/textarea.js +75 -0
  15. package/dist/components/atoms/tooltip/index.d.ts +1 -1
  16. package/dist/components/atoms/tooltip/tooltip.d.ts +1 -1
  17. package/dist/components/atoms/tooltip/tooltip.js +15 -17
  18. package/dist/index.css +1 -1
  19. package/dist/index.js +50 -37
  20. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +3 -3
  21. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +133 -0
  22. package/dist/vendor/shadcn/alert.d.ts +9 -0
  23. package/dist/vendor/shadcn/avatar.d.ts +6 -0
  24. package/dist/vendor/shadcn/badge.d.ts +9 -0
  25. package/dist/vendor/shadcn/breadcrumb.d.ts +11 -0
  26. package/dist/vendor/shadcn/button.d.ts +10 -0
  27. package/dist/vendor/shadcn/calendar.d.ts +8 -0
  28. package/dist/vendor/shadcn/card.d.ts +14 -0
  29. package/dist/vendor/shadcn/checkbox.d.ts +4 -0
  30. package/dist/vendor/shadcn/date-picker.d.ts +9 -0
  31. package/dist/vendor/shadcn/date-range-picker.d.ts +9 -0
  32. package/dist/vendor/shadcn/dialog.d.ts +19 -0
  33. package/dist/vendor/shadcn/dropdown-menu.d.ts +25 -0
  34. package/dist/vendor/shadcn/input.d.ts +3 -0
  35. package/dist/vendor/shadcn/label.d.ts +4 -0
  36. package/dist/vendor/shadcn/popover.d.ts +6 -0
  37. package/dist/vendor/shadcn/radio-group.d.ts +5 -0
  38. package/dist/vendor/shadcn/radio-group.js +4 -4
  39. package/dist/vendor/shadcn/separator.d.ts +4 -0
  40. package/dist/vendor/shadcn/skeleton.d.ts +2 -0
  41. package/dist/vendor/shadcn/skeleton.js +15 -0
  42. package/dist/vendor/shadcn/sonner.d.ts +4 -0
  43. package/dist/vendor/shadcn/switch.d.ts +4 -0
  44. package/dist/vendor/shadcn/switch.js +32 -0
  45. package/dist/vendor/shadcn/tabs.d.ts +7 -0
  46. package/dist/vendor/shadcn/textarea.d.ts +3 -0
  47. package/dist/vendor/shadcn/textarea.js +22 -0
  48. package/dist/vendor/shadcn/time-picker.d.ts +7 -0
  49. package/dist/vendor/shadcn/toggle-group.d.ts +12 -0
  50. package/dist/vendor/shadcn/toggle.d.ts +12 -0
  51. package/dist/vendor/shadcn/tooltip.d.ts +7 -0
  52. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { CardProps as ShadcnCardProps } from '../../../vendor/shadcn/card';
3
3
  interface CardProps extends ShadcnCardProps {
4
4
  children: ReactNode;
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { Checkbox as ShadcnCheckbox } from '../../../vendor/shadcn/checkbox';
3
3
  export interface CheckboxProps extends Omit<ComponentProps<typeof ShadcnCheckbox>, "children"> {
4
- label: string;
4
+ label?: string;
5
5
  description?: string;
6
6
  }
7
7
  declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -1,32 +1,32 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as n, useId as i } from "react";
2
+ import { forwardRef as i, useId as l } from "react";
3
3
  import { Checkbox as d } from "../../../vendor/shadcn/checkbox.js";
4
4
  import { Label as h } from "../../../vendor/shadcn/label.js";
5
- const p = n(
6
- ({ label: r, description: s, id: t, name: a, ...c }, m) => {
7
- const x = i(), o = t || a || x, l = /* @__PURE__ */ e.jsx(
5
+ const p = i(
6
+ ({ label: s, description: r, id: c, name: a, ...m }, x) => {
7
+ const n = l(), o = c || a || n, t = /* @__PURE__ */ e.jsx(
8
8
  d,
9
9
  {
10
- ref: m,
10
+ ref: x,
11
11
  id: o,
12
- ...c,
12
+ ...m,
13
13
  className: "size-3.5 cursor-pointer"
14
14
  }
15
15
  );
16
- return /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-2", children: [
17
- l,
16
+ return s ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-2", children: [
17
+ t,
18
18
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-1.5", children: [
19
19
  /* @__PURE__ */ e.jsx(
20
20
  h,
21
21
  {
22
22
  htmlFor: o,
23
23
  className: "text-sm leading-none cursor-pointer",
24
- children: r
24
+ children: s
25
25
  }
26
26
  ),
27
- s && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-neutral-500", children: s })
27
+ r && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-neutral-500", children: r })
28
28
  ] })
29
- ] });
29
+ ] }) : t;
30
30
  }
31
31
  );
32
32
  p.displayName = "Checkbox";
@@ -8,6 +8,7 @@ interface IconProps extends Omit<PhosphorIconProps, "size">, VariantProps<typeof
8
8
  name: IconName;
9
9
  weight?: PhosphorIconWeight;
10
10
  className?: string;
11
+ tooltip?: string;
11
12
  }
12
13
  declare const Icon: import('react').ForwardRefExoticComponent<Omit<IconProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
13
14
  export { Icon, type IconProps };
@@ -1,9 +1,10 @@
1
- import { j as a } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as c } from "react";
3
- import { cva as l } from "../../../node_modules/class-variance-authority/dist/index.js";
4
- import { cn as f } from "../../../lib/utils.js";
5
- import { IconList as p } from "./icon-list.js";
6
- const x = l("inline-flex items-center justify-center shrink-0", {
1
+ import { j as t } from "../../../_virtual/jsx-runtime.js";
2
+ import { forwardRef as f } from "react";
3
+ import { cva as p } from "../../../node_modules/class-variance-authority/dist/index.js";
4
+ import { cn as x } from "../../../lib/utils.js";
5
+ import { IconList as z } from "./icon-list.js";
6
+ import { Tooltip as d } from "../tooltip/tooltip.js";
7
+ const u = p("inline-flex items-center justify-center shrink-0", {
7
8
  variants: {
8
9
  size: {
9
10
  xs: "size-3",
@@ -16,23 +17,23 @@ const x = l("inline-flex items-center justify-center shrink-0", {
16
17
  defaultVariants: {
17
18
  size: "md"
18
19
  }
19
- }), z = c(
20
- ({ name: r, weight: i = "light", size: o, className: s, color: t, ...e }, n) => {
21
- const m = p?.[r];
22
- return /* @__PURE__ */ a.jsx(
23
- m,
20
+ }), j = f(
21
+ ({ name: r, weight: e = "light", size: s, className: n, color: m, tooltip: o, ...c }, a) => {
22
+ const l = z?.[r], i = /* @__PURE__ */ t.jsx(
23
+ l,
24
24
  {
25
- ref: n,
25
+ ref: a,
26
26
  "aria-label": r,
27
- className: f(x({ size: o }), s),
28
- color: t || "currentColor",
29
- weight: i,
30
- ...e
27
+ className: x(u({ size: s }), n),
28
+ color: m || "currentColor",
29
+ weight: e,
30
+ ...c
31
31
  }
32
32
  );
33
+ return o ? /* @__PURE__ */ t.jsx(d, { content: o, children: i }) : i;
33
34
  }
34
35
  );
35
- z.displayName = "Icon";
36
+ j.displayName = "Icon";
36
37
  export {
37
- z as Icon
38
+ j as Icon
38
39
  };
@@ -10,11 +10,15 @@ export { FilterButton, FilterTag, FilterSection, FilterCheckboxOption, FilterRad
10
10
  export { FilterDropdown, FilterMenu, FilterMenuItem, type FilterDropdownProps, type FilterMenuProps, type FilterMenuItemProps, } from './filter-dropdown';
11
11
  export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, type DropdownMenuProps, type DropdownMenuPortalProps, type DropdownMenuTriggerProps, type DropdownMenuContentProps, type DropdownMenuGroupProps, type DropdownMenuLabelProps, type DropdownMenuItemProps, type DropdownMenuCheckboxItemProps, type DropdownMenuRadioGroupProps, type DropdownMenuRadioItemProps, type DropdownMenuSeparatorProps, type DropdownMenuShortcutProps, type DropdownMenuSubProps, type DropdownMenuSubTriggerProps, type DropdownMenuSubContentProps, } from './dropdown-menu';
12
12
  export { ToggleGroup, ToggleGroupItem, type ToggleGroupProps, type ToggleGroupItemProps, } from './toggle-group';
13
- export { Icon, type IconProps, type IconName } from './icon';
14
- export { Tooltip, type TooltipProps } from './tooltip';
13
+ export { Tooltip, TooltipProvider, type TooltipProps, type TooltipProviderProps } from './tooltip';
15
14
  export { Input, type InputProps } from './input';
15
+ export { RadioGroup, type RadioGroupProps, type RadioOption, RadioGroupBase, RadioGroupItem } from './radio-group';
16
+ export { Skeleton } from './skeleton';
17
+ export { Separator, type SeparatorProps } from './separator';
18
+ export { Switch, type SwitchProps } from './switch';
19
+ export { Textarea, type TextareaProps } from './textarea';
16
20
  export { Typography, type TypographyProps } from './typography';
21
+ export { Icon, type IconProps, type IconName } from './icon';
17
22
  export { Alert, type AlertProps } from './alert';
18
23
  export { PasswordInput, type PasswordInputProps } from './password-input';
19
- export { Separator, type SeparatorProps } from './separator';
20
24
  export { Toaster, toast } from './toaster';
@@ -1,12 +1,12 @@
1
1
  import { j as t } from "../../../_virtual/jsx-runtime.js";
2
2
  import { forwardRef as j, useId as N } from "react";
3
- import { cva as u } from "../../../node_modules/class-variance-authority/dist/index.js";
3
+ import { cva as f } from "../../../node_modules/class-variance-authority/dist/index.js";
4
4
  import { Input as g } from "../../../vendor/shadcn/input.js";
5
5
  import { cn as e } from "../../../lib/utils.js";
6
6
  import { Label as y } from "../../../vendor/shadcn/label.js";
7
7
  import { Icon as b } from "../icon/icon.js";
8
8
  import { Button as I } from "../button/button.js";
9
- const V = u("flex gap-2 w-full", {
9
+ const V = f("flex gap-2 w-full", {
10
10
  variants: {
11
11
  layout: {
12
12
  vertical: "flex-col",
@@ -16,7 +16,7 @@ const V = u("flex gap-2 w-full", {
16
16
  defaultVariants: {
17
17
  layout: "vertical"
18
18
  }
19
- }), w = u("text-sm", {
19
+ }), w = f("text-sm", {
20
20
  variants: {
21
21
  layout: {
22
22
  vertical: "",
@@ -28,24 +28,24 @@ const V = u("flex gap-2 w-full", {
28
28
  }
29
29
  }), z = j(
30
30
  ({
31
- className: f,
31
+ className: u,
32
32
  layout: l,
33
33
  label: o,
34
34
  description: r,
35
35
  error: a,
36
- id: p,
36
+ id: x,
37
37
  button: m,
38
38
  disabled: c,
39
39
  endIcon: i,
40
40
  endIconProps: n,
41
- ...x
41
+ ...p
42
42
  }, v) => {
43
- const h = N(), s = p || h, d = !!a;
43
+ const h = N(), s = x || h, d = !!a;
44
44
  return /* @__PURE__ */ t.jsxs("div", { className: e(V({ layout: l })), children: [
45
45
  o && /* @__PURE__ */ t.jsx(y, { htmlFor: s, className: e(w({ layout: l })), children: o }),
46
46
  /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
47
47
  /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", children: [
48
- /* @__PURE__ */ t.jsxs("div", { className: "relative flex-1", children: [
48
+ /* @__PURE__ */ t.jsxs("div", { className: "relative flex flex-1", children: [
49
49
  /* @__PURE__ */ t.jsx(
50
50
  g,
51
51
  {
@@ -55,11 +55,11 @@ const V = u("flex gap-2 w-full", {
55
55
  className: e(
56
56
  d && "border-destructive focus-visible:border-destructive",
57
57
  i && "pr-9",
58
- f
58
+ u
59
59
  ),
60
60
  "aria-invalid": d,
61
61
  "aria-describedby": r || a ? `${s}-description` : void 0,
62
- ...x
62
+ ...p
63
63
  }
64
64
  ),
65
65
  i && /* @__PURE__ */ t.jsx(
@@ -1,59 +1,62 @@
1
- import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as d, useState as p } from "react";
1
+ import { j as s } from "../../../_virtual/jsx-runtime.js";
2
+ import { forwardRef as m, useState as p } from "react";
3
3
  import { cn as x } from "../../../lib/utils.js";
4
4
  import { Label as u } from "../../../vendor/shadcn/label.js";
5
5
  import { Button as f } from "../button/button.js";
6
- import { Input as l } from "../input/input.js";
7
- const j = d(
8
- ({ defaultVisible: a = !1, label: t, forgotPasswordLinkProps: o, ...r }, n) => {
9
- const [s, c] = p(a), i = () => {
10
- c((m) => !m);
6
+ import { Input as a } from "../input/input.js";
7
+ const w = m(
8
+ ({ defaultVisible: l = !1, label: o, forgotPasswordLinkProps: t, ...r }, i) => {
9
+ const [e, c] = p(l), n = () => {
10
+ c((d) => !d);
11
11
  };
12
- return o && t ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 w-full", children: [
13
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between", children: [
14
- /* @__PURE__ */ e.jsx(u, { className: "text-sm", children: t }),
15
- /* @__PURE__ */ e.jsx(
12
+ return t && o ? /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-2 w-full", children: [
13
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
14
+ /* @__PURE__ */ s.jsx(u, { className: "text-sm", children: o }),
15
+ /* @__PURE__ */ s.jsx(
16
16
  f,
17
17
  {
18
18
  variant: "link",
19
19
  className: x(
20
20
  "text-muted-foreground",
21
- o?.className
21
+ t?.className
22
22
  ),
23
- children: o.children || "Forgot password?"
23
+ ...t,
24
+ children: t.children || "Forgot password?"
24
25
  }
25
26
  )
26
27
  ] }),
27
- /* @__PURE__ */ e.jsx(
28
- l,
28
+ /* @__PURE__ */ s.jsx(
29
+ a,
29
30
  {
30
- ref: n,
31
- type: s ? "text" : "password",
32
- endIcon: s ? "EyeClosed" : "Eye",
31
+ ref: i,
32
+ type: e ? "text" : "password",
33
+ endIcon: e ? "EyeClosed" : "Eye",
33
34
  endIconProps: {
34
- onClick: i,
35
- className: "cursor-pointer"
35
+ onClick: n,
36
+ className: "cursor-pointer",
37
+ tooltip: e ? "Hide password" : "Show password"
36
38
  },
37
39
  ...r
38
40
  }
39
41
  )
40
- ] }) : /* @__PURE__ */ e.jsx(
41
- l,
42
+ ] }) : /* @__PURE__ */ s.jsx(
43
+ a,
42
44
  {
43
- ref: n,
44
- label: t,
45
- type: s ? "text" : "password",
46
- endIcon: s ? "EyeClosed" : "Eye",
45
+ ref: i,
46
+ label: o,
47
+ type: e ? "text" : "password",
48
+ endIcon: e ? "EyeClosed" : "Eye",
47
49
  endIconProps: {
48
- onClick: i,
49
- className: "cursor-pointer"
50
+ onClick: n,
51
+ className: "cursor-pointer",
52
+ tooltip: e ? "Hide password" : "Show password"
50
53
  },
51
54
  ...r
52
55
  }
53
56
  );
54
57
  }
55
58
  );
56
- j.displayName = "PasswordInput";
59
+ w.displayName = "PasswordInput";
57
60
  export {
58
- j as PasswordInput
61
+ w as PasswordInput
59
62
  };
@@ -1 +1,2 @@
1
1
  export { RadioGroup, type RadioGroupProps, type RadioOption, } from './radio-group';
2
+ export { RadioGroup as RadioGroupBase, RadioGroupItem } from '../../../vendor/shadcn/radio-group';
@@ -0,0 +1,33 @@
1
+ import { j as a } from "../../../_virtual/jsx-runtime.js";
2
+ import { forwardRef as i } from "react";
3
+ import { RadioGroup as c, RadioGroupItem as m } from "../../../vendor/shadcn/radio-group.js";
4
+ import { Label as o } from "../../../vendor/shadcn/label.js";
5
+ const u = i(({ options: s, name: d, ...t }, l) => /* @__PURE__ */ a.jsx(c, { ref: l, className: "gap-3", ...t, children: s.map((e) => {
6
+ const r = `${d}-${e.value}`;
7
+ return /* @__PURE__ */ a.jsxs("div", { className: "flex items-start gap-3", children: [
8
+ /* @__PURE__ */ a.jsx(
9
+ m,
10
+ {
11
+ value: e.value,
12
+ id: r,
13
+ disabled: e.disabled,
14
+ className: "size-3.5 data-[state=unchecked]:bg-white data-[state=unchecked]:border-neutral-200 data-[state=checked]:border-primary cursor-pointer"
15
+ }
16
+ ),
17
+ /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col gap-1.5 flex-1", children: [
18
+ /* @__PURE__ */ a.jsx(
19
+ o,
20
+ {
21
+ htmlFor: r,
22
+ className: "text-sm leading-none cursor-pointer",
23
+ children: e.label
24
+ }
25
+ ),
26
+ e.description && /* @__PURE__ */ a.jsx("p", { className: "text-sm text-neutral-500", children: e.description })
27
+ ] })
28
+ ] }, e.value);
29
+ }) }));
30
+ u.displayName = "RadioGroup";
31
+ export {
32
+ u as RadioGroup
33
+ };
@@ -0,0 +1,47 @@
1
+ import { j as e } from "../../../_virtual/jsx-runtime.js";
2
+ import { Switch as p } from "../../../vendor/shadcn/switch.js";
3
+ import { forwardRef as f, useId as h } from "react";
4
+ import { cn as w } from "../../../lib/utils.js";
5
+ import { Label as u } from "../../../vendor/shadcn/label.js";
6
+ const j = f(
7
+ ({
8
+ label: t,
9
+ description: s,
10
+ side: o = "left",
11
+ variant: a = "default",
12
+ id: i,
13
+ name: l,
14
+ ...c
15
+ }, m) => {
16
+ const x = h(), r = i || l || x, d = /* @__PURE__ */ e.jsx(
17
+ p,
18
+ {
19
+ ref: m,
20
+ id: r,
21
+ className: "cursor-pointer",
22
+ ...c
23
+ }
24
+ ), n = w("flex gap-3 items-start", {
25
+ "flex-row-reverse": o === "right",
26
+ "bg-white box-border justify-start p-4 rounded-lg border shadow-xs": a === "box"
27
+ });
28
+ return /* @__PURE__ */ e.jsxs("div", { className: n, children: [
29
+ d,
30
+ /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
31
+ /* @__PURE__ */ e.jsx(
32
+ u,
33
+ {
34
+ htmlFor: r,
35
+ className: "text-sm leading-[18.39px] cursor-pointer",
36
+ children: t
37
+ }
38
+ ),
39
+ s && /* @__PURE__ */ e.jsx("p", { className: "text-sm text-neutral-500", children: s })
40
+ ] })
41
+ ] });
42
+ }
43
+ );
44
+ j.displayName = "Switch";
45
+ export {
46
+ j as Switch
47
+ };
@@ -0,0 +1 @@
1
+ export { Textarea, type TextareaProps } from './textarea';
@@ -0,0 +1,12 @@
1
+ import { TextareaHTMLAttributes } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const textareaWrapperVariants: (props?: ({
4
+ layout?: "horizontal" | "vertical" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaWrapperVariants> {
7
+ label?: string;
8
+ description?: string;
9
+ error?: string;
10
+ }
11
+ declare const Textarea: import('react').ForwardRefExoticComponent<TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
12
+ export { Textarea };
@@ -0,0 +1,75 @@
1
+ import { j as t } from "../../../_virtual/jsx-runtime.js";
2
+ import { forwardRef as u, useId as v } from "react";
3
+ import { cva as c } from "../../../node_modules/class-variance-authority/dist/index.js";
4
+ import { Textarea as h } from "../../../vendor/shadcn/textarea.js";
5
+ import { cn as r } from "../../../lib/utils.js";
6
+ import { Label as j } from "../../../vendor/shadcn/label.js";
7
+ const b = c("flex gap-2 w-full", {
8
+ variants: {
9
+ layout: {
10
+ vertical: "flex-col",
11
+ horizontal: "flex-row items-start gap-4"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ layout: "vertical"
16
+ }
17
+ }), N = c("text-sm", {
18
+ variants: {
19
+ layout: {
20
+ vertical: "",
21
+ horizontal: "mt-2"
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ layout: "vertical"
26
+ }
27
+ }), g = u(
28
+ ({
29
+ className: d,
30
+ layout: i,
31
+ label: o,
32
+ description: s,
33
+ error: a,
34
+ id: n,
35
+ disabled: m,
36
+ ...x
37
+ }, f) => {
38
+ const p = v(), e = n || p, l = !!a;
39
+ return /* @__PURE__ */ t.jsxs("div", { className: r(b({ layout: i })), children: [
40
+ o && /* @__PURE__ */ t.jsx(j, { htmlFor: e, className: r(N({ layout: i })), children: o }),
41
+ /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-2 flex-1", children: [
42
+ /* @__PURE__ */ t.jsx(
43
+ h,
44
+ {
45
+ ref: f,
46
+ id: e,
47
+ disabled: m,
48
+ className: r(
49
+ l && "border-destructive focus-visible:border-destructive",
50
+ d
51
+ ),
52
+ "aria-invalid": l,
53
+ "aria-describedby": s || a ? `${e}-description` : void 0,
54
+ ...x
55
+ }
56
+ ),
57
+ (s || a) && /* @__PURE__ */ t.jsx(
58
+ "p",
59
+ {
60
+ id: `${e}-description`,
61
+ className: r(
62
+ "text-sm",
63
+ a ? "text-destructive" : "text-muted-foreground"
64
+ ),
65
+ children: a || s
66
+ }
67
+ )
68
+ ] })
69
+ ] });
70
+ }
71
+ );
72
+ g.displayName = "Textarea";
73
+ export {
74
+ g as Textarea
75
+ };
@@ -1 +1 @@
1
- export { Tooltip, type TooltipProps } from './tooltip';
1
+ export { Tooltip, TooltipProvider, type TooltipProps, type TooltipProviderProps } from './tooltip';
@@ -11,4 +11,4 @@ interface TooltipProps extends ShadcnTooltipRootProps {
11
11
  triggerProps?: TooltipTriggerProps;
12
12
  }
13
13
  declare const Tooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement>>;
14
- export { Tooltip, type TooltipProps };
14
+ export { Tooltip, TooltipProvider, type TooltipProps, type TooltipProviderProps };
@@ -1,23 +1,21 @@
1
1
  import { j as o } from "../../../_virtual/jsx-runtime.js";
2
- import { forwardRef as m, Fragment as T } from "react";
3
- import { TooltipProvider as x, Tooltip as a, TooltipTrigger as d, TooltipContent as j } from "../../../vendor/shadcn/tooltip.js";
4
- const c = m(
2
+ import { forwardRef as n } from "react";
3
+ import { TooltipProvider as m, Tooltip as T, TooltipTrigger as a, TooltipContent as d } from "../../../vendor/shadcn/tooltip.js";
4
+ const x = n(
5
5
  ({
6
- content: t,
6
+ content: r,
7
7
  children: i,
8
- contentProps: e,
9
- providerProps: r,
10
- triggerProps: l,
11
- ...p
12
- }, s) => {
13
- const n = r ? x : T;
14
- return /* @__PURE__ */ o.jsx(n, { ...r, children: /* @__PURE__ */ o.jsxs(a, { ...p, children: [
15
- /* @__PURE__ */ o.jsx(d, { ...l, children: i }),
16
- /* @__PURE__ */ o.jsx(j, { ref: s, ...e, children: t })
17
- ] }) });
18
- }
8
+ contentProps: t,
9
+ providerProps: p,
10
+ triggerProps: e,
11
+ ...l
12
+ }, s) => /* @__PURE__ */ o.jsx(m, { delayDuration: 0, ...p, children: /* @__PURE__ */ o.jsxs(T, { ...l, children: [
13
+ /* @__PURE__ */ o.jsx(a, { ...e, children: i }),
14
+ /* @__PURE__ */ o.jsx(d, { ref: s, ...t, children: r })
15
+ ] }) })
19
16
  );
20
- c.displayName = "Tooltip";
17
+ x.displayName = "Tooltip";
21
18
  export {
22
- c as Tooltip
19
+ x as Tooltip,
20
+ m as TooltipProvider
23
21
  };