@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
|
@@ -5,30 +5,28 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var Progress_exports = {};
|
|
26
24
|
__export(Progress_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
Progress: () => Progress,
|
|
26
|
+
ProgressFrame: () => ProgressFrame,
|
|
27
|
+
ProgressIndicator: () => ProgressIndicator,
|
|
28
|
+
ProgressIndicatorFrame: () => ProgressIndicatorFrame,
|
|
29
|
+
createProgressScope: () => createProgressScope
|
|
32
30
|
});
|
|
33
31
|
module.exports = __toCommonJS(Progress_exports);
|
|
34
32
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -43,143 +41,112 @@ var [createProgressContext, createProgressScope] = (0, import_create_context.cre
|
|
|
43
41
|
var [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
44
42
|
var INDICATOR_NAME = "ProgressIndicator";
|
|
45
43
|
var ProgressIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
false: {
|
|
50
|
-
height: "100%",
|
|
51
|
-
width: "100%",
|
|
52
|
-
backgroundColor: "$background"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
defaultVariants: {
|
|
57
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
58
|
-
}
|
|
44
|
+
displayName: INDICATOR_NAME,
|
|
45
|
+
height: "100%",
|
|
46
|
+
width: "100%"
|
|
59
47
|
});
|
|
60
|
-
var ProgressIndicator =
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
animateOnly: ["transform"],
|
|
85
|
-
// on native, hide until we have width measurement
|
|
86
|
-
...(!import_core.isWeb && context.width === 0 && {
|
|
87
|
-
opacity: 0
|
|
88
|
-
})
|
|
89
|
-
}),
|
|
90
|
-
...indicatorProps,
|
|
91
|
-
ref: forwardedRef,
|
|
92
|
-
transition: !import_core.isWeb && !context.width ? null : transition
|
|
93
|
-
});
|
|
48
|
+
var ProgressIndicator = (0, import_core.createStyledHOC)(ProgressIndicatorFrame, function ProgressIndicator2(props, forwardedRef) {
|
|
49
|
+
var { __scopeProgress, transition, ...indicatorProps } = props;
|
|
50
|
+
var context = useProgressContext(INDICATOR_NAME, __scopeProgress);
|
|
51
|
+
var _context_value;
|
|
52
|
+
var progressRatio = ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0) / context.max;
|
|
53
|
+
var x;
|
|
54
|
+
if (import_core.isWeb) {
|
|
55
|
+
x = `${-100 + progressRatio * 50}%`;
|
|
56
|
+
} else {
|
|
57
|
+
var baseWidth = context.width || 0;
|
|
58
|
+
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
59
|
+
}
|
|
60
|
+
var _context_value1;
|
|
61
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressIndicatorFrame, {
|
|
62
|
+
"data-state": getProgressState(context.value, context.max),
|
|
63
|
+
"data-value": (_context_value1 = context.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,
|
|
64
|
+
"data-max": context.max,
|
|
65
|
+
x,
|
|
66
|
+
width: "200%",
|
|
67
|
+
...!import_core.isWeb && context.width === 0 && { opacity: 0 },
|
|
68
|
+
...indicatorProps,
|
|
69
|
+
ref: forwardedRef,
|
|
70
|
+
transition: !import_core.isWeb && !context.width ? null : { transform: transition }
|
|
71
|
+
});
|
|
94
72
|
});
|
|
95
73
|
function defaultGetValueLabel(value, max) {
|
|
96
|
-
|
|
74
|
+
return `${Math.round(value / max * 100)}%`;
|
|
97
75
|
}
|
|
98
76
|
function getProgressState(value, maxValue) {
|
|
99
|
-
|
|
77
|
+
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
100
78
|
}
|
|
101
79
|
function isNumber(value) {
|
|
102
|
-
|
|
80
|
+
return typeof value === "number";
|
|
103
81
|
}
|
|
104
82
|
function isValidMaxNumber(max) {
|
|
105
|
-
|
|
83
|
+
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
106
84
|
}
|
|
107
85
|
function isValidValueNumber(value, max) {
|
|
108
|
-
|
|
86
|
+
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
109
87
|
}
|
|
110
88
|
var DEFAULT_MAX = 100;
|
|
111
|
-
var
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
134
|
-
}
|
|
89
|
+
var progressTrackHeight = {
|
|
90
|
+
xs: 4,
|
|
91
|
+
sm: 6,
|
|
92
|
+
md: 9,
|
|
93
|
+
lg: 12,
|
|
94
|
+
xl: 16
|
|
95
|
+
};
|
|
96
|
+
var resolveProgressSize = function(val) {
|
|
97
|
+
if (typeof val === "string" && val in progressTrackHeight) {
|
|
98
|
+
return progressTrackHeight[val];
|
|
99
|
+
}
|
|
100
|
+
var resolved = Number((0, import_core.getVariableValue)((0, import_get_token.getSize)(val === true ? 36 : val)));
|
|
101
|
+
var base = Number.isFinite(resolved) ? resolved : Number((0, import_core.getVariableValue)((0, import_get_token.getSize)(36)));
|
|
102
|
+
return Math.round(base * .25);
|
|
103
|
+
};
|
|
104
|
+
var getProgressSize = import_core.styled.dynamic(function(val) {
|
|
105
|
+
var size = resolveProgressSize(val);
|
|
106
|
+
return {
|
|
107
|
+
height: size,
|
|
108
|
+
minWidth: size * 20,
|
|
109
|
+
width: "100%"
|
|
110
|
+
};
|
|
135
111
|
});
|
|
136
|
-
var
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
value: valueProp,
|
|
141
|
-
max: maxProp,
|
|
142
|
-
getValueLabel = defaultGetValueLabel,
|
|
143
|
-
size = "$true",
|
|
144
|
-
...progressProps
|
|
145
|
-
} = props;
|
|
146
|
-
var max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;
|
|
147
|
-
var value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null;
|
|
148
|
-
var valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;
|
|
149
|
-
var [width, setWidth] = (0, import_react.useState)(0);
|
|
150
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ProgressProvider, {
|
|
151
|
-
scope: __scopeProgress,
|
|
152
|
-
value,
|
|
153
|
-
max,
|
|
154
|
-
width,
|
|
155
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(ProgressFrame, {
|
|
156
|
-
"aria-valuemax": max,
|
|
157
|
-
"aria-valuemin": 0,
|
|
158
|
-
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
159
|
-
"aria-valuetext": valueLabel,
|
|
160
|
-
// @ts-ignore
|
|
161
|
-
role: "progressbar",
|
|
162
|
-
"data-state": getProgressState(value, max),
|
|
163
|
-
"data-value": value !== null && value !== void 0 ? value : void 0,
|
|
164
|
-
"data-max": max,
|
|
165
|
-
...(progressProps.unstyled !== true && {
|
|
166
|
-
size
|
|
167
|
-
}),
|
|
168
|
-
...progressProps,
|
|
169
|
-
...(!import_core.isWeb && {
|
|
170
|
-
onLayout: function (e) {
|
|
171
|
-
var _progressProps_onLayout;
|
|
172
|
-
var newWidth = Math.round(e.nativeEvent.layout.width);
|
|
173
|
-
if (newWidth !== width) {
|
|
174
|
-
setWidth(newWidth);
|
|
175
|
-
}
|
|
176
|
-
(_progressProps_onLayout = progressProps.onLayout) === null || _progressProps_onLayout === void 0 ? void 0 : _progressProps_onLayout.call(progressProps, e);
|
|
177
|
-
}
|
|
178
|
-
}),
|
|
179
|
-
ref: forwardedRef
|
|
180
|
-
})
|
|
181
|
-
});
|
|
182
|
-
}), {
|
|
183
|
-
Indicator: ProgressIndicator
|
|
112
|
+
var ProgressFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
113
|
+
displayName: "Progress",
|
|
114
|
+
overflow: "hidden",
|
|
115
|
+
variants: { size: getProgressSize }
|
|
184
116
|
});
|
|
117
|
+
var Progress = (0, import_helpers.withStaticProperties)((0, import_core.createStyledHOC)(ProgressFrame, function Progress2(props, forwardedRef) {
|
|
118
|
+
var { __scopeProgress, value: valueProp, max: maxProp, getValueLabel = defaultGetValueLabel, size = true, ...progressProps } = props;
|
|
119
|
+
var max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX;
|
|
120
|
+
var value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null;
|
|
121
|
+
var valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0;
|
|
122
|
+
var [width, setWidth] = (0, import_react.useState)(0);
|
|
123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressProvider, {
|
|
124
|
+
scope: __scopeProgress,
|
|
125
|
+
value,
|
|
126
|
+
max,
|
|
127
|
+
width,
|
|
128
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressFrame, {
|
|
129
|
+
"aria-valuemax": max,
|
|
130
|
+
"aria-valuemin": 0,
|
|
131
|
+
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
132
|
+
"aria-valuetext": valueLabel,
|
|
133
|
+
role: "progressbar",
|
|
134
|
+
"data-state": getProgressState(value, max),
|
|
135
|
+
"data-value": value !== null && value !== void 0 ? value : void 0,
|
|
136
|
+
"data-max": max,
|
|
137
|
+
size,
|
|
138
|
+
...progressProps,
|
|
139
|
+
...!import_core.isWeb && { onLayout: function(e) {
|
|
140
|
+
var _progressProps_onLayout;
|
|
141
|
+
var newWidth = Math.round(e.nativeEvent.layout.width);
|
|
142
|
+
if (newWidth !== width) {
|
|
143
|
+
setWidth(newWidth);
|
|
144
|
+
}
|
|
145
|
+
(_progressProps_onLayout = progressProps.onLayout) === null || _progressProps_onLayout === void 0 ? void 0 : _progressProps_onLayout.call(progressProps, e);
|
|
146
|
+
} },
|
|
147
|
+
ref: forwardedRef
|
|
148
|
+
})
|
|
149
|
+
});
|
|
150
|
+
}), { Indicator: ProgressIndicator });
|
|
151
|
+
|
|
185
152
|
//# sourceMappingURL=Progress.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","Progress_exports","Progress","ProgressFrame","ProgressIndicator","ProgressIndicatorFrame","createProgressScope","module","exports","import_jsx_runtime","require","import_core","import_create_context","import_get_token","import_helpers","import_stacks","import_react","PROGRESS_NAME","createProgressContext","createContextScope","ProgressProvider","useProgressContext","INDICATOR_NAME","styled","YStack","variants","unstyled","false","height","width","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","styleable","ProgressIndicator2","props","forwardedRef","__scopeProgress","transition","indicatorProps","context","_context_value","progressRatio","max","x","isWeb","baseWidth","Math","ceil","_context_value1","jsx","getProgressState","animateOnly","opacity","ref","defaultGetValueLabel","round","maxValue","isNumber","isValidMaxNumber","Number","isNaN","isValidValueNumber","DEFAULT_MAX","borderRadius","overflow","size","...size","val","getVariableValue","getSize","minWidth","withStaticProperties","Progress2","valueProp","maxProp","getValueLabel","progressProps","valueLabel","setWidth","useState","scope"],"sources":["../../src/Progress.tsx"],"sourcesContent":[null],"mappings":"AAIA,YAAS;;AAET,IAAAA,SAAS,GAAAC,MAAA,CAAAC,cAA0B;AACnC,IAAAC,gBAAS,GAAAF,MAAe,CAAAG,wBAAA;AACxB,IAAAC,iBAAS,GAAAJ,MAAA,CAAAK,mBAA4B;AACrC,IAAAC,YAAS,GAAAN,MAAc,CAAAO,SAAA,CAAAC,cAAA;AACvB,IAAAC,QAAS,GAAAA,CAAAC,MAAA,EAAAC,GAAgB;EAoErB,SAAAC,IAAA,IAAAD,GAAA,EAlEJZ,SAAM,CAAAW,MAAA,EAAgBE,IAAA;IAAAC,GAAA,EAAAF,GAAA,CAAAC,IAAA;IAAAE,UAAA;EAAA;AAEtB;AAQA,IAAAC,WAAO,GAAAA,CAAAC,EAAA,EAAAC,IAAkB,EAAAC,MAAA,EAAAC,IAAA,KAAkB;EAO3C,IAAMF,IAAA,WAAAA,IAAiB,wBAAAA,IAAA;IAEhB,KAAM,IAAAG,GAAA,IAAAhB,iBAAyB,CAAOa,IAAA,G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;UACzCvC,KAAA;QAEA;MAAK;IACkC;EAClB;EACXE,eACL;IAAmCL,QACtC,EAAAM,OAAA,CAAAC,GAAA,CAAAC,gBAAA;EAAA;AACF;AACI,IAAAhC,QACE,OAAAY,cAAS,CAAA4D,oBAAA,EAAAvE,aAAA,CAAAgC,SAAA,UAAAwC,UAAAtC,KAAA,EAAAC,YAAA;EAAA;IAEX;IACAC,eAAI;IACFvC,KAAA,EAAA4E,SAAA;IAAiB/B,GAAA,EAAAgC,OACnB;IACAC,aAAA,GAAArB,oBAA0B;IAAAW,IAAA,GAC5B;IAAA,GAAAW;EACF,IAAA1C,KACA;EAAK,IAAAQ,GAAA,GAAAgB,gBAAA,CAAAgB,OAAA,IAAAA,OAAA,GAAAZ,WAAA;EAAA,IACPjE,KACF,GAAAgE,kBAAA,CAAAY,SAAA,EAAA/B,GAAA,IAAAI,IAAA,CAAAS,KAAA,CAAAkB,SAAA;EAEJ,IAACI,UAAA,GAAApB,QAAA,CAAA5D,KAAA,IAAA8E,aAAA,CAAA9E,KAAA,EAAA6C,GAAA;EACD,KAAAhB,KAAA,EAAAoD,QAAA,QAAAjE,YAAA,CAAAkE,QAAA;EAAA,OACE,eAAW,IAAAzE,kBAAA,CAAA2C,GAAA,EAAAhC,gBAAA;IACb+D,KAAA,EAAA5C,eAAA;IACFvC,KAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Progress.native.js","names":[],"sources":["jsx/Progress.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Progress_exports = {};\n__export(Progress_exports, {\n Progress: () => Progress,\n ProgressFrame: () => ProgressFrame,\n ProgressIndicator: () => ProgressIndicator,\n ProgressIndicatorFrame: () => ProgressIndicatorFrame,\n createProgressScope: () => createProgressScope\n});\nmodule.exports = __toCommonJS(Progress_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_create_context = require(\"@tamagui/create-context\");\nvar import_get_token = require(\"@tamagui/get-token\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_stacks = require(\"@tamagui/stacks\");\nvar import_react = require(\"react\");\nvar PROGRESS_NAME = \"Progress\";\nvar [createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME);\nvar [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);\nvar INDICATOR_NAME = \"ProgressIndicator\";\nvar ProgressIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {\n displayName: INDICATOR_NAME,\n height: \"100%\",\n width: \"100%\"\n});\nvar ProgressIndicator = (0, import_core.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 (import_core.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__ */ (0, import_jsx_runtime.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 ...!import_core.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: !import_core.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((0, import_core.getVariableValue)((0, import_get_token.getSize)(val === true ? 36 : val)));\n var base = Number.isFinite(resolved) ? resolved : Number((0, import_core.getVariableValue)((0, import_get_token.getSize)(36)));\n return Math.round(base * 0.25);\n};\nvar getProgressSize = import_core.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 = (0, import_core.styled)(import_stacks.YStack, {\n displayName: \"Progress\",\n overflow: \"hidden\",\n variants: {\n size: getProgressSize\n }\n});\nvar Progress = (0, import_helpers.withStaticProperties)((0, import_core.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] = (0, import_react.useState)(0);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressProvider, {\n scope: __scopeProgress,\n value,\n max,\n width,\n children: /* @__PURE__ */ (0, import_jsx_runtime.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 ...!import_core.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});\n//# sourceMappingURL=Progress.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,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YAAY,SAAS,EACvB,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/jsx/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Progress.mjs"
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from "./Progress.mjs"
|
package/dist/jsx/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./Progress.mjs"
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export * from "./Progress.mjs"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_exports);
|
|
20
|
+
__reExport(index_exports, require("./Progress.native.js"), module.exports);
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -5,19 +5,18 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
10
|
+
get: () => from[key],
|
|
11
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
15
|
};
|
|
16
16
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
18
|
-
value: true
|
|
19
|
-
}), mod);
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
18
|
var index_exports = {};
|
|
21
19
|
module.exports = __toCommonJS(index_exports);
|
|
22
20
|
__reExport(index_exports, require("./Progress.native.js"), module.exports);
|
|
21
|
+
|
|
23
22
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["jsx/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Progress\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,sBAAY,GAAG,OAAO,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/progress",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-0.canary.1791056644527",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"source": "src/index.ts",
|
|
5
6
|
"files": [
|
|
6
7
|
"src",
|
|
@@ -34,17 +35,17 @@
|
|
|
34
35
|
"clean:build": "tamagui-build clean:build"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@tamagui/compose-refs": "
|
|
38
|
-
"@tamagui/core": "
|
|
39
|
-
"@tamagui/create-context": "
|
|
40
|
-
"@tamagui/get-token": "
|
|
41
|
-
"@tamagui/helpers": "
|
|
42
|
-
"@tamagui/stacks": "
|
|
38
|
+
"@tamagui/compose-refs": "3.0.0-0.canary.1791056644527",
|
|
39
|
+
"@tamagui/core": "3.0.0-0.canary.1791056644527",
|
|
40
|
+
"@tamagui/create-context": "3.0.0-0.canary.1791056644527",
|
|
41
|
+
"@tamagui/get-token": "3.0.0-0.canary.1791056644527",
|
|
42
|
+
"@tamagui/helpers": "3.0.0-0.canary.1791056644527",
|
|
43
|
+
"@tamagui/stacks": "3.0.0-0.canary.1791056644527"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@tamagui/build": "
|
|
46
|
-
"react": "
|
|
47
|
-
"react-native": "0.
|
|
46
|
+
"@tamagui/build": "3.0.0-0.canary.1791056644527",
|
|
47
|
+
"react": "19.2.3",
|
|
48
|
+
"react-native": "0.86.2"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
51
|
"react": ">=19"
|
|
@@ -54,5 +55,6 @@
|
|
|
54
55
|
"type": "git",
|
|
55
56
|
"url": "git+https://github.com/tamagui/tamagui.git",
|
|
56
57
|
"directory": "code/ui/progress"
|
|
57
|
-
}
|
|
58
|
+
},
|
|
59
|
+
"releaseSourceCommit": "e09267246167b52afd620a498678f5cce456cb5a"
|
|
58
60
|
}
|