@tamagui/toggle-group 1.69.3 → 1.71.0
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/Toggle.js +4 -2
- package/dist/cjs/Toggle.js.map +1 -1
- package/dist/cjs/Toggle.native.js +4 -2
- package/dist/cjs/Toggle.native.js.map +1 -1
- package/dist/cjs/ToggleGroup.js +42 -43
- package/dist/cjs/ToggleGroup.js.map +1 -1
- package/dist/cjs/ToggleGroup.native.js +42 -43
- package/dist/cjs/ToggleGroup.native.js.map +1 -1
- package/dist/esm/Toggle.js +5 -3
- package/dist/esm/Toggle.js.map +1 -1
- package/dist/esm/ToggleGroup.js +42 -42
- package/dist/esm/ToggleGroup.js.map +1 -1
- package/dist/jsx/Toggle.js +5 -3
- package/dist/jsx/Toggle.js.map +1 -1
- package/dist/jsx/Toggle.native.js +5 -3
- package/dist/jsx/Toggle.native.js.map +1 -1
- package/dist/jsx/ToggleGroup.js +42 -45
- package/dist/jsx/ToggleGroup.js.map +1 -1
- package/dist/jsx/ToggleGroup.native.js +42 -45
- package/dist/jsx/ToggleGroup.native.js.map +1 -1
- package/package.json +13 -13
- package/src/Toggle.tsx +28 -28
- package/src/ToggleGroup.tsx +55 -64
- package/types/ToggleGroup.d.ts +11 -9
- package/types/ToggleGroup.d.ts.map +1 -1
package/types/ToggleGroup.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Scope } from '@tamagui/create-context';
|
|
2
1
|
import { GroupProps } from '@tamagui/group';
|
|
3
2
|
import { RovingFocusGroup } from '@tamagui/roving-focus';
|
|
4
3
|
import { GetProps, SizeTokens } from '@tamagui/web';
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import { ToggleFrame } from './Toggle';
|
|
7
|
-
declare const createToggleGroupScope: import("@tamagui/create-context").CreateScope;
|
|
8
6
|
type ToggleGroupItemProps = GetProps<typeof ToggleFrame> & {
|
|
9
7
|
value: string;
|
|
10
8
|
id?: string;
|
|
@@ -22,7 +20,11 @@ interface ToggleGroupMultipleProps extends ToggleGroupImplMultipleProps {
|
|
|
22
20
|
type: 'multiple';
|
|
23
21
|
}
|
|
24
22
|
type ToggleGroupProps = ToggleGroupSingleProps | ToggleGroupMultipleProps;
|
|
25
|
-
declare const ToggleGroup: React.ForwardRefExoticComponent<(Omit<ToggleGroupSingleProps
|
|
23
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<(Omit<ToggleGroupSingleProps & {
|
|
24
|
+
__scopeToggleGroup?: string | undefined;
|
|
25
|
+
}, "ref"> | Omit<ToggleGroupMultipleProps & {
|
|
26
|
+
__scopeToggleGroup?: string | undefined;
|
|
27
|
+
}, "ref">) & React.RefAttributes<HTMLElement>> & {
|
|
26
28
|
Item: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & {
|
|
27
29
|
style?: import("@tamagui/web").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
28
30
|
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core").RNViewProps & Omit<{
|
|
@@ -201,7 +203,7 @@ declare const ToggleGroupImplElementFrame: import("@tamagui/web").TamaguiCompone
|
|
|
201
203
|
disablePassBorderRadius?: (boolean | "bottom" | "end" | "start" | "top") | undefined;
|
|
202
204
|
forceUseItem?: boolean | undefined;
|
|
203
205
|
} & {
|
|
204
|
-
__scopeGroup?: Scope;
|
|
206
|
+
__scopeGroup?: import("@tamagui/create-context").Scope;
|
|
205
207
|
} & React.RefAttributes<import("@tamagui/web").TamaguiElement> & Omit<import("@tamagui/web").StackProps, "style" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "elevation" | keyof {
|
|
206
208
|
columnGap?: import("@tamagui/web").SpaceValue | undefined;
|
|
207
209
|
contain?: import("csstype").Property.Contain | undefined;
|
|
@@ -312,7 +314,7 @@ declare const ToggleGroupImplElementFrame: import("@tamagui/web").TamaguiCompone
|
|
|
312
314
|
disablePassBorderRadius?: (boolean | "bottom" | "end" | "start" | "top") | undefined;
|
|
313
315
|
forceUseItem?: boolean | undefined;
|
|
314
316
|
} & {
|
|
315
|
-
__scopeGroup?: Scope;
|
|
317
|
+
__scopeGroup?: import("@tamagui/create-context").Scope;
|
|
316
318
|
} & React.RefAttributes<import("@tamagui/web").TamaguiElement> & Omit<import("@tamagui/web").StackProps, "style" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "elevation" | keyof {
|
|
317
319
|
columnGap?: import("@tamagui/web").SpaceValue | undefined;
|
|
318
320
|
contain?: import("csstype").Property.Contain | undefined;
|
|
@@ -423,7 +425,7 @@ declare const ToggleGroupImplElementFrame: import("@tamagui/web").TamaguiCompone
|
|
|
423
425
|
disablePassBorderRadius?: (boolean | "bottom" | "end" | "start" | "top") | undefined;
|
|
424
426
|
forceUseItem?: boolean | undefined;
|
|
425
427
|
} & {
|
|
426
|
-
__scopeGroup?: Scope;
|
|
428
|
+
__scopeGroup?: import("@tamagui/create-context").Scope;
|
|
427
429
|
} & React.RefAttributes<import("@tamagui/web").TamaguiElement> & Omit<import("@tamagui/web").StackProps, "style" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "elevation" | keyof {
|
|
428
430
|
columnGap?: import("@tamagui/web").SpaceValue | undefined;
|
|
429
431
|
contain?: import("csstype").Property.Contain | undefined;
|
|
@@ -534,7 +536,7 @@ declare const ToggleGroupImplElementFrame: import("@tamagui/web").TamaguiCompone
|
|
|
534
536
|
disablePassBorderRadius?: (boolean | "bottom" | "end" | "start" | "top") | undefined;
|
|
535
537
|
forceUseItem?: boolean | undefined;
|
|
536
538
|
} & {
|
|
537
|
-
__scopeGroup?: Scope;
|
|
539
|
+
__scopeGroup?: import("@tamagui/create-context").Scope;
|
|
538
540
|
} & React.RefAttributes<import("@tamagui/web").TamaguiElement> & Omit<import("@tamagui/web").StackProps, "style" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "elevation" | keyof {
|
|
539
541
|
columnGap?: import("@tamagui/web").SpaceValue | undefined;
|
|
540
542
|
contain?: import("csstype").Property.Contain | undefined;
|
|
@@ -579,7 +581,7 @@ declare const ToggleGroupImplElementFrame: import("@tamagui/web").TamaguiCompone
|
|
|
579
581
|
}, {
|
|
580
582
|
displayName: string | undefined;
|
|
581
583
|
Item: (props: import("@tamagui/group").GroupItemProps & {
|
|
582
|
-
__scopeGroup?: Scope;
|
|
584
|
+
__scopeGroup?: import("@tamagui/create-context").Scope;
|
|
583
585
|
}) => any;
|
|
584
586
|
}>;
|
|
585
587
|
type ToggleGroupImplProps = GetProps<typeof ToggleGroupImplElementFrame> & GroupProps & {
|
|
@@ -588,6 +590,6 @@ type ToggleGroupImplProps = GetProps<typeof ToggleGroupImplElementFrame> & Group
|
|
|
588
590
|
loop?: RovingFocusGroupProps['loop'];
|
|
589
591
|
sizeAdjust?: number;
|
|
590
592
|
};
|
|
591
|
-
export { ToggleGroup
|
|
593
|
+
export { ToggleGroup };
|
|
592
594
|
export type { ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, };
|
|
593
595
|
//# sourceMappingURL=ToggleGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../src/ToggleGroup.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../src/ToggleGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,UAAU,EAAgB,MAAM,gBAAgB,CAAA;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAGxD,OAAO,EAEL,QAAQ,EACR,UAAU,EAOX,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAU,WAAW,EAAe,MAAM,UAAU,CAAA;AAqB3D,KAAK,oBAAoB,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,GAAG;IACzD,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA;AA6ID,UAAU,sBAAuB,SAAQ,0BAA0B;IACjE,IAAI,EAAE,QAAQ,CAAA;CACf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