@tamagui/progress 2.0.0-rc.4 → 2.0.0-rc.40
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 +138 -131
- package/dist/cjs/Progress.native.js +141 -134
- package/dist/cjs/Progress.native.js.map +1 -1
- package/dist/cjs/index.cjs +7 -5
- package/dist/cjs/index.native.js +7 -5
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Progress.mjs +118 -113
- package/dist/esm/Progress.mjs.map +1 -1
- package/dist/esm/Progress.native.js +122 -117
- package/dist/esm/Progress.native.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -6
- package/dist/jsx/Progress.mjs +118 -113
- package/dist/jsx/Progress.mjs.map +1 -1
- package/dist/jsx/Progress.native.js +141 -134
- package/dist/jsx/Progress.native.js.map +1 -1
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +7 -5
- package/package.json +12 -15
- package/dist/cjs/Progress.js +0 -146
- package/dist/cjs/Progress.js.map +0 -6
- package/dist/cjs/index.js +0 -15
- package/dist/cjs/index.js.map +0 -6
- package/dist/esm/Progress.js +0 -136
- package/dist/esm/Progress.js.map +0 -6
- package/dist/jsx/Progress.js +0 -136
- package/dist/jsx/Progress.js.map +0 -6
|
@@ -5,58 +5,60 @@ 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
|
-
var PROGRESS_NAME = "Progress"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
8
|
+
var PROGRESS_NAME = "Progress";
|
|
9
|
+
var [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);
|
|
10
|
+
var [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
11
|
+
var INDICATOR_NAME = "ProgressIndicator";
|
|
12
|
+
var ProgressIndicatorFrame = styled(YStack, {
|
|
13
|
+
name: INDICATOR_NAME,
|
|
14
|
+
variants: {
|
|
15
|
+
unstyled: {
|
|
16
|
+
false: {
|
|
17
|
+
height: "100%",
|
|
18
|
+
width: "100%",
|
|
19
|
+
backgroundColor: "$background"
|
|
21
20
|
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
25
|
-
}
|
|
26
|
-
}),
|
|
27
|
-
ProgressIndicator = ProgressIndicatorFrame.styleable(function (props, forwardedRef) {
|
|
28
|
-
var {
|
|
29
|
-
__scopeProgress,
|
|
30
|
-
transition,
|
|
31
|
-
...indicatorProps
|
|
32
|
-
} = props,
|
|
33
|
-
context = useProgressContext(INDICATOR_NAME, __scopeProgress),
|
|
34
|
-
_context_value,
|
|
35
|
-
progressRatio = ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0) / context.max,
|
|
36
|
-
x;
|
|
37
|
-
if (isWeb) x = `${-100 + progressRatio * 50}%`;else {
|
|
38
|
-
var baseWidth = context.width || 0;
|
|
39
|
-
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
40
21
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var ProgressIndicator = ProgressIndicatorFrame.styleable(function ProgressIndicator2(props, forwardedRef) {
|
|
28
|
+
var {
|
|
29
|
+
__scopeProgress,
|
|
30
|
+
transition,
|
|
31
|
+
...indicatorProps
|
|
32
|
+
} = props;
|
|
33
|
+
var context = useProgressContext(INDICATOR_NAME, __scopeProgress);
|
|
34
|
+
var _context_value;
|
|
35
|
+
var progressRatio = ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0) / context.max;
|
|
36
|
+
var x;
|
|
37
|
+
if (isWeb) {
|
|
38
|
+
x = `${-100 + progressRatio * 50}%`;
|
|
39
|
+
} else {
|
|
40
|
+
var baseWidth = context.width || 0;
|
|
41
|
+
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
42
|
+
}
|
|
43
|
+
var _context_value1;
|
|
44
|
+
return /* @__PURE__ */_jsx(ProgressIndicatorFrame, {
|
|
45
|
+
"data-state": getProgressState(context.value, context.max),
|
|
46
|
+
"data-value": (_context_value1 = context.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,
|
|
47
|
+
"data-max": context.max,
|
|
48
|
+
x,
|
|
49
|
+
width: "200%",
|
|
50
|
+
...(!props.unstyled && {
|
|
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
|
|
59
60
|
});
|
|
61
|
+
});
|
|
60
62
|
function defaultGetValueLabel(value, max) {
|
|
61
63
|
return `${Math.round(value / max * 100)}%`;
|
|
62
64
|
}
|
|
@@ -64,7 +66,7 @@ function getProgressState(value, maxValue) {
|
|
|
64
66
|
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
65
67
|
}
|
|
66
68
|
function isNumber(value) {
|
|
67
|
-
return typeof value
|
|
69
|
+
return typeof value === "number";
|
|
68
70
|
}
|
|
69
71
|
function isValidMaxNumber(max) {
|
|
70
72
|
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
@@ -72,77 +74,80 @@ function isValidMaxNumber(max) {
|
|
|
72
74
|
function isValidValueNumber(value, max) {
|
|
73
75
|
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
74
76
|
}
|
|
75
|
-
var DEFAULT_MAX = 100
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
size: {
|
|
87
|
-
"...size": function (val) {
|
|
88
|
-
var size = Math.round(getVariableValue(getSize(val)) * 0.25);
|
|
89
|
-
return {
|
|
90
|
-
height: size,
|
|
91
|
-
minWidth: getVariableValue(size) * 20,
|
|
92
|
-
width: "100%"
|
|
93
|
-
};
|
|
94
|
-
}
|
|
77
|
+
var DEFAULT_MAX = 100;
|
|
78
|
+
var ProgressFrame = styled(YStack, {
|
|
79
|
+
name: "Progress",
|
|
80
|
+
variants: {
|
|
81
|
+
unstyled: {
|
|
82
|
+
false: {
|
|
83
|
+
borderRadius: 1e5,
|
|
84
|
+
overflow: "hidden",
|
|
85
|
+
backgroundColor: "$background"
|
|
95
86
|
}
|
|
96
87
|
},
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
size: {
|
|
89
|
+
"...size": function (val) {
|
|
90
|
+
var size = Math.round(getVariableValue(getSize(val)) * 0.25);
|
|
91
|
+
return {
|
|
92
|
+
height: size,
|
|
93
|
+
minWidth: getVariableValue(size) * 20,
|
|
94
|
+
width: "100%"
|
|
95
|
+
};
|
|
96
|
+
}
|
|
99
97
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
98
|
+
},
|
|
99
|
+
defaultVariants: {
|
|
100
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
var Progress = withStaticProperties(ProgressFrame.styleable(function Progress2(props, forwardedRef) {
|
|
104
|
+
var {
|
|
105
|
+
// @ts-expect-error
|
|
106
|
+
__scopeProgress,
|
|
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);
|
|
139
142
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
})
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
Indicator: ProgressIndicator
|
|
143
|
+
(_progressProps_onLayout = progressProps.onLayout) === null || _progressProps_onLayout === void 0 ? void 0 : _progressProps_onLayout.call(progressProps, e);
|
|
144
|
+
}
|
|
145
|
+
}),
|
|
146
|
+
ref: forwardedRef
|
|
147
|
+
})
|
|
146
148
|
});
|
|
149
|
+
}), {
|
|
150
|
+
Indicator: ProgressIndicator
|
|
151
|
+
});
|
|
147
152
|
export { Progress, ProgressFrame, ProgressIndicator, ProgressIndicatorFrame, createProgressScope };
|
|
148
153
|
//# sourceMappingURL=Progress.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["jsx","_jsx","getVariableValue","isWeb","styled","createContextScope","getSize","withStaticProperties","YStack","useState","PROGRESS_NAME","createProgressContext","createProgressScope","ProgressProvider","useProgressContext","INDICATOR_NAME","ProgressIndicatorFrame","name","variants","unstyled","false","height","width","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","ProgressIndicator","styleable","props","forwardedRef","__scopeProgress","transition","indicatorProps","context","_context_value","progressRatio","value","max","x","baseWidth","Math","ceil","_context_value1","getProgressState","animateOnly","opacity","ref","defaultGetValueLabel","round","maxValue","isNumber","isValidMaxNumber","Number","isNaN","isValidValueNumber","DEFAULT_MAX","ProgressFrame","borderRadius","overflow","size","...size","val","minWidth","Progress","valueProp","maxProp","getValueLabel","progressProps","valueLabel","setWidth","scope","children","role","onLayout","e","_progressProps_onLayout","newWidth","nativeEvent","layout","call"],"sources":["../../src/Progress.tsx"],"sourcesContent":[null],"mappings":"AAIA,SAASA,GAAA,IAAAC,IAAA,QAAkB,mBAAO;AAElC,SAASC,gBAAA,EAAAC,KAAA,EAAAC,MAA0B;AACnC,SAASC,kBAAe;AACxB,SAASC,OAAA,4BAA4B;AACrC,SAASC,oBAAc;AACvB,SAASC,MAAA,yBAAgB;AAoErB,SAAAC,QAAA;AAlEJ,IAAAC,aAAM,aAAgB;
|
|
1
|
+
{"version":3,"names":["jsx","_jsx","getVariableValue","isWeb","styled","createContextScope","getSize","withStaticProperties","YStack","useState","PROGRESS_NAME","createProgressContext","createProgressScope","ProgressProvider","useProgressContext","INDICATOR_NAME","ProgressIndicatorFrame","name","variants","unstyled","false","height","width","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","ProgressIndicator","styleable","ProgressIndicator2","props","forwardedRef","__scopeProgress","transition","indicatorProps","context","_context_value","progressRatio","value","max","x","baseWidth","Math","ceil","_context_value1","getProgressState","animateOnly","opacity","ref","defaultGetValueLabel","round","maxValue","isNumber","isValidMaxNumber","Number","isNaN","isValidValueNumber","DEFAULT_MAX","ProgressFrame","borderRadius","overflow","size","...size","val","minWidth","Progress","Progress2","valueProp","maxProp","getValueLabel","progressProps","valueLabel","setWidth","scope","children","role","onLayout","e","_progressProps_onLayout","newWidth","nativeEvent","layout","call"],"sources":["../../src/Progress.tsx"],"sourcesContent":[null],"mappings":"AAIA,SAASA,GAAA,IAAAC,IAAA,QAAkB,mBAAO;AAElC,SAASC,gBAAA,EAAAC,KAAA,EAAAC,MAA0B;AACnC,SAASC,kBAAe;AACxB,SAASC,OAAA,4BAA4B;AACrC,SAASC,oBAAc;AACvB,SAASC,MAAA,yBAAgB;AAoErB,SAAAC,QAAA;AAlEJ,I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A,cAAAA,KAAA;MAAA,UACb,EAAAC,GAAW;MACT,IAAA+B,aAAM,CAAApD,QAAW,KAAK,IAAM,IAAE;QAC9B2C;MACE;MAAiB,GAAAS,aACnB;MACA,KAAApE,KAAA;QAA0B0E,QAC5B,WAAAA,CAAAC,CAAA;UACF,IAAAC,uBAAA;UACA,IAAKC,QAAA,GAAArC,IAAA,CAAAQ,KAAA,CAAA2B,CAAA,CAAAG,WAAA,CAAAC,MAAA,CAAA5D,KAAA;UAAA,IAAA0D,QAAA,KAAA1D,KAAA;YAETmD,QAAA,CAAAO,QAAA;UAEH;UACD,CAAAD,uBAAA,GAAAR,aAAA,CAAAM,QAAA,cAAAE,uBAAA,uBAAAA,uBAAA,CAAAI,IAAA,CAAAZ,aAAA,EAAAO,CAAA;QACE;MACF;MACF7B,GAAA,EAAAjB","ignoreList":[]}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Progress";
|
|
1
|
+
export * from "./Progress.mjs";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
package/dist/jsx/Progress.mjs
CHANGED
|
@@ -5,56 +5,58 @@ 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
|
-
const PROGRESS_NAME = "Progress"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
8
|
+
const PROGRESS_NAME = "Progress";
|
|
9
|
+
const [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME);
|
|
10
|
+
const [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
11
|
+
const INDICATOR_NAME = "ProgressIndicator";
|
|
12
|
+
const ProgressIndicatorFrame = styled(YStack, {
|
|
13
|
+
name: INDICATOR_NAME,
|
|
14
|
+
variants: {
|
|
15
|
+
unstyled: {
|
|
16
|
+
false: {
|
|
17
|
+
height: "100%",
|
|
18
|
+
width: "100%",
|
|
19
|
+
backgroundColor: "$background"
|
|
21
20
|
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
25
|
-
}
|
|
26
|
-
}),
|
|
27
|
-
ProgressIndicator = ProgressIndicatorFrame.styleable(function (props, forwardedRef) {
|
|
28
|
-
const {
|
|
29
|
-
__scopeProgress,
|
|
30
|
-
transition,
|
|
31
|
-
...indicatorProps
|
|
32
|
-
} = props,
|
|
33
|
-
context = useProgressContext(INDICATOR_NAME, __scopeProgress),
|
|
34
|
-
progressRatio = (context.value ?? 0) / context.max;
|
|
35
|
-
let x;
|
|
36
|
-
if (isWeb) x = `${-100 + progressRatio * 50}%`;else {
|
|
37
|
-
const baseWidth = context.width || 0;
|
|
38
|
-
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
39
21
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const ProgressIndicator = ProgressIndicatorFrame.styleable(function ProgressIndicator2(props, forwardedRef) {
|
|
28
|
+
const {
|
|
29
|
+
__scopeProgress,
|
|
30
|
+
transition,
|
|
31
|
+
...indicatorProps
|
|
32
|
+
} = props;
|
|
33
|
+
const context = useProgressContext(INDICATOR_NAME, __scopeProgress);
|
|
34
|
+
const progressRatio = (context.value ?? 0) / context.max;
|
|
35
|
+
let x;
|
|
36
|
+
if (isWeb) {
|
|
37
|
+
x = `${-100 + progressRatio * 50}%`;
|
|
38
|
+
} else {
|
|
39
|
+
const baseWidth = context.width || 0;
|
|
40
|
+
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
41
|
+
}
|
|
42
|
+
return /* @__PURE__ */jsx(ProgressIndicatorFrame, {
|
|
43
|
+
"data-state": getProgressState(context.value, context.max),
|
|
44
|
+
"data-value": context.value ?? void 0,
|
|
45
|
+
"data-max": context.max,
|
|
46
|
+
x,
|
|
47
|
+
width: "200%",
|
|
48
|
+
...(!props.unstyled && {
|
|
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
|
|
57
58
|
});
|
|
59
|
+
});
|
|
58
60
|
function defaultGetValueLabel(value, max) {
|
|
59
61
|
return `${Math.round(value / max * 100)}%`;
|
|
60
62
|
}
|
|
@@ -62,7 +64,7 @@ function getProgressState(value, maxValue) {
|
|
|
62
64
|
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
63
65
|
}
|
|
64
66
|
function isNumber(value) {
|
|
65
|
-
return typeof value
|
|
67
|
+
return typeof value === "number";
|
|
66
68
|
}
|
|
67
69
|
function isValidMaxNumber(max) {
|
|
68
70
|
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
@@ -70,75 +72,78 @@ function isValidMaxNumber(max) {
|
|
|
70
72
|
function isValidValueNumber(value, max) {
|
|
71
73
|
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
72
74
|
}
|
|
73
|
-
const DEFAULT_MAX = 100
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
size: {
|
|
85
|
-
"...size": val => {
|
|
86
|
-
const size = Math.round(getVariableValue(getSize(val)) * 0.25);
|
|
87
|
-
return {
|
|
88
|
-
height: size,
|
|
89
|
-
minWidth: getVariableValue(size) * 20,
|
|
90
|
-
width: "100%"
|
|
91
|
-
};
|
|
92
|
-
}
|
|
75
|
+
const DEFAULT_MAX = 100;
|
|
76
|
+
const ProgressFrame = styled(YStack, {
|
|
77
|
+
name: "Progress",
|
|
78
|
+
variants: {
|
|
79
|
+
unstyled: {
|
|
80
|
+
false: {
|
|
81
|
+
borderRadius: 1e5,
|
|
82
|
+
overflow: "hidden",
|
|
83
|
+
backgroundColor: "$background"
|
|
93
84
|
}
|
|
94
85
|
},
|
|
95
|
-
|
|
96
|
-
|
|
86
|
+
size: {
|
|
87
|
+
"...size": val => {
|
|
88
|
+
const size = Math.round(getVariableValue(getSize(val)) * 0.25);
|
|
89
|
+
return {
|
|
90
|
+
height: size,
|
|
91
|
+
minWidth: getVariableValue(size) * 20,
|
|
92
|
+
width: "100%"
|
|
93
|
+
};
|
|
94
|
+
}
|
|
97
95
|
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
96
|
+
},
|
|
97
|
+
defaultVariants: {
|
|
98
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
const Progress = withStaticProperties(ProgressFrame.styleable(function Progress2(props, forwardedRef) {
|
|
102
|
+
const {
|
|
103
|
+
// @ts-expect-error
|
|
104
|
+
__scopeProgress,
|
|
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);
|
|
135
138
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
})
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
Indicator: ProgressIndicator
|
|
139
|
+
progressProps.onLayout?.(e);
|
|
140
|
+
}
|
|
141
|
+
}),
|
|
142
|
+
ref: forwardedRef
|
|
143
|
+
})
|
|
142
144
|
});
|
|
145
|
+
}), {
|
|
146
|
+
Indicator: ProgressIndicator
|
|
147
|
+
});
|
|
143
148
|
export { Progress, ProgressFrame, ProgressIndicator, ProgressIndicatorFrame, createProgressScope };
|
|
144
149
|
//# sourceMappingURL=Progress.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getVariableValue","isWeb","styled","createContextScope","getSize","withStaticProperties","YStack","useState","jsx","PROGRESS_NAME","createProgressContext","createProgressScope","ProgressProvider","useProgressContext","INDICATOR_NAME","ProgressIndicatorFrame","name","variants","unstyled","false","height","width","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","ProgressIndicator","styleable","props","forwardedRef","__scopeProgress","transition","indicatorProps","context","progressRatio","value","max","x","baseWidth","Math","ceil","getProgressState","animateOnly","opacity","ref","defaultGetValueLabel","round","maxValue","isNumber","isValidMaxNumber","Number","isNaN","isValidValueNumber","DEFAULT_MAX","ProgressFrame","borderRadius","overflow","size","val","minWidth","Progress","valueProp","maxProp","getValueLabel","progressProps","valueLabel","setWidth","scope","children","role","onLayout","e","newWidth","nativeEvent","layout","Indicator"],"sources":["../../src/Progress.tsx"],"sourcesContent":[null],"mappings":"AAIA,SAASA,gBAAA,EAAkBC,KAAA,EAAOC,MAAA,QAAc;AAEhD,SAASC,kBAAA,QAA0B;AACnC,SAASC,OAAA,QAAe;AACxB,SAASC,oBAAA,QAA4B;AACrC,SAASC,MAAA,QAAc;AACvB,SAASC,QAAA,QAAgB;AAoErB,SAAAC,GAAA;AAlEJ,MAAMC,aAAA,GAAgB;
|
|
1
|
+
{"version":3,"names":["getVariableValue","isWeb","styled","createContextScope","getSize","withStaticProperties","YStack","useState","jsx","PROGRESS_NAME","createProgressContext","createProgressScope","ProgressProvider","useProgressContext","INDICATOR_NAME","ProgressIndicatorFrame","name","variants","unstyled","false","height","width","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","ProgressIndicator","styleable","ProgressIndicator2","props","forwardedRef","__scopeProgress","transition","indicatorProps","context","progressRatio","value","max","x","baseWidth","Math","ceil","getProgressState","animateOnly","opacity","ref","defaultGetValueLabel","round","maxValue","isNumber","isValidMaxNumber","Number","isNaN","isValidValueNumber","DEFAULT_MAX","ProgressFrame","borderRadius","overflow","size","val","minWidth","Progress","Progress2","valueProp","maxProp","getValueLabel","progressProps","valueLabel","setWidth","scope","children","role","onLayout","e","newWidth","nativeEvent","layout","Indicator"],"sources":["../../src/Progress.tsx"],"sourcesContent":[null],"mappings":"AAIA,SAASA,gBAAA,EAAkBC,KAAA,EAAOC,MAAA,QAAc;AAEhD,SAASC,kBAAA,QAA0B;AACnC,SAASC,OAAA,QAAe;AACxB,SAASC,oBAAA,QAA4B;AACrC,SAASC,MAAA,QAAc;AACvB,SAASC,QAAA,QAAgB;AAoErB,SAAAC,GAAA;AAlEJ,MAAMC,aAAA,GAAgB;AAEtB,MAAM,CAACC,qBAAA,EAAuBC,mBAAmB,IAAIR,kBAAA,CAAmBM,aAAa;AAQrF,MAAM,CAACG,gBAAA,EAAkBC,kBAAkB,IACzCH,qBAAA,CAA4CD,aAAa;AAM3D,MAAMK,cAAA,GAAiB;AAEhB,MAAMC,sBAAA,GAAyBb,MAAA,CAAOI,MAAA,EAAQ;EACnDU,IAAA,EAAMF,cAAA;EAENG,QAAA,EAAU;IACRC,QAAA,EAAU;MACRC,KAAA,EAAO;QACLC,MAAA,EAAQ;QACRC,KAAA,EAAO;QACPC,eAAA,EAAiB;MACnB;IACF;EACF;EAEAC,eAAA,EAAiB;IACfL,QAAA,EAAUM,OAAA,CAAQC,GAAA,CAAIC,gBAAA,KAAqB;EAC7C;AACF,CAAC;AAID,MAAMC,iBAAA,GAAoBZ,sBAAA,CAAu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