@oneplatformdev/ui 0.0.1-beta.11 → 0.0.1-beta.110

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 (143) hide show
  1. package/Accordion/Accordion.d.ts +5 -3
  2. package/Accordion/Accordion.mjs +27 -24
  3. package/AlertDialog/AlertDialogRoot.d.ts +2 -2
  4. package/AlertDialog/AlertDialogRoot.mjs +7 -7
  5. package/Button/Button.mjs +11 -10
  6. package/Button/buttonVariants.mjs +14 -8
  7. package/Calendar/Calendar.mjs +3 -2
  8. package/Card/Card.d.ts +1 -1
  9. package/Card/Card.mjs +24 -23
  10. package/Checkbox/Checkbox.d.ts +5 -4
  11. package/Checkbox/Checkbox.mjs +48 -21
  12. package/Checkbox/Checkbox.types.d.ts +10 -0
  13. package/Checkbox/index.d.ts +1 -0
  14. package/Checkbox/index.mjs +3 -2
  15. package/Combobox/Combobox.d.ts +2 -2
  16. package/Combobox/Combobox.mjs +12 -123
  17. package/Combobox/Combobox.types.d.ts +36 -1
  18. package/Combobox/ComboboxOptionItem.d.ts +5 -0
  19. package/Combobox/ComboboxOptionItem.mjs +68 -0
  20. package/Combobox/ComboboxOptions.d.ts +4 -0
  21. package/Combobox/ComboboxOptions.mjs +12 -0
  22. package/Combobox/index.mjs +1 -1
  23. package/Combobox-BzFTeSHQ.js +324 -0
  24. package/Command/Command.d.ts +1 -1
  25. package/Command/Command.mjs +36 -29
  26. package/DataTable/DataTable.d.ts +10 -3
  27. package/DataTable/DataTable.mjs +33 -33
  28. package/DataTable/DataTableColumnFilter.d.ts +4 -0
  29. package/DataTable/DataTableColumnFilter.mjs +31 -0
  30. package/DatePicker/DatePicker.mjs +2 -2
  31. package/Dialog/Dialog.d.ts +5 -3
  32. package/Dialog/Dialog.mjs +44 -27
  33. package/DropdownMenu/DropdownMenu.d.ts +2 -2
  34. package/DropdownMenu/DropdownMenu.mjs +30 -26
  35. package/Dropzone/Dropzone.d.ts +16 -10
  36. package/Dropzone/Dropzone.mjs +146 -2915
  37. package/Dropzone/Dropzone.types.d.ts +33 -10
  38. package/Dropzone/DropzoneFilePreview.d.ts +4 -0
  39. package/Dropzone/DropzoneFilePreview.mjs +9 -0
  40. package/Dropzone/DropzoneSinglePickPreview.d.ts +10 -0
  41. package/Dropzone/DropzoneSinglePickPreview.mjs +44 -0
  42. package/Dropzone/DropzoneUtils.d.ts +5 -0
  43. package/Dropzone/DropzoneUtils.mjs +24 -0
  44. package/Dropzone/index.mjs +1 -1
  45. package/DropzoneFilePreview-Dhtv8F4u.js +67 -0
  46. package/Form/Form.d.ts +2 -2
  47. package/Form/Form.mjs +48 -45
  48. package/Form/FormRenderControl.d.ts +2 -3
  49. package/Form/FormRenderControl.mjs +10 -10
  50. package/Form/FormRenderControl.types.d.ts +5 -7
  51. package/FormCheckbox/FormCheckbox.d.ts +2 -3
  52. package/FormCheckbox/FormCheckbox.mjs +23 -23
  53. package/FormCheckbox/FormCheckbox.types.d.ts +3 -3
  54. package/FormCombobox/FormCombobox.d.ts +2 -2
  55. package/FormCombobox/FormCombobox.mjs +6 -6
  56. package/FormCombobox/FormCombobox.types.d.ts +2 -3
  57. package/FormDatePicker/FormDatePicker.d.ts +2 -2
  58. package/FormDatePicker/FormDatePicker.mjs +20 -18
  59. package/FormDatePicker/FormDatePicker.types.d.ts +2 -3
  60. package/FormDropzone/FormDropzone.d.ts +4 -0
  61. package/FormDropzone/FormDropzone.mjs +19 -0
  62. package/FormDropzone/FormDropzone.types.d.ts +6 -0
  63. package/FormDropzone/index.d.ts +2 -0
  64. package/FormDropzone/index.mjs +4 -0
  65. package/FormDropzone/package.json +7 -0
  66. package/FormInput/FormInput.d.ts +5 -3
  67. package/FormInput/FormInput.mjs +37 -16
  68. package/FormInput/FormInput.types.d.ts +2 -3
  69. package/FormRadio/FormRadio.d.ts +4 -0
  70. package/FormRadio/FormRadio.mjs +40 -0
  71. package/FormRadio/FormRadio.types.d.ts +6 -0
  72. package/FormRadio/index.d.ts +2 -0
  73. package/FormRadio/index.mjs +4 -0
  74. package/FormRadio/package.json +7 -0
  75. package/FormSelect/FormSelect.d.ts +2 -3
  76. package/FormSelect/FormSelect.mjs +19 -17
  77. package/FormSelect/FormSelect.types.d.ts +2 -3
  78. package/FormTextarea/FormTextarea.d.ts +2 -3
  79. package/FormTextarea/FormTextarea.mjs +13 -12
  80. package/FormTextarea/FormTextarea.types.d.ts +2 -3
  81. package/Input/Input.mjs +50 -38
  82. package/Input/Input.types.d.ts +6 -2
  83. package/Input/inputVariants.mjs +9 -3
  84. package/Label/Label.d.ts +2 -2
  85. package/Label/labelVariants.mjs +7 -4
  86. package/LazyLoader/LazyLoader.mjs +5 -4
  87. package/LoadedIcon/LoadedIcon.d.ts +11 -0
  88. package/LoadedIcon/LoadedIcon.mjs +27 -0
  89. package/LoadedIcon/index.d.ts +1 -0
  90. package/LoadedIcon/index.mjs +4 -0
  91. package/LoadedIcon/package.json +7 -0
  92. package/LoadingMask/LoadingMask.d.ts +4 -1
  93. package/LoadingMask/LoadingMask.mjs +18 -56
  94. package/LoadingMask/LoadingMask.types.d.ts +5 -0
  95. package/LoadingMask/RenderLoadingMask.d.ts +3 -0
  96. package/LoadingMask/RenderLoadingMask.mjs +108 -0
  97. package/LoadingMask/index.d.ts +2 -0
  98. package/LoadingMask/index.mjs +4 -2
  99. package/Popover/Popover.d.ts +2 -2
  100. package/Popover/Popover.mjs +13 -9
  101. package/Radio/Radio.d.ts +4 -0
  102. package/Radio/Radio.mjs +12 -0
  103. package/Radio/Radio.types.d.ts +11 -0
  104. package/Radio/index.d.ts +2 -0
  105. package/Radio/index.mjs +4 -0
  106. package/Radio/package.json +7 -0
  107. package/RadioGroup/RadioGroup.d.ts +9 -3
  108. package/RadioGroup/RadioGroup.mjs +37 -19
  109. package/RadioGroup/index.mjs +4 -3
  110. package/ScrollArea/ScrollArea.d.ts +2 -2
  111. package/ScrollArea/ScrollArea.mjs +26 -13
  112. package/Search/Search.d.ts +1 -2
  113. package/Search/Search.mjs +31 -19
  114. package/Search/Search.types.d.ts +1 -0
  115. package/Select/Select.mjs +94 -63
  116. package/Select/Select.types.d.ts +11 -3
  117. package/Select/SelectRoot.d.ts +2 -2
  118. package/Select/SelectRoot.mjs +29 -24
  119. package/Sheet/Sheet.d.ts +5 -2
  120. package/Sheet/Sheet.mjs +33 -33
  121. package/TablePagination/TablePagination.d.ts +16 -0
  122. package/TablePagination/TablePagination.mjs +74 -0
  123. package/TablePagination/index.d.ts +1 -0
  124. package/TablePagination/index.mjs +4 -0
  125. package/TablePagination/package.json +7 -0
  126. package/Tabs/Tabs.d.ts +3 -2
  127. package/Tabs/Tabs.mjs +20 -6
  128. package/Tabs/Tabs.types.d.ts +5 -2
  129. package/Tabs/index.mjs +8 -7
  130. package/Textarea/Textarea.d.ts +1 -1
  131. package/Textarea/Textarea.mjs +72 -15
  132. package/Textarea/Textarea.types.d.ts +16 -2
  133. package/Textarea/useAutosizeTextArea.d.ts +3 -0
  134. package/Textarea/useAutosizeTextArea.mjs +20 -0
  135. package/Toast/toastVariants.mjs +3 -3
  136. package/index.css +1 -1
  137. package/index.d.ts +3 -0
  138. package/index.mjs +297 -286
  139. package/package.json +6 -6
  140. package/tailwind.config.mjs +13 -13
  141. package/Dropzone/FilePreview.d.ts +0 -15
  142. package/Dropzone/FilePreview.mjs +0 -7
  143. package/FilePreview-C6IeuOqo.js +0 -40
@@ -1,59 +1,21 @@
1
- import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
- const t = () => /* @__PURE__ */ r("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ o(
3
- "svg",
4
- {
5
- className: "h-8 w-8 animate-spin text-gray-900 dark:text-gray-50",
6
- viewBox: "0 0 24 24",
7
- fill: "none",
8
- xmlns: "http://www.w3.org/2000/svg",
9
- children: [
10
- /* @__PURE__ */ r("path", { d: "M12 4.75V6.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
11
- /* @__PURE__ */ r(
12
- "path",
13
- {
14
- d: "M17.1475 6.8525L16.0625 7.9375",
15
- stroke: "currentColor",
16
- strokeWidth: "2",
17
- strokeLinecap: "round",
18
- strokeLinejoin: "round"
19
- }
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { RenderLoadingMask as r } from "./RenderLoadingMask.mjs";
3
+ import { cn as o } from "@oneplatformdev/utils";
4
+ const f = (t) => {
5
+ const { fullWidth: s = !1, className: i, ...n } = t;
6
+ return s ? /* @__PURE__ */ e(
7
+ "div",
8
+ {
9
+ ...n,
10
+ className: o(
11
+ "absolute inset-0",
12
+ "flex items-center justify-center",
13
+ i
20
14
  ),
21
- /* @__PURE__ */ r("path", { d: "M19.25 12H17.75", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
22
- /* @__PURE__ */ r(
23
- "path",
24
- {
25
- d: "M17.1475 17.1475L16.0625 16.0625",
26
- stroke: "currentColor",
27
- strokeWidth: "2",
28
- strokeLinecap: "round",
29
- strokeLinejoin: "round"
30
- }
31
- ),
32
- /* @__PURE__ */ r("path", { d: "M12 17.75V19.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
33
- /* @__PURE__ */ r(
34
- "path",
35
- {
36
- d: "M6.8525 17.1475L7.9375 16.0625",
37
- stroke: "currentColor",
38
- strokeWidth: "2",
39
- strokeLinecap: "round",
40
- strokeLinejoin: "round"
41
- }
42
- ),
43
- /* @__PURE__ */ r("path", { d: "M4.75 12H6.25", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
44
- /* @__PURE__ */ r(
45
- "path",
46
- {
47
- d: "M6.8525 6.8525L7.9375 7.9375",
48
- stroke: "currentColor",
49
- strokeWidth: "2",
50
- strokeLinecap: "round",
51
- strokeLinejoin: "round"
52
- }
53
- )
54
- ]
55
- }
56
- ) });
15
+ children: /* @__PURE__ */ e(r, {})
16
+ }
17
+ ) : /* @__PURE__ */ e(r, {});
18
+ };
57
19
  export {
58
- t as LoadingMask
20
+ f as LoadingMask
59
21
  };
@@ -0,0 +1,5 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface ILoadingMaskProps extends HTMLAttributes<HTMLDivElement> {
4
+ fullWidth?: boolean;
5
+ }
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export declare const RenderLoadingMask: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,108 @@
1
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
2
+ import { forwardRef as i } from "react";
3
+ import { cn as d } from "@oneplatformdev/utils";
4
+ const u = i((o, e) => {
5
+ const { className: t, ...n } = o;
6
+ return /* @__PURE__ */ r(
7
+ "div",
8
+ {
9
+ ...n,
10
+ ref: e,
11
+ className: d("flex flex-1 items-center justify-center", t),
12
+ children: /* @__PURE__ */ s(
13
+ "svg",
14
+ {
15
+ className: "h-8 w-8 animate-spin text-gray-900 dark:text-gray-50",
16
+ viewBox: "0 0 24 24",
17
+ fill: "none",
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ children: [
20
+ /* @__PURE__ */ r(
21
+ "path",
22
+ {
23
+ d: "M12 4.75V6.25",
24
+ stroke: "currentColor",
25
+ strokeWidth: "2",
26
+ strokeLinecap: "round",
27
+ strokeLinejoin: "round"
28
+ }
29
+ ),
30
+ /* @__PURE__ */ r(
31
+ "path",
32
+ {
33
+ d: "M17.1475 6.8525L16.0625 7.9375",
34
+ stroke: "currentColor",
35
+ strokeWidth: "2",
36
+ strokeLinecap: "round",
37
+ strokeLinejoin: "round"
38
+ }
39
+ ),
40
+ /* @__PURE__ */ r(
41
+ "path",
42
+ {
43
+ d: "M19.25 12H17.75",
44
+ stroke: "currentColor",
45
+ strokeWidth: "2",
46
+ strokeLinecap: "round",
47
+ strokeLinejoin: "round"
48
+ }
49
+ ),
50
+ /* @__PURE__ */ r(
51
+ "path",
52
+ {
53
+ d: "M17.1475 17.1475L16.0625 16.0625",
54
+ stroke: "currentColor",
55
+ strokeWidth: "2",
56
+ strokeLinecap: "round",
57
+ strokeLinejoin: "round"
58
+ }
59
+ ),
60
+ /* @__PURE__ */ r(
61
+ "path",
62
+ {
63
+ d: "M12 17.75V19.25",
64
+ stroke: "currentColor",
65
+ strokeWidth: "2",
66
+ strokeLinecap: "round",
67
+ strokeLinejoin: "round"
68
+ }
69
+ ),
70
+ /* @__PURE__ */ r(
71
+ "path",
72
+ {
73
+ d: "M6.8525 17.1475L7.9375 16.0625",
74
+ stroke: "currentColor",
75
+ strokeWidth: "2",
76
+ strokeLinecap: "round",
77
+ strokeLinejoin: "round"
78
+ }
79
+ ),
80
+ /* @__PURE__ */ r(
81
+ "path",
82
+ {
83
+ d: "M4.75 12H6.25",
84
+ stroke: "currentColor",
85
+ strokeWidth: "2",
86
+ strokeLinecap: "round",
87
+ strokeLinejoin: "round"
88
+ }
89
+ ),
90
+ /* @__PURE__ */ r(
91
+ "path",
92
+ {
93
+ d: "M6.8525 6.8525L7.9375 7.9375",
94
+ stroke: "currentColor",
95
+ strokeWidth: "2",
96
+ strokeLinecap: "round",
97
+ strokeLinejoin: "round"
98
+ }
99
+ )
100
+ ]
101
+ }
102
+ )
103
+ }
104
+ );
105
+ });
106
+ export {
107
+ u as RenderLoadingMask
108
+ };
@@ -1 +1,3 @@
1
1
  export { LoadingMask } from './LoadingMask';
2
+ export { RenderLoadingMask } from './RenderLoadingMask';
3
+ export type * from './LoadingMask.types';
@@ -1,4 +1,6 @@
1
- import { LoadingMask as r } from "./LoadingMask.mjs";
1
+ import { LoadingMask as a } from "./LoadingMask.mjs";
2
+ import { RenderLoadingMask as d } from "./RenderLoadingMask.mjs";
2
3
  export {
3
- r as LoadingMask
4
+ a as LoadingMask,
5
+ d as RenderLoadingMask
4
6
  };
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
- import * as PopoverPrimitive from "@radix-ui/react-popover";
1
+ import * as React from 'react';
2
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
3
  declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
4
  declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
5
  declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,24 +1,28 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import * as n from "react";
2
+ import * as s from "react";
3
3
  import * as o from "@radix-ui/react-popover";
4
- import { cn as s } from "@oneplatformdev/utils";
5
- const l = o.Root, c = o.Trigger, g = o.Anchor, m = n.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, i) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
4
+ import { cn as m } from "@oneplatformdev/utils";
5
+ const c = o.Root, v = o.Trigger, g = o.Anchor, p = s.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, style: d, ...n }, i) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
6
6
  o.Content,
7
7
  {
8
8
  ref: i,
9
9
  align: a,
10
10
  sideOffset: r,
11
- className: s(
11
+ className: m(
12
12
  "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
13
13
  e
14
14
  ),
15
- ...d
15
+ style: {
16
+ pointerEvents: "auto",
17
+ ...d
18
+ },
19
+ ...n
16
20
  }
17
21
  ) }));
18
- m.displayName = o.Content.displayName;
22
+ p.displayName = o.Content.displayName;
19
23
  export {
20
- l as Popover,
24
+ c as Popover,
21
25
  g as PopoverAnchor,
22
- m as PopoverContent,
23
- c as PopoverTrigger
26
+ p as PopoverContent,
27
+ v as PopoverTrigger
24
28
  };
@@ -0,0 +1,4 @@
1
+ import { RadioProps } from './Radio.types';
2
+ import { FC } from 'react';
3
+
4
+ export declare const Radio: FC<RadioProps>;
@@ -0,0 +1,12 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { RadioGroup as c, RadioGroupLabel as u } from "../RadioGroup/RadioGroup.mjs";
3
+ const l = (e) => {
4
+ const { options: f = [], renderOption: r, ...s } = e;
5
+ return /* @__PURE__ */ a(c, { ...s, children: f.map((t) => {
6
+ const o = /* @__PURE__ */ a(u, { ...t }, t.value);
7
+ return !r || typeof r != "function" || !(r != null && r(t, u)) ? o : r == null ? void 0 : r(t, u);
8
+ }) });
9
+ };
10
+ export {
11
+ l as Radio
12
+ };
@@ -0,0 +1,11 @@
1
+ import { RadioGroup, RadioGroupLabel } from '../RadioGroup/RadioGroup';
2
+ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
3
+
4
+ export interface RadioOptionProps<Value extends string | number = string> {
5
+ value: Value;
6
+ label: ReactNode;
7
+ }
8
+ export interface RadioProps extends Partial<ComponentPropsWithoutRef<typeof RadioGroup>> {
9
+ options?: RadioOptionProps[];
10
+ renderOption?: (option: RadioOptionProps, DefaultOptionComponent: FC<ComponentPropsWithoutRef<typeof RadioGroupLabel>>) => ReactNode | null;
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from './Radio';
2
+ export type * from './Radio.types.ts';
@@ -0,0 +1,4 @@
1
+ import { Radio as a } from "./Radio.mjs";
2
+ export {
3
+ a as Radio
4
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "sideEffects": false,
3
+ "main": "./index.mjs",
4
+ "module": "./index.mjs",
5
+ "default": "./index.mjs",
6
+ "types": "./index.d.ts"
7
+ }
@@ -1,5 +1,11 @@
1
- import * as React from "react";
2
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
1
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
2
+ import * as React from 'react';
3
3
  declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
4
  declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
- export { RadioGroup, RadioGroupItem };
5
+ declare const RadioGroupLabel: React.ForwardRefExoticComponent<{
6
+ label: React.ReactNode;
7
+ value: string;
8
+ } & {
9
+ children?: React.ReactNode | undefined;
10
+ } & React.RefAttributes<HTMLLabelElement>>;
11
+ export { RadioGroup, RadioGroupItem, RadioGroupLabel };
@@ -1,31 +1,49 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import * as i from "@radix-ui/react-radio-group";
3
+ import { Circle as c } from "lucide-react";
2
4
  import * as s from "react";
3
- import * as r from "@radix-ui/react-radio-group";
4
- import { Circle as m } from "lucide-react";
5
5
  import { cn as t } from "@oneplatformdev/utils";
6
- const d = s.forwardRef(({ className: o, ...i }, a) => /* @__PURE__ */ e(
7
- r.Root,
6
+ import { Label as p } from "../Label/Label.mjs";
7
+ const f = s.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
8
+ i.Root,
8
9
  {
9
- className: t("grid gap-2", o),
10
- ...i,
11
- ref: a
10
+ className: t("grid gap-0", r),
11
+ ...a,
12
+ ref: o
12
13
  }
13
14
  ));
14
- d.displayName = r.Root.displayName;
15
- const l = s.forwardRef(({ className: o, ...i }, a) => /* @__PURE__ */ e(
16
- r.Item,
15
+ f.displayName = i.Root.displayName;
16
+ const m = s.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
17
+ i.Item,
17
18
  {
18
- ref: a,
19
+ ref: o,
19
20
  className: t(
20
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
21
- o
21
+ "aspect-square size-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
22
+ r
22
23
  ),
23
- ...i,
24
- children: /* @__PURE__ */ e(r.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(m, { className: "h-3.5 w-3.5 fill-primary" }) })
24
+ ...a,
25
+ children: /* @__PURE__ */ e(i.Indicator, { className: "flex items-center justify-center ", children: /* @__PURE__ */ e(c, { className: "size-2.5 fill-primary" }) })
25
26
  }
26
27
  ));
27
- l.displayName = r.Item.displayName;
28
+ m.displayName = i.Item.displayName;
29
+ const n = s.forwardRef(({ value: r, label: a, children: o }, d) => /* @__PURE__ */ l(
30
+ p,
31
+ {
32
+ ref: d,
33
+ htmlFor: r,
34
+ className: "flex w-full items-start gap-3 font-normal py-3 cursor-pointer",
35
+ children: [
36
+ /* @__PURE__ */ e(m, { value: r, id: r }),
37
+ /* @__PURE__ */ l("div", { className: "flex flex-col w-full gap-3", children: [
38
+ /* @__PURE__ */ e("span", { className: "flex flex-col justify-start leading-[16px]", children: a }),
39
+ o
40
+ ] })
41
+ ]
42
+ }
43
+ ));
44
+ n.displayName = "RadioGroupLabel";
28
45
  export {
29
- d as RadioGroup,
30
- l as RadioGroupItem
46
+ f as RadioGroup,
47
+ m as RadioGroupItem,
48
+ n as RadioGroupLabel
31
49
  };
@@ -1,5 +1,6 @@
1
- import { RadioGroup as p, RadioGroupItem as a } from "./RadioGroup.mjs";
1
+ import { RadioGroup as a, RadioGroupItem as p, RadioGroupLabel as d } from "./RadioGroup.mjs";
2
2
  export {
3
- p as RadioGroup,
4
- a as RadioGroupItem
3
+ a as RadioGroup,
4
+ p as RadioGroupItem,
5
+ d as RadioGroupLabel
5
6
  };
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
- import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
1
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
2
+ import * as React from 'react';
3
3
  declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
4
  declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
5
  export { ScrollArea, ScrollBar };
@@ -1,38 +1,51 @@
1
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import * as s from "react";
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
2
  import * as r from "@radix-ui/react-scroll-area";
4
- import { cn as t } from "@oneplatformdev/utils";
5
- const m = s.forwardRef(({ className: o, children: l, ...a }, c) => /* @__PURE__ */ d(
3
+ import * as t from "react";
4
+ import { cn as s } from "@oneplatformdev/utils";
5
+ const m = t.forwardRef(({ className: o, children: l, ...a }, c) => /* @__PURE__ */ i(
6
6
  r.Root,
7
7
  {
8
8
  ref: c,
9
- className: t("relative overflow-hidden", o),
9
+ className: s(
10
+ "relative overflow-hidden pr-2",
11
+ // '[&:has([data-orientation=vertical])]:pr-2',
12
+ o
13
+ ),
10
14
  ...a,
11
15
  children: [
12
16
  /* @__PURE__ */ e(r.Viewport, { className: "h-full w-full rounded-[inherit]", children: l }),
13
- /* @__PURE__ */ e(i, {}),
17
+ /* @__PURE__ */ e(d, {}),
14
18
  /* @__PURE__ */ e(r.Corner, {})
15
19
  ]
16
20
  }
17
21
  ));
18
22
  m.displayName = r.Root.displayName;
19
- const i = s.forwardRef(({ className: o, orientation: l = "vertical", ...a }, c) => /* @__PURE__ */ e(
23
+ const d = t.forwardRef(({ className: o, orientation: l = "vertical", ...a }, c) => /* @__PURE__ */ e(
20
24
  r.ScrollAreaScrollbar,
21
25
  {
22
26
  ref: c,
23
27
  orientation: l,
24
- className: t(
28
+ className: s(
25
29
  "flex touch-none select-none transition-colors",
26
- l === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
27
- l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
30
+ "p-[1px] bg-[#DCDDE1] rounded-full",
31
+ l === "vertical" && "h-full w-1.5 border-l border-l-transparent",
32
+ l === "horizontal" && "h-1.5 flex-col border-t border-t-transparent",
28
33
  o
29
34
  ),
30
35
  ...a,
31
- children: /* @__PURE__ */ e(r.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
36
+ children: /* @__PURE__ */ e(
37
+ r.ScrollAreaThumb,
38
+ {
39
+ className: s(
40
+ "relative flex-1 rounded-full bg-border",
41
+ "bg-[#FCFCFC]"
42
+ )
43
+ }
44
+ )
32
45
  }
33
46
  ));
34
- i.displayName = r.ScrollAreaScrollbar.displayName;
47
+ d.displayName = r.ScrollAreaScrollbar.displayName;
35
48
  export {
36
49
  m as ScrollArea,
37
- i as ScrollBar
50
+ d as ScrollBar
38
51
  };
@@ -1,4 +1,3 @@
1
1
  import { SearchProps } from './Search.types';
2
- import { FC } from 'react';
3
2
 
4
- export declare const Search: FC<SearchProps>;
3
+ export declare const Search: (props: SearchProps) => import("react/jsx-runtime").JSX.Element;
package/Search/Search.mjs CHANGED
@@ -1,30 +1,42 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as r } from "react/jsx-runtime";
2
2
  import { useState as S } from "react";
3
- import { Input as f } from "../Input/Input.mjs";
4
- import { useDebounceCallback as v } from "@oneplatformdev/hooks";
5
- import { cn as d } from "@oneplatformdev/utils";
6
- const j = (t) => {
3
+ import { Input as v } from "../Input/Input.mjs";
4
+ import { useDebounceCallback as g } from "@oneplatformdev/hooks";
5
+ import { cn as b } from "@oneplatformdev/utils";
6
+ import { SearchIcon as x } from "lucide-react";
7
+ import { LoadedIcon as I } from "../LoadedIcon/LoadedIcon.mjs";
8
+ const A = (a) => {
7
9
  const {
8
- search: a,
9
- onChange: e,
10
- onSearch: c,
10
+ search: c,
11
+ onChange: o,
12
+ onSearch: n,
11
13
  placeholder: s = "Search",
12
- className: n,
13
- ...m
14
- } = t, [i, l] = S(a), h = v(c, 1e3), p = (r) => {
15
- const u = r.target.value;
16
- l(u), e == null || e(r), h(r.target.value);
14
+ className: m,
15
+ loading: i = !1,
16
+ slotProps: e,
17
+ ...p
18
+ } = a, [l, h] = S(c), u = g(n, 1e3), d = (t) => {
19
+ const f = t.target.value;
20
+ h(f), o == null || o(t), u(t.target.value);
17
21
  };
18
- return /* @__PURE__ */ o("div", { className: d("space-y-4", n), children: /* @__PURE__ */ o(
19
- f,
22
+ return /* @__PURE__ */ r("div", { className: b("space-y-4 min-w-[340px]", m), children: /* @__PURE__ */ r(
23
+ v,
20
24
  {
21
25
  placeholder: s,
22
- value: i,
23
- onChange: p,
24
- ...m
26
+ value: l,
27
+ onChange: d,
28
+ ...p,
29
+ ...e || {},
30
+ slotProps: {
31
+ ...e || {},
32
+ input: {
33
+ startAdornment: /* @__PURE__ */ r(I, { loading: i, size: "sm", children: /* @__PURE__ */ r(x, {}) }),
34
+ ...(e == null ? void 0 : e.input) || {}
35
+ }
36
+ }
25
37
  }
26
38
  ) });
27
39
  };
28
40
  export {
29
- j as Search
41
+ A as Search
30
42
  };
@@ -3,4 +3,5 @@ import { InputProps } from '../Input';
3
3
  export interface SearchProps extends InputProps {
4
4
  search: string;
5
5
  onSearch: (value?: string) => void;
6
+ loading?: boolean;
6
7
  }