@tamagui/radio-group 2.7.7 → 3.0.0-beta.643.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/RadioGroup.cjs +127 -116
- package/dist/cjs/RadioGroup.native.cjs +146 -0
- package/dist/cjs/RadioGroup.native.js +127 -117
- package/dist/cjs/RadioGroup.native.js.map +1 -1
- package/dist/cjs/index.cjs +9 -28
- package/dist/cjs/index.native.cjs +21 -0
- package/dist/cjs/index.native.js +10 -28
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/RadioGroup.mjs +105 -100
- package/dist/esm/RadioGroup.mjs.map +1 -1
- package/dist/esm/RadioGroup.native.js +105 -102
- package/dist/esm/RadioGroup.native.js.map +1 -1
- package/dist/esm/index.js +1 -12
- package/dist/esm/index.mjs +1 -12
- package/dist/esm/index.native.js +1 -12
- package/dist/jsx/RadioGroup.mjs +105 -100
- package/dist/jsx/RadioGroup.mjs.map +1 -1
- package/dist/jsx/RadioGroup.native.cjs +146 -0
- package/dist/jsx/RadioGroup.native.js +127 -117
- package/dist/jsx/RadioGroup.native.js.map +1 -1
- package/dist/jsx/index.js +1 -12
- package/dist/jsx/index.mjs +1 -12
- package/dist/jsx/index.native.cjs +21 -0
- package/dist/jsx/index.native.js +10 -28
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +5 -15
- package/src/RadioGroup.tsx +160 -89
- package/src/index.ts +0 -15
- package/types/RadioGroup.d.ts +145 -16
- package/types/RadioGroup.d.ts.map +1 -1
- package/types/index.d.ts +0 -251
- package/types/index.d.ts.map +1 -1
- package/dist/cjs/RadioGroupStyledContext.cjs +0 -32
- package/dist/cjs/RadioGroupStyledContext.native.js +0 -35
- package/dist/cjs/RadioGroupStyledContext.native.js.map +0 -1
- package/dist/cjs/createRadioGroup.cjs +0 -175
- package/dist/cjs/createRadioGroup.native.js +0 -178
- package/dist/cjs/createRadioGroup.native.js.map +0 -1
- package/dist/esm/RadioGroupStyledContext.mjs +0 -7
- package/dist/esm/RadioGroupStyledContext.mjs.map +0 -1
- package/dist/esm/RadioGroupStyledContext.native.js +0 -7
- package/dist/esm/RadioGroupStyledContext.native.js.map +0 -1
- package/dist/esm/createRadioGroup.mjs +0 -139
- package/dist/esm/createRadioGroup.mjs.map +0 -1
- package/dist/esm/createRadioGroup.native.js +0 -139
- package/dist/esm/createRadioGroup.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/RadioGroupStyledContext.mjs +0 -7
- package/dist/jsx/RadioGroupStyledContext.mjs.map +0 -1
- package/dist/jsx/RadioGroupStyledContext.native.js +0 -35
- package/dist/jsx/RadioGroupStyledContext.native.js.map +0 -1
- package/dist/jsx/createRadioGroup.mjs +0 -139
- package/dist/jsx/createRadioGroup.mjs.map +0 -1
- package/dist/jsx/createRadioGroup.native.js +0 -178
- package/dist/jsx/createRadioGroup.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/src/RadioGroupStyledContext.tsx +0 -10
- package/src/createRadioGroup.tsx +0 -191
- package/types/RadioGroupStyledContext.d.ts +0 -6
- package/types/RadioGroupStyledContext.d.ts.map +0 -1
- package/types/createRadioGroup.d.ts +0 -282
- package/types/createRadioGroup.d.ts.map +0 -1
package/src/RadioGroup.tsx
CHANGED
|
@@ -1,113 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { GetProps } from '@tamagui/core'
|
|
2
|
+
import { createStyledHOC, isWeb, styled, View, withStaticProperties } from '@tamagui/core'
|
|
3
|
+
import type {
|
|
4
|
+
RadioGroupContextValue,
|
|
5
|
+
RadioGroupItemContextValue,
|
|
6
|
+
} from '@tamagui/radio-headless'
|
|
7
|
+
import {
|
|
8
|
+
useRadioGroup,
|
|
9
|
+
useRadioGroupItem,
|
|
10
|
+
useRadioGroupItemIndicator,
|
|
11
|
+
} from '@tamagui/radio-headless'
|
|
12
|
+
import { RovingFocusGroup } from '@tamagui/roving-focus'
|
|
13
|
+
import React from 'react'
|
|
4
14
|
|
|
5
15
|
const RADIO_GROUP_ITEM_NAME = 'RadioGroupItem'
|
|
6
16
|
|
|
7
|
-
export const RadioGroupItemFrame = styled(
|
|
8
|
-
|
|
17
|
+
export const RadioGroupItemFrame = styled(View, {
|
|
18
|
+
displayName: RADIO_GROUP_ITEM_NAME,
|
|
9
19
|
render: 'button',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
justifyContent: 'center',
|
|
10
22
|
|
|
11
23
|
variants: {
|
|
12
|
-
unstyled: {
|
|
13
|
-
false: {
|
|
14
|
-
size: '$true',
|
|
15
|
-
borderRadius: 1000,
|
|
16
|
-
backgroundColor: '$background',
|
|
17
|
-
alignItems: 'center',
|
|
18
|
-
justifyContent: 'center',
|
|
19
|
-
borderWidth: 1,
|
|
20
|
-
borderColor: '$borderColor',
|
|
21
|
-
padding: 0,
|
|
22
|
-
|
|
23
|
-
hoverStyle: {
|
|
24
|
-
borderColor: '$borderColorHover',
|
|
25
|
-
backgroundColor: '$backgroundHover',
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
focusStyle: {
|
|
29
|
-
borderColor: '$borderColorHover',
|
|
30
|
-
backgroundColor: '$backgroundHover',
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
focusVisibleStyle: {
|
|
34
|
-
outlineStyle: 'solid',
|
|
35
|
-
outlineWidth: 2,
|
|
36
|
-
outlineColor: '$outlineColor',
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
pressStyle: {
|
|
40
|
-
borderColor: '$borderColorFocus',
|
|
41
|
-
backgroundColor: '$backgroundFocus',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
|
|
46
24
|
disabled: {
|
|
47
25
|
true: {
|
|
48
26
|
pointerEvents: 'none',
|
|
49
27
|
userSelect: 'none',
|
|
50
|
-
cursor: 'not-allowed',
|
|
51
|
-
|
|
52
|
-
hoverStyle: {
|
|
53
|
-
borderColor: '$borderColor',
|
|
54
|
-
backgroundColor: '$background',
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
pressStyle: {
|
|
58
|
-
borderColor: '$borderColor',
|
|
59
|
-
backgroundColor: '$background',
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
focusVisibleStyle: {
|
|
63
|
-
outlineWidth: 0,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
size: {
|
|
69
|
-
'...size': (value, { props }) => {
|
|
70
|
-
const size = Math.floor(
|
|
71
|
-
getVariableValue(getSize(value)) * (props['scaleSize'] ?? 0.5)
|
|
72
|
-
)
|
|
73
|
-
return {
|
|
74
|
-
width: size,
|
|
75
|
-
height: size,
|
|
76
|
-
}
|
|
77
28
|
},
|
|
78
29
|
},
|
|
79
30
|
} as const,
|
|
80
|
-
|
|
81
|
-
defaultVariants: {
|
|
82
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
83
|
-
},
|
|
84
31
|
})
|
|
85
32
|
|
|
86
33
|
const RADIO_GROUP_INDICATOR_NAME = 'RadioGroupIndicator'
|
|
87
34
|
|
|
88
|
-
export const RadioGroupIndicatorFrame = styled(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
variants: {
|
|
92
|
-
unstyled: {
|
|
93
|
-
false: {
|
|
94
|
-
width: '33%',
|
|
95
|
-
height: '33%',
|
|
96
|
-
borderRadius: 1000,
|
|
97
|
-
backgroundColor: '$color',
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
} as const,
|
|
101
|
-
|
|
102
|
-
defaultVariants: {
|
|
103
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
104
|
-
},
|
|
35
|
+
export const RadioGroupIndicatorFrame = styled(View, {
|
|
36
|
+
displayName: RADIO_GROUP_INDICATOR_NAME,
|
|
105
37
|
})
|
|
106
38
|
|
|
107
39
|
const RADIO_GROUP_NAME = 'RadioGroup'
|
|
108
40
|
|
|
109
|
-
export const RadioGroupFrame = styled(
|
|
110
|
-
|
|
41
|
+
export const RadioGroupFrame = styled(View, {
|
|
42
|
+
displayName: RADIO_GROUP_NAME,
|
|
111
43
|
|
|
112
44
|
variants: {
|
|
113
45
|
orientation: {
|
|
@@ -122,3 +54,142 @@ export const RadioGroupFrame = styled(YStack, {
|
|
|
122
54
|
},
|
|
123
55
|
} as const,
|
|
124
56
|
})
|
|
57
|
+
|
|
58
|
+
export type RadioGroupIndicatorProps = GetProps<typeof RadioGroupIndicatorFrame> & {
|
|
59
|
+
forceMount?: boolean
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export const RadioGroupContext = React.createContext<RadioGroupContextValue>({})
|
|
63
|
+
export const RadioGroupItemContext = React.createContext<RadioGroupItemContextValue>({
|
|
64
|
+
checked: false,
|
|
65
|
+
disabled: false,
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
export type RadioGroupItemProps = GetProps<typeof RadioGroupItemFrame> & {
|
|
69
|
+
value: string
|
|
70
|
+
id?: string
|
|
71
|
+
labelledBy?: string
|
|
72
|
+
disabled?: boolean
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type RadioGroupProps = GetProps<typeof RadioGroupFrame> & {
|
|
76
|
+
value?: string
|
|
77
|
+
defaultValue?: string
|
|
78
|
+
onValueChange?: (value: string) => void
|
|
79
|
+
required?: boolean
|
|
80
|
+
disabled?: boolean
|
|
81
|
+
name?: string
|
|
82
|
+
native?: boolean
|
|
83
|
+
accentColor?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const RadioGroupComponent = createStyledHOC(
|
|
87
|
+
RadioGroupFrame,
|
|
88
|
+
(props: RadioGroupProps, ref) => {
|
|
89
|
+
const {
|
|
90
|
+
value,
|
|
91
|
+
defaultValue,
|
|
92
|
+
onValueChange,
|
|
93
|
+
required = false,
|
|
94
|
+
disabled = false,
|
|
95
|
+
name,
|
|
96
|
+
native,
|
|
97
|
+
accentColor,
|
|
98
|
+
orientation = 'vertical',
|
|
99
|
+
...rest
|
|
100
|
+
} = props
|
|
101
|
+
|
|
102
|
+
const { providerValue, frameAttrs, rovingFocusGroupAttrs } = useRadioGroup({
|
|
103
|
+
orientation,
|
|
104
|
+
name,
|
|
105
|
+
defaultValue,
|
|
106
|
+
value,
|
|
107
|
+
onValueChange,
|
|
108
|
+
required,
|
|
109
|
+
disabled,
|
|
110
|
+
native,
|
|
111
|
+
accentColor,
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
return (
|
|
115
|
+
<RadioGroupContext.Provider value={providerValue}>
|
|
116
|
+
<RovingFocusGroup {...rovingFocusGroupAttrs}>
|
|
117
|
+
<RadioGroupFrame {...frameAttrs} ref={ref} {...rest} />
|
|
118
|
+
</RovingFocusGroup>
|
|
119
|
+
</RadioGroupContext.Provider>
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
const RadioGroupItem = createStyledHOC(
|
|
125
|
+
RadioGroupItemFrame,
|
|
126
|
+
(props: RadioGroupItemProps, ref) => {
|
|
127
|
+
const { value, labelledBy, onPress, onKeyDown, disabled, id, ...rest } = props
|
|
128
|
+
|
|
129
|
+
const {
|
|
130
|
+
providerValue,
|
|
131
|
+
bubbleInput,
|
|
132
|
+
rovingFocusGroupAttrs,
|
|
133
|
+
frameAttrs,
|
|
134
|
+
isFormControl,
|
|
135
|
+
native,
|
|
136
|
+
} = useRadioGroupItem({
|
|
137
|
+
radioGroupContext: RadioGroupContext,
|
|
138
|
+
value,
|
|
139
|
+
id,
|
|
140
|
+
labelledBy,
|
|
141
|
+
disabled,
|
|
142
|
+
onPress: onPress!,
|
|
143
|
+
onKeyDown,
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
return (
|
|
147
|
+
<RadioGroupItemContext.Provider value={providerValue}>
|
|
148
|
+
{isWeb && native ? (
|
|
149
|
+
bubbleInput
|
|
150
|
+
) : (
|
|
151
|
+
<>
|
|
152
|
+
<RovingFocusGroup.Item {...rovingFocusGroupAttrs}>
|
|
153
|
+
<RadioGroupItemFrame {...frameAttrs} ref={ref} {...rest} />
|
|
154
|
+
</RovingFocusGroup.Item>
|
|
155
|
+
{isFormControl && bubbleInput}
|
|
156
|
+
</>
|
|
157
|
+
)}
|
|
158
|
+
</RadioGroupItemContext.Provider>
|
|
159
|
+
)
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
RadioGroupItem.displayName = 'RadioGroupItem'
|
|
164
|
+
|
|
165
|
+
const RadioGroupIndicator = createStyledHOC(
|
|
166
|
+
RadioGroupIndicatorFrame,
|
|
167
|
+
(props: RadioGroupIndicatorProps, forwardedRef) => {
|
|
168
|
+
const { forceMount, disabled, ...indicatorProps } = props
|
|
169
|
+
const { checked, ...useIndicatorRest } = useRadioGroupItemIndicator({
|
|
170
|
+
radioGroupItemContext: RadioGroupItemContext,
|
|
171
|
+
disabled,
|
|
172
|
+
})
|
|
173
|
+
|
|
174
|
+
if (forceMount || checked) {
|
|
175
|
+
return (
|
|
176
|
+
<RadioGroupIndicatorFrame
|
|
177
|
+
{...useIndicatorRest}
|
|
178
|
+
ref={forwardedRef}
|
|
179
|
+
{...indicatorProps}
|
|
180
|
+
/>
|
|
181
|
+
)
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
return null
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
RadioGroupIndicator.displayName = 'RadioGroupIndicator'
|
|
189
|
+
|
|
190
|
+
export const RadioGroup = withStaticProperties(RadioGroupComponent, {
|
|
191
|
+
Item: RadioGroupItem,
|
|
192
|
+
Indicator: RadioGroupIndicator,
|
|
193
|
+
})
|
|
194
|
+
|
|
195
|
+
RadioGroup.displayName = 'RadioGroup'
|
package/src/index.ts
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
RadioGroupFrame,
|
|
3
|
-
RadioGroupIndicatorFrame,
|
|
4
|
-
RadioGroupItemFrame,
|
|
5
|
-
} from './RadioGroup'
|
|
6
|
-
import { createRadioGroup } from './createRadioGroup'
|
|
7
|
-
|
|
8
|
-
export * from './createRadioGroup'
|
|
9
1
|
export * from './RadioGroup'
|
|
10
|
-
export * from './RadioGroupStyledContext'
|
|
11
|
-
|
|
12
|
-
export const RadioGroup = createRadioGroup({
|
|
13
|
-
Frame: RadioGroupFrame,
|
|
14
|
-
Indicator: RadioGroupIndicatorFrame,
|
|
15
|
-
Item: RadioGroupItemFrame,
|
|
16
|
-
})
|
package/types/RadioGroup.d.ts
CHANGED
|
@@ -1,18 +1,147 @@
|
|
|
1
|
-
|
|
1
|
+
import type { GetProps } from '@tamagui/core';
|
|
2
|
+
import type { RadioGroupContextValue, RadioGroupItemContextValue } from '@tamagui/radio-headless';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare const RadioGroupItemFrame: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disabled" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
2
5
|
disabled?: boolean | undefined;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, import("@tamagui/core").StaticConfigPublic
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
7
|
+
ref?: React.Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
8
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
11
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
14
|
+
};
|
|
15
|
+
export declare const RadioGroupIndicatorFrame: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
16
|
+
ref?: React.Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
17
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
18
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic];
|
|
19
|
+
};
|
|
20
|
+
export declare const RadioGroupFrame: React.FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "orientation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
21
|
+
orientation?: "horizontal" | "vertical" | 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
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
26
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
27
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
28
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
29
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
30
|
+
};
|
|
31
|
+
export type RadioGroupIndicatorProps = GetProps<typeof RadioGroupIndicatorFrame> & {
|
|
32
|
+
forceMount?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export declare const RadioGroupContext: React.Context<RadioGroupContextValue>;
|
|
35
|
+
export declare const RadioGroupItemContext: React.Context<RadioGroupItemContextValue>;
|
|
36
|
+
export type RadioGroupItemProps = GetProps<typeof RadioGroupItemFrame> & {
|
|
37
|
+
value: string;
|
|
38
|
+
id?: string;
|
|
39
|
+
labelledBy?: string;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
};
|
|
42
|
+
export type RadioGroupProps = GetProps<typeof RadioGroupFrame> & {
|
|
43
|
+
value?: string;
|
|
44
|
+
defaultValue?: string;
|
|
45
|
+
onValueChange?: (value: string) => void;
|
|
46
|
+
required?: boolean;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
name?: string;
|
|
49
|
+
native?: boolean;
|
|
50
|
+
accentColor?: string;
|
|
51
|
+
};
|
|
52
|
+
export declare const RadioGroup: React.FunctionComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
53
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
54
|
+
}>, "accentColor" | "defaultValue" | "native" | "onValueChange" | "orientation" | "required" | "value" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "orientation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
55
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
56
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
57
|
+
value?: string;
|
|
58
|
+
defaultValue?: string;
|
|
59
|
+
onValueChange?: (value: string) => void;
|
|
60
|
+
required?: boolean;
|
|
61
|
+
disabled?: boolean;
|
|
62
|
+
name?: string;
|
|
63
|
+
native?: boolean;
|
|
64
|
+
accentColor?: string;
|
|
65
|
+
} & {
|
|
66
|
+
ref?: React.Ref<import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods)> | undefined;
|
|
67
|
+
}> & import("@tamagui/core").StaticComponentObject<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
68
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
69
|
+
}>, "accentColor" | "defaultValue" | "native" | "onValueChange" | "orientation" | "required" | "value" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "orientation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
70
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
71
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
72
|
+
value?: string;
|
|
73
|
+
defaultValue?: string;
|
|
74
|
+
onValueChange?: (value: string) => void;
|
|
75
|
+
required?: boolean;
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
name?: string;
|
|
78
|
+
native?: boolean;
|
|
79
|
+
accentColor?: string;
|
|
80
|
+
}, import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "orientation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
81
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
82
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
83
|
+
value?: string;
|
|
84
|
+
defaultValue?: string;
|
|
85
|
+
onValueChange?: (value: string) => void;
|
|
86
|
+
required?: boolean;
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
name?: string;
|
|
89
|
+
native?: boolean;
|
|
90
|
+
accentColor?: string;
|
|
91
|
+
}, import("@tamagui/core").StackStyleBase, {
|
|
92
|
+
orientation?: "horizontal" | "vertical" | 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
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
96
|
+
}>, "accentColor" | "defaultValue" | "native" | "onValueChange" | "orientation" | "required" | "value" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "orientation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
97
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
98
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
99
|
+
value?: string;
|
|
100
|
+
defaultValue?: string;
|
|
101
|
+
onValueChange?: (value: string) => void;
|
|
102
|
+
required?: boolean;
|
|
103
|
+
disabled?: boolean;
|
|
104
|
+
name?: string;
|
|
105
|
+
native?: boolean;
|
|
106
|
+
accentColor?: string;
|
|
107
|
+
}, import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "orientation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
108
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
109
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
110
|
+
value?: string;
|
|
111
|
+
defaultValue?: string;
|
|
112
|
+
onValueChange?: (value: string) => void;
|
|
113
|
+
required?: boolean;
|
|
114
|
+
disabled?: boolean;
|
|
115
|
+
name?: string;
|
|
116
|
+
native?: boolean;
|
|
117
|
+
accentColor?: string;
|
|
118
|
+
}, import("@tamagui/core").StackStyleBase, {
|
|
119
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
120
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
121
|
+
} & {
|
|
122
|
+
Item: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
123
|
+
disabled?: boolean | undefined;
|
|
124
|
+
}>, "accessibilityActions" | "accessibilityElementsHidden" | "accessibilityHint" | "accessibilityIgnoresInvertColors" | "accessibilityLabel" | "accessibilityLabelledBy" | "accessibilityLanguage" | "accessibilityLargeContentTitle" | "accessibilityLiveRegion" | "accessibilityRespondsToUserInteraction" | "accessibilityRole" | "accessibilityShowsLargeContentViewer" | "accessibilityState" | "accessibilityValue" | "accessibilityViewIsModal" | "accessible" | "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" | "children" | "className" | "collapsable" | "collapsableChildren" | "container" | "dangerouslySetInnerHTML" | "debug" | "disableClassName" | "disableNativeStyle" | "disableOptimization" | "disabled" | "download" | "elevationAndroid" | "forceStyle" | "group" | "hasTVPreferredFocus" | "hitSlop" | "htmlFor" | "id" | "importantForAccessibility" | "isTVSelectable" | "labelledBy" | "name" | "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" | "style" | "tabIndex" | "target" | "testID" | "theme" | "themeShallow" | "tvParallaxMagnification" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "untilMeasured" | "value" | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disabled" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
125
|
+
disabled?: boolean | undefined;
|
|
126
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
127
|
+
value: string;
|
|
128
|
+
id?: string;
|
|
129
|
+
labelledBy?: string;
|
|
130
|
+
disabled?: boolean;
|
|
131
|
+
}, import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disabled" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
132
|
+
disabled?: boolean | undefined;
|
|
133
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
134
|
+
value: string;
|
|
135
|
+
id?: string;
|
|
136
|
+
labelledBy?: string;
|
|
137
|
+
disabled?: boolean;
|
|
138
|
+
}, import("@tamagui/core").StackStyleBase, {
|
|
139
|
+
disabled?: boolean | undefined;
|
|
140
|
+
}, import("@tamagui/core").StaticConfigPublic>;
|
|
141
|
+
Indicator: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}>, "forceMount" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
142
|
+
forceMount?: boolean;
|
|
143
|
+
}, import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
144
|
+
forceMount?: boolean;
|
|
145
|
+
}, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic>;
|
|
146
|
+
};
|
|
18
147
|
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../src/RadioGroup.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../src/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,KAAK,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,MAAM,yBAAyB,CAAA;AAOhC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,mBAAmB;;;;;;;;;;CAc9B,CAAA;AAIF,eAAO,MAAM,wBAAwB;;;;CAEnC,CAAA;AAIF,eAAO,MAAM,eAAe;;;;;;;;;;CAe1B,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC,OAAO,wBAAwB,CAAC,GAAG;IACjF,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,iBAAiB,uCAAkD,CAAA;AAChF,eAAO,MAAM,qBAAqB,2CAGhC,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,GAAG;IACvE,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,GAAG;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AA0GD,eAAO,MAAM,UAAU;;;;;YAlHb,MAAM;mBACC,MAAM;oBACL,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;eAC5B,OAAO;eACP,OAAO;WACX,MAAM;aACJ,OAAO;kBACF,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAPZ,MAAM;uBACC,MAAM;wBACL,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;mBAC5B,OAAO;mBACP,OAAO;eACX,MAAM;iBACJ,OAAO;sBACF,MAAM;;;;;;;;;;;;;;;;;;;;;eAdb,MAAM;aACR,MAAM;qBACE,MAAM;mBACR,OAAO;;;;;;;;;;;;qBAbL,OAAO;;;;CAsIpB,CAAA"}
|