@tamagui/checkbox 2.7.7 → 3.0.0-beta.1093.1
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/cjs/Checkbox.cjs +97 -101
- package/dist/cjs/Checkbox.native.cjs +128 -0
- package/dist/cjs/Checkbox.native.js +111 -100
- package/dist/cjs/Checkbox.native.js.map +1 -1
- package/dist/cjs/CheckboxStyledContext.cjs +17 -23
- package/dist/cjs/CheckboxStyledContext.native.cjs +31 -0
- package/dist/cjs/CheckboxStyledContext.native.js +17 -22
- package/dist/cjs/CheckboxStyledContext.native.js.map +1 -1
- package/dist/cjs/index.cjs +8 -26
- package/dist/cjs/index.native.cjs +21 -0
- package/dist/cjs/index.native.js +9 -26
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Checkbox.mjs +75 -86
- package/dist/esm/Checkbox.mjs.map +1 -1
- package/dist/esm/Checkbox.native.js +90 -86
- package/dist/esm/Checkbox.native.js.map +1 -1
- package/dist/esm/CheckboxStyledContext.mjs +5 -5
- package/dist/esm/CheckboxStyledContext.mjs.map +1 -1
- package/dist/esm/CheckboxStyledContext.native.js +5 -5
- package/dist/esm/CheckboxStyledContext.native.js.map +1 -1
- package/dist/esm/index.js +3 -11
- package/dist/esm/index.mjs +3 -11
- package/dist/esm/index.native.js +3 -11
- package/dist/jsx/Checkbox.mjs +75 -86
- package/dist/jsx/Checkbox.mjs.map +1 -1
- package/dist/jsx/Checkbox.native.cjs +128 -0
- package/dist/jsx/Checkbox.native.js +111 -100
- package/dist/jsx/Checkbox.native.js.map +1 -1
- package/dist/jsx/CheckboxStyledContext.mjs +5 -5
- package/dist/jsx/CheckboxStyledContext.mjs.map +1 -1
- package/dist/jsx/CheckboxStyledContext.native.cjs +31 -0
- package/dist/jsx/CheckboxStyledContext.native.js +17 -22
- package/dist/jsx/CheckboxStyledContext.native.js.map +1 -1
- package/dist/jsx/index.js +3 -11
- package/dist/jsx/index.mjs +3 -11
- package/dist/jsx/index.native.cjs +21 -0
- package/dist/jsx/index.native.js +9 -26
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +8 -17
- package/src/Checkbox.tsx +188 -106
- package/src/CheckboxStyledContext.tsx +2 -6
- package/src/index.ts +0 -9
- package/types/Checkbox.d.ts +129 -37
- package/types/Checkbox.d.ts.map +1 -1
- package/types/CheckboxStyledContext.d.ts +2 -4
- package/types/CheckboxStyledContext.d.ts.map +1 -1
- package/types/index.d.ts +0 -320
- package/types/index.d.ts.map +1 -1
- package/dist/cjs/createCheckbox.cjs +0 -194
- package/dist/cjs/createCheckbox.native.js +0 -213
- package/dist/cjs/createCheckbox.native.js.map +0 -1
- package/dist/esm/createCheckbox.mjs +0 -150
- package/dist/esm/createCheckbox.mjs.map +0 -1
- package/dist/esm/createCheckbox.native.js +0 -167
- package/dist/esm/createCheckbox.native.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/jsx/createCheckbox.mjs +0 -150
- package/dist/jsx/createCheckbox.mjs.map +0 -1
- package/dist/jsx/createCheckbox.native.js +0 -213
- package/dist/jsx/createCheckbox.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/src/createCheckbox.tsx +0 -280
- package/types/createCheckbox.d.ts +0 -196
- package/types/createCheckbox.d.ts.map +0 -1
package/src/Checkbox.tsx
CHANGED
|
@@ -1,122 +1,204 @@
|
|
|
1
1
|
// fork of radix
|
|
2
2
|
// https://github.com/radix-ui/primitives/tree/main/packages/react/checkbox/src/Checkbox.tsx
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import type {
|
|
5
|
+
CheckedState,
|
|
6
|
+
CheckboxExtraProps as HeadlessCheckboxExtraProps,
|
|
7
|
+
} from '@tamagui/checkbox-headless'
|
|
8
|
+
import { isIndeterminate, useCheckbox } from '@tamagui/checkbox-headless'
|
|
9
|
+
import type { GetProps, NativeValue, SizeTokens, StylePiece } from '@tamagui/core'
|
|
10
|
+
import {
|
|
11
|
+
createStyledHOC,
|
|
12
|
+
isWeb,
|
|
13
|
+
shouldRenderNativePlatform,
|
|
14
|
+
styled,
|
|
15
|
+
View,
|
|
16
|
+
withStaticProperties,
|
|
17
|
+
} from '@tamagui/core'
|
|
18
|
+
import { registerFocusable } from '@tamagui/focusable'
|
|
19
|
+
import { useControllableState } from '@tamagui/use-controllable-state'
|
|
20
|
+
import React, { useMemo } from 'react'
|
|
7
21
|
|
|
8
22
|
import { CheckboxStyledContext } from './CheckboxStyledContext'
|
|
9
23
|
|
|
10
|
-
/* -------------------------------------------------------------------------------------------------
|
|
11
|
-
* CheckboxIndicator
|
|
12
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
13
24
|
const INDICATOR_NAME = 'CheckboxIndicator'
|
|
14
25
|
|
|
15
|
-
export const CheckboxIndicatorFrame = styled(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
context: CheckboxStyledContext,
|
|
21
|
-
variants: {
|
|
22
|
-
unstyled: {
|
|
23
|
-
false: {},
|
|
24
|
-
},
|
|
25
|
-
} as const,
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
accept: {
|
|
32
|
-
activeStyle: 'style',
|
|
33
|
-
} as const,
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
/* -------------------------------------------------------------------------------------------------
|
|
38
|
-
* Checkbox
|
|
39
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
26
|
+
export const CheckboxIndicatorFrame = styled(View, {
|
|
27
|
+
// use Checkbox for easier themes
|
|
28
|
+
displayName: INDICATOR_NAME,
|
|
29
|
+
context: CheckboxStyledContext,
|
|
30
|
+
})
|
|
40
31
|
|
|
41
32
|
const CHECKBOX_NAME = 'Checkbox'
|
|
42
33
|
|
|
43
|
-
export const CheckboxFrame = styled(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
alignItems: 'center',
|
|
56
|
-
justifyContent: 'center',
|
|
57
|
-
borderWidth: 1,
|
|
58
|
-
borderColor: '$borderColor',
|
|
59
|
-
|
|
60
|
-
hoverStyle: {
|
|
61
|
-
borderColor: '$borderColorHover',
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
pressStyle: {
|
|
65
|
-
backgroundColor: '$backgroundPress',
|
|
66
|
-
borderColor: '$borderColorPress',
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
focusStyle: {
|
|
70
|
-
borderColor: '$borderColorFocus',
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
focusVisibleStyle: {
|
|
74
|
-
outlineStyle: 'solid',
|
|
75
|
-
outlineWidth: 2,
|
|
76
|
-
outlineColor: '$outlineColor',
|
|
77
|
-
},
|
|
78
|
-
},
|
|
34
|
+
export const CheckboxFrame = styled(View, {
|
|
35
|
+
displayName: CHECKBOX_NAME,
|
|
36
|
+
render: 'button',
|
|
37
|
+
context: CheckboxStyledContext,
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
justifyContent: 'center',
|
|
40
|
+
|
|
41
|
+
variants: {
|
|
42
|
+
disabled: {
|
|
43
|
+
true: {
|
|
44
|
+
pointerEvents: 'none',
|
|
45
|
+
userSelect: 'none',
|
|
79
46
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
47
|
+
},
|
|
48
|
+
} as const,
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
type CheckboxExpectingVariantProps = {
|
|
52
|
+
size?: SizeTokens | true
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type CheckboxExtraProps = HeadlessCheckboxExtraProps & {
|
|
56
|
+
native?: NativeValue<'web'>
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type CheckboxFrameActiveStyleProps = {
|
|
60
|
+
activeStyle?: StylePiece
|
|
61
|
+
activeTheme?: string | null
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type CheckboxIndicatorActiveStyleProps = {
|
|
65
|
+
activeStyle?: StylePiece
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type CheckboxProps = GetProps<typeof CheckboxFrame> &
|
|
69
|
+
CheckboxExtraProps &
|
|
70
|
+
CheckboxExpectingVariantProps &
|
|
71
|
+
CheckboxFrameActiveStyleProps
|
|
72
|
+
|
|
73
|
+
type CheckboxIndicatorExtraProps = {
|
|
74
|
+
/**
|
|
75
|
+
* Used to force mounting when more control is needed. Useful when
|
|
76
|
+
* controlling animation with React animation libraries.
|
|
77
|
+
*/
|
|
78
|
+
forceMount?: boolean
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type CheckboxIndicatorProps = GetProps<typeof CheckboxIndicatorFrame> &
|
|
82
|
+
CheckboxIndicatorExtraProps &
|
|
83
|
+
CheckboxIndicatorActiveStyleProps
|
|
84
|
+
|
|
85
|
+
export const CheckboxContext = React.createContext<{
|
|
86
|
+
checked: CheckedState
|
|
87
|
+
disabled?: boolean
|
|
88
|
+
}>({
|
|
89
|
+
checked: false,
|
|
90
|
+
disabled: false,
|
|
91
|
+
})
|
|
92
|
+
|
|
93
|
+
const CheckboxComponent = createStyledHOC(
|
|
94
|
+
CheckboxFrame,
|
|
95
|
+
function Checkbox(propsIn: CheckboxProps, forwardedRef) {
|
|
96
|
+
const {
|
|
97
|
+
checked: checkedProp,
|
|
98
|
+
defaultChecked,
|
|
99
|
+
onCheckedChange,
|
|
100
|
+
native,
|
|
101
|
+
activeStyle,
|
|
102
|
+
activeTheme,
|
|
103
|
+
...props
|
|
104
|
+
} = propsIn
|
|
105
|
+
|
|
106
|
+
const [checked = false, setChecked] = useControllableState({
|
|
107
|
+
prop: checkedProp,
|
|
108
|
+
defaultProp: defaultChecked!,
|
|
109
|
+
onChange: onCheckedChange,
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
const { checkboxProps, checkboxRef, bubbleInput } = useCheckbox(
|
|
113
|
+
props,
|
|
114
|
+
[checked, setChecked],
|
|
115
|
+
forwardedRef
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
if (process.env.TAMAGUI_TARGET === 'native') {
|
|
119
|
+
React.useEffect(() => {
|
|
120
|
+
if (!props.id) return
|
|
121
|
+
if (props.disabled) return
|
|
122
|
+
|
|
123
|
+
return registerFocusable(props.id, {
|
|
124
|
+
focusAndSelect: () => {
|
|
125
|
+
setChecked?.((value) => !value)
|
|
99
126
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
127
|
+
focus: () => {},
|
|
128
|
+
})
|
|
129
|
+
}, [props.id, props.disabled])
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const renderNative = shouldRenderNativePlatform(native)
|
|
133
|
+
if (renderNative === 'web') {
|
|
134
|
+
return (
|
|
135
|
+
<input
|
|
136
|
+
type="checkbox"
|
|
137
|
+
defaultChecked={isIndeterminate(checked) ? false : checked}
|
|
138
|
+
tabIndex={-1}
|
|
139
|
+
ref={checkboxRef as any}
|
|
140
|
+
disabled={checkboxProps.disabled}
|
|
141
|
+
style={checkboxProps.style as any}
|
|
142
|
+
/>
|
|
143
|
+
)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const memoizedContext = useMemo(
|
|
147
|
+
() => ({
|
|
148
|
+
checked,
|
|
149
|
+
disabled: checkboxProps.disabled,
|
|
150
|
+
}),
|
|
151
|
+
[checked, checkboxProps.disabled]
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
const isActive = !!checked
|
|
155
|
+
const disabled = checkboxProps.disabled
|
|
156
|
+
|
|
157
|
+
return (
|
|
158
|
+
<CheckboxContext.Provider value={memoizedContext}>
|
|
159
|
+
<CheckboxFrame
|
|
160
|
+
render="button"
|
|
161
|
+
ref={checkboxRef}
|
|
162
|
+
theme={activeTheme ?? null}
|
|
163
|
+
{...(isWeb && { type: 'button' })}
|
|
164
|
+
checked={checked}
|
|
165
|
+
{...(checkboxProps as CheckboxProps)}
|
|
166
|
+
style={[checkboxProps.style, isActive && activeStyle]}
|
|
167
|
+
active={isActive}
|
|
168
|
+
disabled={disabled}
|
|
169
|
+
>
|
|
170
|
+
{props.children}
|
|
171
|
+
</CheckboxFrame>
|
|
172
|
+
{bubbleInput}
|
|
173
|
+
</CheckboxContext.Provider>
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
)
|
|
112
177
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
178
|
+
const CheckboxIndicator = createStyledHOC(
|
|
179
|
+
CheckboxIndicatorFrame,
|
|
180
|
+
(props: CheckboxIndicatorProps, forwardedRef) => {
|
|
181
|
+
const { children, forceMount, activeStyle, ...indicatorProps } = props
|
|
182
|
+
const { active } = CheckboxStyledContext.useStyledContext()
|
|
183
|
+
const context = React.useContext(CheckboxContext)
|
|
184
|
+
|
|
185
|
+
if (forceMount || isIndeterminate(context.checked) || context.checked === true) {
|
|
186
|
+
return (
|
|
187
|
+
<CheckboxIndicatorFrame
|
|
188
|
+
pointerEvents="none"
|
|
189
|
+
{...indicatorProps}
|
|
190
|
+
style={[indicatorProps.style, active && activeStyle]}
|
|
191
|
+
ref={forwardedRef}
|
|
192
|
+
>
|
|
193
|
+
{children}
|
|
194
|
+
</CheckboxIndicatorFrame>
|
|
195
|
+
)
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return null
|
|
121
199
|
}
|
|
122
200
|
)
|
|
201
|
+
|
|
202
|
+
export const Checkbox = withStaticProperties(CheckboxComponent, {
|
|
203
|
+
Indicator: CheckboxIndicator,
|
|
204
|
+
})
|
|
@@ -2,15 +2,11 @@ import type { SizeTokens } from '@tamagui/core'
|
|
|
2
2
|
import { createStyledContext } from '@tamagui/core'
|
|
3
3
|
|
|
4
4
|
export const CheckboxStyledContext = createStyledContext<{
|
|
5
|
-
size: SizeTokens
|
|
6
|
-
scaleIcon: number
|
|
7
|
-
unstyled?: boolean
|
|
5
|
+
size: SizeTokens | true
|
|
8
6
|
active?: boolean
|
|
9
7
|
disabled?: boolean
|
|
10
8
|
}>({
|
|
11
|
-
size:
|
|
12
|
-
scaleIcon: 1,
|
|
13
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
9
|
+
size: true,
|
|
14
10
|
active: false,
|
|
15
11
|
disabled: false,
|
|
16
12
|
})
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { CheckboxFrame, CheckboxIndicatorFrame } from './Checkbox'
|
|
2
|
-
import { createCheckbox } from './createCheckbox'
|
|
3
|
-
|
|
4
|
-
export * from './createCheckbox'
|
|
5
1
|
export * from './Checkbox'
|
|
6
2
|
export * from './CheckboxStyledContext'
|
|
7
3
|
export type { CheckedState } from '@tamagui/checkbox-headless'
|
|
8
|
-
|
|
9
|
-
export const Checkbox = createCheckbox({
|
|
10
|
-
Frame: CheckboxFrame,
|
|
11
|
-
Indicator: CheckboxIndicatorFrame,
|
|
12
|
-
})
|
package/types/Checkbox.d.ts
CHANGED
|
@@ -1,39 +1,131 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}, {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import type { CheckedState, CheckboxExtraProps as HeadlessCheckboxExtraProps } from '@tamagui/checkbox-headless';
|
|
2
|
+
import type { GetProps, NativeValue, SizeTokens, StylePiece } from '@tamagui/core';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare const CheckboxIndicatorFrame: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "active" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
5
|
+
active?: boolean | undefined;
|
|
6
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
7
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
8
|
+
ref?: React.Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
9
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
10
|
+
active?: boolean | undefined;
|
|
11
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
12
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
13
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
14
|
+
active?: boolean | undefined;
|
|
15
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
16
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
17
|
+
};
|
|
18
|
+
export declare const CheckboxFrame: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "active" | "disabled" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
19
|
+
active?: boolean | undefined;
|
|
20
|
+
disabled?: boolean | undefined;
|
|
21
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
22
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
23
|
+
ref?: React.Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
24
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
25
|
+
active?: boolean | undefined;
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
28
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
29
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
30
|
+
active?: boolean | undefined;
|
|
31
|
+
disabled?: boolean | undefined;
|
|
32
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
33
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
34
|
+
};
|
|
35
|
+
type CheckboxExpectingVariantProps = {
|
|
36
|
+
size?: SizeTokens | true;
|
|
37
|
+
};
|
|
38
|
+
type CheckboxExtraProps = HeadlessCheckboxExtraProps & {
|
|
39
|
+
native?: NativeValue<'web'>;
|
|
40
|
+
};
|
|
41
|
+
type CheckboxFrameActiveStyleProps = {
|
|
42
|
+
activeStyle?: StylePiece;
|
|
43
|
+
activeTheme?: string | null;
|
|
44
|
+
};
|
|
45
|
+
type CheckboxIndicatorActiveStyleProps = {
|
|
46
|
+
activeStyle?: StylePiece;
|
|
47
|
+
};
|
|
48
|
+
export type CheckboxProps = GetProps<typeof CheckboxFrame> & CheckboxExtraProps & CheckboxExpectingVariantProps & CheckboxFrameActiveStyleProps;
|
|
49
|
+
type CheckboxIndicatorExtraProps = {
|
|
50
|
+
/**
|
|
51
|
+
* Used to force mounting when more control is needed. Useful when
|
|
52
|
+
* controlling animation with React animation libraries.
|
|
53
|
+
*/
|
|
54
|
+
forceMount?: boolean;
|
|
55
|
+
};
|
|
56
|
+
export type CheckboxIndicatorProps = GetProps<typeof CheckboxIndicatorFrame> & CheckboxIndicatorExtraProps & CheckboxIndicatorActiveStyleProps;
|
|
57
|
+
export declare const CheckboxContext: React.Context<{
|
|
58
|
+
checked: CheckedState;
|
|
59
|
+
disabled?: boolean;
|
|
38
60
|
}>;
|
|
61
|
+
export declare const Checkbox: React.FunctionComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
62
|
+
active?: boolean | undefined;
|
|
63
|
+
disabled?: boolean | undefined;
|
|
64
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
65
|
+
}>, "accessibilityActions" | "accessibilityElementsHidden" | "accessibilityHint" | "accessibilityIgnoresInvertColors" | "accessibilityLabel" | "accessibilityLabelledBy" | "accessibilityLanguage" | "accessibilityLargeContentTitle" | "accessibilityLiveRegion" | "accessibilityRespondsToUserInteraction" | "accessibilityRole" | "accessibilityShowsLargeContentViewer" | "accessibilityState" | "accessibilityValue" | "accessibilityViewIsModal" | "accessible" | "active" | "animatedBy" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-hidden" | "aria-label" | "aria-labelledby" | "aria-live" | "aria-modal" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "asChild" | "className" | "collapsable" | "collapsableChildren" | "container" | "dangerouslySetInnerHTML" | "debug" | "disableClassName" | "disableNativeStyle" | "disableOptimization" | "download" | "elevationAndroid" | "forceStyle" | "group" | "hasTVPreferredFocus" | "hitSlop" | "htmlFor" | "importantForAccessibility" | "isTVSelectable" | "native" | "nativeID" | "needsOffscreenAlphaCompositing" | "onAccessibilityAction" | "onAccessibilityEscape" | "onAccessibilityTap" | "onBeforeInput" | "onBlur" | "onChange" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onDoubleClick" | "onDrag" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onKeyDown" | "onKeyUp" | "onLayout" | "onLongPress" | "onMagicTap" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onMouseUp" | "onMoveShouldSetResponder" | "onMoveShouldSetResponderCapture" | "onPaste" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPress" | "onPressIn" | "onPressOut" | "onResponderEnd" | "onResponderGrant" | "onResponderMove" | "onResponderReject" | "onResponderRelease" | "onResponderStart" | "onResponderTerminate" | "onResponderTerminationRequest" | "onScroll" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onStartShouldSetResponder" | "onStartShouldSetResponderCapture" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "onWheel" | "rel" | "removeClippedSubviews" | "render" | "renderToHardwareTextureAndroid" | "role" | "screenReaderFocusable" | "shouldRasterizeIOS" | "size" | "style" | "tabIndex" | "target" | "testID" | "theme" | "themeShallow" | "tvParallaxMagnification" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "untilMeasured" | keyof HeadlessCheckboxExtraProps | keyof CheckboxFrameActiveStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "active" | "disabled" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
66
|
+
active?: boolean | undefined;
|
|
67
|
+
disabled?: boolean | undefined;
|
|
68
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
69
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & HeadlessCheckboxExtraProps & {
|
|
70
|
+
native?: NativeValue<'web'>;
|
|
71
|
+
} & CheckboxExpectingVariantProps & CheckboxFrameActiveStyleProps & {
|
|
72
|
+
ref?: React.Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
73
|
+
}> & import("@tamagui/core").StaticComponentObject<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
74
|
+
active?: boolean | undefined;
|
|
75
|
+
disabled?: boolean | undefined;
|
|
76
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
77
|
+
}>, "accessibilityActions" | "accessibilityElementsHidden" | "accessibilityHint" | "accessibilityIgnoresInvertColors" | "accessibilityLabel" | "accessibilityLabelledBy" | "accessibilityLanguage" | "accessibilityLargeContentTitle" | "accessibilityLiveRegion" | "accessibilityRespondsToUserInteraction" | "accessibilityRole" | "accessibilityShowsLargeContentViewer" | "accessibilityState" | "accessibilityValue" | "accessibilityViewIsModal" | "accessible" | "active" | "animatedBy" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-hidden" | "aria-label" | "aria-labelledby" | "aria-live" | "aria-modal" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "asChild" | "className" | "collapsable" | "collapsableChildren" | "container" | "dangerouslySetInnerHTML" | "debug" | "disableClassName" | "disableNativeStyle" | "disableOptimization" | "download" | "elevationAndroid" | "forceStyle" | "group" | "hasTVPreferredFocus" | "hitSlop" | "htmlFor" | "importantForAccessibility" | "isTVSelectable" | "native" | "nativeID" | "needsOffscreenAlphaCompositing" | "onAccessibilityAction" | "onAccessibilityEscape" | "onAccessibilityTap" | "onBeforeInput" | "onBlur" | "onChange" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onDoubleClick" | "onDrag" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onKeyDown" | "onKeyUp" | "onLayout" | "onLongPress" | "onMagicTap" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onMouseUp" | "onMoveShouldSetResponder" | "onMoveShouldSetResponderCapture" | "onPaste" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPress" | "onPressIn" | "onPressOut" | "onResponderEnd" | "onResponderGrant" | "onResponderMove" | "onResponderReject" | "onResponderRelease" | "onResponderStart" | "onResponderTerminate" | "onResponderTerminationRequest" | "onScroll" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onStartShouldSetResponder" | "onStartShouldSetResponderCapture" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "onWheel" | "rel" | "removeClippedSubviews" | "render" | "renderToHardwareTextureAndroid" | "role" | "screenReaderFocusable" | "shouldRasterizeIOS" | "size" | "style" | "tabIndex" | "target" | "testID" | "theme" | "themeShallow" | "tvParallaxMagnification" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "untilMeasured" | keyof HeadlessCheckboxExtraProps | keyof CheckboxFrameActiveStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "active" | "disabled" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
78
|
+
active?: boolean | undefined;
|
|
79
|
+
disabled?: boolean | undefined;
|
|
80
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
81
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & HeadlessCheckboxExtraProps & {
|
|
82
|
+
native?: NativeValue<'web'>;
|
|
83
|
+
} & CheckboxExpectingVariantProps & CheckboxFrameActiveStyleProps, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "active" | "disabled" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
84
|
+
active?: boolean | undefined;
|
|
85
|
+
disabled?: boolean | undefined;
|
|
86
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
87
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & HeadlessCheckboxExtraProps & {
|
|
88
|
+
native?: NativeValue<'web'>;
|
|
89
|
+
} & CheckboxExpectingVariantProps & CheckboxFrameActiveStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
90
|
+
active?: boolean | undefined;
|
|
91
|
+
disabled?: boolean | undefined;
|
|
92
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
93
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
94
|
+
__tama: [Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
95
|
+
active?: boolean | undefined;
|
|
96
|
+
disabled?: boolean | undefined;
|
|
97
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
98
|
+
}>, "accessibilityActions" | "accessibilityElementsHidden" | "accessibilityHint" | "accessibilityIgnoresInvertColors" | "accessibilityLabel" | "accessibilityLabelledBy" | "accessibilityLanguage" | "accessibilityLargeContentTitle" | "accessibilityLiveRegion" | "accessibilityRespondsToUserInteraction" | "accessibilityRole" | "accessibilityShowsLargeContentViewer" | "accessibilityState" | "accessibilityValue" | "accessibilityViewIsModal" | "accessible" | "active" | "animatedBy" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-hidden" | "aria-label" | "aria-labelledby" | "aria-live" | "aria-modal" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "asChild" | "className" | "collapsable" | "collapsableChildren" | "container" | "dangerouslySetInnerHTML" | "debug" | "disableClassName" | "disableNativeStyle" | "disableOptimization" | "download" | "elevationAndroid" | "forceStyle" | "group" | "hasTVPreferredFocus" | "hitSlop" | "htmlFor" | "importantForAccessibility" | "isTVSelectable" | "native" | "nativeID" | "needsOffscreenAlphaCompositing" | "onAccessibilityAction" | "onAccessibilityEscape" | "onAccessibilityTap" | "onBeforeInput" | "onBlur" | "onChange" | "onClick" | "onContextMenu" | "onCopy" | "onCut" | "onDoubleClick" | "onDrag" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDragStart" | "onDrop" | "onFocus" | "onInput" | "onKeyDown" | "onKeyUp" | "onLayout" | "onLongPress" | "onMagicTap" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseOut" | "onMouseOver" | "onMouseUp" | "onMoveShouldSetResponder" | "onMoveShouldSetResponderCapture" | "onPaste" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPress" | "onPressIn" | "onPressOut" | "onResponderEnd" | "onResponderGrant" | "onResponderMove" | "onResponderReject" | "onResponderRelease" | "onResponderStart" | "onResponderTerminate" | "onResponderTerminationRequest" | "onScroll" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onStartShouldSetResponder" | "onStartShouldSetResponderCapture" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "onWheel" | "rel" | "removeClippedSubviews" | "render" | "renderToHardwareTextureAndroid" | "role" | "screenReaderFocusable" | "shouldRasterizeIOS" | "size" | "style" | "tabIndex" | "target" | "testID" | "theme" | "themeShallow" | "tvParallaxMagnification" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "untilMeasured" | keyof HeadlessCheckboxExtraProps | keyof CheckboxFrameActiveStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "active" | "disabled" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
99
|
+
active?: boolean | undefined;
|
|
100
|
+
disabled?: boolean | undefined;
|
|
101
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
102
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & HeadlessCheckboxExtraProps & {
|
|
103
|
+
native?: NativeValue<'web'>;
|
|
104
|
+
} & CheckboxExpectingVariantProps & CheckboxFrameActiveStyleProps, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "active" | "disabled" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
105
|
+
active?: boolean | undefined;
|
|
106
|
+
disabled?: boolean | undefined;
|
|
107
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
108
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & HeadlessCheckboxExtraProps & {
|
|
109
|
+
native?: NativeValue<'web'>;
|
|
110
|
+
} & CheckboxExpectingVariantProps & CheckboxFrameActiveStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
111
|
+
active?: boolean | undefined;
|
|
112
|
+
disabled?: boolean | undefined;
|
|
113
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
114
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
115
|
+
} & {
|
|
116
|
+
Indicator: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
117
|
+
active?: boolean | undefined;
|
|
118
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
119
|
+
}>, "active" | "activeStyle" | "forceMount" | "size" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "active" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
120
|
+
active?: boolean | undefined;
|
|
121
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
122
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & CheckboxIndicatorExtraProps & CheckboxIndicatorActiveStyleProps, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "active" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
123
|
+
active?: boolean | undefined;
|
|
124
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
125
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & CheckboxIndicatorExtraProps & CheckboxIndicatorActiveStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
126
|
+
active?: boolean | undefined;
|
|
127
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
128
|
+
}, import("@tamagui/core").StaticConfigPublic>;
|
|
129
|
+
};
|
|
130
|
+
export {};
|
|
39
131
|
//# sourceMappingURL=Checkbox.d.ts.map
|
package/types/Checkbox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../src/Checkbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../src/Checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,IAAI,0BAA0B,EACjD,MAAM,4BAA4B,CAAA;AAEnC,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAWlF,OAAO,KAAkB,MAAM,OAAO,CAAA;AAMtC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAIjC,CAAA;AAIF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;CAexB,CAAA;AAEF,KAAK,6BAA6B,GAAG;IACnC,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;CACzB,CAAA;AAED,KAAK,kBAAkB,GAAG,0BAA0B,GAAG;IACrD,MAAM,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA;CAC5B,CAAA;AAED,KAAK,6BAA6B,GAAG;IACnC,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B,CAAA;AAED,KAAK,iCAAiC,GAAG;IACvC,WAAW,CAAC,EAAE,UAAU,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,GACxD,kBAAkB,GAClB,6BAA6B,GAC7B,6BAA6B,CAAA;AAE/B,KAAK,2BAA2B,GAAG;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,OAAO,sBAAsB,CAAC,GAC1E,2BAA2B,GAC3B,iCAAiC,CAAA;AAEnC,eAAO,MAAM,eAAe;aACjB,YAAY;eACV,OAAO;EAIlB,CAAA;AA+GF,eAAO,MAAM,QAAQ;;;;;;;;;aAlJV,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAlB,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJ3B,CAAA"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { SizeTokens } from '@tamagui/core';
|
|
2
2
|
export declare const CheckboxStyledContext: import("@tamagui/core").StyledContext<{
|
|
3
|
-
size: SizeTokens;
|
|
4
|
-
scaleIcon: number;
|
|
5
|
-
unstyled?: boolean;
|
|
3
|
+
size: SizeTokens | true;
|
|
6
4
|
active?: boolean;
|
|
7
5
|
disabled?: boolean;
|
|
8
|
-
}>;
|
|
6
|
+
}, "active" | "disabled" | "size">;
|
|
9
7
|
//# sourceMappingURL=CheckboxStyledContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxStyledContext.d.ts","sourceRoot":"","sources":["../src/CheckboxStyledContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG/C,eAAO,MAAM,qBAAqB;UAC1B,UAAU
|
|
1
|
+
{"version":3,"file":"CheckboxStyledContext.d.ts","sourceRoot":"","sources":["../src/CheckboxStyledContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG/C,eAAO,MAAM,qBAAqB;UAC1B,UAAU,GAAG,IAAI;aACd,OAAO;eACL,OAAO;kCAKlB,CAAA"}
|