@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,20 +5,22 @@ 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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
23
|
+
value: true
|
|
22
24
|
}), mod);
|
|
23
25
|
var Progress_exports = {};
|
|
24
26
|
__export(Progress_exports, {
|
|
@@ -29,65 +31,67 @@ __export(Progress_exports, {
|
|
|
29
31
|
createProgressScope: () => createProgressScope
|
|
30
32
|
});
|
|
31
33
|
module.exports = __toCommonJS(Progress_exports);
|
|
32
|
-
var import_jsx_runtime = require("react/jsx-runtime")
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_core = require("@tamagui/core");
|
|
36
|
+
var import_create_context = require("@tamagui/create-context");
|
|
37
|
+
var import_get_token = require("@tamagui/get-token");
|
|
38
|
+
var import_helpers = require("@tamagui/helpers");
|
|
39
|
+
var import_stacks = require("@tamagui/stacks");
|
|
40
|
+
var import_react = require("react");
|
|
41
|
+
var PROGRESS_NAME = "Progress";
|
|
42
|
+
var [createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME);
|
|
43
|
+
var [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME);
|
|
44
|
+
var INDICATOR_NAME = "ProgressIndicator";
|
|
45
|
+
var ProgressIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
46
|
+
name: INDICATOR_NAME,
|
|
47
|
+
variants: {
|
|
48
|
+
unstyled: {
|
|
49
|
+
false: {
|
|
50
|
+
height: "100%",
|
|
51
|
+
width: "100%",
|
|
52
|
+
backgroundColor: "$background"
|
|
52
53
|
}
|
|
53
|
-
},
|
|
54
|
-
defaultVariants: {
|
|
55
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
56
|
-
}
|
|
57
|
-
}),
|
|
58
|
-
ProgressIndicator = ProgressIndicatorFrame.styleable(function (props, forwardedRef) {
|
|
59
|
-
var {
|
|
60
|
-
__scopeProgress,
|
|
61
|
-
transition,
|
|
62
|
-
...indicatorProps
|
|
63
|
-
} = props,
|
|
64
|
-
context = useProgressContext(INDICATOR_NAME, __scopeProgress),
|
|
65
|
-
_context_value,
|
|
66
|
-
progressRatio = ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0) / context.max,
|
|
67
|
-
x;
|
|
68
|
-
if (import_core.isWeb) x = `${-100 + progressRatio * 50}%`;else {
|
|
69
|
-
var baseWidth = context.width || 0;
|
|
70
|
-
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
71
54
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
var ProgressIndicator = ProgressIndicatorFrame.styleable(function ProgressIndicator2(props, forwardedRef) {
|
|
61
|
+
var {
|
|
62
|
+
__scopeProgress,
|
|
63
|
+
transition,
|
|
64
|
+
...indicatorProps
|
|
65
|
+
} = props;
|
|
66
|
+
var context = useProgressContext(INDICATOR_NAME, __scopeProgress);
|
|
67
|
+
var _context_value;
|
|
68
|
+
var progressRatio = ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0) / context.max;
|
|
69
|
+
var x;
|
|
70
|
+
if (import_core.isWeb) {
|
|
71
|
+
x = `${-100 + progressRatio * 50}%`;
|
|
72
|
+
} else {
|
|
73
|
+
var baseWidth = context.width || 0;
|
|
74
|
+
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
75
|
+
}
|
|
76
|
+
var _context_value1;
|
|
77
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ProgressIndicatorFrame, {
|
|
78
|
+
"data-state": getProgressState(context.value, context.max),
|
|
79
|
+
"data-value": (_context_value1 = context.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,
|
|
80
|
+
"data-max": context.max,
|
|
81
|
+
x,
|
|
82
|
+
width: "200%",
|
|
83
|
+
...(!props.unstyled && {
|
|
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
|
|
90
93
|
});
|
|
94
|
+
});
|
|
91
95
|
function defaultGetValueLabel(value, max) {
|
|
92
96
|
return `${Math.round(value / max * 100)}%`;
|
|
93
97
|
}
|
|
@@ -95,7 +99,7 @@ function getProgressState(value, maxValue) {
|
|
|
95
99
|
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
96
100
|
}
|
|
97
101
|
function isNumber(value) {
|
|
98
|
-
return typeof value
|
|
102
|
+
return typeof value === "number";
|
|
99
103
|
}
|
|
100
104
|
function isValidMaxNumber(max) {
|
|
101
105
|
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
@@ -103,76 +107,79 @@ function isValidMaxNumber(max) {
|
|
|
103
107
|
function isValidValueNumber(value, max) {
|
|
104
108
|
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
105
109
|
}
|
|
106
|
-
var DEFAULT_MAX = 100
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
size: {
|
|
118
|
-
"...size": function (val) {
|
|
119
|
-
var size = Math.round((0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) * 0.25);
|
|
120
|
-
return {
|
|
121
|
-
height: size,
|
|
122
|
-
minWidth: (0, import_core.getVariableValue)(size) * 20,
|
|
123
|
-
width: "100%"
|
|
124
|
-
};
|
|
125
|
-
}
|
|
110
|
+
var DEFAULT_MAX = 100;
|
|
111
|
+
var ProgressFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
112
|
+
name: "Progress",
|
|
113
|
+
variants: {
|
|
114
|
+
unstyled: {
|
|
115
|
+
false: {
|
|
116
|
+
borderRadius: 1e5,
|
|
117
|
+
overflow: "hidden",
|
|
118
|
+
backgroundColor: "$background"
|
|
126
119
|
}
|
|
127
120
|
},
|
|
128
|
-
|
|
129
|
-
|
|
121
|
+
size: {
|
|
122
|
+
"...size": function (val) {
|
|
123
|
+
var size = Math.round((0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) * 0.25);
|
|
124
|
+
return {
|
|
125
|
+
height: size,
|
|
126
|
+
minWidth: (0, import_core.getVariableValue)(size) * 20,
|
|
127
|
+
width: "100%"
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
130
|
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
131
|
+
},
|
|
132
|
+
defaultVariants: {
|
|
133
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
var Progress = (0, import_helpers.withStaticProperties)(ProgressFrame.styleable(function Progress2(props, forwardedRef) {
|
|
137
|
+
var {
|
|
138
|
+
// @ts-expect-error
|
|
139
|
+
__scopeProgress,
|
|
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);
|
|
170
175
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
})
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
Indicator: ProgressIndicator
|
|
176
|
+
(_progressProps_onLayout = progressProps.onLayout) === null || _progressProps_onLayout === void 0 ? void 0 : _progressProps_onLayout.call(progressProps, e);
|
|
177
|
+
}
|
|
178
|
+
}),
|
|
179
|
+
ref: forwardedRef
|
|
180
|
+
})
|
|
177
181
|
});
|
|
182
|
+
}), {
|
|
183
|
+
Indicator: ProgressIndicator
|
|
184
|
+
});
|
|
178
185
|
//# 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","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","valueProp","maxProp","getValueLabel","progressProps","valueLabel","setWidth","useState","scope"
|
|
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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AAzE,kBAAA,CAAA2C,GAAA,EAAAhC,gBAAA;IACb+D,KAAA,EAAA5C,eAAA;IACFvC,KAAA","ignoreList":[]}
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Progress";
|
|
1
|
+
export * from "./Progress.mjs";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/index.native.js
CHANGED
|
@@ -5,15 +5,17 @@ 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
|
-
|
|
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, {
|
|
9
10
|
get: () => from[key],
|
|
10
11
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
12
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
17
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
-
value:
|
|
18
|
+
value: true
|
|
17
19
|
}), mod);
|
|
18
20
|
var index_exports = {};
|
|
19
21
|
module.exports = __toCommonJS(index_exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/progress",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.40",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -18,15 +18,12 @@
|
|
|
18
18
|
"./package.json": "./package.json",
|
|
19
19
|
".": {
|
|
20
20
|
"types": "./types/index.d.ts",
|
|
21
|
-
"react-native":
|
|
22
|
-
|
|
23
|
-
"import": "./dist/esm/index.native.js",
|
|
24
|
-
"require": "./dist/cjs/index.native.js"
|
|
25
|
-
},
|
|
21
|
+
"react-native": "./dist/esm/index.native.js",
|
|
22
|
+
"browser": "./dist/esm/index.mjs",
|
|
26
23
|
"module": "./dist/esm/index.mjs",
|
|
27
24
|
"import": "./dist/esm/index.mjs",
|
|
28
25
|
"require": "./dist/cjs/index.cjs",
|
|
29
|
-
"default": "./dist/
|
|
26
|
+
"default": "./dist/esm/index.mjs"
|
|
30
27
|
}
|
|
31
28
|
},
|
|
32
29
|
"publishConfig": {
|
|
@@ -39,17 +36,17 @@
|
|
|
39
36
|
"clean:build": "tamagui-build clean:build"
|
|
40
37
|
},
|
|
41
38
|
"dependencies": {
|
|
42
|
-
"@tamagui/compose-refs": "2.0.0-rc.
|
|
43
|
-
"@tamagui/core": "2.0.0-rc.
|
|
44
|
-
"@tamagui/create-context": "2.0.0-rc.
|
|
45
|
-
"@tamagui/get-token": "2.0.0-rc.
|
|
46
|
-
"@tamagui/helpers": "2.0.0-rc.
|
|
47
|
-
"@tamagui/stacks": "2.0.0-rc.
|
|
39
|
+
"@tamagui/compose-refs": "2.0.0-rc.40",
|
|
40
|
+
"@tamagui/core": "2.0.0-rc.40",
|
|
41
|
+
"@tamagui/create-context": "2.0.0-rc.40",
|
|
42
|
+
"@tamagui/get-token": "2.0.0-rc.40",
|
|
43
|
+
"@tamagui/helpers": "2.0.0-rc.40",
|
|
44
|
+
"@tamagui/stacks": "2.0.0-rc.40"
|
|
48
45
|
},
|
|
49
46
|
"devDependencies": {
|
|
50
|
-
"@tamagui/build": "2.0.0-rc.
|
|
47
|
+
"@tamagui/build": "2.0.0-rc.40",
|
|
51
48
|
"react": ">=19",
|
|
52
|
-
"react-native": "0.
|
|
49
|
+
"react-native": "0.83.2"
|
|
53
50
|
},
|
|
54
51
|
"peerDependencies": {
|
|
55
52
|
"react": ">=19",
|
package/dist/cjs/Progress.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var Progress_exports = {};
|
|
16
|
-
__export(Progress_exports, {
|
|
17
|
-
Progress: () => Progress,
|
|
18
|
-
ProgressFrame: () => ProgressFrame,
|
|
19
|
-
ProgressIndicator: () => ProgressIndicator,
|
|
20
|
-
ProgressIndicatorFrame: () => ProgressIndicatorFrame,
|
|
21
|
-
createProgressScope: () => createProgressScope
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(Progress_exports);
|
|
24
|
-
var import_core = require("@tamagui/core"), import_create_context = require("@tamagui/create-context"), import_get_token = require("@tamagui/get-token"), import_helpers = require("@tamagui/helpers"), import_stacks = require("@tamagui/stacks"), import_react = require("react"), import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
const PROGRESS_NAME = "Progress", [createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), INDICATOR_NAME = "ProgressIndicator", ProgressIndicatorFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
26
|
-
name: INDICATOR_NAME,
|
|
27
|
-
variants: {
|
|
28
|
-
unstyled: {
|
|
29
|
-
false: {
|
|
30
|
-
height: "100%",
|
|
31
|
-
width: "100%",
|
|
32
|
-
backgroundColor: "$background"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
defaultVariants: {
|
|
37
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
38
|
-
}
|
|
39
|
-
}), ProgressIndicator = ProgressIndicatorFrame.styleable(function(props, forwardedRef) {
|
|
40
|
-
const { __scopeProgress, transition, ...indicatorProps } = props, context = useProgressContext(INDICATOR_NAME, __scopeProgress), progressRatio = (context.value ?? 0) / context.max;
|
|
41
|
-
let x;
|
|
42
|
-
if (import_core.isWeb)
|
|
43
|
-
x = `${-100 + progressRatio * 50}%`;
|
|
44
|
-
else {
|
|
45
|
-
const baseWidth = context.width || 0;
|
|
46
|
-
x = Math.ceil(-baseWidth * (2 - progressRatio));
|
|
47
|
-
}
|
|
48
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
49
|
-
ProgressIndicatorFrame,
|
|
50
|
-
{
|
|
51
|
-
"data-state": getProgressState(context.value, context.max),
|
|
52
|
-
"data-value": context.value ?? void 0,
|
|
53
|
-
"data-max": context.max,
|
|
54
|
-
x,
|
|
55
|
-
width: "200%",
|
|
56
|
-
...!props.unstyled && {
|
|
57
|
-
animateOnly: ["transform"],
|
|
58
|
-
// on native, hide until we have width measurement
|
|
59
|
-
...!import_core.isWeb && context.width === 0 && { opacity: 0 }
|
|
60
|
-
},
|
|
61
|
-
...indicatorProps,
|
|
62
|
-
ref: forwardedRef,
|
|
63
|
-
transition: !import_core.isWeb && !context.width ? null : transition
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
});
|
|
67
|
-
function defaultGetValueLabel(value, max) {
|
|
68
|
-
return `${Math.round(value / max * 100)}%`;
|
|
69
|
-
}
|
|
70
|
-
function getProgressState(value, maxValue) {
|
|
71
|
-
return value == null ? "indeterminate" : value === maxValue ? "complete" : "loading";
|
|
72
|
-
}
|
|
73
|
-
function isNumber(value) {
|
|
74
|
-
return typeof value == "number";
|
|
75
|
-
}
|
|
76
|
-
function isValidMaxNumber(max) {
|
|
77
|
-
return isNumber(max) && !Number.isNaN(max) && max > 0;
|
|
78
|
-
}
|
|
79
|
-
function isValidValueNumber(value, max) {
|
|
80
|
-
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
81
|
-
}
|
|
82
|
-
const DEFAULT_MAX = 100, ProgressFrame = (0, import_core.styled)(import_stacks.YStack, {
|
|
83
|
-
name: "Progress",
|
|
84
|
-
variants: {
|
|
85
|
-
unstyled: {
|
|
86
|
-
false: {
|
|
87
|
-
borderRadius: 1e5,
|
|
88
|
-
overflow: "hidden",
|
|
89
|
-
backgroundColor: "$background"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
size: {
|
|
93
|
-
"...size": (val) => {
|
|
94
|
-
const size = Math.round((0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) * 0.25);
|
|
95
|
-
return {
|
|
96
|
-
height: size,
|
|
97
|
-
minWidth: (0, import_core.getVariableValue)(size) * 20,
|
|
98
|
-
width: "100%"
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
defaultVariants: {
|
|
104
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
105
|
-
}
|
|
106
|
-
}), Progress = (0, import_helpers.withStaticProperties)(
|
|
107
|
-
ProgressFrame.styleable(function(props, forwardedRef) {
|
|
108
|
-
const {
|
|
109
|
-
// @ts-expect-error
|
|
110
|
-
__scopeProgress,
|
|
111
|
-
value: valueProp,
|
|
112
|
-
max: maxProp,
|
|
113
|
-
getValueLabel = defaultGetValueLabel,
|
|
114
|
-
size = "$true",
|
|
115
|
-
...progressProps
|
|
116
|
-
} = props, max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value = isValidValueNumber(valueProp, max) ? Math.round(valueProp) : null, valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0, [width, setWidth] = (0, import_react.useState)(0);
|
|
117
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressProvider, { scope: __scopeProgress, value, max, width, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
118
|
-
ProgressFrame,
|
|
119
|
-
{
|
|
120
|
-
"aria-valuemax": max,
|
|
121
|
-
"aria-valuemin": 0,
|
|
122
|
-
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
123
|
-
"aria-valuetext": valueLabel,
|
|
124
|
-
role: "progressbar",
|
|
125
|
-
"data-state": getProgressState(value, max),
|
|
126
|
-
"data-value": value ?? void 0,
|
|
127
|
-
"data-max": max,
|
|
128
|
-
...progressProps.unstyled !== !0 && {
|
|
129
|
-
size
|
|
130
|
-
},
|
|
131
|
-
...progressProps,
|
|
132
|
-
...!import_core.isWeb && {
|
|
133
|
-
onLayout: (e) => {
|
|
134
|
-
const newWidth = Math.round(e.nativeEvent.layout.width);
|
|
135
|
-
newWidth !== width && setWidth(newWidth), progressProps.onLayout?.(e);
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
ref: forwardedRef
|
|
139
|
-
}
|
|
140
|
-
) });
|
|
141
|
-
}),
|
|
142
|
-
{
|
|
143
|
-
Indicator: ProgressIndicator
|
|
144
|
-
}
|
|
145
|
-
);
|
|
146
|
-
//# sourceMappingURL=Progress.js.map
|
package/dist/cjs/Progress.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/Progress.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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GAAG;AAAA,IACL,IAAI,OAEE,MAAM,iBAAiB,OAAO,IAAI,UAAU,aAC5C,QAAQ,mBAAmB,WAAW,GAAG,IAAI,KAAK,MAAM,SAAS,IAAI,MACrE,aAAa,SAAS,KAAK,IAAI,cAAc,OAAO,GAAG,IAAI,QAG3D,CAAC,OAAO,QAAQ,QAAI,uBAAS,CAAC;AAEpC,WACE,4CAAC,oBAAiB,OAAO,iBAAiB,OAAc,KAAU,OAChE;AAAA,MAAC;AAAA;AAAA,QACC,iBAAe;AAAA,QACf,iBAAe;AAAA,QACf,iBAAe,SAAS,KAAK,IAAI,QAAQ;AAAA,QACzC,kBAAgB;AAAA,QAEhB,MAAK;AAAA,QACL,cAAY,iBAAiB,OAAO,GAAG;AAAA,QACvC,cAAY,SAAS;AAAA,QACrB,YAAU;AAAA,QACT,GAAI,cAAc,aAAa,MAAQ;AAAA,UACtC;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QACH,GAAI,CAAC,qBAAS;AAAA,UACb,UAAU,CAAC,MAAM;AACf,kBAAM,WAAW,KAAK,MAAM,EAAE,YAAY,OAAO,KAAK;AACtD,YAAI,aAAa,SACf,SAAS,QAAQ,GAEnB,cAAc,WAAW,CAAC;AAAA,UAC5B;AAAA,QACF;AAAA,QACA,KAAK;AAAA;AAAA,IACP,GACF;AAAA,EAEJ,CAAC;AAAA,EACD;AAAA,IACE,WAAW;AAAA,EACb;AACF;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
-
return to;
|
|
10
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
11
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
-
var index_exports = {};
|
|
13
|
-
module.exports = __toCommonJS(index_exports);
|
|
14
|
-
__reExport(index_exports, require("./Progress"), module.exports);
|
|
15
|
-
//# sourceMappingURL=index.js.map
|