@tamagui/progress 1.135.4-1761749240853 → 1.135.4
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 +1 -1
- package/dist/cjs/Progress.js +1 -1
- package/dist/cjs/Progress.js.map +1 -1
- package/dist/cjs/Progress.native.js +111 -138
- package/dist/cjs/Progress.native.js.map +6 -1
- package/dist/cjs/index.native.js +12 -13
- package/dist/cjs/index.native.js.map +6 -1
- package/dist/jsx/Progress.native.js +105 -158
- package/dist/jsx/Progress.native.js.map +6 -1
- package/dist/jsx/index.native.js +2 -21
- package/dist/jsx/index.native.js.map +6 -1
- package/package.json +8 -9
package/dist/cjs/Progress.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var import_core = require("@tamagui/core"),
|
|
|
43
43
|
import_get_token = require("@tamagui/get-token"),
|
|
44
44
|
import_helpers = require("@tamagui/helpers"),
|
|
45
45
|
import_stacks = require("@tamagui/stacks"),
|
|
46
|
-
React = __toESM(require("react")
|
|
46
|
+
React = __toESM(require("react")),
|
|
47
47
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
48
48
|
const PROGRESS_NAME = "Progress",
|
|
49
49
|
[createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME),
|
package/dist/cjs/Progress.js
CHANGED
|
@@ -29,7 +29,7 @@ __export(Progress_exports, {
|
|
|
29
29
|
createProgressScope: () => createProgressScope
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(Progress_exports);
|
|
32
|
-
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"), React = __toESM(require("react")
|
|
32
|
+
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"), React = __toESM(require("react")), import_jsx_runtime = require("react/jsx-runtime");
|
|
33
33
|
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.ThemeableStack, {
|
|
34
34
|
name: INDICATOR_NAME,
|
|
35
35
|
variants: {
|
package/dist/cjs/Progress.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Progress.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,kBAAyC,0BAEzC,wBAAmC,oCACnC,mBAAwB,+BACxB,iBAAqC,6BACrC,gBAA+B,4BAC/B,QAAuB,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,kBAAyC,0BAEzC,wBAAmC,oCACnC,mBAAwB,+BACxB,iBAAqC,6BACrC,gBAA+B,4BAC/B,QAAuB,2BA8CnB;AA5CJ,MAAM,gBAAgB,YAEhB,CAAC,uBAAuB,mBAAmB,QAAI,0CAAmB,aAAa,GAE/E,CAAC,kBAAkB,kBAAkB,IACzC,sBAA4C,aAAa,GAMrD,iBAAiB,qBAEV,6BAAyB,oBAAO,8BAAgB;AAAA,EAC3D,MAAM;AAAA,EAEN,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,cAAc;AAAA,MAChB;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC,GAIK,oBAAoB,uBAAuB,UA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AAA,EAEJ,CAAC;AAAA,EACD;AAAA,IACE,WAAW;AAAA,EACb;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,36 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
2
|
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
7
|
var __export = (target, all) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
22
16
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
17
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
18
|
// file that has been converted to a CommonJS file using a Babel-
|
|
25
19
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
20
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}) : target, mod)),
|
|
31
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
-
value: !0
|
|
33
|
-
}), mod);
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
+
mod
|
|
23
|
+
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
34
24
|
var Progress_exports = {};
|
|
35
25
|
__export(Progress_exports, {
|
|
36
26
|
Progress: () => Progress,
|
|
@@ -40,59 +30,40 @@ __export(Progress_exports, {
|
|
|
40
30
|
createProgressScope: () => createProgressScope
|
|
41
31
|
});
|
|
42
32
|
module.exports = __toCommonJS(Progress_exports);
|
|
43
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
[createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME),
|
|
52
|
-
[ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME),
|
|
53
|
-
INDICATOR_NAME = "ProgressIndicator",
|
|
54
|
-
ProgressIndicatorFrame = (0, import_core.styled)(import_stacks.ThemeableStack, {
|
|
55
|
-
name: INDICATOR_NAME,
|
|
56
|
-
variants: {
|
|
57
|
-
unstyled: {
|
|
58
|
-
false: {
|
|
59
|
-
height: "100%",
|
|
60
|
-
width: "100%",
|
|
61
|
-
backgrounded: !0
|
|
62
|
-
}
|
|
33
|
+
var import_jsx_runtime = require("react/jsx-runtime"), 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"), React = __toESM(require("react")), 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.ThemeableStack, {
|
|
34
|
+
name: INDICATOR_NAME,
|
|
35
|
+
variants: {
|
|
36
|
+
unstyled: {
|
|
37
|
+
false: {
|
|
38
|
+
height: "100%",
|
|
39
|
+
width: "100%",
|
|
40
|
+
backgrounded: !0
|
|
63
41
|
}
|
|
64
|
-
},
|
|
65
|
-
defaultVariants: {
|
|
66
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
67
42
|
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
...indicatorProps,
|
|
91
|
-
ref: forwardedRef,
|
|
92
|
-
// avoid animation on first render so the progress doesn't bounce to initial location
|
|
93
|
-
animation: context.width ? animation : null
|
|
94
|
-
});
|
|
43
|
+
},
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
46
|
+
}
|
|
47
|
+
}), ProgressIndicator = ProgressIndicatorFrame.styleable(function(props, forwardedRef) {
|
|
48
|
+
var { __scopeProgress, animation, ...indicatorProps } = props, context = useProgressContext(INDICATOR_NAME, __scopeProgress), _context_value, pct = context.max - ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0), x = -(context.width === 0 ? 300 : context.width) * (pct / 100), _context_value1;
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressIndicatorFrame, {
|
|
50
|
+
"data-state": getProgressState(context.value, context.max),
|
|
51
|
+
"data-value": (_context_value1 = context.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,
|
|
52
|
+
"data-max": context.max,
|
|
53
|
+
x,
|
|
54
|
+
width: context.width,
|
|
55
|
+
...!props.unstyled && {
|
|
56
|
+
animateOnly: [
|
|
57
|
+
"transform"
|
|
58
|
+
],
|
|
59
|
+
opacity: context.width === 0 ? 0 : 1
|
|
60
|
+
},
|
|
61
|
+
...indicatorProps,
|
|
62
|
+
ref: forwardedRef,
|
|
63
|
+
// avoid animation on first render so the progress doesn't bounce to initial location
|
|
64
|
+
animation: context.width ? animation : null
|
|
95
65
|
});
|
|
66
|
+
});
|
|
96
67
|
function defaultGetValueLabel(value, max) {
|
|
97
68
|
return `${Math.round(value / max * 100)}%`;
|
|
98
69
|
}
|
|
@@ -108,73 +79,75 @@ function isValidMaxNumber(max) {
|
|
|
108
79
|
function isValidValueNumber(value, max) {
|
|
109
80
|
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
110
81
|
}
|
|
111
|
-
var DEFAULT_MAX = 100,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
backgrounded: !0
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
size: {
|
|
123
|
-
"...size": function (val) {
|
|
124
|
-
var size = Math.round((0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) * 0.25);
|
|
125
|
-
return {
|
|
126
|
-
height: size,
|
|
127
|
-
minWidth: (0, import_core.getVariableValue)(size) * 20,
|
|
128
|
-
width: "100%"
|
|
129
|
-
};
|
|
130
|
-
}
|
|
82
|
+
var DEFAULT_MAX = 100, ProgressFrame = (0, import_core.styled)(import_stacks.ThemeableStack, {
|
|
83
|
+
name: "Progress",
|
|
84
|
+
variants: {
|
|
85
|
+
unstyled: {
|
|
86
|
+
false: {
|
|
87
|
+
borderRadius: 1e5,
|
|
88
|
+
overflow: "hidden",
|
|
89
|
+
backgrounded: !0
|
|
131
90
|
}
|
|
132
91
|
},
|
|
133
|
-
|
|
134
|
-
|
|
92
|
+
size: {
|
|
93
|
+
"...size": function(val) {
|
|
94
|
+
var 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
|
+
}
|
|
135
101
|
}
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
})
|
|
176
|
-
});
|
|
177
|
-
}), {
|
|
178
|
-
Indicator: ProgressIndicator
|
|
102
|
+
},
|
|
103
|
+
defaultVariants: {
|
|
104
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
105
|
+
}
|
|
106
|
+
}), Progress = (0, import_helpers.withStaticProperties)(ProgressFrame.styleable(function(props, forwardedRef) {
|
|
107
|
+
var {
|
|
108
|
+
// @ts-expect-error
|
|
109
|
+
__scopeProgress,
|
|
110
|
+
value: valueProp,
|
|
111
|
+
max: maxProp,
|
|
112
|
+
getValueLabel = defaultGetValueLabel,
|
|
113
|
+
size = "$true",
|
|
114
|
+
...progressProps
|
|
115
|
+
} = props, max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value = isValidValueNumber(valueProp, max) ? valueProp : null, valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0, [width, setWidth] = React.useState(0);
|
|
116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressProvider, {
|
|
117
|
+
scope: __scopeProgress,
|
|
118
|
+
value,
|
|
119
|
+
max,
|
|
120
|
+
width,
|
|
121
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProgressFrame, {
|
|
122
|
+
"aria-valuemax": max,
|
|
123
|
+
"aria-valuemin": 0,
|
|
124
|
+
"aria-valuenow": isNumber(value) ? value : void 0,
|
|
125
|
+
"aria-valuetext": valueLabel,
|
|
126
|
+
// @ts-ignore
|
|
127
|
+
role: "progressbar",
|
|
128
|
+
"data-state": getProgressState(value, max),
|
|
129
|
+
"data-value": value ?? void 0,
|
|
130
|
+
"data-max": max,
|
|
131
|
+
...progressProps.unstyled !== !0 && {
|
|
132
|
+
size
|
|
133
|
+
},
|
|
134
|
+
...progressProps,
|
|
135
|
+
onLayout: function(e) {
|
|
136
|
+
var _progressProps_onLayout;
|
|
137
|
+
setWidth(e.nativeEvent.layout.width), (_progressProps_onLayout = progressProps.onLayout) === null || _progressProps_onLayout === void 0 || _progressProps_onLayout.call(progressProps, e);
|
|
138
|
+
},
|
|
139
|
+
ref: forwardedRef
|
|
140
|
+
})
|
|
179
141
|
});
|
|
180
|
-
|
|
142
|
+
}), {
|
|
143
|
+
Indicator: ProgressIndicator
|
|
144
|
+
});
|
|
145
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
146
|
+
0 && (module.exports = {
|
|
147
|
+
Progress,
|
|
148
|
+
ProgressFrame,
|
|
149
|
+
ProgressIndicator,
|
|
150
|
+
ProgressIndicatorFrame,
|
|
151
|
+
createProgressScope
|
|
152
|
+
});
|
|
153
|
+
//# sourceMappingURL=Progress.js.map
|
|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= Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
6
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
-
value: !0
|
|
17
|
-
}), mod);
|
|
7
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
return to;
|
|
11
|
+
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
12
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
18
13
|
var index_exports = {};
|
|
19
14
|
module.exports = __toCommonJS(index_exports);
|
|
20
|
-
__reExport(index_exports, require("./Progress
|
|
21
|
-
|
|
15
|
+
__reExport(index_exports, require("./Progress"), module.exports);
|
|
16
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
17
|
+
0 && (module.exports = {
|
|
18
|
+
...require("./Progress")
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,uBAAd;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,98 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
-
get: () => from[key],
|
|
18
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
-
});
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
value: mod,
|
|
29
|
-
enumerable: !0
|
|
30
|
-
}) : target, mod)),
|
|
31
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
-
value: !0
|
|
33
|
-
}), mod);
|
|
34
|
-
var Progress_exports = {};
|
|
35
|
-
__export(Progress_exports, {
|
|
36
|
-
Progress: () => Progress,
|
|
37
|
-
ProgressFrame: () => ProgressFrame,
|
|
38
|
-
ProgressIndicator: () => ProgressIndicator,
|
|
39
|
-
ProgressIndicatorFrame: () => ProgressIndicatorFrame,
|
|
40
|
-
createProgressScope: () => createProgressScope
|
|
41
|
-
});
|
|
42
|
-
module.exports = __toCommonJS(Progress_exports);
|
|
43
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
44
|
-
import_core = require("@tamagui/core"),
|
|
45
|
-
import_create_context = require("@tamagui/create-context"),
|
|
46
|
-
import_get_token = require("@tamagui/get-token"),
|
|
47
|
-
import_helpers = require("@tamagui/helpers"),
|
|
48
|
-
import_stacks = require("@tamagui/stacks"),
|
|
49
|
-
React = __toESM(require("react"), 1),
|
|
50
|
-
PROGRESS_NAME = "Progress",
|
|
51
|
-
[createProgressContext, createProgressScope] = (0, import_create_context.createContextScope)(PROGRESS_NAME),
|
|
52
|
-
[ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME),
|
|
53
|
-
INDICATOR_NAME = "ProgressIndicator",
|
|
54
|
-
ProgressIndicatorFrame = (0, import_core.styled)(import_stacks.ThemeableStack, {
|
|
55
|
-
name: INDICATOR_NAME,
|
|
56
|
-
variants: {
|
|
57
|
-
unstyled: {
|
|
58
|
-
false: {
|
|
59
|
-
height: "100%",
|
|
60
|
-
width: "100%",
|
|
61
|
-
backgrounded: !0
|
|
62
|
-
}
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getVariableValue, styled } from "@tamagui/core";
|
|
3
|
+
import { createContextScope } from "@tamagui/create-context";
|
|
4
|
+
import { getSize } from "@tamagui/get-token";
|
|
5
|
+
import { withStaticProperties } from "@tamagui/helpers";
|
|
6
|
+
import { ThemeableStack } from "@tamagui/stacks";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
var PROGRESS_NAME = "Progress", [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), INDICATOR_NAME = "ProgressIndicator", ProgressIndicatorFrame = styled(ThemeableStack, {
|
|
9
|
+
name: INDICATOR_NAME,
|
|
10
|
+
variants: {
|
|
11
|
+
unstyled: {
|
|
12
|
+
false: {
|
|
13
|
+
height: "100%",
|
|
14
|
+
width: "100%",
|
|
15
|
+
backgrounded: !0
|
|
63
16
|
}
|
|
64
|
-
},
|
|
65
|
-
defaultVariants: {
|
|
66
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
67
17
|
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
...indicatorProps,
|
|
91
|
-
ref: forwardedRef,
|
|
92
|
-
// avoid animation on first render so the progress doesn't bounce to initial location
|
|
93
|
-
animation: context.width ? animation : null
|
|
94
|
-
});
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
21
|
+
}
|
|
22
|
+
}), ProgressIndicator = ProgressIndicatorFrame.styleable(function(props, forwardedRef) {
|
|
23
|
+
var { __scopeProgress, animation, ...indicatorProps } = props, context = useProgressContext(INDICATOR_NAME, __scopeProgress), _context_value, pct = context.max - ((_context_value = context.value) !== null && _context_value !== void 0 ? _context_value : 0), x = -(context.width === 0 ? 300 : context.width) * (pct / 100), _context_value1;
|
|
24
|
+
return /* @__PURE__ */ _jsx(ProgressIndicatorFrame, {
|
|
25
|
+
"data-state": getProgressState(context.value, context.max),
|
|
26
|
+
"data-value": (_context_value1 = context.value) !== null && _context_value1 !== void 0 ? _context_value1 : void 0,
|
|
27
|
+
"data-max": context.max,
|
|
28
|
+
x,
|
|
29
|
+
width: context.width,
|
|
30
|
+
...!props.unstyled && {
|
|
31
|
+
animateOnly: [
|
|
32
|
+
"transform"
|
|
33
|
+
],
|
|
34
|
+
opacity: context.width === 0 ? 0 : 1
|
|
35
|
+
},
|
|
36
|
+
...indicatorProps,
|
|
37
|
+
ref: forwardedRef,
|
|
38
|
+
// avoid animation on first render so the progress doesn't bounce to initial location
|
|
39
|
+
animation: context.width ? animation : null
|
|
95
40
|
});
|
|
41
|
+
});
|
|
96
42
|
function defaultGetValueLabel(value, max) {
|
|
97
43
|
return `${Math.round(value / max * 100)}%`;
|
|
98
44
|
}
|
|
@@ -108,73 +54,74 @@ function isValidMaxNumber(max) {
|
|
|
108
54
|
function isValidValueNumber(value, max) {
|
|
109
55
|
return isNumber(value) && !Number.isNaN(value) && value <= max && value >= 0;
|
|
110
56
|
}
|
|
111
|
-
var DEFAULT_MAX = 100,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
backgrounded: !0
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
size: {
|
|
123
|
-
"...size": function (val) {
|
|
124
|
-
var size = Math.round((0, import_core.getVariableValue)((0, import_get_token.getSize)(val)) * 0.25);
|
|
125
|
-
return {
|
|
126
|
-
height: size,
|
|
127
|
-
minWidth: (0, import_core.getVariableValue)(size) * 20,
|
|
128
|
-
width: "100%"
|
|
129
|
-
};
|
|
130
|
-
}
|
|
57
|
+
var DEFAULT_MAX = 100, ProgressFrame = styled(ThemeableStack, {
|
|
58
|
+
name: "Progress",
|
|
59
|
+
variants: {
|
|
60
|
+
unstyled: {
|
|
61
|
+
false: {
|
|
62
|
+
borderRadius: 1e5,
|
|
63
|
+
overflow: "hidden",
|
|
64
|
+
backgrounded: !0
|
|
131
65
|
}
|
|
132
66
|
},
|
|
133
|
-
|
|
134
|
-
|
|
67
|
+
size: {
|
|
68
|
+
"...size": function(val) {
|
|
69
|
+
var size = Math.round(getVariableValue(getSize(val)) * 0.25);
|
|
70
|
+
return {
|
|
71
|
+
height: size,
|
|
72
|
+
minWidth: getVariableValue(size) * 20,
|
|
73
|
+
width: "100%"
|
|
74
|
+
};
|
|
75
|
+
}
|
|
135
76
|
}
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
})
|
|
176
|
-
});
|
|
177
|
-
}), {
|
|
178
|
-
Indicator: ProgressIndicator
|
|
77
|
+
},
|
|
78
|
+
defaultVariants: {
|
|
79
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
80
|
+
}
|
|
81
|
+
}), Progress = withStaticProperties(ProgressFrame.styleable(function(props, forwardedRef) {
|
|
82
|
+
var {
|
|
83
|
+
// @ts-expect-error
|
|
84
|
+
__scopeProgress,
|
|
85
|
+
value: valueProp,
|
|
86
|
+
max: maxProp,
|
|
87
|
+
getValueLabel = defaultGetValueLabel,
|
|
88
|
+
size = "$true",
|
|
89
|
+
...progressProps
|
|
90
|
+
} = props, max = isValidMaxNumber(maxProp) ? maxProp : DEFAULT_MAX, value = isValidValueNumber(valueProp, max) ? valueProp : null, valueLabel = isNumber(value) ? getValueLabel(value, max) : void 0, [width, setWidth] = React.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
|
+
// @ts-ignore
|
|
102
|
+
role: "progressbar",
|
|
103
|
+
"data-state": getProgressState(value, max),
|
|
104
|
+
"data-value": value ?? void 0,
|
|
105
|
+
"data-max": max,
|
|
106
|
+
...progressProps.unstyled !== !0 && {
|
|
107
|
+
size
|
|
108
|
+
},
|
|
109
|
+
...progressProps,
|
|
110
|
+
onLayout: function(e) {
|
|
111
|
+
var _progressProps_onLayout;
|
|
112
|
+
setWidth(e.nativeEvent.layout.width), (_progressProps_onLayout = progressProps.onLayout) === null || _progressProps_onLayout === void 0 || _progressProps_onLayout.call(progressProps, e);
|
|
113
|
+
},
|
|
114
|
+
ref: forwardedRef
|
|
115
|
+
})
|
|
179
116
|
});
|
|
180
|
-
|
|
117
|
+
}), {
|
|
118
|
+
Indicator: ProgressIndicator
|
|
119
|
+
});
|
|
120
|
+
export {
|
|
121
|
+
Progress,
|
|
122
|
+
ProgressFrame,
|
|
123
|
+
ProgressIndicator,
|
|
124
|
+
ProgressIndicatorFrame,
|
|
125
|
+
createProgressScope
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=Progress.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Progress.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAAS,OAAO,YAAY;AAG5B,SAAS,kBAAkB,cAAc;AACzC,SAAS,0BAA0B;AACnC,SAAS,eAAe;AACxB,SAAS,4BAA4B;AACrC,SAAS,sBAAsB;AAC/B,YAAY,WAAW;AACvB,IAAI,gBAAgB,YAChB,CAAC,uBAAuB,mBAAmB,IAAI,mBAAmB,aAAa,GAC/E,CAAC,kBAAkB,kBAAkB,IAAI,sBAAsB,aAAa,GAGyB,iBAAiB,qBAC/G,yBAAyB,OAAO,gBAAgB;AAAA,EACvD,MAAM;AAAA,EACN,UAAU;AAAA,IACN,UAAU;AAAA,MACN,OA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IAAI,QAAQ;AAAA,MAC3C,kBAAkB;AAAA;AAAA,MAElB,MAAM;AAAA,MACN,cAAc,iBAAiB,OAAO,GAAG;AAAA,MACzC,cAAc,SAA6C;AAAA,MAC3D,YAAY;AAAA,MACZ,GAAG,cAAc,aAAa,MAAQ;AAAA,QAClC;AAAA,MACJ;AAAA,MACA,GAAG;AAAA,MACH,UAAU,SAAS,GAAG;AAClB,YAAI;AACJ,iBAAS,EAAE,YAAY,OAAO,KAAK,IAClC,0BAA0B,cAAc,cAAc,QAAQ,4BAA4B,UAAkB,wBAAwB,KAAK,eAAe,CAAC;AAAA,MAC9J;AAAA,MACA,KAAK;AAAA,IACT,CAAC;AAAA,EACL,CAAC;AACL,CAAC,GAAG;AAAA,EACA,WAAW;AACf,CAAC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/jsx/index.native.js
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
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") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
9
|
-
get: () => from[key],
|
|
10
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
-
});
|
|
12
|
-
return to;
|
|
13
|
-
},
|
|
14
|
-
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
-
value: !0
|
|
17
|
-
}), mod);
|
|
18
|
-
var index_exports = {};
|
|
19
|
-
module.exports = __toCommonJS(index_exports);
|
|
20
|
-
__reExport(index_exports, require("./Progress.native.js"), module.exports);
|
|
21
|
-
//# sourceMappingURL=index.native.js.map
|
|
1
|
+
export * from "./Progress";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/progress",
|
|
3
|
-
"version": "1.135.4
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "1.135.4",
|
|
5
4
|
"sideEffects": [
|
|
6
5
|
"*.css"
|
|
7
6
|
],
|
|
@@ -37,19 +36,19 @@
|
|
|
37
36
|
}
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@tamagui/compose-refs": "1.135.4
|
|
41
|
-
"@tamagui/core": "1.135.4
|
|
42
|
-
"@tamagui/create-context": "1.135.4
|
|
43
|
-
"@tamagui/get-token": "1.135.4
|
|
44
|
-
"@tamagui/helpers": "1.135.4
|
|
45
|
-
"@tamagui/stacks": "1.135.4
|
|
39
|
+
"@tamagui/compose-refs": "1.135.4",
|
|
40
|
+
"@tamagui/core": "1.135.4",
|
|
41
|
+
"@tamagui/create-context": "1.135.4",
|
|
42
|
+
"@tamagui/get-token": "1.135.4",
|
|
43
|
+
"@tamagui/helpers": "1.135.4",
|
|
44
|
+
"@tamagui/stacks": "1.135.4"
|
|
46
45
|
},
|
|
47
46
|
"peerDependencies": {
|
|
48
47
|
"react": "*",
|
|
49
48
|
"react-native": "*"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
|
-
"@tamagui/build": "1.135.4
|
|
51
|
+
"@tamagui/build": "1.135.4",
|
|
53
52
|
"react": "*",
|
|
54
53
|
"react-native": "^0.79.2"
|
|
55
54
|
},
|