@tamagui/progress 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/Progress.cjs +92 -139
- package/dist/cjs/Progress.native.cjs +136 -0
- package/dist/cjs/Progress.native.js +96 -143
- package/dist/cjs/Progress.native.js.map +1 -1
- package/dist/cjs/index.cjs +10 -11
- package/dist/cjs/index.native.cjs +21 -0
- package/dist/cjs/index.native.js +10 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Progress.mjs +77 -121
- package/dist/esm/Progress.mjs.map +1 -1
- package/dist/esm/Progress.native.js +81 -126
- package/dist/esm/Progress.native.js.map +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.mjs +1 -2
- package/dist/esm/index.native.js +1 -2
- package/dist/jsx/Progress.mjs +77 -121
- package/dist/jsx/Progress.mjs.map +1 -1
- package/dist/jsx/Progress.native.cjs +136 -0
- package/dist/jsx/Progress.native.js +96 -143
- package/dist/jsx/Progress.native.js.map +1 -1
- package/dist/jsx/index.js +1 -2
- package/dist/jsx/index.mjs +1 -2
- package/dist/jsx/index.native.cjs +21 -0
- package/dist/jsx/index.native.js +10 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +9 -9
- package/src/Progress.tsx +53 -78
- package/types/Progress.d.ts +82 -52
- package/types/Progress.d.ts.map +1 -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/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
package/src/Progress.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// https://github.com/radix-ui/primitives/blob/main/packages/react/progress/src/Progress.tsx
|
|
3
3
|
|
|
4
4
|
import type { GetProps } from '@tamagui/core'
|
|
5
|
-
import { getVariableValue, isWeb, styled } from '@tamagui/core'
|
|
5
|
+
import { createStyledHOC, getVariableValue, isWeb, styled } from '@tamagui/core'
|
|
6
6
|
import type { Scope } from '@tamagui/create-context'
|
|
7
7
|
import { createContextScope } from '@tamagui/create-context'
|
|
8
8
|
import { getSize } from '@tamagui/get-token'
|
|
@@ -30,69 +30,54 @@ const [ProgressProvider, useProgressContext] =
|
|
|
30
30
|
const INDICATOR_NAME = 'ProgressIndicator'
|
|
31
31
|
|
|
32
32
|
export const ProgressIndicatorFrame = styled(YStack, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
unstyled: {
|
|
37
|
-
false: {
|
|
38
|
-
height: '100%',
|
|
39
|
-
width: '100%',
|
|
40
|
-
backgroundColor: '$background',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
} as const,
|
|
44
|
-
|
|
45
|
-
defaultVariants: {
|
|
46
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
47
|
-
},
|
|
33
|
+
displayName: INDICATOR_NAME,
|
|
34
|
+
height: '100%',
|
|
35
|
+
width: '100%',
|
|
48
36
|
})
|
|
49
37
|
|
|
50
38
|
export type ProgressIndicatorProps = GetProps<typeof ProgressIndicatorFrame>
|
|
51
39
|
|
|
52
|
-
const ProgressIndicator =
|
|
53
|
-
|
|
54
|
-
forwardedRef
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
40
|
+
const ProgressIndicator = createStyledHOC(
|
|
41
|
+
ProgressIndicatorFrame,
|
|
42
|
+
function ProgressIndicator(props: ScopedProps<ProgressIndicatorProps>, forwardedRef) {
|
|
43
|
+
const { __scopeProgress, transition, ...indicatorProps } = props
|
|
44
|
+
const context = useProgressContext(INDICATOR_NAME, __scopeProgress)
|
|
45
|
+
|
|
46
|
+
const progressRatio = (context.value ?? 0) / context.max
|
|
47
|
+
|
|
48
|
+
// indicator is 2x container width so bouncy animations can overshoot
|
|
49
|
+
// without visually extending past the right edge (parent has overflow:hidden)
|
|
50
|
+
// translateX percentage is relative to element's own width (200% of container)
|
|
51
|
+
// so we divide by 2 to get container-relative positioning:
|
|
52
|
+
// at 0%: x = -100% of element = -200% of container (fully hidden left)
|
|
53
|
+
// at 100%: x = -50% of element = -100% of container (right half visible)
|
|
54
|
+
let x: string | number
|
|
55
|
+
if (isWeb) {
|
|
56
|
+
// web: use percentage-based translateX for SSR-friendly rendering
|
|
57
|
+
// formula: -100% + (progressRatio * 50%) since translateX % is relative to element width
|
|
58
|
+
x = `${-100 + progressRatio * 50}%`
|
|
59
|
+
} else {
|
|
60
|
+
// native: use pixel-based transform (RN doesn't support percentage transforms reliably)
|
|
61
|
+
const baseWidth = context.width || 0
|
|
62
|
+
x = Math.ceil(-baseWidth * (2 - progressRatio))
|
|
63
|
+
}
|
|
77
64
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
)
|
|
95
|
-
})
|
|
65
|
+
return (
|
|
66
|
+
<ProgressIndicatorFrame
|
|
67
|
+
data-state={getProgressState(context.value, context.max)}
|
|
68
|
+
data-value={context.value ?? undefined}
|
|
69
|
+
data-max={context.max}
|
|
70
|
+
x={x}
|
|
71
|
+
width="200%"
|
|
72
|
+
animateOnly={['transform']}
|
|
73
|
+
{...(!isWeb && context.width === 0 && { opacity: 0 })}
|
|
74
|
+
{...indicatorProps}
|
|
75
|
+
ref={forwardedRef}
|
|
76
|
+
transition={!isWeb && !context.width ? null : transition}
|
|
77
|
+
/>
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
)
|
|
96
81
|
|
|
97
82
|
/* ---------------------------------------------------------------------------------------------- */
|
|
98
83
|
|
|
@@ -129,20 +114,16 @@ type ScopedProps<P> = P & { __scopeProgress?: Scope }
|
|
|
129
114
|
|
|
130
115
|
type ProgressState = 'indeterminate' | 'complete' | 'loading'
|
|
131
116
|
|
|
117
|
+
// Unstyled Progress frame: the clip (overflow hidden) + the size mechanism
|
|
118
|
+
// (size-derived track height) only. The pill radius and theme background live in
|
|
119
|
+
// the tamagui skin (code/ui/tamagui/src/components/Progress.tsx).
|
|
132
120
|
export const ProgressFrame = styled(YStack, {
|
|
133
|
-
|
|
121
|
+
displayName: 'Progress',
|
|
122
|
+
overflow: 'hidden',
|
|
134
123
|
|
|
135
124
|
variants: {
|
|
136
|
-
unstyled: {
|
|
137
|
-
false: {
|
|
138
|
-
borderRadius: 100_000,
|
|
139
|
-
overflow: 'hidden',
|
|
140
|
-
backgroundColor: '$background',
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
|
|
144
125
|
size: {
|
|
145
|
-
|
|
126
|
+
Size: (val) => {
|
|
146
127
|
const size = Math.round(getVariableValue(getSize(val)) * 0.25)
|
|
147
128
|
return {
|
|
148
129
|
height: size,
|
|
@@ -152,10 +133,6 @@ export const ProgressFrame = styled(YStack, {
|
|
|
152
133
|
},
|
|
153
134
|
},
|
|
154
135
|
} as const,
|
|
155
|
-
|
|
156
|
-
defaultVariants: {
|
|
157
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
158
|
-
},
|
|
159
136
|
})
|
|
160
137
|
|
|
161
138
|
export interface ProgressExtraProps {
|
|
@@ -167,14 +144,14 @@ export interface ProgressExtraProps {
|
|
|
167
144
|
export type ProgressProps = GetProps<typeof ProgressFrame> & ProgressExtraProps
|
|
168
145
|
|
|
169
146
|
const Progress = withStaticProperties(
|
|
170
|
-
ProgressFrame
|
|
147
|
+
createStyledHOC(ProgressFrame, function Progress(props: ProgressProps, forwardedRef) {
|
|
171
148
|
const {
|
|
172
149
|
// @ts-expect-error
|
|
173
150
|
__scopeProgress,
|
|
174
151
|
value: valueProp,
|
|
175
152
|
max: maxProp,
|
|
176
153
|
getValueLabel = defaultGetValueLabel,
|
|
177
|
-
size =
|
|
154
|
+
size = true,
|
|
178
155
|
...progressProps
|
|
179
156
|
} = props
|
|
180
157
|
|
|
@@ -197,9 +174,7 @@ const Progress = withStaticProperties(
|
|
|
197
174
|
data-state={getProgressState(value, max)}
|
|
198
175
|
data-value={value ?? undefined}
|
|
199
176
|
data-max={max}
|
|
200
|
-
{
|
|
201
|
-
size,
|
|
202
|
-
})}
|
|
177
|
+
size={size}
|
|
203
178
|
{...progressProps}
|
|
204
179
|
{...(!isWeb && {
|
|
205
180
|
onLayout: (e) => {
|
package/types/Progress.d.ts
CHANGED
|
@@ -1,68 +1,98 @@
|
|
|
1
1
|
import type { GetProps } from '@tamagui/core';
|
|
2
|
+
import type { Scope } from '@tamagui/create-context';
|
|
2
3
|
declare const createProgressScope: import("@tamagui/create-context").CreateScope;
|
|
3
|
-
export declare const ProgressIndicatorFrame: import("
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, import("@tamagui/core").
|
|
4
|
+
export declare const ProgressIndicatorFrame: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
5
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
6
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
7
|
+
ref?: import("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
|
+
elevation?: number | import("@tamagui/core").Size | 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
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
13
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
14
|
+
};
|
|
8
15
|
export type ProgressIndicatorProps = GetProps<typeof ProgressIndicatorFrame>;
|
|
9
|
-
declare const ProgressIndicator: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
elevation?: number | import("@tamagui/core").
|
|
21
|
-
fullscreen?: boolean | undefined;
|
|
22
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
16
|
+
declare const ProgressIndicator: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
17
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
18
|
+
}>, "__scopeProgress" | "elevation" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
19
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
20
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
21
|
+
__scopeProgress?: Scope;
|
|
22
|
+
}, import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
23
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
24
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
25
|
+
__scopeProgress?: Scope;
|
|
26
|
+
}, import("@tamagui/core").StackStyleBase, {
|
|
27
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
23
28
|
}, import("@tamagui/core").StaticConfigPublic>;
|
|
29
|
+
export declare const ProgressFrame: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
30
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
31
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
32
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
33
|
+
ref?: import("react").Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
34
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
35
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
36
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
37
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
38
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
39
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
40
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
41
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
42
|
+
};
|
|
24
43
|
export interface ProgressExtraProps {
|
|
25
44
|
value?: number | null | undefined;
|
|
26
45
|
max?: number;
|
|
27
46
|
getValueLabel?(value: number, max: number): string;
|
|
28
47
|
}
|
|
29
48
|
export type ProgressProps = GetProps<typeof ProgressFrame> & ProgressExtraProps;
|
|
30
|
-
declare const Progress: import("react").
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
elevation?: number | import("@tamagui/core").
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
declare const Progress: import("react").FunctionComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
50
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
51
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
52
|
+
}>, "elevation" | "size" | keyof ProgressExtraProps | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
53
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
54
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
55
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps & {
|
|
56
|
+
ref?: import("react").Ref<import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods)> | undefined;
|
|
57
|
+
}> & import("@tamagui/core").StaticComponentObject<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
58
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
59
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
60
|
+
}>, "elevation" | "size" | keyof ProgressExtraProps | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
61
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
62
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
63
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
64
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
65
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
66
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/core").StackStyleBase, {
|
|
67
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
68
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
69
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
46
70
|
__tama: [Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
elevation?: number | import("@tamagui/core").
|
|
54
|
-
|
|
55
|
-
|
|
71
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
72
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
73
|
+
}>, "elevation" | "size" | keyof ProgressExtraProps | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
74
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
75
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
76
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
77
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
78
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
79
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/core").StackStyleBase, {
|
|
80
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
81
|
+
size?: import("@tamagui/core").Size | undefined;
|
|
56
82
|
}, import("@tamagui/core").StaticConfigPublic];
|
|
57
83
|
} & {
|
|
58
|
-
Indicator: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
84
|
+
Indicator: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
85
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
86
|
+
}>, "__scopeProgress" | "elevation" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
87
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
88
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
89
|
+
__scopeProgress?: Scope;
|
|
90
|
+
}, import("react-native").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
|
|
91
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
92
|
+
} & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
93
|
+
__scopeProgress?: Scope;
|
|
94
|
+
}, import("@tamagui/core").StackStyleBase, {
|
|
95
|
+
elevation?: number | import("@tamagui/core").Size | undefined;
|
|
66
96
|
}, import("@tamagui/core").StaticConfigPublic>;
|
|
67
97
|
};
|
|
68
98
|
export { createProgressScope, Progress, ProgressIndicator };
|
package/types/Progress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../src/Progress.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../src/Progress.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AASpD,QAAA,MAA8B,mBAAmB,+CAAqC,CAAA;AAiBtF,eAAO,MAAM,sBAAsB;;;;;;;;;;CAIjC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE5E,QAAA,MAAM,iBAAiB;;;;;sBAyEuB,KAAK;;;;;;;8CAjClD,CAAA;AAwCD,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAgBxB,CAAA;AAEF,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,aAAa,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACnD;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,GAAG,kBAAkB,CAAA;AAE/E,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAjCgC,KAAK;;;;;;;;CAmFlD,CAAA;AAED,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAA"}
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/esm/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/jsx/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|
package/dist/jsx/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
|