@stackshift-ui/checkbox-group 6.0.4-beta.2 → 6.0.5

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-group",
3
3
  "description": "",
4
- "version": "6.0.4-beta.2",
4
+ "version": "6.0.5",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -29,20 +29,20 @@
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.3-beta.2",
33
- "@stackshift-ui/typescript-config": "6.0.3-beta.2"
32
+ "@stackshift-ui/eslint-config": "6.0.4",
33
+ "@stackshift-ui/typescript-config": "6.0.4"
34
34
  },
35
35
  "dependencies": {
36
36
  "classnames": "^2.5.1",
37
- "@stackshift-ui/scripts": "6.0.3-beta.2",
38
- "@stackshift-ui/system": "6.0.4-beta.2"
37
+ "@stackshift-ui/scripts": "6.0.4",
38
+ "@stackshift-ui/system": "6.0.5"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@types/react": "16.8 - 19",
42
42
  "next": "10 - 14",
43
43
  "react": "16.8 - 19",
44
44
  "react-dom": "16.8 - 19",
45
- "@stackshift-ui/system": ">=6.0.4-beta.2"
45
+ "@stackshift-ui/system": ">=6.0.5"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "next": {
@@ -1,15 +0,0 @@
1
- import { type ElementType, type HTMLProps, type ReactNode } from "react";
2
- type Variant = "primary" | "inline";
3
- export interface CheckboxGroupProps extends Omit<HTMLProps<HTMLElement>, "as"> {
4
- variant?: Variant;
5
- name?: string;
6
- label?: string;
7
- noLabel?: boolean;
8
- labelClass?: string;
9
- [key: string]: any;
10
- children?: ReactNode;
11
- className?: string;
12
- as?: ElementType;
13
- }
14
- export declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
15
- export {};
@@ -1 +0,0 @@
1
- "use strict";var u=Object.create;var r=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var P=(e,t)=>{for(var a in t)r(e,a,{get:t[a],enumerable:!0})},y=(e,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of v(t))!L.call(e,n)&&n!==a&&r(e,n,{get:()=>t[n],enumerable:!(s=V(t,n))||s.enumerable});return e};var R=(e,t,a)=>(a=e!=null?u(G(e)):{},y(t||!e||!e.__esModule?r(a,"default",{value:e,enumerable:!0}):a,e)),S=e=>y(r({},"__esModule",{value:!0}),e);var E={};P(E,{CheckboxGroup:()=>g});module.exports=S(E);var i=require("@stackshift-ui/system"),C=require("react"),d=R(require("classnames")),o=require("react/jsx-runtime"),p="CheckboxGroup",g=({variant:e="primary",name:t,label:a,noLabel:s=!1,labelClass:n,children:b,className:f,as:x,...k})=>{var c;let{[p]:N=i.DefaultComponent}=(0,i.useStackShiftUIComponents)(),l="ml-2",m=`${l} block`,T=`${l} flex gap-4`,h=(c={primary:m,inline:T}[e])!=null?c:m;return(0,o.jsxs)(C.Fragment,{children:[!s&&(0,o.jsx)("p",{className:n,children:a||t}),(0,o.jsx)(N,{as:x,className:(0,d.default)(h,f),...k,"data-testid":p,children:b})]})};g.displayName=p;0&&(module.exports={CheckboxGroup});
@@ -1 +0,0 @@
1
- import{a}from"./chunk-AVWGONOP.mjs";export{a as CheckboxGroup};
@@ -1 +0,0 @@
1
- import{DefaultComponent as f,useStackShiftUIComponents as x}from"@stackshift-ui/system";import{Fragment as k}from"react";import N from"classnames";import{jsx as o,jsxs as h}from"react/jsx-runtime";var e="CheckboxGroup",T=({variant:s="primary",name:r,label:i,noLabel:p=!1,labelClass:l,children:m,className:c,as:y,...C})=>{var n;let{[e]:d=f}=x(),t="ml-2",a=`${t} block`,g=`${t} flex gap-4`,b=(n={primary:a,inline:g}[s])!=null?n:a;return h(k,{children:[!p&&o("p",{className:l,children:i||r}),o(d,{as:y,className:N(b,c),...C,"data-testid":e,children:m})]})};T.displayName=e;export{T as a};
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./checkbox-group";
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";var h=Object.create;var r=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var P=(e,t)=>{for(var a in t)r(e,a,{get:t[a],enumerable:!0})},y=(e,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of v(t))!L.call(e,n)&&n!==a&&r(e,n,{get:()=>t[n],enumerable:!(s=V(t,n))||s.enumerable});return e};var R=(e,t,a)=>(a=e!=null?h(G(e)):{},y(t||!e||!e.__esModule?r(a,"default",{value:e,enumerable:!0}):a,e)),S=e=>y(r({},"__esModule",{value:!0}),e);var E={};P(E,{CheckboxGroup:()=>g});module.exports=S(E);var i=require("@stackshift-ui/system"),C=require("react"),d=R(require("classnames")),o=require("react/jsx-runtime"),p="CheckboxGroup",g=({variant:e="primary",name:t,label:a,noLabel:s=!1,labelClass:n,children:b,className:f,as:x,...k})=>{var c;let{[p]:u=i.DefaultComponent}=(0,i.useStackShiftUIComponents)(),l="ml-2",m=`${l} block`,N=`${l} flex gap-4`,T=(c={primary:m,inline:N}[e])!=null?c:m;return(0,o.jsxs)(C.Fragment,{children:[!s&&(0,o.jsx)("p",{className:n,children:a||t}),(0,o.jsx)(u,{as:x,className:(0,d.default)(T,f),...k,"data-testid":p,children:b})]})};g.displayName=p;0&&(module.exports={CheckboxGroup});
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- "use client";
2
- "use strict";import{a as e}from"./chunk-AVWGONOP.mjs";export{e as CheckboxGroup};