@seed-design/react-checkbox 0.0.1 → 0.0.2
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/lib/index.d.ts +18 -8
- package/package.json +8 -6
package/lib/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ type UseCheckboxReturn = ReturnType<typeof useCheckbox>;
|
|
|
16
16
|
declare function useCheckbox(props: UseCheckboxProps): {
|
|
17
17
|
indeterminate: boolean;
|
|
18
18
|
checked: boolean;
|
|
19
|
-
setChecked: react.
|
|
19
|
+
setChecked: (value: react.SetStateAction<boolean>) => void;
|
|
20
20
|
focused: boolean;
|
|
21
21
|
setFocused: react.Dispatch<react.SetStateAction<boolean>>;
|
|
22
22
|
focusVisible: boolean;
|
|
@@ -74,6 +74,8 @@ declare function useCheckbox(props: UseCheckboxProps): {
|
|
|
74
74
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
75
75
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
76
76
|
is?: string | undefined | undefined;
|
|
77
|
+
exportparts?: string | undefined | undefined;
|
|
78
|
+
part?: string | undefined | undefined;
|
|
77
79
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
78
80
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
79
81
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -342,6 +344,8 @@ declare function useCheckbox(props: UseCheckboxProps): {
|
|
|
342
344
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
343
345
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
344
346
|
is?: string | undefined | undefined;
|
|
347
|
+
exportparts?: string | undefined | undefined;
|
|
348
|
+
part?: string | undefined | undefined;
|
|
345
349
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
346
350
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
347
351
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -612,6 +616,8 @@ declare function useCheckbox(props: UseCheckboxProps): {
|
|
|
612
616
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
613
617
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
614
618
|
is?: string | undefined | undefined;
|
|
619
|
+
exportparts?: string | undefined | undefined;
|
|
620
|
+
part?: string | undefined | undefined;
|
|
615
621
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
616
622
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
617
623
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -833,6 +839,7 @@ declare function useCheckbox(props: UseCheckboxProps): {
|
|
|
833
839
|
hiddenInputProps: {
|
|
834
840
|
disabled?: boolean | undefined | undefined;
|
|
835
841
|
required?: boolean | undefined | undefined;
|
|
842
|
+
checked?: boolean | undefined | undefined;
|
|
836
843
|
defaultChecked?: boolean | undefined | undefined;
|
|
837
844
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
838
845
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -882,6 +889,8 @@ declare function useCheckbox(props: UseCheckboxProps): {
|
|
|
882
889
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
883
890
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
884
891
|
is?: string | undefined | undefined;
|
|
892
|
+
exportparts?: string | undefined | undefined;
|
|
893
|
+
part?: string | undefined | undefined;
|
|
885
894
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
886
895
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
887
896
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -1099,21 +1108,18 @@ declare function useCheckbox(props: UseCheckboxProps): {
|
|
|
1099
1108
|
onAnimationIterationCapture?: react.AnimationEventHandler<HTMLInputElement> | undefined;
|
|
1100
1109
|
onTransitionEnd?: react.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1101
1110
|
onTransitionEndCapture?: react.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
1102
|
-
form?: string | undefined | undefined;
|
|
1103
|
-
list?: string | undefined | undefined;
|
|
1104
|
-
step?: number | string | undefined | undefined;
|
|
1105
|
-
type?: react.HTMLInputTypeAttribute | undefined;
|
|
1106
|
-
checked?: boolean | undefined | undefined;
|
|
1107
1111
|
accept?: string | undefined | undefined;
|
|
1108
1112
|
alt?: string | undefined | undefined;
|
|
1109
1113
|
autoComplete?: react.HTMLInputAutoCompleteAttribute | undefined;
|
|
1110
1114
|
capture?: boolean | "user" | "environment" | undefined | undefined;
|
|
1115
|
+
form?: string | undefined | undefined;
|
|
1111
1116
|
formAction?: string | undefined;
|
|
1112
1117
|
formEncType?: string | undefined | undefined;
|
|
1113
1118
|
formMethod?: string | undefined | undefined;
|
|
1114
1119
|
formNoValidate?: boolean | undefined | undefined;
|
|
1115
1120
|
formTarget?: string | undefined | undefined;
|
|
1116
1121
|
height?: number | string | undefined | undefined;
|
|
1122
|
+
list?: string | undefined | undefined;
|
|
1117
1123
|
max?: number | string | undefined | undefined;
|
|
1118
1124
|
maxLength?: number | undefined | undefined;
|
|
1119
1125
|
min?: number | string | undefined | undefined;
|
|
@@ -1125,6 +1131,8 @@ declare function useCheckbox(props: UseCheckboxProps): {
|
|
|
1125
1131
|
readOnly?: boolean | undefined | undefined;
|
|
1126
1132
|
size?: number | undefined | undefined;
|
|
1127
1133
|
src?: string | undefined | undefined;
|
|
1134
|
+
step?: number | string | undefined | undefined;
|
|
1135
|
+
type?: react.HTMLInputTypeAttribute | undefined;
|
|
1128
1136
|
value?: string | number | readonly string[] | undefined;
|
|
1129
1137
|
width?: number | string | undefined | undefined;
|
|
1130
1138
|
};
|
|
@@ -1147,7 +1155,9 @@ declare function useCheckboxContext<T extends boolean | undefined = true>({ stri
|
|
|
1147
1155
|
}): T extends false ? UseCheckboxContext | null : UseCheckboxContext;
|
|
1148
1156
|
|
|
1149
1157
|
declare namespace Checkbox_namespace {
|
|
1150
|
-
export { CheckboxControl as Control,
|
|
1158
|
+
export { CheckboxControl as Control, CheckboxHiddenInput as HiddenInput, CheckboxRoot as Root };
|
|
1159
|
+
export type { CheckboxControlProps as ControlProps, CheckboxHiddenInputProps as HiddenInputProps, CheckboxRootProps as RootProps };
|
|
1151
1160
|
}
|
|
1152
1161
|
|
|
1153
|
-
export { Checkbox_namespace as Checkbox, CheckboxControl,
|
|
1162
|
+
export { Checkbox_namespace as Checkbox, CheckboxControl, CheckboxHiddenInput, CheckboxRoot, useCheckboxContext };
|
|
1163
|
+
export type { CheckboxControlProps, CheckboxHiddenInputProps, CheckboxRootProps, UseCheckboxContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seed-design/react-checkbox",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/daangn/seed-design.git",
|
|
@@ -27,13 +27,15 @@
|
|
|
27
27
|
"lint:publish": "bun publint"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@radix-ui/react-compose-refs": "^1.1.
|
|
31
|
-
"@radix-ui/react-use-controllable-state": "1.
|
|
32
|
-
"@seed-design/dom-utils": "0.0.
|
|
33
|
-
"@seed-design/react-primitive": "0.0.
|
|
30
|
+
"@radix-ui/react-compose-refs": "^1.1.2",
|
|
31
|
+
"@radix-ui/react-use-controllable-state": "1.2.2",
|
|
32
|
+
"@seed-design/dom-utils": "0.0.2",
|
|
33
|
+
"@seed-design/react-primitive": "0.0.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/react": "^18.3.
|
|
36
|
+
"@types/react": "^18.3.20",
|
|
37
|
+
"react": "^18.3.1",
|
|
38
|
+
"react-dom": "^18.3.1"
|
|
37
39
|
},
|
|
38
40
|
"peerDependencies": {
|
|
39
41
|
"react": ">=18.0.0",
|