@oneplatformdev/ui 0.1.10-10 → 0.1.10-13

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-13 (2025-09-15)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated @oneplatformdev/utils to 0.1.1-63
6
+ - Updated @oneplatformdev/hooks to 0.1.0-49
7
+ - Updated @oneplatformdev/tokens to 0.0.1-36
8
+
9
+ ## 0.1.10-12 (2025-09-15)
10
+
11
+ ### 🧱 Updated Dependencies
12
+
13
+ - Updated @oneplatformdev/utils to 0.1.1-62
14
+ - Updated @oneplatformdev/hooks to 0.1.0-48
15
+ - Updated @oneplatformdev/tokens to 0.0.1-35
16
+
17
+ ## 0.1.10-11 (2025-09-15)
18
+
19
+ ### 🧱 Updated Dependencies
20
+
21
+ - Updated @oneplatformdev/utils to 0.1.1-61
22
+ - Updated @oneplatformdev/hooks to 0.1.0-47
23
+ - Updated @oneplatformdev/tokens to 0.0.1-34
24
+
1
25
  ## 0.1.10-10 (2025-09-15)
2
26
 
3
27
  ### 🧱 Updated Dependencies
@@ -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"}
package/Switch/Switch.js CHANGED
@@ -1,27 +1,31 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import * as a from "react";
3
- import * as e from "@radix-ui/react-switch";
4
- import { cn as t } from "@oneplatformdev/utils";
5
- const n = a.forwardRef(({ className: i, ...o }, s) => /* @__PURE__ */ r(
6
- e.Root,
7
- {
8
- className: t(
9
- "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-xs transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
10
- i
11
- ),
12
- ...o,
13
- ref: s,
14
- children: /* @__PURE__ */ r(
15
- e.Thumb,
16
- {
17
- className: t(
18
- "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
19
- )
20
- }
21
- )
22
- }
23
- ));
24
- n.displayName = e.Root.displayName;
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import * as t from "@radix-ui/react-switch";
3
+ import { cn as a } from "@oneplatformdev/utils";
4
+ function s({
5
+ className: r,
6
+ ...n
7
+ }) {
8
+ return /* @__PURE__ */ e(
9
+ t.Root,
10
+ {
11
+ "data-slot": "switch",
12
+ className: a(
13
+ "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
14
+ r
15
+ ),
16
+ ...n,
17
+ children: /* @__PURE__ */ e(
18
+ t.Thumb,
19
+ {
20
+ "data-slot": "switch-thumb",
21
+ className: a(
22
+ "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
23
+ )
24
+ }
25
+ )
26
+ }
27
+ );
28
+ }
25
29
  export {
26
- n as Switch
30
+ s as Switch
27
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/ui",
3
- "version": "0.1.10-10",
3
+ "version": "0.1.10-13",
4
4
  "description": "React hook library",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [
@@ -102,7 +102,7 @@
102
102
  "embla-carousel-react": "^8.6.0",
103
103
  "input-otp": "^1.4.2",
104
104
  "next-themes": "^0.4.6",
105
- "react-day-picker": "8.10.1",
105
+ "react-day-picker": "9.10.0",
106
106
  "react-dropzone": "^14.3.8",
107
107
  "react-hook-form": "^7.62.0",
108
108
  "react-resizable-panels": "^3.0.6",
@@ -110,8 +110,8 @@
110
110
  "sonner": "^2.0.7",
111
111
  "vaul": "^1.1.2",
112
112
  "zod": "^4.1.8",
113
- "@oneplatformdev/tokens": "^0.0.1-33",
114
- "@oneplatformdev/hooks": "^0.1.0-46",
115
- "@oneplatformdev/utils": "^0.1.1-60"
113
+ "@oneplatformdev/tokens": "^0.0.1-36",
114
+ "@oneplatformdev/utils": "^0.1.1-63",
115
+ "@oneplatformdev/hooks": "^0.1.0-49"
116
116
  }
117
117
  }