@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/types/index.d.ts
CHANGED
|
@@ -1,253 +1,2 @@
|
|
|
1
|
-
export * from './createRadioGroup';
|
|
2
1
|
export * from './RadioGroup';
|
|
3
|
-
export * from './RadioGroupStyledContext';
|
|
4
|
-
export declare const RadioGroup: import("react").ForwardRefExoticComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
5
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
6
|
-
fullscreen?: boolean | undefined;
|
|
7
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
8
|
-
}>, "native" | `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys | "name" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "value" | "orientation" | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
9
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
10
|
-
fullscreen?: boolean | undefined;
|
|
11
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
12
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | "defaultValue" | "onValueChange" | "required" | "accentColor"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "orientation"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
13
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
14
|
-
fullscreen?: boolean | undefined;
|
|
15
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
16
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
17
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
18
|
-
fullscreen?: boolean | undefined;
|
|
19
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
20
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
21
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
22
|
-
fullscreen?: boolean | undefined;
|
|
23
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
24
|
-
}>> & {
|
|
25
|
-
value?: string;
|
|
26
|
-
defaultValue?: string;
|
|
27
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
28
|
-
required?: boolean;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
name?: string;
|
|
31
|
-
native?: boolean;
|
|
32
|
-
accentColor?: string;
|
|
33
|
-
} & import("react").RefAttributes<import("@tamagui/web").TamaguiElement>> & import("@tamagui/web").StaticComponentObject<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
34
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
35
|
-
fullscreen?: boolean | undefined;
|
|
36
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
37
|
-
}>, "native" | `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys | "name" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "value" | "orientation" | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
38
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
39
|
-
fullscreen?: boolean | undefined;
|
|
40
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
41
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | "defaultValue" | "onValueChange" | "required" | "accentColor"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "orientation"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
42
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
43
|
-
fullscreen?: boolean | undefined;
|
|
44
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
45
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
46
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
47
|
-
fullscreen?: boolean | undefined;
|
|
48
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
49
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
50
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
51
|
-
fullscreen?: boolean | undefined;
|
|
52
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
53
|
-
}>> & {
|
|
54
|
-
value?: string;
|
|
55
|
-
defaultValue?: string;
|
|
56
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
57
|
-
required?: boolean;
|
|
58
|
-
disabled?: boolean;
|
|
59
|
-
name?: string;
|
|
60
|
-
native?: boolean;
|
|
61
|
-
accentColor?: string;
|
|
62
|
-
}, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "orientation"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
63
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
64
|
-
fullscreen?: boolean | undefined;
|
|
65
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
66
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
67
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
68
|
-
fullscreen?: boolean | undefined;
|
|
69
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
70
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
71
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
72
|
-
fullscreen?: boolean | undefined;
|
|
73
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
74
|
-
}>> & {
|
|
75
|
-
value?: string;
|
|
76
|
-
defaultValue?: string;
|
|
77
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
78
|
-
required?: boolean;
|
|
79
|
-
disabled?: boolean;
|
|
80
|
-
name?: string;
|
|
81
|
-
native?: boolean;
|
|
82
|
-
accentColor?: string;
|
|
83
|
-
}, import("@tamagui/web").StackStyleBase, {
|
|
84
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
85
|
-
fullscreen?: boolean | undefined;
|
|
86
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
87
|
-
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig" | "styleable"> & {
|
|
88
|
-
__tama: [Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
89
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
90
|
-
fullscreen?: boolean | undefined;
|
|
91
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
92
|
-
}>, "native" | `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys | "name" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "value" | "orientation" | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
93
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
94
|
-
fullscreen?: boolean | undefined;
|
|
95
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
96
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | "defaultValue" | "onValueChange" | "required" | "accentColor"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "orientation"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
97
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
98
|
-
fullscreen?: boolean | undefined;
|
|
99
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
100
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
101
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
102
|
-
fullscreen?: boolean | undefined;
|
|
103
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
104
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
105
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
106
|
-
fullscreen?: boolean | undefined;
|
|
107
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
108
|
-
}>> & {
|
|
109
|
-
value?: string;
|
|
110
|
-
defaultValue?: string;
|
|
111
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
112
|
-
required?: boolean;
|
|
113
|
-
disabled?: boolean;
|
|
114
|
-
name?: string;
|
|
115
|
-
native?: boolean;
|
|
116
|
-
accentColor?: string;
|
|
117
|
-
}, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "orientation"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
118
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
119
|
-
fullscreen?: boolean | undefined;
|
|
120
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
121
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
122
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
123
|
-
fullscreen?: boolean | undefined;
|
|
124
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
125
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
126
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
127
|
-
fullscreen?: boolean | undefined;
|
|
128
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
129
|
-
}>> & {
|
|
130
|
-
value?: string;
|
|
131
|
-
defaultValue?: string;
|
|
132
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
133
|
-
required?: boolean;
|
|
134
|
-
disabled?: boolean;
|
|
135
|
-
name?: string;
|
|
136
|
-
native?: boolean;
|
|
137
|
-
accentColor?: string;
|
|
138
|
-
}, import("@tamagui/web").StackStyleBase, {
|
|
139
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
140
|
-
fullscreen?: boolean | undefined;
|
|
141
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
142
|
-
}, import("@tamagui/web").StaticConfigPublic];
|
|
143
|
-
} & {
|
|
144
|
-
Item: import("@tamagui/web").TamaguiComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
145
|
-
disabled?: boolean | undefined;
|
|
146
|
-
unstyled?: boolean | undefined;
|
|
147
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
148
|
-
fullscreen?: boolean | undefined;
|
|
149
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
150
|
-
}>, "theme" | "debug" | "style" | `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys | "render" | "hitSlop" | "children" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "elevationAndroid" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "size" | "value" | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
151
|
-
disabled?: boolean | undefined;
|
|
152
|
-
unstyled?: boolean | undefined;
|
|
153
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
154
|
-
fullscreen?: boolean | undefined;
|
|
155
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
156
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | "labelledBy"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disabled" | "unstyled" | "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "size"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
157
|
-
disabled?: boolean | undefined;
|
|
158
|
-
unstyled?: boolean | undefined;
|
|
159
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
160
|
-
fullscreen?: boolean | undefined;
|
|
161
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
162
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
163
|
-
disabled?: boolean | undefined;
|
|
164
|
-
unstyled?: boolean | undefined;
|
|
165
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
166
|
-
fullscreen?: boolean | undefined;
|
|
167
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
168
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
169
|
-
disabled?: boolean | undefined;
|
|
170
|
-
unstyled?: boolean | undefined;
|
|
171
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
172
|
-
fullscreen?: boolean | undefined;
|
|
173
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
174
|
-
}>> & {
|
|
175
|
-
value: string;
|
|
176
|
-
id?: string;
|
|
177
|
-
labelledBy?: string;
|
|
178
|
-
disabled?: boolean;
|
|
179
|
-
}, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "disabled" | "unstyled" | "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | "size"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
180
|
-
disabled?: boolean | undefined;
|
|
181
|
-
unstyled?: boolean | undefined;
|
|
182
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
183
|
-
fullscreen?: boolean | undefined;
|
|
184
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
185
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
186
|
-
disabled?: boolean | undefined;
|
|
187
|
-
unstyled?: boolean | undefined;
|
|
188
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
189
|
-
fullscreen?: boolean | undefined;
|
|
190
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
191
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
192
|
-
disabled?: boolean | undefined;
|
|
193
|
-
unstyled?: boolean | undefined;
|
|
194
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
195
|
-
fullscreen?: boolean | undefined;
|
|
196
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
197
|
-
}>> & {
|
|
198
|
-
value: string;
|
|
199
|
-
id?: string;
|
|
200
|
-
labelledBy?: string;
|
|
201
|
-
disabled?: boolean;
|
|
202
|
-
}, import("@tamagui/web").StackStyleBase, {
|
|
203
|
-
disabled?: boolean | undefined;
|
|
204
|
-
unstyled?: boolean | undefined;
|
|
205
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
206
|
-
fullscreen?: boolean | undefined;
|
|
207
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
208
|
-
}, import("@tamagui/web").StaticConfigPublic>;
|
|
209
|
-
Indicator: import("@tamagui/web").TamaguiComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
210
|
-
unstyled?: boolean | undefined;
|
|
211
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
212
|
-
fullscreen?: boolean | undefined;
|
|
213
|
-
}>, "theme" | "debug" | "style" | `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys | "render" | "hitSlop" | "children" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "onStartShouldSetResponder" | "onScrollShouldSetResponder" | "onScrollShouldSetResponderCapture" | "onSelectionChangeShouldSetResponder" | "onSelectionChangeShouldSetResponderCapture" | "onLayout" | "elevationAndroid" | "rel" | "download" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen" | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
214
|
-
unstyled?: boolean | undefined;
|
|
215
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
216
|
-
fullscreen?: boolean | undefined;
|
|
217
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | "forceMount"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "unstyled" | "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
218
|
-
unstyled?: boolean | undefined;
|
|
219
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
220
|
-
fullscreen?: boolean | undefined;
|
|
221
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
222
|
-
unstyled?: boolean | undefined;
|
|
223
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
224
|
-
fullscreen?: boolean | undefined;
|
|
225
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
226
|
-
unstyled?: boolean | undefined;
|
|
227
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
228
|
-
fullscreen?: boolean | undefined;
|
|
229
|
-
}>> & {
|
|
230
|
-
forceMount?: boolean;
|
|
231
|
-
unstyled?: boolean;
|
|
232
|
-
}, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "unstyled" | "elevation" | keyof import("@tamagui/web").StackStyleBase | "fullscreen"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
233
|
-
unstyled?: boolean | undefined;
|
|
234
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
235
|
-
fullscreen?: boolean | undefined;
|
|
236
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
237
|
-
unstyled?: boolean | undefined;
|
|
238
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
239
|
-
fullscreen?: boolean | undefined;
|
|
240
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
241
|
-
unstyled?: boolean | undefined;
|
|
242
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
243
|
-
fullscreen?: boolean | undefined;
|
|
244
|
-
}>> & {
|
|
245
|
-
forceMount?: boolean;
|
|
246
|
-
unstyled?: boolean;
|
|
247
|
-
}, import("@tamagui/web").StackStyleBase, {
|
|
248
|
-
unstyled?: boolean | undefined;
|
|
249
|
-
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
250
|
-
fullscreen?: boolean | undefined;
|
|
251
|
-
}, import("@tamagui/web").StaticConfigPublic>;
|
|
252
|
-
};
|
|
253
2
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var RadioGroupStyledContext_exports = {};
|
|
24
|
-
__export(RadioGroupStyledContext_exports, {
|
|
25
|
-
RadioGroupStyledContext: () => RadioGroupStyledContext
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(RadioGroupStyledContext_exports);
|
|
28
|
-
var import_core = require("@tamagui/core");
|
|
29
|
-
const RadioGroupStyledContext = (0, import_core.createStyledContext)({
|
|
30
|
-
size: "$true",
|
|
31
|
-
scaleIcon: 1
|
|
32
|
-
}, "RadioGroup");
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var RadioGroupStyledContext_exports = {};
|
|
26
|
-
__export(RadioGroupStyledContext_exports, {
|
|
27
|
-
RadioGroupStyledContext: () => RadioGroupStyledContext
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(RadioGroupStyledContext_exports);
|
|
30
|
-
var import_core = require("@tamagui/core");
|
|
31
|
-
var RadioGroupStyledContext = (0, import_core.createStyledContext)({
|
|
32
|
-
size: "$true",
|
|
33
|
-
scaleIcon: 1
|
|
34
|
-
}, "RadioGroup");
|
|
35
|
-
//# sourceMappingURL=RadioGroupStyledContext.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","RadioGroupStyledContext_exports","__export","RadioGroupStyledContext","module","exports","import_core","require","createStyledContext","size","scaleIcon"],"sources":["../../src/RadioGroupStyledContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,+BAAA;AAAAC,QAAA,CAAAD,+BAAA;EAAAE,uBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAAoC,CAAAK,+BAAA;AAE7B,IAAAK,WAAM,GAAAC,OAAA,gBAA0B;AAAA,IACrCJ,uBAAA,OAAAG,WAAA,CAAAE,mBAAA;EAAAC,IACE,SAAM;EAAAC,SACN;AAAW,GACb","ignoreList":[]}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
value: mod,
|
|
29
|
-
enumerable: true
|
|
30
|
-
}) : target, mod));
|
|
31
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
-
value: true
|
|
33
|
-
}), mod);
|
|
34
|
-
var createRadioGroup_exports = {};
|
|
35
|
-
__export(createRadioGroup_exports, {
|
|
36
|
-
createRadioGroup: () => createRadioGroup
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(createRadioGroup_exports);
|
|
39
|
-
var import_core = require("@tamagui/core");
|
|
40
|
-
var import_radio_headless = require("@tamagui/radio-headless");
|
|
41
|
-
var import_roving_focus = require("@tamagui/roving-focus");
|
|
42
|
-
var import_react = __toESM(require("react"), 1);
|
|
43
|
-
var import_RadioGroup = require("./RadioGroup.cjs");
|
|
44
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
-
const ensureContext = x => {
|
|
46
|
-
if (!x.context) {
|
|
47
|
-
x.context = RadioGroupContext;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
const RadioGroupContext = import_react.default.createContext({});
|
|
51
|
-
const RadioGroupItemContext = import_react.default.createContext({
|
|
52
|
-
checked: false,
|
|
53
|
-
disabled: false
|
|
54
|
-
});
|
|
55
|
-
function createRadioGroup(createProps) {
|
|
56
|
-
const {
|
|
57
|
-
disableActiveTheme,
|
|
58
|
-
Frame = import_RadioGroup.RadioGroupFrame,
|
|
59
|
-
Indicator = import_RadioGroup.RadioGroupIndicatorFrame,
|
|
60
|
-
Item = import_RadioGroup.RadioGroupItemFrame
|
|
61
|
-
} = createProps;
|
|
62
|
-
ensureContext(Frame);
|
|
63
|
-
ensureContext(Indicator);
|
|
64
|
-
ensureContext(Item);
|
|
65
|
-
const RadioGroupImp = Frame.styleable((props, ref) => {
|
|
66
|
-
const {
|
|
67
|
-
value,
|
|
68
|
-
defaultValue,
|
|
69
|
-
onValueChange,
|
|
70
|
-
required = false,
|
|
71
|
-
disabled = false,
|
|
72
|
-
name,
|
|
73
|
-
native,
|
|
74
|
-
accentColor,
|
|
75
|
-
orientation = "vertical",
|
|
76
|
-
...rest
|
|
77
|
-
} = props;
|
|
78
|
-
const {
|
|
79
|
-
providerValue,
|
|
80
|
-
frameAttrs,
|
|
81
|
-
rovingFocusGroupAttrs
|
|
82
|
-
} = (0, import_radio_headless.useRadioGroup)({
|
|
83
|
-
orientation,
|
|
84
|
-
name,
|
|
85
|
-
defaultValue,
|
|
86
|
-
value,
|
|
87
|
-
onValueChange,
|
|
88
|
-
required,
|
|
89
|
-
disabled,
|
|
90
|
-
native,
|
|
91
|
-
accentColor
|
|
92
|
-
});
|
|
93
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RadioGroupContext.Provider, {
|
|
94
|
-
value: providerValue,
|
|
95
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_roving_focus.RovingFocusGroup, {
|
|
96
|
-
...rovingFocusGroupAttrs,
|
|
97
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupFrame, {
|
|
98
|
-
...frameAttrs,
|
|
99
|
-
ref,
|
|
100
|
-
...rest
|
|
101
|
-
})
|
|
102
|
-
})
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
const RadioGroupItemImp = Item.styleable((props, ref) => {
|
|
106
|
-
const {
|
|
107
|
-
value,
|
|
108
|
-
labelledBy,
|
|
109
|
-
onPress,
|
|
110
|
-
onKeyDown,
|
|
111
|
-
disabled,
|
|
112
|
-
id,
|
|
113
|
-
...rest
|
|
114
|
-
} = props;
|
|
115
|
-
const {
|
|
116
|
-
providerValue,
|
|
117
|
-
bubbleInput,
|
|
118
|
-
rovingFocusGroupAttrs,
|
|
119
|
-
frameAttrs,
|
|
120
|
-
isFormControl,
|
|
121
|
-
native
|
|
122
|
-
} = (0, import_radio_headless.useRadioGroupItem)({
|
|
123
|
-
radioGroupContext: RadioGroupContext,
|
|
124
|
-
value,
|
|
125
|
-
id,
|
|
126
|
-
labelledBy,
|
|
127
|
-
disabled,
|
|
128
|
-
onPress,
|
|
129
|
-
onKeyDown
|
|
130
|
-
});
|
|
131
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(RadioGroupItemContext.Provider, {
|
|
132
|
-
value: providerValue,
|
|
133
|
-
children: import_core.isWeb && native ? bubbleInput : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
134
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_roving_focus.RovingFocusGroup.Item, {
|
|
135
|
-
...rovingFocusGroupAttrs,
|
|
136
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_RadioGroup.RadioGroupItemFrame, {
|
|
137
|
-
...frameAttrs,
|
|
138
|
-
ref,
|
|
139
|
-
...rest
|
|
140
|
-
})
|
|
141
|
-
}), isFormControl && bubbleInput]
|
|
142
|
-
})
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
RadioGroupItemImp.displayName = "RadioGroupItem";
|
|
146
|
-
const RadioIndicator = Indicator.styleable((props, forwardedRef) => {
|
|
147
|
-
const {
|
|
148
|
-
forceMount,
|
|
149
|
-
disabled,
|
|
150
|
-
...indicatorProps
|
|
151
|
-
} = props;
|
|
152
|
-
const {
|
|
153
|
-
checked,
|
|
154
|
-
...useIndicatorRest
|
|
155
|
-
} = (0, import_radio_headless.useRadioGroupItemIndicator)({
|
|
156
|
-
radioGroupItemContext: RadioGroupItemContext,
|
|
157
|
-
disabled
|
|
158
|
-
});
|
|
159
|
-
if (forceMount || checked) {
|
|
160
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(Indicator, {
|
|
161
|
-
...useIndicatorRest,
|
|
162
|
-
ref: forwardedRef,
|
|
163
|
-
...indicatorProps
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
return null;
|
|
167
|
-
});
|
|
168
|
-
RadioIndicator.displayName = "RadioIndicator";
|
|
169
|
-
const RadioGroup = (0, import_core.withStaticProperties)(RadioGroupImp, {
|
|
170
|
-
Item: RadioGroupItemImp,
|
|
171
|
-
Indicator: RadioIndicator
|
|
172
|
-
});
|
|
173
|
-
RadioGroup.displayName = "RadioGroup";
|
|
174
|
-
return RadioGroup;
|
|
175
|
-
}
|