@oneplatformdev/ui 0.1.10-1 → 0.1.10-4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 0.1.10-4 (2025-09-15)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated @oneplatformdev/utils to 0.1.1-54
6
+ - Updated @oneplatformdev/hooks to 0.1.0-40
7
+ - Updated @oneplatformdev/tokens to 0.0.1-27
8
+
9
+ ## 0.1.10-3 (2025-09-15)
10
+
11
+ ### 🧱 Updated Dependencies
12
+
13
+ - Updated @oneplatformdev/utils to 0.1.1-53
14
+ - Updated @oneplatformdev/hooks to 0.1.0-39
15
+ - Updated @oneplatformdev/tokens to 0.0.1-26
16
+
17
+ ## 0.1.10-2 (2025-09-15)
18
+
19
+ ### 🧱 Updated Dependencies
20
+
21
+ - Updated @oneplatformdev/utils to 0.1.1-52
22
+ - Updated @oneplatformdev/hooks to 0.1.0-38
23
+ - Updated @oneplatformdev/tokens to 0.0.1-25
24
+
1
25
  ## 0.1.10-1 (2025-09-15)
2
26
 
3
27
  ### 🧱 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
  }
@@ -3,7 +3,7 @@ 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";
@@ -1,3 +1,3 @@
1
- import { IUseAutosizeTextAreaProps } from '..';
1
+ import { IUseAutosizeTextAreaProps } from '@oneplatformdev/ui';
2
2
  export declare const useAutosizeTextArea: ({ textAreaRef, triggerAutoSize, maxHeight, minHeight, }: IUseAutosizeTextAreaProps) => void;
3
3
  //# sourceMappingURL=useAutosizeTextArea.d.ts.map
@@ -1,15 +1,15 @@
1
1
  import * as o from "react";
2
- const a = 768;
3
- function c(s = {}) {
2
+ const s = 768;
3
+ function c(r = {}) {
4
4
  const {
5
- mobileBreakpoint: e = a
6
- } = s, [r, n] = o.useState(void 0);
5
+ mobileBreakpoint: e = s
6
+ } = r, [a, n] = o.useState(void 0);
7
7
  return o.useEffect(() => {
8
8
  const t = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => {
9
9
  n(window.innerWidth < e);
10
10
  };
11
11
  return t.addEventListener("change", i), n(window.innerWidth < e), () => t.removeEventListener("change", i);
12
- }, [e]), !!r;
12
+ }, [e]), !!a;
13
13
  }
14
14
  export {
15
15
  c as useIsMobile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/ui",
3
- "version": "0.1.10-1",
3
+ "version": "0.1.10-4",
4
4
  "description": "React hook library",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [
@@ -21,27 +21,14 @@
21
21
  "private": false,
22
22
  "license": "MIT",
23
23
  "type": "module",
24
+ "source": "./index.ts",
24
25
  "main": "./index.js",
25
26
  "module": "./index.js",
27
+ "default": "./index.js",
26
28
  "types": "./index.d.ts",
27
29
  "sideEffects": [
28
30
  "./styles.css"
29
31
  ],
30
- "exports": {
31
- "./package.json": "./package.json",
32
- "./styles.css": "./styles.css",
33
- ".": {
34
- "@oneplatformdev/source": "./src/index.ts",
35
- "types": "./index.d.ts",
36
- "import": "./index.js",
37
- "default": "./index.js"
38
- },
39
- "./*": {
40
- "types": "./*.d.ts",
41
- "import": "./*.js",
42
- "default": "./*.js"
43
- }
44
- },
45
32
  "typesVersions": {
46
33
  "*": {
47
34
  "*": [
@@ -119,8 +106,8 @@
119
106
  "sonner": "^2.0.7",
120
107
  "vaul": "^1.1.2",
121
108
  "zod": "^4.1.8",
122
- "@oneplatformdev/tokens": "^0.0.1-24",
123
- "@oneplatformdev/hooks": "^0.1.0-37",
124
- "@oneplatformdev/utils": "^0.1.1-51"
109
+ "@oneplatformdev/tokens": "^0.0.1-27",
110
+ "@oneplatformdev/utils": "^0.1.1-54",
111
+ "@oneplatformdev/hooks": "^0.1.0-40"
125
112
  }
126
113
  }