@tamagui/toggle-group 2.0.0-1768024799864 → 2.0.0-1768247234371
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.cjs +24 -15
- package/dist/cjs/Toggle.js +21 -15
- package/dist/cjs/Toggle.js.map +2 -2
- package/dist/cjs/Toggle.native.js +28 -16
- package/dist/cjs/Toggle.native.js.map +1 -1
- package/dist/cjs/ToggleGroup.cjs +43 -30
- package/dist/cjs/ToggleGroup.js +41 -30
- package/dist/cjs/ToggleGroup.js.map +2 -2
- package/dist/cjs/ToggleGroup.native.js +45 -31
- package/dist/cjs/ToggleGroup.native.js.map +1 -1
- package/dist/esm/Toggle.js +21 -15
- package/dist/esm/Toggle.js.map +2 -2
- package/dist/esm/Toggle.mjs +24 -15
- package/dist/esm/Toggle.mjs.map +1 -1
- package/dist/esm/Toggle.native.js +28 -16
- package/dist/esm/Toggle.native.js.map +1 -1
- package/dist/esm/ToggleGroup.js +43 -38
- package/dist/esm/ToggleGroup.js.map +1 -1
- package/dist/esm/ToggleGroup.mjs +45 -32
- package/dist/esm/ToggleGroup.mjs.map +1 -1
- package/dist/esm/ToggleGroup.native.js +47 -33
- package/dist/esm/ToggleGroup.native.js.map +1 -1
- package/dist/jsx/Toggle.js +21 -15
- package/dist/jsx/Toggle.js.map +2 -2
- package/dist/jsx/Toggle.mjs +24 -15
- package/dist/jsx/Toggle.mjs.map +1 -1
- package/dist/jsx/Toggle.native.js +28 -16
- package/dist/jsx/Toggle.native.js.map +1 -1
- package/dist/jsx/ToggleGroup.js +43 -38
- package/dist/jsx/ToggleGroup.js.map +1 -1
- package/dist/jsx/ToggleGroup.mjs +45 -32
- package/dist/jsx/ToggleGroup.mjs.map +1 -1
- package/dist/jsx/ToggleGroup.native.js +45 -31
- package/dist/jsx/ToggleGroup.native.js.map +1 -1
- package/package.json +15 -15
- package/src/Toggle.tsx +25 -19
- package/src/ToggleGroup.tsx +107 -93
- package/types/Toggle.d.ts +18 -13
- package/types/Toggle.d.ts.map +1 -1
- package/types/ToggleGroup.d.ts +177 -2
- package/types/ToggleGroup.d.ts.map +1 -1
package/src/Toggle.tsx
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { composeEventHandlers } from '@tamagui/helpers'
|
|
2
2
|
import { ThemeableStack } from '@tamagui/stacks'
|
|
3
3
|
import { useControllableState } from '@tamagui/use-controllable-state'
|
|
4
|
-
import type { GetProps, TamaguiElement } from '@tamagui/web'
|
|
4
|
+
import type { GetProps, StackStyleBase, TamaguiElement } from '@tamagui/web'
|
|
5
5
|
import { createStyledContext, styled, Text } from '@tamagui/web'
|
|
6
6
|
import * as React from 'react'
|
|
7
7
|
|
|
8
|
+
export type ToggleStylesBase = StackStyleBase & { color?: string }
|
|
9
|
+
|
|
8
10
|
export const context = createStyledContext({
|
|
9
11
|
color: '',
|
|
12
|
+
toggledStyle: null as null | ToggleStylesBase,
|
|
10
13
|
})
|
|
11
14
|
|
|
12
15
|
/* -------------------------------------------------------------------------------------------------
|
|
@@ -48,24 +51,26 @@ export const ToggleFrame = styled(ThemeableStack, {
|
|
|
48
51
|
},
|
|
49
52
|
},
|
|
50
53
|
|
|
51
|
-
|
|
52
|
-
'...color': () => {
|
|
53
|
-
return {}
|
|
54
|
-
},
|
|
55
|
-
},
|
|
54
|
+
toggledStyle: (val: ToggleStylesBase | null) => ({}),
|
|
56
55
|
|
|
57
56
|
active: {
|
|
58
|
-
true: {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
57
|
+
true: (_, { props, context }: any) => {
|
|
58
|
+
const toggledStyle = props.toggledStyle || context?.toggledStyle
|
|
59
|
+
return {
|
|
60
|
+
zIndex: 1,
|
|
61
|
+
...(!props.unstyled &&
|
|
62
|
+
!toggledStyle && {
|
|
63
|
+
backgroundColor: '$background',
|
|
64
|
+
hoverStyle: {
|
|
65
|
+
backgroundColor: '$background',
|
|
66
|
+
},
|
|
67
|
+
focusStyle: {
|
|
68
|
+
backgroundColor: '$background',
|
|
69
|
+
borderColor: '$borderColor',
|
|
70
|
+
},
|
|
71
|
+
}),
|
|
72
|
+
...toggledStyle,
|
|
73
|
+
}
|
|
69
74
|
},
|
|
70
75
|
},
|
|
71
76
|
|
|
@@ -94,6 +99,7 @@ type ToggleItemExtraProps = {
|
|
|
94
99
|
pressed?: boolean
|
|
95
100
|
defaultPressed?: boolean
|
|
96
101
|
onPressedChange?(pressed: boolean): void
|
|
102
|
+
toggledStyle?: ToggleStylesBase | null
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
export type ToggleProps = ToggleFrameProps & ToggleItemExtraProps
|
|
@@ -119,7 +125,7 @@ export const Toggle = React.forwardRef<TamaguiElement, ToggleProps>(
|
|
|
119
125
|
theme: pressed ? 'accent' : null,
|
|
120
126
|
themeShallow: true,
|
|
121
127
|
})}
|
|
122
|
-
active={
|
|
128
|
+
active={pressed}
|
|
123
129
|
aria-pressed={pressed}
|
|
124
130
|
data-state={pressed ? 'on' : 'off'}
|
|
125
131
|
data-disabled={props.disabled ? '' : undefined}
|
|
@@ -127,7 +133,7 @@ export const Toggle = React.forwardRef<TamaguiElement, ToggleProps>(
|
|
|
127
133
|
ref={forwardedRef}
|
|
128
134
|
onPress={composeEventHandlers(props.onPress ?? undefined, () => {
|
|
129
135
|
if (!props.disabled) {
|
|
130
|
-
setPressed(!
|
|
136
|
+
setPressed((prev) => !prev)
|
|
131
137
|
}
|
|
132
138
|
})}
|
|
133
139
|
/>
|
package/src/ToggleGroup.tsx
CHANGED
|
@@ -10,17 +10,11 @@ import { RovingFocusGroup } from '@tamagui/roving-focus'
|
|
|
10
10
|
import { useControllableState } from '@tamagui/use-controllable-state'
|
|
11
11
|
import { useDirection } from '@tamagui/use-direction'
|
|
12
12
|
import type { FontSizeTokens, GetProps, SizeTokens, TamaguiElement } from '@tamagui/web'
|
|
13
|
-
import {
|
|
14
|
-
createStyledContext,
|
|
15
|
-
getVariableValue,
|
|
16
|
-
styled,
|
|
17
|
-
usePropsAndStyle,
|
|
18
|
-
useTheme,
|
|
19
|
-
} from '@tamagui/web'
|
|
13
|
+
import { createStyledContext, getVariableValue, styled, useTheme } from '@tamagui/web'
|
|
20
14
|
import React from 'react'
|
|
21
15
|
|
|
22
|
-
import type { ToggleProps } from './Toggle'
|
|
23
|
-
import { Toggle, ToggleFrame } from './Toggle'
|
|
16
|
+
import type { ToggleProps, ToggleStylesBase } from './Toggle'
|
|
17
|
+
import { Toggle, ToggleFrame, context as ToggleContext } from './Toggle'
|
|
24
18
|
|
|
25
19
|
const TOGGLE_GROUP_NAME = 'ToggleGroup'
|
|
26
20
|
|
|
@@ -49,75 +43,89 @@ type ToggleGroupItemProps = GetProps<typeof ToggleFrame> & {
|
|
|
49
43
|
* Used to disable passing styles down to children.
|
|
50
44
|
*/
|
|
51
45
|
disablePassStyles?: boolean
|
|
46
|
+
toggledStyle?: ToggleStylesBase | null
|
|
47
|
+
color?: string
|
|
52
48
|
}
|
|
53
|
-
const ToggleGroupItem = ToggleFrame.styleable<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
const iconSize =
|
|
75
|
-
(typeof size === 'number' ? size * 0.7 : getFontSize(size as FontSizeTokens)) * 1.2
|
|
49
|
+
const ToggleGroupItem = ToggleFrame.styleable<ScopedProps<ToggleGroupItemProps>>(
|
|
50
|
+
(props, forwardedRef) => {
|
|
51
|
+
const valueContext = useToggleGroupValueContext(props.__scopeToggleGroup)
|
|
52
|
+
const context = useToggleGroupContext(props.__scopeToggleGroup)
|
|
53
|
+
const toggleContext = ToggleContext.useStyledContext(props.__scopeToggleGroup)
|
|
54
|
+
const pressed = valueContext?.value.includes(props.value)
|
|
55
|
+
const toggledStyle = props.toggledStyle || toggleContext.toggledStyle
|
|
56
|
+
const color = (props as any).color || toggleContext.color
|
|
57
|
+
const { disablePassStyles, toggledStyle: _, ...rest } = props
|
|
58
|
+
const disabled = context.disabled || props.disabled || false
|
|
59
|
+
const groupItemProps = useGroupItem({ disabled })
|
|
60
|
+
const size = props.size ?? context.size
|
|
61
|
+
|
|
62
|
+
const sizeProps: Record<string, any> = props.unstyled
|
|
63
|
+
? {}
|
|
64
|
+
: {
|
|
65
|
+
width: undefined,
|
|
66
|
+
height: undefined,
|
|
67
|
+
padding: getVariableValue(size) * 0.6,
|
|
68
|
+
}
|
|
76
69
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
size: iconSize,
|
|
80
|
-
color: color ?? theme.color,
|
|
81
|
-
})
|
|
70
|
+
const iconSize =
|
|
71
|
+
(typeof size === 'number' ? size * 0.7 : getFontSize(size as FontSizeTokens)) * 1.2
|
|
82
72
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
73
|
+
const theme = useTheme()
|
|
74
|
+
const toggledColor = (toggledStyle as ToggleStylesBase)?.color
|
|
75
|
+
const activeColor = pressed && toggledColor ? toggledColor : color
|
|
76
|
+
const getThemedIcon = useGetThemedIcon({
|
|
77
|
+
size: iconSize,
|
|
78
|
+
color: activeColor || theme.color,
|
|
79
|
+
})
|
|
90
80
|
|
|
91
|
-
|
|
81
|
+
const childrens = React.Children.toArray(props.children)
|
|
82
|
+
const children = childrens.map((child) => {
|
|
83
|
+
if (props.disablePassStyles || !React.isValidElement(child)) {
|
|
84
|
+
return child
|
|
85
|
+
}
|
|
86
|
+
return React.cloneElement(getThemedIcon(child), { active: pressed } as any)
|
|
87
|
+
})
|
|
92
88
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
/>
|
|
102
|
-
)
|
|
89
|
+
const commonProps = {
|
|
90
|
+
pressed,
|
|
91
|
+
disabled,
|
|
92
|
+
...sizeProps,
|
|
93
|
+
...rest,
|
|
94
|
+
children,
|
|
95
|
+
toggledStyle,
|
|
96
|
+
}
|
|
103
97
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
98
|
+
const inner = (
|
|
99
|
+
<ToggleGroupItemImpl
|
|
100
|
+
{...commonProps}
|
|
101
|
+
ref={forwardedRef}
|
|
102
|
+
// focusable={!disabled}
|
|
103
|
+
tabIndex={disabled ? -1 : 0}
|
|
104
|
+
disabled={disabled}
|
|
105
|
+
{...groupItemProps}
|
|
106
|
+
/>
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
return (
|
|
110
|
+
<ToggleGroupItemProvider scope={props.__scopeToggleGroup}>
|
|
111
|
+
<ToggleContext.Provider color={color} toggledStyle={toggledStyle}>
|
|
112
|
+
{context.rovingFocus ? (
|
|
113
|
+
<RovingFocusGroup.Item
|
|
114
|
+
asChild="except-style"
|
|
115
|
+
__scopeRovingFocusGroup={props.__scopeToggleGroup || TOGGLE_GROUP_CONTEXT}
|
|
116
|
+
focusable={!disabled}
|
|
117
|
+
active={pressed}
|
|
118
|
+
>
|
|
119
|
+
{inner}
|
|
120
|
+
</RovingFocusGroup.Item>
|
|
121
|
+
) : (
|
|
122
|
+
inner
|
|
123
|
+
)}
|
|
124
|
+
</ToggleContext.Provider>
|
|
125
|
+
</ToggleGroupItemProvider>
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
)
|
|
121
129
|
ToggleGroupItem.displayName = TOGGLE_GROUP_ITEM_NAME
|
|
122
130
|
|
|
123
131
|
/* -----------------------------------------------------------------------------------------------*/
|
|
@@ -390,6 +398,8 @@ type ToggleGroupImplProps = GetProps<typeof ToggleGroupImplElementFrame> &
|
|
|
390
398
|
dir?: RovingFocusGroupProps['dir']
|
|
391
399
|
loop?: RovingFocusGroupProps['loop']
|
|
392
400
|
sizeAdjust?: number
|
|
401
|
+
toggledStyle?: ToggleStylesBase | null
|
|
402
|
+
color?: string
|
|
393
403
|
}
|
|
394
404
|
|
|
395
405
|
const ToggleGroupImpl = ToggleGroupImplElementFrame.styleable<
|
|
@@ -406,6 +416,8 @@ const ToggleGroupImpl = ToggleGroupImplElementFrame.styleable<
|
|
|
406
416
|
unstyled = false,
|
|
407
417
|
size: sizeProp = '$true',
|
|
408
418
|
sizeAdjust = 0,
|
|
419
|
+
toggledStyle,
|
|
420
|
+
color,
|
|
409
421
|
...toggleGroupProps
|
|
410
422
|
} = props
|
|
411
423
|
const direction = useDirection(dir)
|
|
@@ -428,34 +440,36 @@ const ToggleGroupImpl = ToggleGroupImplElementFrame.styleable<
|
|
|
428
440
|
disabled={disabled}
|
|
429
441
|
size={size}
|
|
430
442
|
>
|
|
431
|
-
{
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
443
|
+
<ToggleContext.Provider color={color} toggledStyle={toggledStyle}>
|
|
444
|
+
{rovingFocus ? (
|
|
445
|
+
<RovingFocusGroup
|
|
446
|
+
asChild="except-style"
|
|
447
|
+
__scopeRovingFocusGroup={__scopeToggleGroup || TOGGLE_GROUP_CONTEXT}
|
|
448
|
+
orientation={orientation}
|
|
449
|
+
dir={direction}
|
|
450
|
+
loop={loop}
|
|
451
|
+
>
|
|
452
|
+
<ToggleGroupImplElementFrame
|
|
453
|
+
aria-orientation={orientation}
|
|
454
|
+
orientation={orientation}
|
|
455
|
+
// axis={orientation}
|
|
456
|
+
ref={forwardedRef}
|
|
457
|
+
data-disabled={disabled ? '' : undefined}
|
|
458
|
+
unstyled={unstyled}
|
|
459
|
+
{...commonProps}
|
|
460
|
+
/>
|
|
461
|
+
</RovingFocusGroup>
|
|
462
|
+
) : (
|
|
439
463
|
<ToggleGroupImplElementFrame
|
|
440
464
|
aria-orientation={orientation}
|
|
441
|
-
orientation={orientation}
|
|
442
|
-
// axis={orientation}
|
|
443
465
|
ref={forwardedRef}
|
|
466
|
+
orientation={orientation}
|
|
444
467
|
data-disabled={disabled ? '' : undefined}
|
|
445
468
|
unstyled={unstyled}
|
|
446
469
|
{...commonProps}
|
|
447
470
|
/>
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
<ToggleGroupImplElementFrame
|
|
451
|
-
aria-orientation={orientation}
|
|
452
|
-
ref={forwardedRef}
|
|
453
|
-
orientation={orientation}
|
|
454
|
-
data-disabled={disabled ? '' : undefined}
|
|
455
|
-
unstyled={unstyled}
|
|
456
|
-
{...commonProps}
|
|
457
|
-
/>
|
|
458
|
-
)}
|
|
471
|
+
)}
|
|
472
|
+
</ToggleContext.Provider>
|
|
459
473
|
</ToggleGroupContext>
|
|
460
474
|
)
|
|
461
475
|
})
|
package/types/Toggle.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type { GetProps, TamaguiElement } from '@tamagui/web';
|
|
1
|
+
import type { GetProps, StackStyleBase, TamaguiElement } from '@tamagui/web';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
export type ToggleStylesBase = StackStyleBase & {
|
|
4
|
+
color?: string;
|
|
5
|
+
};
|
|
3
6
|
export declare const context: import("@tamagui/web").StyledContext<{
|
|
4
7
|
color: string;
|
|
8
|
+
toggledStyle: null | ToggleStylesBase;
|
|
5
9
|
}>;
|
|
6
|
-
export declare const ToggleFrame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps,
|
|
7
|
-
color?: import("@tamagui/web").ColorTokens | undefined;
|
|
10
|
+
export declare const ToggleFrame: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, StackStyleBase, {
|
|
8
11
|
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
9
12
|
transparent?: boolean | undefined;
|
|
10
13
|
fullscreen?: boolean | undefined;
|
|
@@ -18,8 +21,9 @@ export declare const ToggleFrame: import("@tamagui/web").TamaguiComponent<import
|
|
|
18
21
|
elevate?: boolean | undefined;
|
|
19
22
|
bordered?: number | boolean | undefined;
|
|
20
23
|
chromeless?: boolean | "all" | undefined;
|
|
21
|
-
|
|
24
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
22
25
|
active?: boolean | undefined;
|
|
26
|
+
unstyled?: boolean | undefined;
|
|
23
27
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
24
28
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
25
29
|
type ToggleFrameProps = GetProps<typeof ToggleFrame>;
|
|
@@ -29,10 +33,10 @@ type ToggleItemExtraProps = {
|
|
|
29
33
|
pressed?: boolean;
|
|
30
34
|
defaultPressed?: boolean;
|
|
31
35
|
onPressedChange?(pressed: boolean): void;
|
|
36
|
+
toggledStyle?: ToggleStylesBase | null;
|
|
32
37
|
};
|
|
33
38
|
export type ToggleProps = ToggleFrameProps & ToggleItemExtraProps;
|
|
34
|
-
export declare const Toggle: React.ForwardRefExoticComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "
|
|
35
|
-
color?: import("@tamagui/web").ColorTokens | undefined;
|
|
39
|
+
export declare const Toggle: React.ForwardRefExoticComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof StackStyleBase | "transparent" | "fullscreen" | "circular" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "padded" | "elevate" | "bordered" | "chromeless" | "toggledStyle" | "active" | "unstyled" | "orientation"> & import("@tamagui/web").WithThemeValues<StackStyleBase> & {
|
|
36
40
|
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
37
41
|
transparent?: boolean | undefined;
|
|
38
42
|
fullscreen?: boolean | undefined;
|
|
@@ -46,11 +50,11 @@ export declare const Toggle: React.ForwardRefExoticComponent<Omit<import("@tamag
|
|
|
46
50
|
elevate?: boolean | undefined;
|
|
47
51
|
bordered?: number | boolean | undefined;
|
|
48
52
|
chromeless?: boolean | "all" | undefined;
|
|
49
|
-
|
|
53
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
50
54
|
active?: boolean | undefined;
|
|
55
|
+
unstyled?: boolean | undefined;
|
|
51
56
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
52
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<
|
|
53
|
-
color?: import("@tamagui/web").ColorTokens | undefined;
|
|
57
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<StackStyleBase> & {
|
|
54
58
|
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
55
59
|
transparent?: boolean | undefined;
|
|
56
60
|
fullscreen?: boolean | undefined;
|
|
@@ -64,11 +68,11 @@ export declare const Toggle: React.ForwardRefExoticComponent<Omit<import("@tamag
|
|
|
64
68
|
elevate?: boolean | undefined;
|
|
65
69
|
bordered?: number | boolean | undefined;
|
|
66
70
|
chromeless?: boolean | "all" | undefined;
|
|
67
|
-
|
|
71
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
68
72
|
active?: boolean | undefined;
|
|
73
|
+
unstyled?: boolean | undefined;
|
|
69
74
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
70
|
-
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<
|
|
71
|
-
color?: import("@tamagui/web").ColorTokens | undefined;
|
|
75
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<StackStyleBase, {
|
|
72
76
|
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
73
77
|
transparent?: boolean | undefined;
|
|
74
78
|
fullscreen?: boolean | undefined;
|
|
@@ -82,8 +86,9 @@ export declare const Toggle: React.ForwardRefExoticComponent<Omit<import("@tamag
|
|
|
82
86
|
elevate?: boolean | undefined;
|
|
83
87
|
bordered?: number | boolean | undefined;
|
|
84
88
|
chromeless?: boolean | "all" | undefined;
|
|
85
|
-
|
|
89
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
86
90
|
active?: boolean | undefined;
|
|
91
|
+
unstyled?: boolean | undefined;
|
|
87
92
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
88
93
|
}>> & ToggleItemExtraProps & React.RefAttributes<TamaguiElement>>;
|
|
89
94
|
export {};
|
package/types/Toggle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../src/Toggle.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../src/Toggle.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE5E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,MAAM,gBAAgB,GAAG,cAAc,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAElE,eAAO,MAAM,OAAO;;kBAEI,IAAI,GAAG,gBAAgB;EAC7C,CAAA;AAQF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;6CAuEtB,CAAA;AAEF,KAAK,gBAAgB,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA;AAEpD,KAAK,oBAAoB,GAAG;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;IACxC,YAAY,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,oBAAoB,CAAA;AAEjE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iEAmClB,CAAA"}
|
package/types/ToggleGroup.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { GroupProps } from '@tamagui/group';
|
|
|
2
2
|
import { RovingFocusGroup } from '@tamagui/roving-focus';
|
|
3
3
|
import type { GetProps, SizeTokens, TamaguiElement } from '@tamagui/web';
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import type { ToggleStylesBase } from './Toggle';
|
|
5
6
|
import { ToggleFrame } from './Toggle';
|
|
6
7
|
type ToggleGroupItemProps = GetProps<typeof ToggleFrame> & {
|
|
7
8
|
value: string;
|
|
@@ -12,6 +13,8 @@ type ToggleGroupItemProps = GetProps<typeof ToggleFrame> & {
|
|
|
12
13
|
* Used to disable passing styles down to children.
|
|
13
14
|
*/
|
|
14
15
|
disablePassStyles?: boolean;
|
|
16
|
+
toggledStyle?: ToggleStylesBase | null;
|
|
17
|
+
color?: string;
|
|
15
18
|
};
|
|
16
19
|
type ScopedProps<P> = P & {
|
|
17
20
|
__scopeToggleGroup?: string;
|
|
@@ -24,8 +27,7 @@ interface ToggleGroupMultipleProps extends ToggleGroupImplMultipleProps {
|
|
|
24
27
|
}
|
|
25
28
|
type ToggleGroupProps = ToggleGroupSingleProps | ToggleGroupMultipleProps;
|
|
26
29
|
declare const ToggleGroup: React.ForwardRefExoticComponent<ScopedProps<ToggleGroupProps> & React.RefAttributes<TamaguiElement>> & {
|
|
27
|
-
Item: import("@tamagui/web").TamaguiComponent<
|
|
28
|
-
color?: import("@tamagui/web").ColorTokens | undefined;
|
|
30
|
+
Item: import("@tamagui/web").TamaguiComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
29
31
|
elevation?: number | SizeTokens | undefined;
|
|
30
32
|
transparent?: boolean | undefined;
|
|
31
33
|
fullscreen?: boolean | undefined;
|
|
@@ -39,8 +41,179 @@ declare const ToggleGroup: React.ForwardRefExoticComponent<ScopedProps<ToggleGro
|
|
|
39
41
|
elevate?: boolean | undefined;
|
|
40
42
|
bordered?: number | boolean | undefined;
|
|
41
43
|
chromeless?: boolean | "all" | undefined;
|
|
44
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
45
|
+
active?: boolean | undefined;
|
|
46
|
+
unstyled?: boolean | undefined;
|
|
47
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
48
|
+
}>, "color" | `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | "elevation" | keyof import("@tamagui/web").StackStyleBase | "transparent" | "fullscreen" | "circular" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "padded" | "elevate" | "bordered" | "chromeless" | "toggledStyle" | "active" | "size" | "unstyled" | "orientation" | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
49
|
+
elevation?: number | SizeTokens | undefined;
|
|
50
|
+
transparent?: boolean | undefined;
|
|
51
|
+
fullscreen?: boolean | undefined;
|
|
52
|
+
circular?: boolean | undefined;
|
|
53
|
+
backgrounded?: boolean | undefined;
|
|
54
|
+
radiused?: boolean | undefined;
|
|
55
|
+
hoverTheme?: boolean | undefined;
|
|
56
|
+
pressTheme?: boolean | undefined;
|
|
57
|
+
focusTheme?: boolean | undefined;
|
|
58
|
+
padded?: boolean | undefined;
|
|
59
|
+
elevate?: boolean | undefined;
|
|
60
|
+
bordered?: number | boolean | undefined;
|
|
61
|
+
chromeless?: boolean | "all" | undefined;
|
|
62
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
63
|
+
active?: boolean | undefined;
|
|
64
|
+
unstyled?: boolean | undefined;
|
|
65
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
66
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> | "value" | "disablePassStyles" | "__scopeToggleGroup"> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/web").StackStyleBase | "transparent" | "fullscreen" | "circular" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "padded" | "elevate" | "bordered" | "chromeless" | "toggledStyle" | "active" | "unstyled" | "orientation"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
67
|
+
elevation?: number | SizeTokens | undefined;
|
|
68
|
+
transparent?: boolean | undefined;
|
|
69
|
+
fullscreen?: boolean | undefined;
|
|
70
|
+
circular?: boolean | undefined;
|
|
71
|
+
backgrounded?: boolean | undefined;
|
|
72
|
+
radiused?: boolean | undefined;
|
|
73
|
+
hoverTheme?: boolean | undefined;
|
|
74
|
+
pressTheme?: boolean | undefined;
|
|
75
|
+
focusTheme?: boolean | undefined;
|
|
76
|
+
padded?: boolean | undefined;
|
|
77
|
+
elevate?: boolean | undefined;
|
|
78
|
+
bordered?: number | boolean | undefined;
|
|
79
|
+
chromeless?: boolean | "all" | undefined;
|
|
80
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
81
|
+
active?: boolean | undefined;
|
|
82
|
+
unstyled?: boolean | undefined;
|
|
83
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
84
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
85
|
+
elevation?: number | SizeTokens | undefined;
|
|
86
|
+
transparent?: boolean | undefined;
|
|
87
|
+
fullscreen?: boolean | undefined;
|
|
88
|
+
circular?: boolean | undefined;
|
|
89
|
+
backgrounded?: boolean | undefined;
|
|
90
|
+
radiused?: boolean | undefined;
|
|
91
|
+
hoverTheme?: boolean | undefined;
|
|
92
|
+
pressTheme?: boolean | undefined;
|
|
93
|
+
focusTheme?: boolean | undefined;
|
|
94
|
+
padded?: boolean | undefined;
|
|
95
|
+
elevate?: boolean | undefined;
|
|
96
|
+
bordered?: number | boolean | undefined;
|
|
97
|
+
chromeless?: boolean | "all" | undefined;
|
|
98
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
99
|
+
active?: boolean | undefined;
|
|
100
|
+
unstyled?: boolean | undefined;
|
|
101
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
102
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
103
|
+
elevation?: number | SizeTokens | undefined;
|
|
104
|
+
transparent?: boolean | undefined;
|
|
105
|
+
fullscreen?: boolean | undefined;
|
|
106
|
+
circular?: boolean | undefined;
|
|
107
|
+
backgrounded?: boolean | undefined;
|
|
108
|
+
radiused?: boolean | undefined;
|
|
109
|
+
hoverTheme?: boolean | undefined;
|
|
110
|
+
pressTheme?: boolean | undefined;
|
|
111
|
+
focusTheme?: boolean | undefined;
|
|
112
|
+
padded?: boolean | undefined;
|
|
113
|
+
elevate?: boolean | undefined;
|
|
114
|
+
bordered?: number | boolean | undefined;
|
|
115
|
+
chromeless?: boolean | "all" | undefined;
|
|
116
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
117
|
+
active?: boolean | undefined;
|
|
118
|
+
unstyled?: boolean | undefined;
|
|
119
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
120
|
+
}>> & {
|
|
121
|
+
value: string;
|
|
122
|
+
id?: string;
|
|
123
|
+
disabled?: boolean;
|
|
124
|
+
size?: SizeTokens;
|
|
125
|
+
/**
|
|
126
|
+
* Used to disable passing styles down to children.
|
|
127
|
+
*/
|
|
128
|
+
disablePassStyles?: boolean;
|
|
129
|
+
toggledStyle?: ToggleStylesBase | null;
|
|
130
|
+
color?: string;
|
|
131
|
+
} & {
|
|
132
|
+
__scopeToggleGroup?: string;
|
|
133
|
+
}, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/web").StackStyleBase | "transparent" | "fullscreen" | "circular" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "padded" | "elevate" | "bordered" | "chromeless" | "toggledStyle" | "active" | "unstyled" | "orientation"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
134
|
+
elevation?: number | SizeTokens | undefined;
|
|
135
|
+
transparent?: boolean | undefined;
|
|
136
|
+
fullscreen?: boolean | undefined;
|
|
137
|
+
circular?: boolean | undefined;
|
|
138
|
+
backgrounded?: boolean | undefined;
|
|
139
|
+
radiused?: boolean | undefined;
|
|
140
|
+
hoverTheme?: boolean | undefined;
|
|
141
|
+
pressTheme?: boolean | undefined;
|
|
142
|
+
focusTheme?: boolean | undefined;
|
|
143
|
+
padded?: boolean | undefined;
|
|
144
|
+
elevate?: boolean | undefined;
|
|
145
|
+
bordered?: number | boolean | undefined;
|
|
146
|
+
chromeless?: boolean | "all" | undefined;
|
|
147
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
148
|
+
active?: boolean | undefined;
|
|
149
|
+
unstyled?: boolean | undefined;
|
|
150
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
151
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & {
|
|
152
|
+
elevation?: number | SizeTokens | undefined;
|
|
153
|
+
transparent?: boolean | undefined;
|
|
154
|
+
fullscreen?: boolean | undefined;
|
|
155
|
+
circular?: boolean | undefined;
|
|
156
|
+
backgrounded?: boolean | undefined;
|
|
157
|
+
radiused?: boolean | undefined;
|
|
158
|
+
hoverTheme?: boolean | undefined;
|
|
159
|
+
pressTheme?: boolean | undefined;
|
|
160
|
+
focusTheme?: boolean | undefined;
|
|
161
|
+
padded?: boolean | undefined;
|
|
162
|
+
elevate?: boolean | undefined;
|
|
163
|
+
bordered?: number | boolean | undefined;
|
|
164
|
+
chromeless?: boolean | "all" | undefined;
|
|
165
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
166
|
+
active?: boolean | undefined;
|
|
167
|
+
unstyled?: boolean | undefined;
|
|
168
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
169
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {
|
|
170
|
+
elevation?: number | SizeTokens | undefined;
|
|
171
|
+
transparent?: boolean | undefined;
|
|
172
|
+
fullscreen?: boolean | undefined;
|
|
173
|
+
circular?: boolean | undefined;
|
|
174
|
+
backgrounded?: boolean | undefined;
|
|
175
|
+
radiused?: boolean | undefined;
|
|
176
|
+
hoverTheme?: boolean | undefined;
|
|
177
|
+
pressTheme?: boolean | undefined;
|
|
178
|
+
focusTheme?: boolean | undefined;
|
|
179
|
+
padded?: boolean | undefined;
|
|
180
|
+
elevate?: boolean | undefined;
|
|
181
|
+
bordered?: number | boolean | undefined;
|
|
182
|
+
chromeless?: boolean | "all" | undefined;
|
|
183
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
184
|
+
active?: boolean | undefined;
|
|
42
185
|
unstyled?: boolean | undefined;
|
|
186
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
187
|
+
}>> & {
|
|
188
|
+
value: string;
|
|
189
|
+
id?: string;
|
|
190
|
+
disabled?: boolean;
|
|
191
|
+
size?: SizeTokens;
|
|
192
|
+
/**
|
|
193
|
+
* Used to disable passing styles down to children.
|
|
194
|
+
*/
|
|
195
|
+
disablePassStyles?: boolean;
|
|
196
|
+
toggledStyle?: ToggleStylesBase | null;
|
|
197
|
+
color?: string;
|
|
198
|
+
} & {
|
|
199
|
+
__scopeToggleGroup?: string;
|
|
200
|
+
}, import("@tamagui/web").StackStyleBase, {
|
|
201
|
+
elevation?: number | SizeTokens | undefined;
|
|
202
|
+
transparent?: boolean | undefined;
|
|
203
|
+
fullscreen?: boolean | undefined;
|
|
204
|
+
circular?: boolean | undefined;
|
|
205
|
+
backgrounded?: boolean | undefined;
|
|
206
|
+
radiused?: boolean | undefined;
|
|
207
|
+
hoverTheme?: boolean | undefined;
|
|
208
|
+
pressTheme?: boolean | undefined;
|
|
209
|
+
focusTheme?: boolean | undefined;
|
|
210
|
+
padded?: boolean | undefined;
|
|
211
|
+
elevate?: boolean | undefined;
|
|
212
|
+
bordered?: number | boolean | undefined;
|
|
213
|
+
chromeless?: boolean | "all" | undefined;
|
|
214
|
+
toggledStyle?: ToggleStylesBase | null | undefined;
|
|
43
215
|
active?: boolean | undefined;
|
|
216
|
+
unstyled?: boolean | undefined;
|
|
44
217
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
45
218
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
46
219
|
};
|
|
@@ -101,6 +274,8 @@ type ToggleGroupImplProps = GetProps<typeof ToggleGroupImplElementFrame> & Group
|
|
|
101
274
|
dir?: RovingFocusGroupProps['dir'];
|
|
102
275
|
loop?: RovingFocusGroupProps['loop'];
|
|
103
276
|
sizeAdjust?: number;
|
|
277
|
+
toggledStyle?: ToggleStylesBase | null;
|
|
278
|
+
color?: string;
|
|
104
279
|
};
|
|
105
280
|
export { ToggleGroup };
|
|
106
281
|
export type { ToggleGroupItemProps, ToggleGroupMultipleProps, ToggleGroupProps, ToggleGroupSingleProps, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../src/ToggleGroup.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAIhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAGxD,OAAO,KAAK,EAAkB,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../src/ToggleGroup.tsx"],"names":[],"mappings":"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"}
|