@tamagui/progress 2.7.7 → 3.0.0-beta.1091.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 +90 -139
- package/dist/cjs/Progress.native.cjs +134 -0
- package/dist/cjs/Progress.native.js +94 -143
- package/dist/cjs/Progress.native.js.map +1 -1
- package/dist/cjs/index.cjs +9 -11
- package/dist/cjs/index.native.cjs +20 -0
- package/dist/cjs/index.native.js +9 -10
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Progress.mjs +76 -121
- package/dist/esm/Progress.mjs.map +1 -1
- package/dist/esm/Progress.native.js +80 -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 +76 -121
- package/dist/jsx/Progress.mjs.map +1 -1
- package/dist/jsx/Progress.native.cjs +134 -0
- package/dist/jsx/Progress.native.js +94 -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 +20 -0
- package/dist/jsx/index.native.js +9 -10
- package/dist/jsx/index.native.js.map +1 -1
- package/package.json +11 -10
- package/src/Progress.tsx +60 -87
- 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
|
+
{...(!isWeb && context.width === 0 && { opacity: 0 })}
|
|
73
|
+
{...indicatorProps}
|
|
74
|
+
ref={forwardedRef}
|
|
75
|
+
// only the indicator's slide transitions; `width` is a layout jump
|
|
76
|
+
transition={!isWeb && !context.width ? null : { transform: transition }}
|
|
77
|
+
/>
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
)
|
|
96
81
|
|
|
97
82
|
/* ---------------------------------------------------------------------------------------------- */
|
|
98
83
|
|
|
@@ -129,33 +114,23 @@ 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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
size: {
|
|
145
|
-
'...size': (val) => {
|
|
146
|
-
const size = Math.round(getVariableValue(getSize(val)) * 0.25)
|
|
147
|
-
return {
|
|
148
|
-
height: size,
|
|
149
|
-
minWidth: getVariableValue(size) * 20,
|
|
150
|
-
width: '100%',
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
},
|
|
125
|
+
size: styled.dynamic<any>((val) => {
|
|
126
|
+
const size = Math.round(getVariableValue(getSize(val)) * 0.25)
|
|
127
|
+
return {
|
|
128
|
+
height: size,
|
|
129
|
+
minWidth: getVariableValue(size) * 20,
|
|
130
|
+
width: '100%',
|
|
131
|
+
}
|
|
132
|
+
}),
|
|
154
133
|
} as const,
|
|
155
|
-
|
|
156
|
-
defaultVariants: {
|
|
157
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
158
|
-
},
|
|
159
134
|
})
|
|
160
135
|
|
|
161
136
|
export interface ProgressExtraProps {
|
|
@@ -167,14 +142,14 @@ export interface ProgressExtraProps {
|
|
|
167
142
|
export type ProgressProps = GetProps<typeof ProgressFrame> & ProgressExtraProps
|
|
168
143
|
|
|
169
144
|
const Progress = withStaticProperties(
|
|
170
|
-
ProgressFrame
|
|
145
|
+
createStyledHOC(ProgressFrame, function Progress(props: ProgressProps, forwardedRef) {
|
|
171
146
|
const {
|
|
172
147
|
// @ts-expect-error
|
|
173
148
|
__scopeProgress,
|
|
174
149
|
value: valueProp,
|
|
175
150
|
max: maxProp,
|
|
176
151
|
getValueLabel = defaultGetValueLabel,
|
|
177
|
-
size =
|
|
152
|
+
size = true,
|
|
178
153
|
...progressProps
|
|
179
154
|
} = props
|
|
180
155
|
|
|
@@ -197,9 +172,7 @@ const Progress = withStaticProperties(
|
|
|
197
172
|
data-state={getProgressState(value, max)}
|
|
198
173
|
data-value={value ?? undefined}
|
|
199
174
|
data-max={max}
|
|
200
|
-
{
|
|
201
|
-
size,
|
|
202
|
-
})}
|
|
175
|
+
size={size}
|
|
203
176
|
{...progressProps}
|
|
204
177
|
{...(!isWeb && {
|
|
205
178
|
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("@tamagui/core").
|
|
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> & import("@tamagui/core").WithFlatVariantValues<{
|
|
5
|
+
elevation?: number | false | 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 | false | 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 | false | 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 | false | 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> & import("@tamagui/core").WithFlatVariantValues<{
|
|
19
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
20
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
21
|
+
__scopeProgress?: Scope;
|
|
22
|
+
}, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
23
|
+
elevation?: number | false | 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 | false | 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> & import("@tamagui/core").WithFlatVariantValues<{
|
|
30
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
31
|
+
size?: any;
|
|
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 | false | import("@tamagui/core").Size | undefined;
|
|
36
|
+
size?: any;
|
|
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 | false | import("@tamagui/core").Size | undefined;
|
|
40
|
+
size?: any;
|
|
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 | false | import("@tamagui/core").Size | undefined;
|
|
51
|
+
size?: any;
|
|
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> & import("@tamagui/core").WithFlatVariantValues<{
|
|
53
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
54
|
+
size?: any;
|
|
55
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps & {
|
|
56
|
+
ref?: import("react").Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
57
|
+
}> & import("@tamagui/core").StaticComponentObject<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
58
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
59
|
+
size?: any;
|
|
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> & import("@tamagui/core").WithFlatVariantValues<{
|
|
61
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
62
|
+
size?: any;
|
|
63
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
64
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
65
|
+
size?: any;
|
|
66
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/core").StackStyleBase, {
|
|
67
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
68
|
+
size?: any;
|
|
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 | false | import("@tamagui/core").Size | undefined;
|
|
72
|
+
size?: any;
|
|
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> & import("@tamagui/core").WithFlatVariantValues<{
|
|
74
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
75
|
+
size?: any;
|
|
76
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
77
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
78
|
+
size?: any;
|
|
79
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/core").StackStyleBase, {
|
|
80
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
81
|
+
size?: any;
|
|
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 | false | 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> & import("@tamagui/core").WithFlatVariantValues<{
|
|
87
|
+
elevation?: number | false | import("@tamagui/core").Size | undefined;
|
|
88
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
89
|
+
__scopeProgress?: Scope;
|
|
90
|
+
}, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
91
|
+
elevation?: number | false | 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 | false | 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;;;;;;;;;;;;;CAcxB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA/BgC,KAAK;;;;;;;;CAiFlD,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":[]}
|