@jamsrui/checkbox 0.0.11 → 0.0.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/dist/checkbox-config.d.mts +9 -12
- package/dist/checkbox-config.mjs +1 -1
- package/dist/checkbox-content.mjs +1 -0
- package/dist/{primitive/checkbox-context.d.mts → checkbox-context.d.mts} +3 -5
- package/dist/checkbox-context.mjs +1 -0
- package/dist/{primitive/checkbox-trigger.d.mts → checkbox-control.d.mts} +3 -3
- package/dist/checkbox-control.mjs +1 -0
- package/dist/checkbox-icon.mjs +1 -0
- package/dist/checkbox-indicator.d.mts +13 -0
- package/dist/checkbox-indicator.mjs +1 -0
- package/dist/checkbox-input.mjs +1 -0
- package/dist/checkbox-root.d.mts +10 -0
- package/dist/checkbox-root.mjs +1 -0
- package/dist/checkbox.d.mts +8 -13
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-2J6T2HMK.mjs +1 -0
- package/dist/chunk-FMMEMRGI.mjs +1 -0
- package/dist/chunk-FSRSJ6IY.mjs +1 -0
- package/dist/chunk-H4JJIOAG.mjs +1 -0
- package/dist/chunk-ISDBRPPK.mjs +1 -0
- package/dist/{chunk-HM5E5R22.mjs → chunk-PN7YXAUC.mjs} +1 -1
- package/dist/chunk-RXTCDVRE.mjs +1 -0
- package/dist/chunk-TPT76VDI.mjs +1 -0
- package/dist/chunk-UWHNW7HC.mjs +1 -0
- package/dist/index.d.mts +25 -13
- package/dist/index.mjs +1 -1
- package/dist/{primitive/styles.d.mts → styles.d.mts} +39 -24
- package/dist/styles.mjs +1 -0
- package/dist/use-checkbox.d.mts +33 -0
- package/dist/use-checkbox.mjs +1 -0
- package/package.json +6 -5
- package/dist/chunk-3G33TKQ4.mjs +0 -1
- package/dist/chunk-5E6RGSS7.mjs +0 -1
- package/dist/chunk-7HSMKJZT.mjs +0 -1
- package/dist/chunk-D3WPBLWY.mjs +0 -1
- package/dist/chunk-E2NBJUXC.mjs +0 -1
- package/dist/chunk-FRNI2QCP.mjs +0 -1
- package/dist/chunk-K6B3YVFR.mjs +0 -1
- package/dist/chunk-MSMN3ONF.mjs +0 -1
- package/dist/chunk-NLSTQYND.mjs +0 -1
- package/dist/chunk-Q4LWW3NN.mjs +0 -0
- package/dist/chunk-RITKX3B2.mjs +0 -1
- package/dist/chunk-SDIPXW2A.mjs +0 -1
- package/dist/chunk-SFX35YBW.mjs +0 -1
- package/dist/chunk-UTQSFGB2.mjs +0 -1
- package/dist/primitive/checkbox-config.d.mts +0 -27
- package/dist/primitive/checkbox-config.mjs +0 -1
- package/dist/primitive/checkbox-content.mjs +0 -1
- package/dist/primitive/checkbox-context.mjs +0 -1
- package/dist/primitive/checkbox-description.d.mts +0 -10
- package/dist/primitive/checkbox-description.mjs +0 -1
- package/dist/primitive/checkbox-error-message.d.mts +0 -10
- package/dist/primitive/checkbox-error-message.mjs +0 -1
- package/dist/primitive/checkbox-icon.mjs +0 -1
- package/dist/primitive/checkbox-input.mjs +0 -1
- package/dist/primitive/checkbox-label.d.mts +0 -10
- package/dist/primitive/checkbox-label.mjs +0 -1
- package/dist/primitive/checkbox-root.d.mts +0 -10
- package/dist/primitive/checkbox-root.mjs +0 -1
- package/dist/primitive/checkbox-trigger.mjs +0 -1
- package/dist/primitive/checkbox-wrapper.d.mts +0 -10
- package/dist/primitive/checkbox-wrapper.mjs +0 -1
- package/dist/primitive/checkbox.d.mts +0 -21
- package/dist/primitive/checkbox.mjs +0 -1
- package/dist/primitive/index.d.mts +0 -18
- package/dist/primitive/index.mjs +0 -1
- package/dist/primitive/styles.mjs +0 -1
- package/dist/primitive/use-checkbox.d.mts +0 -39
- package/dist/primitive/use-checkbox.mjs +0 -1
- /package/dist/{primitive/checkbox-content.d.mts → checkbox-content.d.mts} +0 -0
- /package/dist/{primitive/checkbox-icon.d.mts → checkbox-icon.d.mts} +0 -0
- /package/dist/{primitive/checkbox-input.d.mts → checkbox-input.d.mts} +0 -0
- /package/dist/{chunk-KDGIZLWZ.mjs → chunk-DOBJZMCO.mjs} +0 -0
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { Checkbox } from './checkbox.mjs';
|
|
2
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
|
-
import './
|
|
5
|
-
import '
|
|
3
|
+
import { Checkbox } from './checkbox.mjs';
|
|
4
|
+
import './use-checkbox.mjs';
|
|
6
5
|
import '@jamsrui/utils';
|
|
7
|
-
import './
|
|
8
|
-
import '
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import './primitive/checkbox-wrapper.mjs';
|
|
15
|
-
import './primitive/styles.mjs';
|
|
6
|
+
import './checkbox-content.mjs';
|
|
7
|
+
import 'react';
|
|
8
|
+
import './checkbox-control.mjs';
|
|
9
|
+
import './checkbox-indicator.mjs';
|
|
10
|
+
import './checkbox-input.mjs';
|
|
11
|
+
import './checkbox-root.mjs';
|
|
12
|
+
import './styles.mjs';
|
|
16
13
|
|
|
17
14
|
declare const useCheckboxConfig: () => CheckboxConfig.Props;
|
|
18
15
|
declare const CheckboxConfig: (props: Omit<Partial<CheckboxConfig.Props>, "children"> & {
|
package/dist/checkbox-config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-IYBWXFEX.mjs";export{a as CheckboxConfig,b as useCheckboxConfig};
|
|
1
|
+
"use client";import{a,b}from"./chunk-IYBWXFEX.mjs";export{a as CheckboxConfig,b as useCheckboxConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a}from"./chunk-PN7YXAUC.mjs";import"./chunk-DOBJZMCO.mjs";export{a as CheckboxContent};
|
|
@@ -2,13 +2,11 @@ import * as react from 'react';
|
|
|
2
2
|
import { useCheckbox } from './use-checkbox.mjs';
|
|
3
3
|
import '@jamsrui/utils';
|
|
4
4
|
import './checkbox-content.mjs';
|
|
5
|
-
import './checkbox-
|
|
6
|
-
import './checkbox-
|
|
5
|
+
import './checkbox-control.mjs';
|
|
6
|
+
import './checkbox-indicator.mjs';
|
|
7
|
+
import 'react/jsx-runtime';
|
|
7
8
|
import './checkbox-input.mjs';
|
|
8
|
-
import './checkbox-label.mjs';
|
|
9
9
|
import './checkbox-root.mjs';
|
|
10
|
-
import './checkbox-trigger.mjs';
|
|
11
|
-
import './checkbox-wrapper.mjs';
|
|
12
10
|
import './styles.mjs';
|
|
13
11
|
|
|
14
12
|
declare const useCheckboxContext: () => CheckboxContext.Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-DOBJZMCO.mjs";export{a as CheckboxContext,b as useCheckboxContext};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { UIProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
declare namespace
|
|
4
|
+
declare const CheckboxControl: (props: CheckboxControl.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CheckboxControl {
|
|
6
6
|
interface Props extends UIProps<"div"> {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export {
|
|
10
|
+
export { CheckboxControl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a}from"./chunk-FSRSJ6IY.mjs";import"./chunk-H4JJIOAG.mjs";import"./chunk-2J6T2HMK.mjs";import"./chunk-FMMEMRGI.mjs";import"./chunk-DOBJZMCO.mjs";export{a as CheckboxControl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a}from"./chunk-2J6T2HMK.mjs";import"./chunk-DOBJZMCO.mjs";export{a as CheckboxIcon};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CheckboxIndicator: (props: CheckboxIndicator.Props) => react_jsx_runtime.JSX.Element;
|
|
5
|
+
declare namespace CheckboxIndicator {
|
|
6
|
+
interface Props extends Omit<UIProps<"div">, "children"> {
|
|
7
|
+
children?: React.ReactNode | ((state: {
|
|
8
|
+
isChecked: boolean;
|
|
9
|
+
}) => React.ReactNode);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { CheckboxIndicator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a}from"./chunk-H4JJIOAG.mjs";import"./chunk-2J6T2HMK.mjs";import"./chunk-DOBJZMCO.mjs";export{a as CheckboxIndicator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-FMMEMRGI.mjs";import"./chunk-DOBJZMCO.mjs";export{a as CheckboxInput};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { UIProps } from '@jamsrui/utils';
|
|
3
|
+
|
|
4
|
+
declare const CheckboxRoot: (_prop: CheckboxRoot.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
+
declare namespace CheckboxRoot {
|
|
6
|
+
interface Props extends UIProps<"div"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { CheckboxRoot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a}from"./chunk-ISDBRPPK.mjs";import"./chunk-DOBJZMCO.mjs";export{a as CheckboxRoot};
|
package/dist/checkbox.d.mts
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { useCheckbox } from './
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import { useCheckbox } from './use-checkbox.mjs';
|
|
3
|
+
import '@jamsrui/utils';
|
|
4
|
+
import './checkbox-content.mjs';
|
|
5
5
|
import 'react';
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './primitive/checkbox-root.mjs';
|
|
12
|
-
import './primitive/checkbox-trigger.mjs';
|
|
13
|
-
import './primitive/checkbox-wrapper.mjs';
|
|
6
|
+
import './checkbox-control.mjs';
|
|
7
|
+
import './checkbox-indicator.mjs';
|
|
8
|
+
import './checkbox-input.mjs';
|
|
9
|
+
import './checkbox-root.mjs';
|
|
10
|
+
import './styles.mjs';
|
|
14
11
|
|
|
15
12
|
declare const Checkbox: (props: Checkbox.Props) => react_jsx_runtime.JSX.Element;
|
|
16
13
|
declare namespace Checkbox {
|
|
17
14
|
interface Props extends useCheckbox.Props {
|
|
18
|
-
label?: React.ReactNode;
|
|
19
|
-
slots?: SlotsToReactNode<CheckboxSlots>;
|
|
20
15
|
}
|
|
21
16
|
}
|
|
22
17
|
|
package/dist/checkbox.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
"use client";import{a}from"./chunk-TPT76VDI.mjs";import"./chunk-UWHNW7HC.mjs";import"./chunk-RXTCDVRE.mjs";import"./chunk-IYBWXFEX.mjs";import"./chunk-ISDBRPPK.mjs";import"./chunk-DOBJZMCO.mjs";export{a as Checkbox};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as o}from"./chunk-DOBJZMCO.mjs";import{motion as e}from"motion/react";import{jsx as n}from"react/jsx-runtime";var r={pressed:{pathLength:.5},checked:{pathLength:1,opacity:1,transition:{duration:.2}},unchecked:{pathLength:0,opacity:0,transition:{duration:.2}}},c=()=>{let{isChecked:i,isIntermediate:t}=o();return n(e.svg,{animate:i||t?"checked":"unchecked",fill:"none",initial:!1,stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:n(e.path,{d:t?"M5 12h14":"M4.5 12.75l6 6 9-13.5",strokeLinecap:"round",strokeLinejoin:"round",variants:r})})};export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-DOBJZMCO.mjs";import{useFieldA11yContext as p}from"@jamsrui/context";import{useRenderElement as n}from"@jamsrui/hooks";var x=t=>{let{getInputProps:o}=e(),r=p();return n("input",{props:[r?.getInputProps()??{},o(t)]})};export{x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-H4JJIOAG.mjs";import{a as t}from"./chunk-FMMEMRGI.mjs";import{b as e}from"./chunk-DOBJZMCO.mjs";import{useRenderElement as s}from"@jamsrui/hooks";import{Fragment as m,jsx as n,jsxs as i}from"react/jsx-runtime";var b=o=>{let{getControlProps:p}=e(),{children:c=n(r,{})}=o;return s("div",{props:[p(o),{children:i(m,{children:[n(t,{}),c]})}]})};export{b as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-2J6T2HMK.mjs";import{b as e}from"./chunk-DOBJZMCO.mjs";import{jsx as c}from"react/jsx-runtime";var p=r=>{let{getIndicatorProps:i,isChecked:n}=e(),{children:o=c(t,{})}=r,s=typeof o=="function"?o({isChecked:n}):o;return c("div",{...i({}),children:s})};export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-DOBJZMCO.mjs";import{useRenderElement as r}from"@jamsrui/hooks";var m=t=>{let{getRootProps:o}=e();return r("div",{props:[o()]})};export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./chunk-
|
|
1
|
+
import{b as e}from"./chunk-DOBJZMCO.mjs";import{useRenderElement as r}from"@jamsrui/hooks";var m=t=>{let{getContentProps:o}=e();return r("div",{props:[o(t)]})};export{m as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{groupDataFocusVisibleClasses as e,radiusVariant as o,tv as r}from"@jamsrui/utils";var a=r({slots:{root:["checkbox group flex gap-2 items-start","data-disabled:opacity-60 data-disabled:cursor-not-allowed"],control:["checkbox__control flex justify-center items-center",...e,"shrink-0 border-default uig-hover:border-default-hover","relative appearance-none border uig-checked:border-primary uig-checked:bg-primary","uig-disabled:cursor-not-allowed uig-pressed:scale-90 transition-all duration-300"],input:"checkbox__input absolute opacity-[0.0001] cursor-default disabled:cursor-not-allowed inset-0 z-1",content:"checkbox__content flex flex-col justify-center gap-1",indicator:"checkbox__indicator size-3"},variants:{size:{sm:{root:"checkbox--sm",control:"size-4"},md:{root:"checkbox--md",control:"size-4.5"},lg:{root:"checkbox--lg",control:"size-5"}},isInvalid:{true:{control:"border-danger! uig-checked:bg-danger"}},radius:o("control")},defaultVariants:{radius:"md",size:"md"}});export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-UWHNW7HC.mjs";import{b as r}from"./chunk-IYBWXFEX.mjs";import{a as x}from"./chunk-ISDBRPPK.mjs";import{a as c}from"./chunk-DOBJZMCO.mjs";import{FieldA11yContext as m,useFieldA11y as p}from"@jamsrui/context";import{mergeConfigProps as f}from"@jamsrui/utils";import{jsx as o}from"react/jsx-runtime";var g=e=>{let t=r(),C=f(t,t,e),i=n(C),s=p();return o(c,{value:i,children:o(m,{value:s,children:o(x,{children:e.children})})})};export{g as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-RXTCDVRE.mjs";import{useCallback as a,useMemo as E}from"react";import{useControlledState as F,useFocusVisible as U,useHover as j,useMergeRefs as K,usePress as L}from"@jamsrui/hooks";import{dataAttr as s,dataAttrDev as r,mapPropsVariants as O,mergeProps as S}from"@jamsrui/utils";var z=y=>{let[R,h]=O(y,m.variantKeys),{isInvalid:b}=h,o=m(h),{isChecked:V,onCheckedChange:i,defaultChecked:p,isIntermediate:c,disabled:G=!1,inputProps:H,...d}=R,t=G,[n=!1,C]=F({defaultProp:p,prop:V,onChange:i}),{isFocusVisible:k,ref:M}=U({isDisabled:t}),{isPressed:u,ref:A}=L({isDisabled:t}),{isHovered:P,ref:D}=j({isDisabled:t}),f=K([M,A,D]),l=a(e=>{C(e.target.checked)},[C]),x=a(()=>({...d,className:o.root({className:d.className}),"data-slot":r("root"),"data-component":r("checkbox"),"data-checked":s(n||c),"data-focus-visible":s(k),"data-pressed":s(u),"data-hovered":s(P),"data-disabled":s(t),"aria-disabled":s(t),"data-invalid":s(b)}),[d,n,t,k,P,c,u,b,o]),g=a(e=>({onChange:l,...S(e,H,{onChange:l}),disabled:t,"aria-disabled":s(t),ref:f,type:"checkbox","data-slot":r("input"),className:o.input({className:e.className})}),[l,t,f,o]),N=a(e=>({...e,"data-slot":r("content"),className:o.content({className:e.className})}),[o]),I=a(e=>({...e,"data-slot":r("control"),className:o.control({className:e.className})}),[o]),v=a(e=>({...e,"data-slot":r("indicator"),className:o.indicator({className:e.className})}),[o]);return E(()=>({getRootProps:x,getInputProps:g,getContentProps:N,getControlProps:I,getIndicatorProps:v,onCheckedChange:i,defaultChecked:p,isChecked:n,isIntermediate:c}),[p,N,g,x,I,v,n,c,i])};export{z as a};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { Checkbox as Checkbox$1 } from './checkbox.mjs';
|
|
4
|
+
import { CheckboxContent } from './checkbox-content.mjs';
|
|
5
|
+
import { CheckboxControl } from './checkbox-control.mjs';
|
|
6
|
+
import { CheckboxIndicator } from './checkbox-indicator.mjs';
|
|
2
7
|
export { CheckboxConfig, useCheckboxConfig } from './checkbox-config.mjs';
|
|
3
|
-
import '
|
|
4
|
-
import './primitive/use-checkbox.mjs';
|
|
5
|
-
import 'react';
|
|
8
|
+
import './use-checkbox.mjs';
|
|
6
9
|
import '@jamsrui/utils';
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './primitive/checkbox-input.mjs';
|
|
11
|
-
import './primitive/checkbox-label.mjs';
|
|
12
|
-
import './primitive/checkbox-root.mjs';
|
|
13
|
-
import './primitive/checkbox-trigger.mjs';
|
|
14
|
-
import './primitive/checkbox-wrapper.mjs';
|
|
15
|
-
import './primitive/styles.mjs';
|
|
10
|
+
import './checkbox-input.mjs';
|
|
11
|
+
import './checkbox-root.mjs';
|
|
12
|
+
import './styles.mjs';
|
|
16
13
|
import '@jamsrui/core';
|
|
14
|
+
|
|
15
|
+
declare const Checkbox: ((props: Checkbox$1.Props) => react_jsx_runtime.JSX.Element) & {
|
|
16
|
+
Control: (props: CheckboxControl.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
17
|
+
Indicator: (props: CheckboxIndicator.Props) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
Content: (props: CheckboxContent.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
19
|
+
};
|
|
20
|
+
type Checkbox = {
|
|
21
|
+
Root: Checkbox$1.Props;
|
|
22
|
+
Control: CheckboxControl.Props;
|
|
23
|
+
Indicator: CheckboxIndicator.Props;
|
|
24
|
+
Content: CheckboxContent.Props;
|
|
25
|
+
};
|
|
26
|
+
type CheckboxProps = Checkbox$1.Props;
|
|
27
|
+
|
|
28
|
+
export { Checkbox, type CheckboxProps };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{a as r}from"./chunk-TPT76VDI.mjs";import"./chunk-UWHNW7HC.mjs";import"./chunk-RXTCDVRE.mjs";import{a as C,b as c}from"./chunk-IYBWXFEX.mjs";import{a as o}from"./chunk-PN7YXAUC.mjs";import{a as e}from"./chunk-FSRSJ6IY.mjs";import{a as t}from"./chunk-H4JJIOAG.mjs";import"./chunk-2J6T2HMK.mjs";import"./chunk-FMMEMRGI.mjs";import"./chunk-ISDBRPPK.mjs";import"./chunk-DOBJZMCO.mjs";var h=Object.assign(r,{Control:e,Indicator:t,Content:o});export{h as Checkbox,C as CheckboxConfig,c as useCheckboxConfig};
|
|
@@ -4,13 +4,21 @@ import { VariantProps } from '@jamsrui/utils';
|
|
|
4
4
|
declare const checkboxVariants: _jamsrui_utils.TVReturnType<{
|
|
5
5
|
size: {
|
|
6
6
|
sm: {
|
|
7
|
-
|
|
7
|
+
root: string;
|
|
8
|
+
control: string;
|
|
8
9
|
};
|
|
9
10
|
md: {
|
|
10
|
-
|
|
11
|
+
root: string;
|
|
12
|
+
control: string;
|
|
11
13
|
};
|
|
12
14
|
lg: {
|
|
13
|
-
|
|
15
|
+
root: string;
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
isInvalid: {
|
|
20
|
+
true: {
|
|
21
|
+
control: string;
|
|
14
22
|
};
|
|
15
23
|
};
|
|
16
24
|
radius: {
|
|
@@ -25,23 +33,28 @@ declare const checkboxVariants: _jamsrui_utils.TVReturnType<{
|
|
|
25
33
|
};
|
|
26
34
|
}, {
|
|
27
35
|
root: string[];
|
|
28
|
-
|
|
29
|
-
label: string[];
|
|
30
|
-
trigger: string[];
|
|
36
|
+
control: string[];
|
|
31
37
|
input: string;
|
|
32
|
-
description: string;
|
|
33
38
|
content: string;
|
|
34
|
-
|
|
39
|
+
indicator: string;
|
|
35
40
|
}, undefined, {
|
|
36
41
|
size: {
|
|
37
42
|
sm: {
|
|
38
|
-
|
|
43
|
+
root: string;
|
|
44
|
+
control: string;
|
|
39
45
|
};
|
|
40
46
|
md: {
|
|
41
|
-
|
|
47
|
+
root: string;
|
|
48
|
+
control: string;
|
|
42
49
|
};
|
|
43
50
|
lg: {
|
|
44
|
-
|
|
51
|
+
root: string;
|
|
52
|
+
control: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
isInvalid: {
|
|
56
|
+
true: {
|
|
57
|
+
control: string;
|
|
45
58
|
};
|
|
46
59
|
};
|
|
47
60
|
radius: {
|
|
@@ -56,23 +69,28 @@ declare const checkboxVariants: _jamsrui_utils.TVReturnType<{
|
|
|
56
69
|
};
|
|
57
70
|
}, {
|
|
58
71
|
root: string[];
|
|
59
|
-
|
|
60
|
-
label: string[];
|
|
61
|
-
trigger: string[];
|
|
72
|
+
control: string[];
|
|
62
73
|
input: string;
|
|
63
|
-
description: string;
|
|
64
74
|
content: string;
|
|
65
|
-
|
|
75
|
+
indicator: string;
|
|
66
76
|
}, _jamsrui_utils.TVReturnType<{
|
|
67
77
|
size: {
|
|
68
78
|
sm: {
|
|
69
|
-
|
|
79
|
+
root: string;
|
|
80
|
+
control: string;
|
|
70
81
|
};
|
|
71
82
|
md: {
|
|
72
|
-
|
|
83
|
+
root: string;
|
|
84
|
+
control: string;
|
|
73
85
|
};
|
|
74
86
|
lg: {
|
|
75
|
-
|
|
87
|
+
root: string;
|
|
88
|
+
control: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
isInvalid: {
|
|
92
|
+
true: {
|
|
93
|
+
control: string;
|
|
76
94
|
};
|
|
77
95
|
};
|
|
78
96
|
radius: {
|
|
@@ -87,13 +105,10 @@ declare const checkboxVariants: _jamsrui_utils.TVReturnType<{
|
|
|
87
105
|
};
|
|
88
106
|
}, {
|
|
89
107
|
root: string[];
|
|
90
|
-
|
|
91
|
-
label: string[];
|
|
92
|
-
trigger: string[];
|
|
108
|
+
control: string[];
|
|
93
109
|
input: string;
|
|
94
|
-
description: string;
|
|
95
110
|
content: string;
|
|
96
|
-
|
|
111
|
+
indicator: string;
|
|
97
112
|
}, undefined, unknown, unknown, undefined>>;
|
|
98
113
|
type CheckboxVariantProps = VariantProps<typeof checkboxVariants>;
|
|
99
114
|
type CheckboxSlots = keyof ReturnType<typeof checkboxVariants>;
|
package/dist/styles.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-RXTCDVRE.mjs";export{a as checkboxVariants};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PropGetter, UIProps } from '@jamsrui/utils';
|
|
2
|
+
import { CheckboxContent } from './checkbox-content.mjs';
|
|
3
|
+
import { CheckboxControl } from './checkbox-control.mjs';
|
|
4
|
+
import { CheckboxIndicator } from './checkbox-indicator.mjs';
|
|
5
|
+
import { CheckboxInput } from './checkbox-input.mjs';
|
|
6
|
+
import { CheckboxRoot } from './checkbox-root.mjs';
|
|
7
|
+
import { CheckboxVariantProps } from './styles.mjs';
|
|
8
|
+
import 'react';
|
|
9
|
+
import 'react/jsx-runtime';
|
|
10
|
+
|
|
11
|
+
declare const useCheckbox: (props: useCheckbox.Props) => {
|
|
12
|
+
getRootProps: () => CheckboxRoot.Props;
|
|
13
|
+
getInputProps: PropGetter<CheckboxInput.Props>;
|
|
14
|
+
getContentProps: PropGetter<CheckboxContent.Props>;
|
|
15
|
+
getControlProps: PropGetter<CheckboxControl.Props>;
|
|
16
|
+
getIndicatorProps: PropGetter<CheckboxIndicator.Props>;
|
|
17
|
+
onCheckedChange: ((checked: boolean) => void) | undefined;
|
|
18
|
+
defaultChecked: boolean | undefined;
|
|
19
|
+
isChecked: boolean;
|
|
20
|
+
isIntermediate: boolean | undefined;
|
|
21
|
+
};
|
|
22
|
+
declare namespace useCheckbox {
|
|
23
|
+
interface Props extends CheckboxRoot.Props, CheckboxVariantProps {
|
|
24
|
+
defaultChecked?: boolean;
|
|
25
|
+
isChecked?: boolean;
|
|
26
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
27
|
+
isIntermediate?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
inputProps?: UIProps<"input">;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { useCheckbox };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-UWHNW7HC.mjs";import"./chunk-RXTCDVRE.mjs";export{a as useCheckbox};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/checkbox",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
"react": ">=19"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@jamsrui/
|
|
20
|
-
"@jamsrui/
|
|
21
|
-
"@jamsrui/
|
|
22
|
-
"@jamsrui/
|
|
19
|
+
"@jamsrui/context": "^0.0.2",
|
|
20
|
+
"@jamsrui/core": "^0.0.11",
|
|
21
|
+
"@jamsrui/slot": "^0.0.12",
|
|
22
|
+
"@jamsrui/hooks": "^0.0.13",
|
|
23
|
+
"@jamsrui/utils": "^0.0.13"
|
|
23
24
|
},
|
|
24
25
|
"description": "A modern and beautiful Next.js UI components library.",
|
|
25
26
|
"keywords": [
|
package/dist/chunk-3G33TKQ4.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-KDGIZLWZ.mjs";import{useRenderElement as s}from"@jamsrui/hooks";var m=r=>{let{getErrorMessageProps:o}=e();return s("span",{props:[o(r)]})};export{m as a};
|
package/dist/chunk-5E6RGSS7.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-7HSMKJZT.mjs";import{b as r}from"./chunk-NLSTQYND.mjs";import{a as t}from"./chunk-KDGIZLWZ.mjs";import{mergeConfigProps as s}from"@jamsrui/utils";import{jsx as C}from"react/jsx-runtime";var f=o=>{let e=r(),x=s(e,e,o),n=c(x);return C(t,{value:n,children:o.children})};export{f as a};
|
package/dist/chunk-7HSMKJZT.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as h}from"./chunk-RITKX3B2.mjs";import{useCallback as r,useId as H,useMemo as W}from"react";import{useControlledState as A,useFocusVisible as U,useHover as j,useMergeRefs as K,usePress as O}from"@jamsrui/hooks";import{cn as c,dataAttr as p,dataAttrDev as a,mapPropsVariants as $,mergeProps as q}from"@jamsrui/utils";var X=D=>{let[T,w]=$(D,h.variantKeys),o=h(w),{isChecked:E,onCheckedChange:m,defaultChecked:d,classNames:s,isDisabled:t=!1,children:k,isIntermediate:n,...b}=T,[i=!1,C]=A({defaultProp:d,prop:E,onChange:m}),l=H(),{isFocusVisible:g,ref:S}=U({isDisabled:t}),{isPressed:P,ref:L}=O({isDisabled:t}),{isHovered:x,ref:F}=j({isDisabled:t}),u=K([S,L,F]),f=r(e=>{C(e.target.checked)},[C]),N=r(e=>({...e,className:o.root({className:c(s?.root)}),"data-slot":a("root"),"data-component":a("checkbox"),"data-checked":p(i||n),"data-focus-visible":p(g),"data-pressed":p(P),"data-hovered":p(x),"data-disabled":p(t),"aria-disabled":p(t)}),[s?.root,i,t,g,x,n,P,o]),y=r(e=>({...q(b,e,{onChange:f}),disabled:t,"aria-disabled":p(t),id:l,ref:u,type:"checkbox","data-slot":a("input"),className:o.input({className:c(s?.input,b.className,e.className)})}),[b,f,t,l,u,o,s?.input]),I=r(e=>({...e,"data-slot":a("wrapper"),className:o.wrapper({className:c(s?.wrapper,e.className)})}),[s?.wrapper,o]),v=r(e=>({...e,htmlFor:l,"data-slot":a("label"),className:o.label({className:c(s?.label,e.className)})}),[s?.label,l,o]),M=r(e=>({...e,"data-slot":a("trigger"),className:o.trigger({className:c(s?.trigger,e.className)})}),[s?.trigger,o]),G=r(e=>({...e,"data-slot":a("description"),className:o.description({className:c(s?.description,e.className)})}),[s?.description,o]),R=r(e=>({...e,"data-slot":a("content"),className:o.content({className:c(s?.content,e.className)})}),[s?.content,o]),V=r(e=>({...e,"data-slot":a("errorMessage"),className:o.errorMessage({className:c(s?.errorMessage,e.className)})}),[s?.errorMessage,o]);return W(()=>({getRootProps:N,getWrapperProps:I,getLabelProps:v,getInputProps:y,getTriggerProps:M,getDescriptionProps:G,getContentProps:R,onCheckedChange:m,getErrorMessageProps:V,defaultChecked:d,isChecked:i,children:k,isIntermediate:n}),[k,d,R,G,V,y,v,N,M,I,i,n,m])};export{X as a};
|
package/dist/chunk-D3WPBLWY.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-KDGIZLWZ.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var l=r=>{let{getLabelProps:o}=e();return t("label",{props:[o(r)]})};export{l as a};
|
package/dist/chunk-E2NBJUXC.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-KDGIZLWZ.mjs";import{useRenderElement as o}from"@jamsrui/hooks";var m=t=>{let{getInputProps:r}=e();return o("input",{props:[r(t)]})};export{m as a};
|
package/dist/chunk-FRNI2QCP.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i}from"./chunk-MSMN3ONF.mjs";import{a as k}from"./chunk-E2NBJUXC.mjs";import{a}from"./chunk-D3WPBLWY.mjs";import{a as m}from"./chunk-K6B3YVFR.mjs";import{a as g}from"./chunk-SFX35YBW.mjs";import{a as S}from"./chunk-SDIPXW2A.mjs";import{a as b}from"./chunk-7HSMKJZT.mjs";import{b as C}from"./chunk-IYBWXFEX.mjs";import{a as n}from"./chunk-HM5E5R22.mjs";import{a as p}from"./chunk-UTQSFGB2.mjs";import{a as h}from"./chunk-3G33TKQ4.mjs";import{a as x}from"./chunk-KDGIZLWZ.mjs";import{Slot as t}from"@jamsrui/slot";import{mergeConfigProps as T}from"@jamsrui/utils";import{jsx as o,jsxs as r}from"react/jsx-runtime";var I=f=>{let l=C(),u=T(l,l,f),{label:c,children:s,slots:e,...d}=u,P=b(d),R=!!c||!!s;return o(x,{value:P,children:o(t,{slot:e?.root,children:r(m,{children:[o(t,{slot:e?.wrapper,children:r(S,{children:[o(t,{slot:e?.trigger,children:r(g,{children:[o(i,{}),o(t,{slot:e?.input,children:o(k,{})})]})}),R?o(t,{slot:e?.content,children:r(n,{children:[!!c&&o(t,{slot:e?.label,children:o(a,{children:c})}),!!s&&o(t,{slot:e?.description,children:o(p,{children:s})})]})}):null]})}),o(h,{})]})})})};export{I as a};
|
package/dist/chunk-K6B3YVFR.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-KDGIZLWZ.mjs";import{useRenderElement as r}from"@jamsrui/hooks";var m=o=>{let{getRootProps:t}=e();return r("div",{props:[t(o)]})};export{m as a};
|
package/dist/chunk-MSMN3ONF.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as o}from"./chunk-KDGIZLWZ.mjs";import{motion as n}from"motion/react";import{jsx as t}from"react/jsx-runtime";var a={pressed:{pathLength:.5},checked:{pathLength:1,opacity:1,transition:{duration:.2}},unchecked:{pathLength:0,opacity:0,transition:{duration:.2}}},c=()=>{let{isChecked:i,isIntermediate:e}=o();return t("div",{className:"pointer-events-none absolute left-1/2 top-1/2 z-10 -translate-x-1/2 -translate-y-1/2 text-primary-foreground","data-slot":"icon",children:t(n.svg,{animate:i||e?"checked":"unchecked",className:"size-3.5",fill:"none",initial:!1,stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:t(n.path,{d:e?"M5 12h14":"M4.5 12.75l6 6 9-13.5",strokeLinecap:"round",strokeLinejoin:"round",variants:a})})})};export{c as a};
|
package/dist/chunk-NLSTQYND.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createConfigContext as o}from"@jamsrui/utils";var[r,C]=o({displayName:"CheckboxConfig"});export{r as a,C as b};
|
package/dist/chunk-Q4LWW3NN.mjs
DELETED
|
File without changes
|
package/dist/chunk-RITKX3B2.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{groupDataFocusVisibleClasses as e,radiusVariant as r,tv as o}from"@jamsrui/utils";var i=o({slots:{root:["group flex flex-col gap-2","ui-disabled:opacity-60","ui-disabled:cursor-not-allowed"],wrapper:"flex gap-2",label:["shrink-0 text-sm font-normal leading-none text-foreground uig-interactive:cursor-pointer uig-disabled:cursor-not-allowed","select-none"],trigger:[...e,"border-default uig-hover:border-default-hover","relative size-5 appearance-none border uig-checked:border-primary uig-checked:bg-primary uig-interactive:cursor-pointer","uig-disabled:cursor-not-allowed uig-pressed:scale-90 transition-all duration-300"],input:"absolute opacity-[0.0001] cursor-pointer disabled:cursor-not-allowed inset-0 z-1",description:"text-xs text-foreground-secondary",content:"flex flex-col justify-center gap-1",errorMessage:""},variants:{size:{sm:{trigger:"size-4"},md:{trigger:"size-4.5"},lg:{trigger:"size-5.5"}},radius:r("trigger")},defaultVariants:{radius:"md",size:"md"}});export{i as a};
|
package/dist/chunk-SDIPXW2A.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-KDGIZLWZ.mjs";import{useRenderElement as p}from"@jamsrui/hooks";var m=r=>{let{getWrapperProps:o}=e();return p("div",{props:[o(r)]})};export{m as a};
|
package/dist/chunk-SFX35YBW.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-KDGIZLWZ.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var i=r=>{let{getTriggerProps:o}=e();return t("div",{props:[o(r)]})};export{i as a};
|
package/dist/chunk-UTQSFGB2.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as e}from"./chunk-KDGIZLWZ.mjs";import{useRenderElement as t}from"@jamsrui/hooks";var i=r=>{let{getDescriptionProps:o}=e();return t("div",{props:[o(r)]})};export{i as a};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { GlobalConfigProps } from '@jamsrui/core';
|
|
3
|
-
import { Checkbox } from './checkbox.mjs';
|
|
4
|
-
import './use-checkbox.mjs';
|
|
5
|
-
import 'react';
|
|
6
|
-
import '@jamsrui/utils';
|
|
7
|
-
import './checkbox-content.mjs';
|
|
8
|
-
import './checkbox-description.mjs';
|
|
9
|
-
import './checkbox-error-message.mjs';
|
|
10
|
-
import './checkbox-input.mjs';
|
|
11
|
-
import './checkbox-label.mjs';
|
|
12
|
-
import './checkbox-root.mjs';
|
|
13
|
-
import './checkbox-trigger.mjs';
|
|
14
|
-
import './checkbox-wrapper.mjs';
|
|
15
|
-
import './styles.mjs';
|
|
16
|
-
|
|
17
|
-
declare const useCheckboxConfig: () => CheckboxConfig.Props;
|
|
18
|
-
declare const CheckboxConfig: (props: Omit<Partial<CheckboxConfig.Props>, "children"> & {
|
|
19
|
-
merge?: boolean;
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
22
|
-
declare namespace CheckboxConfig {
|
|
23
|
-
interface Props extends Checkbox.Props, GlobalConfigProps<Checkbox.Props> {
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { CheckboxConfig, useCheckboxConfig };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-NLSTQYND.mjs";export{a as CheckboxConfig,b as useCheckboxConfig};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-HM5E5R22.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as CheckboxContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-KDGIZLWZ.mjs";export{a as CheckboxContext,b as useCheckboxContext};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const CheckboxDescription: (props: CheckboxDescription.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace CheckboxDescription {
|
|
6
|
-
interface Props extends UIProps<"div"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { CheckboxDescription };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-UTQSFGB2.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as CheckboxDescription};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const CheckboxErrorMessage: (props: CheckboxErrorMessage.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace CheckboxErrorMessage {
|
|
6
|
-
interface Props extends UIProps<"span"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { CheckboxErrorMessage };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-3G33TKQ4.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as CheckboxErrorMessage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-MSMN3ONF.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as CheckboxIcon};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-E2NBJUXC.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as CheckboxInput};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const CheckboxLabel: (props: CheckboxLabel.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace CheckboxLabel {
|
|
6
|
-
interface Props extends UIProps<"label"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { CheckboxLabel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-D3WPBLWY.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as CheckboxLabel};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const CheckboxRoot: (prop: CheckboxRoot.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace CheckboxRoot {
|
|
6
|
-
interface Props extends UIProps<"input"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { CheckboxRoot };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-K6B3YVFR.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as CheckboxRoot};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-SFX35YBW.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as CheckboxTrigger};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { UIProps } from '@jamsrui/utils';
|
|
3
|
-
|
|
4
|
-
declare const CheckboxWrapper: (props: CheckboxWrapper.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
5
|
-
declare namespace CheckboxWrapper {
|
|
6
|
-
interface Props extends UIProps<"div"> {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { CheckboxWrapper };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-SDIPXW2A.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as CheckboxWrapper};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { useCheckbox } from './use-checkbox.mjs';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '@jamsrui/utils';
|
|
5
|
-
import './checkbox-content.mjs';
|
|
6
|
-
import './checkbox-description.mjs';
|
|
7
|
-
import './checkbox-error-message.mjs';
|
|
8
|
-
import './checkbox-input.mjs';
|
|
9
|
-
import './checkbox-label.mjs';
|
|
10
|
-
import './checkbox-root.mjs';
|
|
11
|
-
import './checkbox-trigger.mjs';
|
|
12
|
-
import './checkbox-wrapper.mjs';
|
|
13
|
-
import './styles.mjs';
|
|
14
|
-
|
|
15
|
-
declare const Checkbox: (props: Checkbox.Props) => react_jsx_runtime.JSX.Element;
|
|
16
|
-
declare namespace Checkbox {
|
|
17
|
-
interface Props extends useCheckbox.Props {
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { Checkbox };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-5E6RGSS7.mjs";import"../chunk-7HSMKJZT.mjs";import"../chunk-RITKX3B2.mjs";import"../chunk-NLSTQYND.mjs";import"../chunk-KDGIZLWZ.mjs";export{a as Checkbox};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { Checkbox } from './checkbox.mjs';
|
|
2
|
-
export { CheckboxConfig, useCheckboxConfig } from './checkbox-config.mjs';
|
|
3
|
-
export { CheckboxContent } from './checkbox-content.mjs';
|
|
4
|
-
export { CheckboxContext, useCheckboxContext } from './checkbox-context.mjs';
|
|
5
|
-
export { CheckboxDescription } from './checkbox-description.mjs';
|
|
6
|
-
export { CheckboxErrorMessage } from './checkbox-error-message.mjs';
|
|
7
|
-
export { CheckboxIcon } from './checkbox-icon.mjs';
|
|
8
|
-
export { CheckboxInput } from './checkbox-input.mjs';
|
|
9
|
-
export { CheckboxLabel } from './checkbox-label.mjs';
|
|
10
|
-
export { CheckboxRoot } from './checkbox-root.mjs';
|
|
11
|
-
export { CheckboxTrigger } from './checkbox-trigger.mjs';
|
|
12
|
-
export { CheckboxWrapper } from './checkbox-wrapper.mjs';
|
|
13
|
-
export { useCheckbox } from './use-checkbox.mjs';
|
|
14
|
-
import 'react/jsx-runtime';
|
|
15
|
-
import '@jamsrui/core';
|
|
16
|
-
import 'react';
|
|
17
|
-
import '@jamsrui/utils';
|
|
18
|
-
import './styles.mjs';
|
package/dist/primitive/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import"../chunk-Q4LWW3NN.mjs";import{a as j}from"../chunk-MSMN3ONF.mjs";import{a as k}from"../chunk-E2NBJUXC.mjs";import{a as l}from"../chunk-D3WPBLWY.mjs";import{a as m}from"../chunk-K6B3YVFR.mjs";import{a as n}from"../chunk-SFX35YBW.mjs";import{a as o}from"../chunk-SDIPXW2A.mjs";import{a as f}from"../chunk-5E6RGSS7.mjs";import{a as e}from"../chunk-7HSMKJZT.mjs";import"../chunk-RITKX3B2.mjs";import{a,b}from"../chunk-NLSTQYND.mjs";import{a as g}from"../chunk-HM5E5R22.mjs";import{a as h}from"../chunk-UTQSFGB2.mjs";import{a as i}from"../chunk-3G33TKQ4.mjs";import{a as c,b as d}from"../chunk-KDGIZLWZ.mjs";export{f as Checkbox,a as CheckboxConfig,g as CheckboxContent,c as CheckboxContext,h as CheckboxDescription,i as CheckboxErrorMessage,j as CheckboxIcon,k as CheckboxInput,l as CheckboxLabel,m as CheckboxRoot,n as CheckboxTrigger,o as CheckboxWrapper,e as useCheckbox,b as useCheckboxConfig,d as useCheckboxContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-RITKX3B2.mjs";export{a as checkboxVariants};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
3
|
-
import { CheckboxContent } from './checkbox-content.mjs';
|
|
4
|
-
import { CheckboxDescription } from './checkbox-description.mjs';
|
|
5
|
-
import { CheckboxErrorMessage } from './checkbox-error-message.mjs';
|
|
6
|
-
import { CheckboxInput } from './checkbox-input.mjs';
|
|
7
|
-
import { CheckboxLabel } from './checkbox-label.mjs';
|
|
8
|
-
import { CheckboxRoot } from './checkbox-root.mjs';
|
|
9
|
-
import { CheckboxTrigger } from './checkbox-trigger.mjs';
|
|
10
|
-
import { CheckboxWrapper } from './checkbox-wrapper.mjs';
|
|
11
|
-
import { CheckboxVariantProps, CheckboxSlots } from './styles.mjs';
|
|
12
|
-
|
|
13
|
-
declare const useCheckbox: (props: useCheckbox.Props) => {
|
|
14
|
-
getRootProps: PropGetter<CheckboxRoot.Props>;
|
|
15
|
-
getWrapperProps: PropGetter<CheckboxWrapper.Props>;
|
|
16
|
-
getLabelProps: PropGetter<CheckboxLabel.Props>;
|
|
17
|
-
getInputProps: PropGetter<CheckboxInput.Props>;
|
|
18
|
-
getTriggerProps: PropGetter<CheckboxTrigger.Props>;
|
|
19
|
-
getDescriptionProps: PropGetter<CheckboxDescription.Props>;
|
|
20
|
-
getContentProps: PropGetter<CheckboxContent.Props>;
|
|
21
|
-
onCheckedChange: ((checked: boolean) => void) | undefined;
|
|
22
|
-
getErrorMessageProps: PropGetter<CheckboxErrorMessage.Props>;
|
|
23
|
-
defaultChecked: boolean | undefined;
|
|
24
|
-
isChecked: boolean;
|
|
25
|
-
children: react.ReactNode;
|
|
26
|
-
isIntermediate: boolean | undefined;
|
|
27
|
-
};
|
|
28
|
-
declare namespace useCheckbox {
|
|
29
|
-
interface Props extends UIProps<"input">, CheckboxVariantProps {
|
|
30
|
-
defaultChecked?: boolean;
|
|
31
|
-
isChecked?: boolean;
|
|
32
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
33
|
-
classNames?: SlotsToClassNames<CheckboxSlots>;
|
|
34
|
-
isDisabled?: boolean;
|
|
35
|
-
isIntermediate?: boolean;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { useCheckbox };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-7HSMKJZT.mjs";import"../chunk-RITKX3B2.mjs";export{a as useCheckbox};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|