@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/dist/esm/Progress.mjs
CHANGED
|
@@ -1,149 +1,120 @@
|
|
|
1
|
-
import { getVariableValue, isWeb, styled } from "@tamagui/core";
|
|
1
|
+
import { createStyledHOC, getVariableValue, isWeb, styled } from "@tamagui/core";
|
|
2
2
|
import { createContextScope } from "@tamagui/create-context";
|
|
3
3
|
import { getSize } from "@tamagui/get-token";
|
|
4
4
|
import { withStaticProperties } from "@tamagui/helpers";
|
|
5
5
|
import { YStack } from "@tamagui/stacks";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
8
9
|
const PROGRESS_NAME = "Progress";
|
|
9
10
|
const [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);
|
|
10
11
|
const [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
11
12
|
const INDICATOR_NAME = "ProgressIndicator";
|
|
12
13
|
const ProgressIndicatorFrame = styled(YStack, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
false: {
|
|
17
|
-
height: "100%",
|
|
18
|
-
width: "100%",
|
|
19
|
-
backgroundColor: "$background"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
25
|
-
}
|
|
14
|
+
displayName: INDICATOR_NAME,
|
|
15
|
+
height: "100%",
|
|
16
|
+
width: "100%"
|
|
26
17
|
});
|
|
27
|
-
const ProgressIndicator = ProgressIndicatorFrame
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
animateOnly: ["transform"],
|
|
50
|
-
// on native, hide until we have width measurement
|
|
51
|
-
...(!isWeb && context.width === 0 && {
|
|
52
|
-
opacity: 0
|
|
53
|
-
})
|
|
54
|
-
}),
|
|
55
|
-
...indicatorProps,
|
|
56
|
-
ref: forwardedRef,
|
|
57
|
-
transition: !isWeb && !context.width ? null : transition
|
|
58
|
-
});
|
|
18
|
+
const ProgressIndicator = createStyledHOC(ProgressIndicatorFrame, function ProgressIndicator2(props, forwardedRef) {
|
|
19
|
+
const { __scopeProgress, transition, ...indicatorProps } = props;
|
|
20
|
+
const context = useProgressContext(INDICATOR_NAME, __scopeProgress);
|
|
21
|
+
const progressRatio = (context.value ?? 0) / context.max;
|
|
22
|
+
let x;
|
|
23
|
+
if (isWeb) {
|
|
24
|
+
x = `${-100 + progressRatio * 50}%`;
|
|
25
|
+
} else {
|
|
26
|
+
const baseWidth = context.width || 0;
|
|
27
|
+
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
28
|
+
}
|
|
29
|
+
return /* @__PURE__ */ jsx(ProgressIndicatorFrame, {
|
|
30
|
+
"data-state": getProgressState(context.value, context.max),
|
|
31
|
+
"data-value": context.value ?? void 0,
|
|
32
|
+
"data-max": context.max,
|
|
33
|
+
x,
|
|
34
|
+
width: "200%",
|
|
35
|
+
...!isWeb && context.width === 0 && { opacity: 0 },
|
|
36
|
+
...indicatorProps,
|
|
37
|
+
ref: forwardedRef,
|
|
38
|
+
transition: !isWeb && !context.width ? null : { transform: transition }
|
|
39
|
+
});
|
|
59
40
|
});
|
|
60
41
|
function defaultGetValueLabel(value, max) {
|
|
61
|
-
|
|
42
|
+
return `${Math.round(value / max * 100)}%`;
|
|
62
43
|
}
|
|
63
44
|
function getProgressState(value, maxValue) {
|
|
64
|
-
|
|
45
|
+
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
65
46
|
}
|
|
66
47
|
function isNumber(value) {
|
|
67
|
-
|
|
48
|
+
return typeof value === "number";
|
|
68
49
|
}
|
|
69
50
|
function isValidMaxNumber(max) {
|
|
70
|
-
|
|
51
|
+
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
71
52
|
}
|
|
72
53
|
function isValidValueNumber(value, max) {
|
|
73
|
-
|
|
54
|
+
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
74
55
|
}
|
|
75
56
|
const DEFAULT_MAX = 100;
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
99
|
-
}
|
|
57
|
+
const progressTrackHeight = {
|
|
58
|
+
xs: 4,
|
|
59
|
+
sm: 6,
|
|
60
|
+
md: 9,
|
|
61
|
+
lg: 12,
|
|
62
|
+
xl: 16
|
|
63
|
+
};
|
|
64
|
+
const resolveProgressSize = (val) => {
|
|
65
|
+
if (typeof val === "string" && val in progressTrackHeight) {
|
|
66
|
+
return progressTrackHeight[val];
|
|
67
|
+
}
|
|
68
|
+
const resolved = Number(getVariableValue(getSize(val === true ? 36 : val)));
|
|
69
|
+
const base = Number.isFinite(resolved) ? resolved : Number(getVariableValue(getSize(36)));
|
|
70
|
+
return Math.round(base * .25);
|
|
71
|
+
};
|
|
72
|
+
const getProgressSize = styled.dynamic((val) => {
|
|
73
|
+
const size = resolveProgressSize(val);
|
|
74
|
+
return {
|
|
75
|
+
height: size,
|
|
76
|
+
minWidth: size * 20,
|
|
77
|
+
width: "100%"
|
|
78
|
+
};
|
|
100
79
|
});
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
value: valueProp,
|
|
106
|
-
max: maxProp,
|
|
107
|
-
getValueLabel = defaultGetValueLabel,
|
|
108
|
-
size = "$true",
|
|
109
|
-
...progressProps
|
|
110
|
-
} = props;
|
|
111
|
-
const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;
|
|
112
|
-
const value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null;
|
|
113
|
-
const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;
|
|
114
|
-
const [width, setWidth] = useState(0);
|
|
115
|
-
return /* @__PURE__ */jsx(ProgressProvider, {
|
|
116
|
-
scope: __scopeProgress,
|
|
117
|
-
value,
|
|
118
|
-
max,
|
|
119
|
-
width,
|
|
120
|
-
children: /* @__PURE__ */jsx(ProgressFrame, {
|
|
121
|
-
"aria-valuemax": max,
|
|
122
|
-
"aria-valuemin": 0,
|
|
123
|
-
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
124
|
-
"aria-valuetext": valueLabel,
|
|
125
|
-
role: "progressbar",
|
|
126
|
-
"data-state": getProgressState(value, max),
|
|
127
|
-
"data-value": value ?? void 0,
|
|
128
|
-
"data-max": max,
|
|
129
|
-
...(progressProps.unstyled !== true && {
|
|
130
|
-
size
|
|
131
|
-
}),
|
|
132
|
-
...progressProps,
|
|
133
|
-
...(!isWeb && {
|
|
134
|
-
onLayout: e => {
|
|
135
|
-
const newWidth = Math.round(e.nativeEvent.layout.width);
|
|
136
|
-
if (newWidth !== width) {
|
|
137
|
-
setWidth(newWidth);
|
|
138
|
-
}
|
|
139
|
-
progressProps.onLayout?.(e);
|
|
140
|
-
}
|
|
141
|
-
}),
|
|
142
|
-
ref: forwardedRef
|
|
143
|
-
})
|
|
144
|
-
});
|
|
145
|
-
}), {
|
|
146
|
-
Indicator: ProgressIndicator
|
|
80
|
+
const ProgressFrame = styled(YStack, {
|
|
81
|
+
displayName: "Progress",
|
|
82
|
+
overflow: "hidden",
|
|
83
|
+
variants: { size: getProgressSize }
|
|
147
84
|
});
|
|
85
|
+
const Progress = withStaticProperties(createStyledHOC(ProgressFrame, function Progress2(props, forwardedRef) {
|
|
86
|
+
const { __scopeProgress, value: valueProp, max: maxProp, getValueLabel = defaultGetValueLabel, size = true, ...progressProps } = props;
|
|
87
|
+
const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;
|
|
88
|
+
const value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null;
|
|
89
|
+
const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;
|
|
90
|
+
const [width, setWidth] = useState(0);
|
|
91
|
+
return /* @__PURE__ */ jsx(ProgressProvider, {
|
|
92
|
+
scope: __scopeProgress,
|
|
93
|
+
value,
|
|
94
|
+
max,
|
|
95
|
+
width,
|
|
96
|
+
children: /* @__PURE__ */ jsx(ProgressFrame, {
|
|
97
|
+
"aria-valuemax": max,
|
|
98
|
+
"aria-valuemin": 0,
|
|
99
|
+
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
100
|
+
"aria-valuetext": valueLabel,
|
|
101
|
+
role: "progressbar",
|
|
102
|
+
"data-state": getProgressState(value, max),
|
|
103
|
+
"data-value": value ?? void 0,
|
|
104
|
+
"data-max": max,
|
|
105
|
+
size,
|
|
106
|
+
...progressProps,
|
|
107
|
+
...!isWeb && { onLayout: (e) => {
|
|
108
|
+
const newWidth = Math.round(e.nativeEvent.layout.width);
|
|
109
|
+
if (newWidth !== width) {
|
|
110
|
+
setWidth(newWidth);
|
|
111
|
+
}
|
|
112
|
+
progressProps.onLayout?.(e);
|
|
113
|
+
} },
|
|
114
|
+
ref: forwardedRef
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
}), { Indicator: ProgressIndicator });
|
|
118
|
+
|
|
148
119
|
export { Progress, ProgressFrame, ProgressIndicator, ProgressIndicatorFrame, createProgressScope };
|
|
149
120
|
//# sourceMappingURL=Progress.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"Progress.js","names":[],"sources":["esm/Progress.js"],"sourcesContent":["import { createStyledHOC, getVariableValue, isWeb, styled } from \"@tamagui/core\";\nimport { createContextScope } from \"@tamagui/create-context\";\nimport { getSize } from \"@tamagui/get-token\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { YStack } from \"@tamagui/stacks\";\nimport { useState } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nconst PROGRESS_NAME = \"Progress\";\nconst [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nconst [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nconst INDICATOR_NAME = \"ProgressIndicator\";\nconst ProgressIndicatorFrame = styled(YStack, {\n displayName: INDICATOR_NAME,\n height: \"100%\",\n width: \"100%\"\n});\nconst ProgressIndicator = createStyledHOC(\n ProgressIndicatorFrame,\n function ProgressIndicator2(props, forwardedRef) {\n const { __scopeProgress, transition, ...indicatorProps } = props;\n const context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n const progressRatio = (context.value ?? 0) / context.max;\n let x;\n if (isWeb) {\n x = `${-100 + progressRatio * 50}%`;\n } else {\n const baseWidth = context.width || 0;\n x = Math.ceil(-baseWidth * (2 - progressRatio));\n }\n return /* @__PURE__ */ jsx(\n ProgressIndicatorFrame,\n {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": context.value ?? void 0,\n \"data-max\": context.max,\n x,\n width: \"200%\",\n ...!isWeb && context.width === 0 && { opacity: 0 },\n ...indicatorProps,\n ref: forwardedRef,\n transition: !isWeb && !context.width ? null : { transform: transition }\n }\n );\n }\n);\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !Number.isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;\n}\nconst DEFAULT_MAX = 100;\nconst progressTrackHeight = {\n xs: 4,\n sm: 6,\n md: 9,\n lg: 12,\n xl: 16\n};\nconst resolveProgressSize = (val) => {\n if (typeof val === \"string\" && val in progressTrackHeight) {\n return progressTrackHeight[val];\n }\n const resolved = Number(getVariableValue(getSize(val === true ? 36 : val)));\n const base = Number.isFinite(resolved) ? resolved : Number(getVariableValue(getSize(36)));\n return Math.round(base * 0.25);\n};\nconst getProgressSize = styled.dynamic((val) => {\n const size = resolveProgressSize(val);\n return {\n height: size,\n minWidth: size * 20,\n width: \"100%\"\n };\n});\nconst ProgressFrame = styled(YStack, {\n displayName: \"Progress\",\n overflow: \"hidden\",\n variants: {\n size: getProgressSize\n }\n});\nconst Progress = withStaticProperties(\n createStyledHOC(ProgressFrame, function Progress2(props, forwardedRef) {\n const {\n // @ts-expect-error\n __scopeProgress,\n value: valueProp,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n size = true,\n ...progressProps\n } = props;\n const max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n const value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null;\n const valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n const [width, setWidth] = useState(0);\n return /* @__PURE__ */ jsx(ProgressProvider, { scope: __scopeProgress, value, max, width, children: /* @__PURE__ */ jsx(\n ProgressFrame,\n {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value ?? void 0,\n \"data-max\": max,\n size,\n ...progressProps,\n ...!isWeb && {\n onLayout: (e) => {\n const newWidth = Math.round(e.nativeEvent.layout.width);\n if (newWidth !== width) {\n setWidth(newWidth);\n }\n progressProps.onLayout?.(e);\n }\n },\n ref: forwardedRef\n }\n ) });\n }),\n {\n Indicator: ProgressIndicator\n }\n);\nexport {\n Progress,\n ProgressFrame,\n ProgressIndicator,\n ProgressIndicatorFrame,\n createProgressScope\n};\n//# sourceMappingURL=Progress.js.map\n"],"mappings":";;;;;;;;;AAOA,MAAM,gBAAgB;AACtB,MAAM,CAAC,uBAAuB,uBAAuB,mBAAmB,aAAa;AACrF,MAAM,CAAC,kBAAkB,sBAAsB,s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OAAO,GAAG;GACzC,cAAc,SAAS,KAAK;GAC5B,YAAY;GACZ;GACA,GAAG;GACH,GAAG,CAAC,SAAS,EACX,WAAW,MAAM;IACf,MAAM,WAAW,KAAK,MAAM,EAAE,YAAY,OAAO,KAAK;IACtD,IAAI,aAAa,OAAO;KACtB,SAAS,QAAQ;IACnB;IACA,cAAc,WAAW,CAAC;GAC5B,EACF;GACA,KAAK;EACP,CACF;CAAE,CAAC;AACL,CAAC,GACD,EACE,WAAW,kBACb,CACF"}
|
|
@@ -1,153 +1,123 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import { getVariableValue, isWeb, styled } from "@tamagui/core";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createStyledHOC, getVariableValue, isWeb, styled } from "@tamagui/core";
|
|
3
3
|
import { createContextScope } from "@tamagui/create-context";
|
|
4
4
|
import { getSize } from "@tamagui/get-token";
|
|
5
5
|
import { withStaticProperties } from "@tamagui/helpers";
|
|
6
6
|
import { YStack } from "@tamagui/stacks";
|
|
7
7
|
import { useState } from "react";
|
|
8
|
+
|
|
8
9
|
var PROGRESS_NAME = "Progress";
|
|
9
10
|
var [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);
|
|
10
11
|
var [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
11
12
|
var INDICATOR_NAME = "ProgressIndicator";
|
|
12
13
|
var ProgressIndicatorFrame = styled(YStack, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
false: {
|
|
17
|
-
height: "100%",
|
|
18
|
-
width: "100%",
|
|
19
|
-
backgroundColor: "$background"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
25
|
-
}
|
|
14
|
+
displayName: INDICATOR_NAME,
|
|
15
|
+
height: "100%",
|
|
16
|
+
width: "100%"
|
|
26
17
|
});
|
|
27
|
-
var ProgressIndicator = ProgressIndicatorFrame
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
animateOnly: ["transform"],
|
|
52
|
-
// on native, hide until we have width measurement
|
|
53
|
-
...(!isWeb && context.width === 0 && {
|
|
54
|
-
opacity: 0
|
|
55
|
-
})
|
|
56
|
-
}),
|
|
57
|
-
...indicatorProps,
|
|
58
|
-
ref: forwardedRef,
|
|
59
|
-
transition: !isWeb && !context.width ? null : transition
|
|
60
|
-
});
|
|
18
|
+
var ProgressIndicator = createStyledHOC(ProgressIndicatorFrame, function ProgressIndicator2(props, forwardedRef) {
|
|
19
|
+
var { __scopeProgress, transition, ...indicatorProps } = props;
|
|
20
|
+
var context = useProgressContext(INDICATOR_NAME, __scopeProgress);
|
|
21
|
+
var _context_value;
|
|
22
|
+
var progressRatio = ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0) / context.max;
|
|
23
|
+
var x;
|
|
24
|
+
if (isWeb) {
|
|
25
|
+
x = `${-100 + progressRatio * 50}%`;
|
|
26
|
+
} else {
|
|
27
|
+
var baseWidth = context.width || 0;
|
|
28
|
+
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
29
|
+
}
|
|
30
|
+
var _context_value1;
|
|
31
|
+
return /* @__PURE__ */ jsx(ProgressIndicatorFrame, {
|
|
32
|
+
"data-state": getProgressState(context.value, context.max),
|
|
33
|
+
"data-value": (_context_value1 = context.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,
|
|
34
|
+
"data-max": context.max,
|
|
35
|
+
x,
|
|
36
|
+
width: "200%",
|
|
37
|
+
...!isWeb && context.width === 0 && { opacity: 0 },
|
|
38
|
+
...indicatorProps,
|
|
39
|
+
ref: forwardedRef,
|
|
40
|
+
transition: !isWeb && !context.width ? null : { transform: transition }
|
|
41
|
+
});
|
|
61
42
|
});
|
|
62
43
|
function defaultGetValueLabel(value, max) {
|
|
63
|
-
|
|
44
|
+
return `${Math.round(value / max * 100)}%`;
|
|
64
45
|
}
|
|
65
46
|
function getProgressState(value, maxValue) {
|
|
66
|
-
|
|
47
|
+
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
67
48
|
}
|
|
68
49
|
function isNumber(value) {
|
|
69
|
-
|
|
50
|
+
return typeof value === "number";
|
|
70
51
|
}
|
|
71
52
|
function isValidMaxNumber(max) {
|
|
72
|
-
|
|
53
|
+
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
73
54
|
}
|
|
74
55
|
function isValidValueNumber(value, max) {
|
|
75
|
-
|
|
56
|
+
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
76
57
|
}
|
|
77
58
|
var DEFAULT_MAX = 100;
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
101
|
-
}
|
|
59
|
+
var progressTrackHeight = {
|
|
60
|
+
xs: 4,
|
|
61
|
+
sm: 6,
|
|
62
|
+
md: 9,
|
|
63
|
+
lg: 12,
|
|
64
|
+
xl: 16
|
|
65
|
+
};
|
|
66
|
+
var resolveProgressSize = function(val) {
|
|
67
|
+
if (typeof val === "string" && val in progressTrackHeight) {
|
|
68
|
+
return progressTrackHeight[val];
|
|
69
|
+
}
|
|
70
|
+
var resolved = Number(getVariableValue(getSize(val === true ? 36 : val)));
|
|
71
|
+
var base = Number.isFinite(resolved) ? resolved : Number(getVariableValue(getSize(36)));
|
|
72
|
+
return Math.round(base * .25);
|
|
73
|
+
};
|
|
74
|
+
var getProgressSize = styled.dynamic(function(val) {
|
|
75
|
+
var size = resolveProgressSize(val);
|
|
76
|
+
return {
|
|
77
|
+
height: size,
|
|
78
|
+
minWidth: size * 20,
|
|
79
|
+
width: "100%"
|
|
80
|
+
};
|
|
102
81
|
});
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
value: valueProp,
|
|
108
|
-
max: maxProp,
|
|
109
|
-
getValueLabel = defaultGetValueLabel,
|
|
110
|
-
size = "$true",
|
|
111
|
-
...progressProps
|
|
112
|
-
} = props;
|
|
113
|
-
var max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;
|
|
114
|
-
var value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null;
|
|
115
|
-
var valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;
|
|
116
|
-
var [width, setWidth] = useState(0);
|
|
117
|
-
return /* @__PURE__ */_jsx(ProgressProvider, {
|
|
118
|
-
scope: __scopeProgress,
|
|
119
|
-
value,
|
|
120
|
-
max,
|
|
121
|
-
width,
|
|
122
|
-
children: /* @__PURE__ */_jsx(ProgressFrame, {
|
|
123
|
-
"aria-valuemax": max,
|
|
124
|
-
"aria-valuemin": 0,
|
|
125
|
-
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
126
|
-
"aria-valuetext": valueLabel,
|
|
127
|
-
// @ts-ignore
|
|
128
|
-
role: "progressbar",
|
|
129
|
-
"data-state": getProgressState(value, max),
|
|
130
|
-
"data-value": value !== null && value !== void 0 ? value : void 0,
|
|
131
|
-
"data-max": max,
|
|
132
|
-
...(progressProps.unstyled !== true && {
|
|
133
|
-
size
|
|
134
|
-
}),
|
|
135
|
-
...progressProps,
|
|
136
|
-
...(!isWeb && {
|
|
137
|
-
onLayout: function (e) {
|
|
138
|
-
var _progressProps_onLayout;
|
|
139
|
-
var newWidth = Math.round(e.nativeEvent.layout.width);
|
|
140
|
-
if (newWidth !== width) {
|
|
141
|
-
setWidth(newWidth);
|
|
142
|
-
}
|
|
143
|
-
(_progressProps_onLayout = progressProps.onLayout) === null || _progressProps_onLayout === void 0 ? void 0 : _progressProps_onLayout.call(progressProps, e);
|
|
144
|
-
}
|
|
145
|
-
}),
|
|
146
|
-
ref: forwardedRef
|
|
147
|
-
})
|
|
148
|
-
});
|
|
149
|
-
}), {
|
|
150
|
-
Indicator: ProgressIndicator
|
|
82
|
+
var ProgressFrame = styled(YStack, {
|
|
83
|
+
displayName: "Progress",
|
|
84
|
+
overflow: "hidden",
|
|
85
|
+
variants: { size: getProgressSize }
|
|
151
86
|
});
|
|
87
|
+
var Progress = withStaticProperties(createStyledHOC(ProgressFrame, function Progress2(props, forwardedRef) {
|
|
88
|
+
var { __scopeProgress, value: valueProp, max: maxProp, getValueLabel = defaultGetValueLabel, size = true, ...progressProps } = props;
|
|
89
|
+
var max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;
|
|
90
|
+
var value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null;
|
|
91
|
+
var valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;
|
|
92
|
+
var [width, setWidth] = useState(0);
|
|
93
|
+
return /* @__PURE__ */ jsx(ProgressProvider, {
|
|
94
|
+
scope: __scopeProgress,
|
|
95
|
+
value,
|
|
96
|
+
max,
|
|
97
|
+
width,
|
|
98
|
+
children: /* @__PURE__ */ jsx(ProgressFrame, {
|
|
99
|
+
"aria-valuemax": max,
|
|
100
|
+
"aria-valuemin": 0,
|
|
101
|
+
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
102
|
+
"aria-valuetext": valueLabel,
|
|
103
|
+
role: "progressbar",
|
|
104
|
+
"data-state": getProgressState(value, max),
|
|
105
|
+
"data-value": value !== null && value !== void 0 ? value : void 0,
|
|
106
|
+
"data-max": max,
|
|
107
|
+
size,
|
|
108
|
+
...progressProps,
|
|
109
|
+
...!isWeb && { onLayout: function(e) {
|
|
110
|
+
var _progressProps_onLayout;
|
|
111
|
+
var newWidth = Math.round(e.nativeEvent.layout.width);
|
|
112
|
+
if (newWidth !== width) {
|
|
113
|
+
setWidth(newWidth);
|
|
114
|
+
}
|
|
115
|
+
(_progressProps_onLayout = progressProps.onLayout) === null || _progressProps_onLayout === void 0 ? void 0 : _progressProps_onLayout.call(progressProps, e);
|
|
116
|
+
} },
|
|
117
|
+
ref: forwardedRef
|
|
118
|
+
})
|
|
119
|
+
});
|
|
120
|
+
}), { Indicator: ProgressIndicator });
|
|
121
|
+
|
|
152
122
|
export { Progress, ProgressFrame, ProgressIndicator, ProgressIndicatorFrame, createProgressScope };
|
|
153
123
|
//# sourceMappingURL=Progress.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"Progress.native.js","names":[],"sources":["esm/Progress.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createStyledHOC, getVariableValue, isWeb, styled } from \"@tamagui/core\";\nimport { createContextScope } from \"@tamagui/create-context\";\nimport { getSize } from \"@tamagui/get-token\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { YStack } from \"@tamagui/stacks\";\nimport { useState } from \"react\";\nvar PROGRESS_NAME = \"Progress\";\nvar [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicatorFrame = styled(YStack, {\n displayName: INDICATOR_NAME,\n height: \"100%\",\n width: \"100%\"\n});\nvar ProgressIndicator = createStyledHOC(ProgressIndicatorFrame, function ProgressIndicator2(props, forwardedRef) {\n var { __scopeProgress, transition, ...indicatorProps } = props;\n var context = useProgressContext(INDICATOR_NAME, __scopeProgress);\n var _context_value;\n var progressRatio = ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0) / context.max;\n var x;\n if (isWeb) {\n x = `${-100 + progressRatio * 50}%`;\n } else {\n var baseWidth = context.width || 0;\n x = Math.ceil(-baseWidth * (2 - progressRatio));\n }\n var _context_value1;\n return /* @__PURE__ */ _jsx(ProgressIndicatorFrame, {\n \"data-state\": getProgressState(context.value, context.max),\n \"data-value\": (_context_value1 = context.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,\n \"data-max\": context.max,\n x,\n width: \"200%\",\n ...!isWeb && context.width === 0 && {\n opacity: 0\n },\n ...indicatorProps,\n ref: forwardedRef,\n // only the indicator's slide transitions; `width` is a layout jump\n transition: !isWeb && !context.width ? null : {\n transform: transition\n }\n });\n});\nfunction defaultGetValueLabel(value, max) {\n return `${Math.round(value / max * 100)}%`;\n}\nfunction getProgressState(value, maxValue) {\n return value == null ? \"indeterminate\" : value === maxValue ? \"complete\" : \"loading\";\n}\nfunction isNumber(value) {\n return typeof value === \"number\";\n}\nfunction isValidMaxNumber(max) {\n return isNumber(max) && !Number.isNaN(max) && max > 0;\n}\nfunction isValidValueNumber(value, max) {\n return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;\n}\nvar DEFAULT_MAX = 100;\nvar progressTrackHeight = {\n xs: 4,\n sm: 6,\n md: 9,\n lg: 12,\n xl: 16\n};\nvar resolveProgressSize = function(val) {\n if (typeof val === \"string\" && val in progressTrackHeight) {\n return progressTrackHeight[val];\n }\n var resolved = Number(getVariableValue(getSize(val === true ? 36 : val)));\n var base = Number.isFinite(resolved) ? resolved : Number(getVariableValue(getSize(36)));\n return Math.round(base * 0.25);\n};\nvar getProgressSize = styled.dynamic(function(val) {\n var size = resolveProgressSize(val);\n return {\n height: size,\n minWidth: size * 20,\n width: \"100%\"\n };\n});\nvar ProgressFrame = styled(YStack, {\n displayName: \"Progress\",\n overflow: \"hidden\",\n variants: {\n size: getProgressSize\n }\n});\nvar Progress = withStaticProperties(createStyledHOC(ProgressFrame, function Progress2(props, forwardedRef) {\n var {\n // @ts-expect-error\n __scopeProgress,\n value: valueProp,\n max: maxProp,\n getValueLabel = defaultGetValueLabel,\n size = true,\n ...progressProps\n } = props;\n var max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;\n var value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null;\n var valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;\n var [width, setWidth] = useState(0);\n return /* @__PURE__ */ _jsx(ProgressProvider, {\n scope: __scopeProgress,\n value,\n max,\n width,\n children: /* @__PURE__ */ _jsx(ProgressFrame, {\n \"aria-valuemax\": max,\n \"aria-valuemin\": 0,\n \"aria-valuenow\": isNumber(value) ? value : void 0,\n \"aria-valuetext\": valueLabel,\n // @ts-ignore\n role: \"progressbar\",\n \"data-state\": getProgressState(value, max),\n \"data-value\": value !== null && value !== void 0 ? value : void 0,\n \"data-max\": max,\n size,\n ...progressProps,\n ...!isWeb && {\n onLayout: function(e) {\n var _progressProps_onLayout;\n var newWidth = Math.round(e.nativeEvent.layout.width);\n if (newWidth !== width) {\n setWidth(newWidth);\n }\n (_progressProps_onLayout = progressProps.onLayout) === null || _progressProps_onLayout === void 0 ? void 0 : _progressProps_onLayout.call(progressProps, e);\n }\n },\n ref: forwardedRef\n })\n });\n}), {\n Indicator: ProgressIndicator\n});\nexport {\n Progress,\n ProgressFrame,\n ProgressIndicator,\n ProgressIndicatorFrame,\n createProgressScope\n};\n//# sourceMappingURL=Progress.js.map\n"],"mappings":";;;;;;;;;AAOA,IAAI,gBAAgB;AACpB,IAAI,CAAC,uBAAuB,uBAAuB,mBAAmB,aAAa;AACnF,IAAI,CAAC,kBAAkB,sBAAsB,sBAAsB,aAAa;AAChF,IAAI,iBAAiB;AACrB,IAAI,yBAAyB,OAAO,QAAQ;CAC1C,aAAa;CACb,QAAQ;CACR,OAAO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AAM;GACN,cAAc,iBAAiB,OAAO,GAAG;GACzC,cAAc,UAAU,QAAQ,UAAU,KAAK,IAAI,QAAQ,KAAK;GAChE,YAAY;GACZ;GACA,GAAG;GACH,GAAG,CAAC,SAAS,EACX,UAAU,SAAS,GAAG;IACpB,IAAI;IACJ,IAAI,WAAW,KAAK,MAAM,EAAE,YAAY,OAAO,KAAK;IACpD,IAAI,aAAa,OAAO;KACtB,SAAS,QAAQ;IACnB;IACA,CAAC,0BAA0B,cAAc,cAAc,QAAQ,4BAA4B,KAAK,IAAI,KAAK,IAAI,wBAAwB,KAAK,eAAe,CAAC;GAC5J,EACF;GACA,KAAK;EACP,CAAC;CACH,CAAC;AACH,CAAC,GAAG,EACF,WAAW,kBACb,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Progress.mjs"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./Progress.mjs"
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Progress.mjs"
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export * from "./Progress.mjs"
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Progress.native.js"
|
|
2
|
-
//# sourceMappingURL=index.native.js.map
|
|
1
|
+
export * from "./Progress.native.js"
|