@tamagui/progress 2.7.7 → 3.0.0-0.canary.1791056644527
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 +106 -139
- package/dist/cjs/Progress.native.cjs +150 -0
- package/dist/cjs/Progress.native.js +110 -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 +92 -121
- package/dist/esm/Progress.mjs.map +1 -1
- package/dist/esm/Progress.native.js +96 -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 +92 -121
- package/dist/jsx/Progress.mjs.map +1 -1
- package/dist/jsx/Progress.native.cjs +150 -0
- package/dist/jsx/Progress.native.js +110 -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 +13 -11
- package/src/Progress.tsx +92 -88
- package/types/Progress.d.ts +51 -55
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// forked from Radix UI
|
|
2
2
|
// https://github.com/radix-ui/primitives/blob/main/packages/react/progress/src/Progress.tsx
|
|
3
3
|
|
|
4
|
-
import type { GetProps } from '@tamagui/core'
|
|
5
|
-
import { getVariableValue, isWeb, styled } from '@tamagui/core'
|
|
4
|
+
import type { ComponentSize, GetProps, SizeTokens } 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,54 @@ type ScopedProps<P> = P & { __scopeProgress?: Scope }
|
|
|
129
114
|
|
|
130
115
|
type ProgressState = 'indeterminate' | 'complete' | 'loading'
|
|
131
116
|
|
|
117
|
+
export type ProgressSize = ComponentSize | SizeTokens | number | boolean
|
|
118
|
+
|
|
119
|
+
// the track is a thin bar: named rungs on the xs-xl control ladder, like the
|
|
120
|
+
// slider track. md is the historical default track (size token 36 at quarter
|
|
121
|
+
// scale), so `true` and `md` agree and existing numeric sizes keep their px.
|
|
122
|
+
const progressTrackHeight = {
|
|
123
|
+
xs: 4,
|
|
124
|
+
sm: 6,
|
|
125
|
+
md: 9,
|
|
126
|
+
lg: 12,
|
|
127
|
+
xl: 16,
|
|
128
|
+
} as const
|
|
129
|
+
|
|
130
|
+
const resolveProgressSize = (val: ProgressSize): number => {
|
|
131
|
+
if (typeof val === 'string' && val in progressTrackHeight) {
|
|
132
|
+
return progressTrackHeight[val as keyof typeof progressTrackHeight]
|
|
133
|
+
}
|
|
134
|
+
// getSize hands back the key itself when it is not in the size scale, so an
|
|
135
|
+
// unresolvable key would multiply to NaN here. A NaN height reads as no
|
|
136
|
+
// height at all, and the Indicator inside asks for 100% of it, so the track
|
|
137
|
+
// stops being a bar and fills whatever it is in. Fall back to the same token
|
|
138
|
+
// `true` uses.
|
|
139
|
+
const resolved = Number(getVariableValue(getSize(val === true ? 36 : val)))
|
|
140
|
+
const base = Number.isFinite(resolved)
|
|
141
|
+
? resolved
|
|
142
|
+
: Number(getVariableValue(getSize(36)))
|
|
143
|
+
return Math.round(base * 0.25)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const getProgressSize = styled.dynamic<ProgressSize>((val) => {
|
|
147
|
+
const size = resolveProgressSize(val)
|
|
148
|
+
return {
|
|
149
|
+
height: size,
|
|
150
|
+
minWidth: size * 20,
|
|
151
|
+
width: '100%',
|
|
152
|
+
}
|
|
153
|
+
})
|
|
154
|
+
|
|
155
|
+
// Unstyled Progress frame: the clip (overflow hidden) + the size mechanism
|
|
156
|
+
// (size-derived track height) only. The pill radius and theme background live in
|
|
157
|
+
// the tamagui skin (code/ui/tamagui/src/components/Progress.tsx).
|
|
132
158
|
export const ProgressFrame = styled(YStack, {
|
|
133
|
-
|
|
159
|
+
displayName: 'Progress',
|
|
160
|
+
overflow: 'hidden',
|
|
134
161
|
|
|
135
162
|
variants: {
|
|
136
|
-
|
|
137
|
-
false: {
|
|
138
|
-
borderRadius: 100_000,
|
|
139
|
-
overflow: 'hidden',
|
|
140
|
-
backgroundColor: '$background',
|
|
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
|
-
},
|
|
163
|
+
size: getProgressSize,
|
|
154
164
|
} as const,
|
|
155
|
-
|
|
156
|
-
defaultVariants: {
|
|
157
|
-
unstyled: process.env.TAMAGUI_HEADLESS === '1',
|
|
158
|
-
},
|
|
159
165
|
})
|
|
160
166
|
|
|
161
167
|
export interface ProgressExtraProps {
|
|
@@ -167,14 +173,14 @@ export interface ProgressExtraProps {
|
|
|
167
173
|
export type ProgressProps = GetProps<typeof ProgressFrame> & ProgressExtraProps
|
|
168
174
|
|
|
169
175
|
const Progress = withStaticProperties(
|
|
170
|
-
ProgressFrame
|
|
176
|
+
createStyledHOC(ProgressFrame, function Progress(props: ProgressProps, forwardedRef) {
|
|
171
177
|
const {
|
|
172
178
|
// @ts-expect-error
|
|
173
179
|
__scopeProgress,
|
|
174
180
|
value: valueProp,
|
|
175
181
|
max: maxProp,
|
|
176
182
|
getValueLabel = defaultGetValueLabel,
|
|
177
|
-
size =
|
|
183
|
+
size = true,
|
|
178
184
|
...progressProps
|
|
179
185
|
} = props
|
|
180
186
|
|
|
@@ -197,9 +203,7 @@ const Progress = withStaticProperties(
|
|
|
197
203
|
data-state={getProgressState(value, max)}
|
|
198
204
|
data-value={value ?? undefined}
|
|
199
205
|
data-max={max}
|
|
200
|
-
{
|
|
201
|
-
size,
|
|
202
|
-
})}
|
|
206
|
+
size={size}
|
|
203
207
|
{...progressProps}
|
|
204
208
|
{...(!isWeb && {
|
|
205
209
|
onLayout: (e) => {
|
package/types/Progress.d.ts
CHANGED
|
@@ -1,69 +1,65 @@
|
|
|
1
|
-
import type { GetProps } from '@tamagui/core';
|
|
1
|
+
import type { ComponentSize, GetProps, SizeTokens } 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
|
-
}
|
|
4
|
+
export declare const ProgressIndicatorFrame: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
5
|
+
ref?: import("react").Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
6
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
7
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic];
|
|
8
|
+
};
|
|
8
9
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
declare const ProgressIndicator: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}>, "__scopeProgress" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
11
|
+
__scopeProgress?: Scope;
|
|
12
|
+
}, import("@tamagui/react-native-types/src").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
13
|
+
__scopeProgress?: Scope;
|
|
14
|
+
}, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic>;
|
|
15
|
+
export type ProgressSize = ComponentSize | SizeTokens | number | boolean;
|
|
16
|
+
export declare const ProgressFrame: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
17
|
+
size?: ProgressSize | undefined;
|
|
18
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
19
|
+
ref?: import("react").Ref<import("@tamagui/core").TamaguiElement> | undefined;
|
|
20
|
+
}> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
21
|
+
size?: ProgressSize | undefined;
|
|
22
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
23
|
+
__tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
24
|
+
size?: ProgressSize | undefined;
|
|
25
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
26
|
+
};
|
|
24
27
|
export interface ProgressExtraProps {
|
|
25
28
|
value?: number | null | undefined;
|
|
26
29
|
max?: number;
|
|
27
30
|
getValueLabel?(value: number, max: number): string;
|
|
28
31
|
}
|
|
29
32
|
export type ProgressProps = GetProps<typeof ProgressFrame> & ProgressExtraProps;
|
|
30
|
-
declare const Progress: import("react").
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
size?:
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig" | "styleable"> & {
|
|
33
|
+
declare const Progress: import("react").FunctionComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
34
|
+
size?: ProgressSize | undefined;
|
|
35
|
+
}>, "size" | keyof ProgressExtraProps | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
36
|
+
size?: ProgressSize | undefined;
|
|
37
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps & {
|
|
38
|
+
ref?: import("react").Ref<import("@tamagui/react-native-types/src").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods)> | undefined;
|
|
39
|
+
}> & import("@tamagui/core").StaticComponentObject<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
40
|
+
size?: ProgressSize | undefined;
|
|
41
|
+
}>, "size" | keyof ProgressExtraProps | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
42
|
+
size?: ProgressSize | undefined;
|
|
43
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/react-native-types/src").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
44
|
+
size?: ProgressSize | undefined;
|
|
45
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/core").StackStyleBase, {
|
|
46
|
+
size?: ProgressSize | undefined;
|
|
47
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
|
|
46
48
|
__tama: [Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
fullscreen?: boolean | undefined;
|
|
55
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
49
|
+
size?: ProgressSize | undefined;
|
|
50
|
+
}>, "size" | keyof ProgressExtraProps | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
51
|
+
size?: ProgressSize | undefined;
|
|
52
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/react-native-types/src").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "size" | keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{
|
|
53
|
+
size?: ProgressSize | undefined;
|
|
54
|
+
}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & ProgressExtraProps, import("@tamagui/core").StackStyleBase, {
|
|
55
|
+
size?: ProgressSize | undefined;
|
|
56
56
|
}, import("@tamagui/core").StaticConfigPublic];
|
|
57
57
|
} & {
|
|
58
|
-
Indicator: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
unstyled?: boolean | undefined;
|
|
64
|
-
elevation?: number | import("@tamagui/core").SizeTokens | undefined;
|
|
65
|
-
fullscreen?: boolean | undefined;
|
|
66
|
-
}, import("@tamagui/core").StaticConfigPublic>;
|
|
58
|
+
Indicator: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}>, "__scopeProgress" | keyof import("@tamagui/core").RNTamaguiViewNonStyleProps | keyof import("@tamagui/core").StackStyleBase> & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
59
|
+
__scopeProgress?: Scope;
|
|
60
|
+
}, import("@tamagui/react-native-types/src").View | (HTMLElement & import("@tamagui/core").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithFlatVariantValues<{}> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
|
|
61
|
+
__scopeProgress?: Scope;
|
|
62
|
+
}, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic>;
|
|
67
63
|
};
|
|
68
64
|
export { createProgressScope, Progress, ProgressIndicator };
|
|
69
65
|
//# sourceMappingURL=Progress.d.ts.map
|
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,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAExE,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;;;0FAjClD,CAAA;AAqCD,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAA;AAyCxE,eAAO,MAAM,aAAa;;;;;;;;;;CAOxB,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;;;;;;;;;;;;;;;;;;;;;;;;;;0BA9DgC,KAAK;;;;CAgHlD,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":[]}
|