@stackshift-ui/checkbox 7.0.0-beta.3 → 7.0.0-beta.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/checkbox",
3
3
  "description": "",
4
- "version": "7.0.0-beta.3",
4
+ "version": "7.0.0-beta.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,19 +29,19 @@
29
29
  "typescript": "^5.6.2",
30
30
  "vite-tsconfig-paths": "^5.0.1",
31
31
  "vitest": "^2.1.1",
32
- "@stackshift-ui/eslint-config": "6.0.10",
33
- "@stackshift-ui/typescript-config": "6.0.10"
32
+ "@stackshift-ui/typescript-config": "6.0.10",
33
+ "@stackshift-ui/eslint-config": "6.0.10"
34
34
  },
35
35
  "dependencies": {
36
36
  "@radix-ui/react-checkbox": "^1.3.2",
37
37
  "@testing-library/user-event": "^14.6.1",
38
38
  "classnames": "^2.5.1",
39
39
  "lucide-react": "^0.468.0",
40
- "@stackshift-ui/scripts": "6.1.0-beta.2",
41
- "@stackshift-ui/system": "6.1.0-beta.3"
40
+ "@stackshift-ui/scripts": "7.0.0-beta.3",
41
+ "@stackshift-ui/system": "7.0.0-beta.4"
42
42
  },
43
43
  "peerDependencies": {
44
- "@stackshift-ui/system": ">=6.1.0-beta.3",
44
+ "@stackshift-ui/system": ">=7.0.0-beta.4",
45
45
  "@types/react": "16.8 - 19",
46
46
  "next": "10 - 14",
47
47
  "react": "16.8 - 19",
@@ -1,4 +0,0 @@
1
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
2
- import * as React from "react";
3
- declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
- export { Checkbox };
package/dist/checkbox.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var h=Object.create;var a=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var v=(e,o)=>{for(var t in o)a(e,t,{get:o[t],enumerable:!0})},m=(e,o,t,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of u(o))!x.call(e,r)&&r!==t&&a(e,r,{get:()=>o[r],enumerable:!(c=k(o,r))||c.enumerable});return e};var f=(e,o,t)=>(t=e!=null?h(C(e)):{},m(o||!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)),R=e=>m(a({},"__esModule",{value:!0}),e);var y={};v(y,{Checkbox:()=>l});module.exports=R(y);var n=f(require("@radix-ui/react-checkbox")),d=require("lucide-react"),p=f(require("react")),i=require("@stackshift-ui/system"),s=require("react/jsx-runtime"),b="Checkbox",l=p.forwardRef(({className:e,...o},t)=>{let{[b]:c=i.DefaultComponent}=(0,i.useStackShiftUIComponents)();return(0,s.jsx)(c,{as:n.Root,ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...o,children:(0,s.jsx)(n.Indicator,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,s.jsx)(d.Check,{className:"h-4 w-4"})})})});l.displayName=b;0&&(module.exports={Checkbox});
package/dist/checkbox.mjs DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-GHOTKBI3.mjs";export{a as Checkbox};
@@ -1 +0,0 @@
1
- import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as i from"react";import{cn as t,DefaultComponent as f,useStackShiftUIComponents as d}from"@stackshift-ui/system";import{jsx as o}from"react/jsx-runtime";var r="Checkbox",p=i.forwardRef(({className:c,...a},s)=>{let{[r]:n=f}=d();return o(n,{as:e.Root,ref:s,className:t("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",c),...a,children:o(e.Indicator,{className:t("flex items-center justify-center text-current"),children:o(m,{className:"h-4 w-4"})})})});p.displayName=r;export{p as a};
@@ -1,28 +0,0 @@
1
- // src/checkbox.tsx
2
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
- import { Check } from "lucide-react";
4
- import * as React from "react";
5
- import { cn, DefaultComponent, useStackShiftUIComponents } from "@stackshift-ui/system";
6
- import { jsx } from "react/jsx-runtime";
7
- var displayName = "Checkbox";
8
- var Checkbox = React.forwardRef(({ className, ...props }, ref) => {
9
- const { [displayName]: Component = DefaultComponent } = useStackShiftUIComponents();
10
- return /* @__PURE__ */ jsx(
11
- Component,
12
- {
13
- as: CheckboxPrimitive.Root,
14
- ref,
15
- className: cn(
16
- "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
17
- className
18
- ),
19
- ...props,
20
- children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { className: cn("flex items-center justify-center text-current"), children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) })
21
- }
22
- );
23
- });
24
- Checkbox.displayName = displayName;
25
-
26
- export {
27
- Checkbox
28
- };
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./checkbox";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";var h=Object.create;var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var v=(e,o)=>{for(var t in o)s(e,t,{get:o[t],enumerable:!0})},m=(e,o,t,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of k(o))!x.call(e,r)&&r!==t&&s(e,r,{get:()=>o[r],enumerable:!(c=u(o,r))||c.enumerable});return e};var f=(e,o,t)=>(t=e!=null?h(C(e)):{},m(o||!e||!e.__esModule?s(t,"default",{value:e,enumerable:!0}):t,e)),R=e=>m(s({},"__esModule",{value:!0}),e);var y={};v(y,{Checkbox:()=>l});module.exports=R(y);var n=f(require("@radix-ui/react-checkbox")),p=require("lucide-react"),d=f(require("react")),i=require("@stackshift-ui/system"),a=require("react/jsx-runtime"),b="Checkbox",l=d.forwardRef(({className:e,...o},t)=>{let{[b]:c=i.DefaultComponent}=(0,i.useStackShiftUIComponents)();return(0,a.jsx)(c,{as:n.Root,ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...o,children:(0,a.jsx)(n.Indicator,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(p.Check,{className:"h-4 w-4"})})})});l.displayName=b;0&&(module.exports={Checkbox});
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as e}from"./chunk-GHOTKBI3.mjs";export{e as Checkbox};