@tamagui/slider 2.7.7 → 3.0.0-beta.643.1
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/Slider.cjs +455 -512
- package/dist/cjs/Slider.native.cjs +469 -0
- package/dist/cjs/Slider.native.js +424 -498
- package/dist/cjs/Slider.native.js.map +1 -1
- package/dist/cjs/SliderImpl.cjs +111 -128
- package/dist/cjs/SliderImpl.native.cjs +154 -0
- package/dist/cjs/SliderImpl.native.js +127 -143
- package/dist/cjs/SliderImpl.native.js.map +1 -1
- package/dist/cjs/constants.cjs +59 -45
- package/dist/cjs/constants.native.cjs +79 -0
- package/dist/cjs/constants.native.js +59 -44
- package/dist/cjs/constants.native.js.map +1 -1
- package/dist/cjs/helpers.cjs +59 -60
- package/dist/cjs/helpers.native.cjs +99 -0
- package/dist/cjs/helpers.native.js +66 -68
- package/dist/cjs/helpers.native.js.map +1 -1
- package/dist/cjs/index.cjs +16 -17
- package/dist/cjs/index.native.cjs +33 -0
- package/dist/cjs/index.native.js +16 -16
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/types.cjs +10 -11
- package/dist/cjs/types.native.cjs +19 -0
- package/dist/cjs/types.native.js +10 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/Slider.mjs +427 -474
- package/dist/esm/Slider.mjs.map +1 -1
- package/dist/esm/Slider.native.js +396 -463
- package/dist/esm/Slider.native.js.map +1 -1
- package/dist/esm/SliderImpl.mjs +92 -102
- package/dist/esm/SliderImpl.mjs.map +1 -1
- package/dist/esm/SliderImpl.native.js +109 -119
- package/dist/esm/SliderImpl.native.js.map +1 -1
- package/dist/esm/constants.mjs +38 -21
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +38 -21
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/esm/helpers.mjs +37 -36
- package/dist/esm/helpers.mjs.map +1 -1
- package/dist/esm/helpers.native.js +44 -45
- package/dist/esm/helpers.native.js.map +1 -1
- package/dist/esm/index.js +4 -3
- package/dist/esm/index.mjs +4 -3
- package/dist/esm/index.native.js +4 -3
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/dist/jsx/Slider.mjs +427 -474
- package/dist/jsx/Slider.mjs.map +1 -1
- package/dist/jsx/Slider.native.cjs +469 -0
- package/dist/jsx/Slider.native.js +424 -498
- package/dist/jsx/Slider.native.js.map +1 -1
- package/dist/jsx/SliderImpl.mjs +92 -102
- package/dist/jsx/SliderImpl.mjs.map +1 -1
- package/dist/jsx/SliderImpl.native.cjs +154 -0
- package/dist/jsx/SliderImpl.native.js +127 -143
- package/dist/jsx/SliderImpl.native.js.map +1 -1
- package/dist/jsx/constants.mjs +38 -21
- package/dist/jsx/constants.mjs.map +1 -1
- package/dist/jsx/constants.native.cjs +79 -0
- package/dist/jsx/constants.native.js +59 -44
- package/dist/jsx/constants.native.js.map +1 -1
- package/dist/jsx/helpers.mjs +37 -36
- package/dist/jsx/helpers.mjs.map +1 -1
- package/dist/jsx/helpers.native.cjs +99 -0
- package/dist/jsx/helpers.native.js +66 -68
- package/dist/jsx/helpers.native.js.map +1 -1
- package/dist/jsx/index.js +4 -3
- package/dist/jsx/index.mjs +4 -3
- package/dist/jsx/index.native.cjs +33 -0
- package/dist/jsx/index.native.js +16 -16
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/types.mjs +0 -2
- package/dist/jsx/types.native.cjs +19 -0
- package/dist/jsx/types.native.js +10 -10
- package/dist/jsx/types.native.js.map +1 -1
- package/package.json +15 -14
- package/src/Slider.tsx +126 -171
- package/src/SliderImpl.tsx +3 -2
- package/src/constants.tsx +16 -6
- package/src/types.ts +6 -4
- package/types/Slider.d.ts +218 -200
- package/types/Slider.d.ts.map +1 -1
- package/types/SliderImpl.d.ts +16 -5
- package/types/SliderImpl.d.ts.map +1 -1
- package/types/constants.d.ts +10 -10
- package/types/constants.d.ts.map +1 -1
- package/types/helpers.d.ts.map +1 -1
- package/types/types.d.ts +6 -4
- package/types/types.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/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/types.mjs.map +0 -1
|
@@ -1,66 +1,81 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var constants_exports = {};
|
|
26
25
|
__export(constants_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
ARROW_KEYS: () => ARROW_KEYS,
|
|
27
|
+
BACK_KEYS: () => BACK_KEYS,
|
|
28
|
+
PAGE_KEYS: () => PAGE_KEYS,
|
|
29
|
+
SLIDER_NAME: () => SLIDER_NAME,
|
|
30
|
+
SliderContext: () => SliderContext,
|
|
31
|
+
SliderOrientationProvider: () => SliderOrientationProvider,
|
|
32
|
+
SliderProvider: () => SliderProvider,
|
|
33
|
+
useSliderContext: () => useSliderContext,
|
|
34
|
+
useSliderOrientationContext: () => useSliderOrientationContext
|
|
36
35
|
});
|
|
37
36
|
module.exports = __toCommonJS(constants_exports);
|
|
38
37
|
var import_core = require("@tamagui/core");
|
|
39
38
|
var SLIDER_NAME = "Slider";
|
|
39
|
+
var sliderContextKeys = [
|
|
40
|
+
"size",
|
|
41
|
+
"min",
|
|
42
|
+
"max",
|
|
43
|
+
"orientation"
|
|
44
|
+
];
|
|
40
45
|
var SliderContext = (0, import_core.createStyledContext)({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
46
|
-
var {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} = (0, import_core.createStyledContext)({
|
|
54
|
-
startEdge: "left",
|
|
55
|
-
endEdge: "right",
|
|
56
|
-
sizeProp: "width",
|
|
57
|
-
size: 0,
|
|
58
|
-
direction: 1
|
|
46
|
+
size: true,
|
|
47
|
+
min: 0,
|
|
48
|
+
max: 100,
|
|
49
|
+
orientation: "horizontal"
|
|
50
|
+
}, { keys: sliderContextKeys });
|
|
51
|
+
var { Provider: SliderProvider, useStyledContext: useSliderContext } = SliderContext;
|
|
52
|
+
var { Provider: SliderOrientationProvider, useStyledContext: useSliderOrientationContext } = (0, import_core.createStyledContext)({
|
|
53
|
+
startEdge: "left",
|
|
54
|
+
endEdge: "right",
|
|
55
|
+
sizeProp: "width",
|
|
56
|
+
size: 0,
|
|
57
|
+
direction: 1
|
|
59
58
|
});
|
|
60
59
|
var PAGE_KEYS = ["PageUp", "PageDown"];
|
|
61
|
-
var ARROW_KEYS = [
|
|
60
|
+
var ARROW_KEYS = [
|
|
61
|
+
"ArrowUp",
|
|
62
|
+
"ArrowDown",
|
|
63
|
+
"ArrowLeft",
|
|
64
|
+
"ArrowRight"
|
|
65
|
+
];
|
|
62
66
|
var BACK_KEYS = {
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
ltr: [
|
|
68
|
+
"ArrowDown",
|
|
69
|
+
"Home",
|
|
70
|
+
"ArrowLeft",
|
|
71
|
+
"PageDown"
|
|
72
|
+
],
|
|
73
|
+
rtl: [
|
|
74
|
+
"ArrowDown",
|
|
75
|
+
"Home",
|
|
76
|
+
"ArrowRight",
|
|
77
|
+
"PageDown"
|
|
78
|
+
]
|
|
65
79
|
};
|
|
80
|
+
|
|
66
81
|
//# sourceMappingURL=constants.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"constants.native.js","names":[],"sources":["jsx/constants.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 constants_exports = {};\n__export(constants_exports, {\n ARROW_KEYS: () => ARROW_KEYS,\n BACK_KEYS: () => BACK_KEYS,\n PAGE_KEYS: () => PAGE_KEYS,\n SLIDER_NAME: () => SLIDER_NAME,\n SliderContext: () => SliderContext,\n SliderOrientationProvider: () => SliderOrientationProvider,\n SliderProvider: () => SliderProvider,\n useSliderContext: () => useSliderContext,\n useSliderOrientationContext: () => useSliderOrientationContext\n});\nmodule.exports = __toCommonJS(constants_exports);\nvar import_core = require(\"@tamagui/core\");\nvar SLIDER_NAME = \"Slider\";\nvar sliderContextKeys = [\n \"size\",\n \"min\",\n \"max\",\n \"orientation\"\n];\nvar SliderContext = (0, import_core.createStyledContext)({\n size: true,\n min: 0,\n max: 100,\n orientation: \"horizontal\"\n}, {\n keys: sliderContextKeys\n});\nvar { Provider: SliderProvider, useStyledContext: useSliderContext } = SliderContext;\nvar { Provider: SliderOrientationProvider, useStyledContext: useSliderOrientationContext } = (0, import_core.createStyledContext)({\n startEdge: \"left\",\n endEdge: \"right\",\n sizeProp: \"width\",\n size: 0,\n direction: 1\n});\nvar PAGE_KEYS = [\n \"PageUp\",\n \"PageDown\"\n];\nvar ARROW_KEYS = [\n \"ArrowUp\",\n \"ArrowDown\",\n \"ArrowLeft\",\n \"ArrowRight\"\n];\nvar BACK_KEYS = {\n ltr: [\n \"ArrowDown\",\n \"Home\",\n \"ArrowLeft\",\n \"PageDown\"\n ],\n rtl: [\n \"ArrowDown\",\n \"Home\",\n \"ArrowRight\",\n \"PageDown\"\n ]\n};\n//# sourceMappingURL=constants.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,IA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F"}
|
package/dist/jsx/helpers.mjs
CHANGED
|
@@ -1,58 +1,59 @@
|
|
|
1
1
|
function getNextSortedValues(prevValues = [], nextValue, atIndex) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const nextValues = [...prevValues];
|
|
3
|
+
nextValues[atIndex] = nextValue;
|
|
4
|
+
return nextValues.sort((a, b) => a - b);
|
|
5
5
|
}
|
|
6
6
|
function convertValueToPercentage(value, min, max) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const maxSteps = max - min;
|
|
8
|
+
const percentPerStep = 100 / maxSteps;
|
|
9
|
+
return percentPerStep * (value - min);
|
|
10
10
|
}
|
|
11
11
|
function getLabel(index, totalValues) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (totalValues > 2) {
|
|
13
|
+
return `Value ${index + 1} of ${totalValues}`;
|
|
14
|
+
}
|
|
15
|
+
if (totalValues === 2) {
|
|
16
|
+
return ["Minimum", "Maximum"][index];
|
|
17
|
+
}
|
|
18
|
+
return void 0;
|
|
19
19
|
}
|
|
20
20
|
function getClosestValueIndex(values, nextValue) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
if (values.length === 1) return 0;
|
|
22
|
+
const distances = values.map((value) => Math.abs(value - nextValue));
|
|
23
|
+
const closestDistance = Math.min(...distances);
|
|
24
|
+
return distances.indexOf(closestDistance);
|
|
25
25
|
}
|
|
26
26
|
function getThumbInBoundsOffset(width, left, direction) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
const quarterWidth = width / 4;
|
|
28
|
+
const halfPercent = 50;
|
|
29
|
+
const offset = linearScale([0, halfPercent], [0, quarterWidth]);
|
|
30
|
+
return (quarterWidth - offset(left)) * direction;
|
|
31
31
|
}
|
|
32
32
|
function getStepsBetweenValues(values) {
|
|
33
|
-
|
|
33
|
+
return values.slice(0, -1).map((value, index) => values[index + 1] - value);
|
|
34
34
|
}
|
|
35
35
|
function hasMinStepsBetweenValues(values, minStepsBetweenValues) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
if (minStepsBetweenValues > 0) {
|
|
37
|
+
const stepsBetweenValues = getStepsBetweenValues(values);
|
|
38
|
+
const actualMinStepsBetweenValues = Math.min(...stepsBetweenValues);
|
|
39
|
+
return actualMinStepsBetweenValues >= minStepsBetweenValues;
|
|
40
|
+
}
|
|
41
|
+
return true;
|
|
42
42
|
}
|
|
43
43
|
function linearScale(input, output) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
return (value) => {
|
|
45
|
+
if (input[0] === input[1] || output[0] === output[1]) return output[0];
|
|
46
|
+
const ratio = (output[1] - output[0]) / (input[1] - input[0]);
|
|
47
|
+
return output[0] + ratio * (value - input[0]);
|
|
48
|
+
};
|
|
49
49
|
}
|
|
50
50
|
function getDecimalCount(value) {
|
|
51
|
-
|
|
51
|
+
return (String(value).split(".")[1] || "").length;
|
|
52
52
|
}
|
|
53
53
|
function roundValue(value, decimalCount) {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
const rounder = 10 ** decimalCount;
|
|
55
|
+
return Math.round(value * rounder) / rounder;
|
|
56
56
|
}
|
|
57
|
+
|
|
57
58
|
export { convertValueToPercentage, getClosestValueIndex, getDecimalCount, getLabel, getNextSortedValues, getThumbInBoundsOffset, hasMinStepsBetweenValues, linearScale, roundValue };
|
|
58
59
|
//# sourceMappingURL=helpers.mjs.map
|
package/dist/jsx/helpers.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"helpers.js","names":[],"sources":["jsx/helpers.js"],"sourcesContent":["function getNextSortedValues(prevValues = [], nextValue, atIndex) {\n const nextValues = [...prevValues];\n nextValues[atIndex] = nextValue;\n return nextValues.sort((a, b) => a - b);\n}\nfunction convertValueToPercentage(value, min, max) {\n const maxSteps = max - min;\n const percentPerStep = 100 / maxSteps;\n return percentPerStep * (value - min);\n}\nfunction getLabel(index, totalValues) {\n if (totalValues > 2) {\n return `Value ${index + 1} of ${totalValues}`;\n }\n if (totalValues === 2) {\n return [\"Minimum\", \"Maximum\"][index];\n }\n return void 0;\n}\nfunction getClosestValueIndex(values, nextValue) {\n if (values.length === 1) return 0;\n const distances = values.map((value) => Math.abs(value - nextValue));\n const closestDistance = Math.min(...distances);\n return distances.indexOf(closestDistance);\n}\nfunction getThumbInBoundsOffset(width, left, direction) {\n const quarterWidth = width / 4;\n const halfPercent = 50;\n const offset = linearScale([0, halfPercent], [0, quarterWidth]);\n return (quarterWidth - offset(left)) * direction;\n}\nfunction getStepsBetweenValues(values) {\n return values.slice(0, -1).map((value, index) => values[index + 1] - value);\n}\nfunction hasMinStepsBetweenValues(values, minStepsBetweenValues) {\n if (minStepsBetweenValues > 0) {\n const stepsBetweenValues = getStepsBetweenValues(values);\n const actualMinStepsBetweenValues = Math.min(...stepsBetweenValues);\n return actualMinStepsBetweenValues >= minStepsBetweenValues;\n }\n return true;\n}\nfunction linearScale(input, output) {\n return (value) => {\n if (input[0] === input[1] || output[0] === output[1]) return output[0];\n const ratio = (output[1] - output[0]) / (input[1] - input[0]);\n return output[0] + ratio * (value - input[0]);\n };\n}\nfunction getDecimalCount(value) {\n return (String(value).split(\".\")[1] || \"\").length;\n}\nfunction roundValue(value, decimalCount) {\n const rounder = 10 ** decimalCount;\n return Math.round(value * rounder) / rounder;\n}\nexport {\n convertValueToPercentage,\n getClosestValueIndex,\n getDecimalCount,\n getLabel,\n getNextSortedValues,\n getThumbInBoundsOffset,\n hasMinStepsBetweenValues,\n linearScale,\n roundValue\n};\n//# sourceMappingURL=helpers.js.map\n"],"mappings":";AAAA,SAAS,oBAAoB,aAAa,CAAC,GAA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AAO,MAAM,MAAM,OAAO,OAAO,OAAO,IAAI,OAAO,OAAO;EACpE,MAAM,SAAS,OAAO,KAAK,OAAO,OAAO,MAAM,KAAK,MAAM;EAC1D,OAAO,OAAO,KAAK,SAAS,QAAQ,MAAM;CAC5C;AACF;AACA,SAAS,gBAAgB,OAAO;CAC9B,QAAQ,OAAO,KAAK,EAAE,MAAM,GAAG,EAAE,MAAM,IAAI;AAC7C;AACA,SAAS,WAAW,OAAO,cAAc;CACvC,MAAM,UAAU,MAAM;CACtB,OAAO,KAAK,MAAM,QAAQ,OAAO,IAAI;AACvC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var helpers_exports = {};
|
|
25
|
+
__export(helpers_exports, {
|
|
26
|
+
convertValueToPercentage: () => convertValueToPercentage,
|
|
27
|
+
getClosestValueIndex: () => getClosestValueIndex,
|
|
28
|
+
getDecimalCount: () => getDecimalCount,
|
|
29
|
+
getLabel: () => getLabel,
|
|
30
|
+
getNextSortedValues: () => getNextSortedValues,
|
|
31
|
+
getThumbInBoundsOffset: () => getThumbInBoundsOffset,
|
|
32
|
+
hasMinStepsBetweenValues: () => hasMinStepsBetweenValues,
|
|
33
|
+
linearScale: () => linearScale,
|
|
34
|
+
roundValue: () => roundValue
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(helpers_exports);
|
|
37
|
+
function getNextSortedValues() {
|
|
38
|
+
var prevValues = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], nextValue = arguments.length > 1 ? arguments[1] : void 0, atIndex = arguments.length > 2 ? arguments[2] : void 0;
|
|
39
|
+
var nextValues = [...prevValues];
|
|
40
|
+
nextValues[atIndex] = nextValue;
|
|
41
|
+
return nextValues.sort(function(a, b) {
|
|
42
|
+
return a - b;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function convertValueToPercentage(value, min, max) {
|
|
46
|
+
var maxSteps = max - min;
|
|
47
|
+
var percentPerStep = 100 / maxSteps;
|
|
48
|
+
return percentPerStep * (value - min);
|
|
49
|
+
}
|
|
50
|
+
function getLabel(index, totalValues) {
|
|
51
|
+
if (totalValues > 2) {
|
|
52
|
+
return `Value ${index + 1} of ${totalValues}`;
|
|
53
|
+
}
|
|
54
|
+
if (totalValues === 2) {
|
|
55
|
+
return ["Minimum", "Maximum"][index];
|
|
56
|
+
}
|
|
57
|
+
return void 0;
|
|
58
|
+
}
|
|
59
|
+
function getClosestValueIndex(values, nextValue) {
|
|
60
|
+
if (values.length === 1) return 0;
|
|
61
|
+
var distances = values.map(function(value) {
|
|
62
|
+
return Math.abs(value - nextValue);
|
|
63
|
+
});
|
|
64
|
+
var closestDistance = Math.min(...distances);
|
|
65
|
+
return distances.indexOf(closestDistance);
|
|
66
|
+
}
|
|
67
|
+
function getThumbInBoundsOffset(width, left, direction) {
|
|
68
|
+
var quarterWidth = width / 4;
|
|
69
|
+
var halfPercent = 50;
|
|
70
|
+
var offset = linearScale([0, halfPercent], [0, quarterWidth]);
|
|
71
|
+
return (quarterWidth - offset(left)) * direction;
|
|
72
|
+
}
|
|
73
|
+
function getStepsBetweenValues(values) {
|
|
74
|
+
return values.slice(0, -1).map(function(value, index) {
|
|
75
|
+
return values[index + 1] - value;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function hasMinStepsBetweenValues(values, minStepsBetweenValues) {
|
|
79
|
+
if (minStepsBetweenValues > 0) {
|
|
80
|
+
var stepsBetweenValues = getStepsBetweenValues(values);
|
|
81
|
+
var actualMinStepsBetweenValues = Math.min(...stepsBetweenValues);
|
|
82
|
+
return actualMinStepsBetweenValues >= minStepsBetweenValues;
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
function linearScale(input, output) {
|
|
87
|
+
return function(value) {
|
|
88
|
+
if (input[0] === input[1] || output[0] === output[1]) return output[0];
|
|
89
|
+
var ratio = (output[1] - output[0]) / (input[1] - input[0]);
|
|
90
|
+
return output[0] + ratio * (value - input[0]);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function getDecimalCount(value) {
|
|
94
|
+
return (String(value).split(".")[1] || "").length;
|
|
95
|
+
}
|
|
96
|
+
function roundValue(value, decimalCount) {
|
|
97
|
+
var rounder = Math.pow(10, decimalCount);
|
|
98
|
+
return Math.round(value * rounder) / rounder;
|
|
99
|
+
}
|
|
@@ -1,103 +1,101 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
21
22
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var helpers_exports = {};
|
|
26
25
|
__export(helpers_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
convertValueToPercentage: () => convertValueToPercentage,
|
|
27
|
+
getClosestValueIndex: () => getClosestValueIndex,
|
|
28
|
+
getDecimalCount: () => getDecimalCount,
|
|
29
|
+
getLabel: () => getLabel,
|
|
30
|
+
getNextSortedValues: () => getNextSortedValues,
|
|
31
|
+
getThumbInBoundsOffset: () => getThumbInBoundsOffset,
|
|
32
|
+
hasMinStepsBetweenValues: () => hasMinStepsBetweenValues,
|
|
33
|
+
linearScale: () => linearScale,
|
|
34
|
+
roundValue: () => roundValue
|
|
36
35
|
});
|
|
37
36
|
module.exports = __toCommonJS(helpers_exports);
|
|
38
37
|
function getNextSortedValues() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return a - b;
|
|
46
|
-
});
|
|
38
|
+
var prevValues = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], nextValue = arguments.length > 1 ? arguments[1] : void 0, atIndex = arguments.length > 2 ? arguments[2] : void 0;
|
|
39
|
+
var nextValues = [...prevValues];
|
|
40
|
+
nextValues[atIndex] = nextValue;
|
|
41
|
+
return nextValues.sort(function(a, b) {
|
|
42
|
+
return a - b;
|
|
43
|
+
});
|
|
47
44
|
}
|
|
48
45
|
function convertValueToPercentage(value, min, max) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
var maxSteps = max - min;
|
|
47
|
+
var percentPerStep = 100 / maxSteps;
|
|
48
|
+
return percentPerStep * (value - min);
|
|
52
49
|
}
|
|
53
50
|
function getLabel(index, totalValues) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
if (totalValues > 2) {
|
|
52
|
+
return `Value ${index + 1} of ${totalValues}`;
|
|
53
|
+
}
|
|
54
|
+
if (totalValues === 2) {
|
|
55
|
+
return ["Minimum", "Maximum"][index];
|
|
56
|
+
}
|
|
57
|
+
return void 0;
|
|
61
58
|
}
|
|
62
59
|
function getClosestValueIndex(values, nextValue) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
if (values.length === 1) return 0;
|
|
61
|
+
var distances = values.map(function(value) {
|
|
62
|
+
return Math.abs(value - nextValue);
|
|
63
|
+
});
|
|
64
|
+
var closestDistance = Math.min(...distances);
|
|
65
|
+
return distances.indexOf(closestDistance);
|
|
69
66
|
}
|
|
70
67
|
function getThumbInBoundsOffset(width, left, direction) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
var quarterWidth = width / 4;
|
|
69
|
+
var halfPercent = 50;
|
|
70
|
+
var offset = linearScale([0, halfPercent], [0, quarterWidth]);
|
|
71
|
+
return (quarterWidth - offset(left)) * direction;
|
|
75
72
|
}
|
|
76
73
|
function getStepsBetweenValues(values) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
return values.slice(0, -1).map(function(value, index) {
|
|
75
|
+
return values[index + 1] - value;
|
|
76
|
+
});
|
|
80
77
|
}
|
|
81
78
|
function hasMinStepsBetweenValues(values, minStepsBetweenValues) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
if (minStepsBetweenValues > 0) {
|
|
80
|
+
var stepsBetweenValues = getStepsBetweenValues(values);
|
|
81
|
+
var actualMinStepsBetweenValues = Math.min(...stepsBetweenValues);
|
|
82
|
+
return actualMinStepsBetweenValues >= minStepsBetweenValues;
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
88
85
|
}
|
|
89
86
|
function linearScale(input, output) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
return function(value) {
|
|
88
|
+
if (input[0] === input[1] || output[0] === output[1]) return output[0];
|
|
89
|
+
var ratio = (output[1] - output[0]) / (input[1] - input[0]);
|
|
90
|
+
return output[0] + ratio * (value - input[0]);
|
|
91
|
+
};
|
|
95
92
|
}
|
|
96
93
|
function getDecimalCount(value) {
|
|
97
|
-
|
|
94
|
+
return (String(value).split(".")[1] || "").length;
|
|
98
95
|
}
|
|
99
96
|
function roundValue(value, decimalCount) {
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
var rounder = Math.pow(10, decimalCount);
|
|
98
|
+
return Math.round(value * rounder) / rounder;
|
|
102
99
|
}
|
|
100
|
+
|
|
103
101
|
//# sourceMappingURL=helpers.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"helpers.native.js","names":[],"sources":["jsx/helpers.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 helpers_exports = {};\n__export(helpers_exports, {\n convertValueToPercentage: () => convertValueToPercentage,\n getClosestValueIndex: () => getClosestValueIndex,\n getDecimalCount: () => getDecimalCount,\n getLabel: () => getLabel,\n getNextSortedValues: () => getNextSortedValues,\n getThumbInBoundsOffset: () => getThumbInBoundsOffset,\n hasMinStepsBetweenValues: () => hasMinStepsBetweenValues,\n linearScale: () => linearScale,\n roundValue: () => roundValue\n});\nmodule.exports = __toCommonJS(helpers_exports);\nfunction getNextSortedValues() {\n var prevValues = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], nextValue = arguments.length > 1 ? arguments[1] : void 0, atIndex = arguments.length > 2 ? arguments[2] : void 0;\n var nextValues = [\n ...prevValues\n ];\n nextValues[atIndex] = nextValue;\n return nextValues.sort(function(a, b) {\n return a - b;\n });\n}\nfunction convertValueToPercentage(value, min, max) {\n var maxSteps = max - min;\n var percentPerStep = 100 / maxSteps;\n return percentPerStep * (value - min);\n}\nfunction getLabel(index, totalValues) {\n if (totalValues > 2) {\n return `Value ${index + 1} of ${totalValues}`;\n }\n if (totalValues === 2) {\n return [\n \"Minimum\",\n \"Maximum\"\n ][index];\n }\n return void 0;\n}\nfunction getClosestValueIndex(values, nextValue) {\n if (values.length === 1) return 0;\n var distances = values.map(function(value) {\n return Math.abs(value - nextValue);\n });\n var closestDistance = Math.min(...distances);\n return distances.indexOf(closestDistance);\n}\nfunction getThumbInBoundsOffset(width, left, direction) {\n var quarterWidth = width / 4;\n var halfPercent = 50;\n var offset = linearScale([\n 0,\n halfPercent\n ], [\n 0,\n quarterWidth\n ]);\n return (quarterWidth - offset(left)) * direction;\n}\nfunction getStepsBetweenValues(values) {\n return values.slice(0, -1).map(function(value, index) {\n return values[index + 1] - value;\n });\n}\nfunction hasMinStepsBetweenValues(values, minStepsBetweenValues) {\n if (minStepsBetweenValues > 0) {\n var stepsBetweenValues = getStepsBetweenValues(values);\n var actualMinStepsBetweenValues = Math.min(...stepsBetweenValues);\n return actualMinStepsBetweenValues >= minStepsBetweenValues;\n }\n return true;\n}\nfunction linearScale(input, output) {\n return function(value) {\n if (input[0] === input[1] || output[0] === output[1]) return output[0];\n var ratio = (output[1] - output[0]) / (input[1] - input[0]);\n return output[0] + ratio * (value - input[0]);\n };\n}\nfunction getDecimalCount(value) {\n return (String(value).split(\".\")[1] || \"\").length;\n}\nfunction roundValue(value, decimalCount) {\n var rounder = Math.pow(10, decimalCount);\n return Math.round(value * rounder) / rounder;\n}\n//# sourceMappingURL=helpers.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,QAC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;CACD,IAAI,kBAAkB,KAAK,IAAI,GAAG,SAAS;CAC3C,OAAO,UAAU,QAAQ,eAAe;AAC1C;AACA,SAAS,uBAAuB,OAAO,MAAM,WAAW;CACtD,IAAI,eAAe,QAAQ;CAC3B,IAAI,cAAc;CAClB,IAAI,SAAS,YAAY,CACvB,GACA,WACF,GAAG,CACD,GACA,YACF,CAAC;CACD,QAAQ,eAAe,OAAO,IAAI,KAAK;AACzC;AACA,SAAS,sBAAsB,QAAQ;CACrC,OAAO,OAAO,MAAM,GAAG,CAAC,CAAC,EAAE,IAAI,SAAS,OAAO,OAAO;EACpD,OAAO,OAAO,QAAQ,KAAK;CAC7B,CAAC;AACH;AACA,SAAS,yBAAyB,QAAQ,uBAAuB;CAC/D,IAAI,wBAAwB,GAAG;EAC7B,IAAI,qBAAqB,sBAAsB,MAAM;EACrD,IAAI,8BAA8B,KAAK,IAAI,GAAG,kBAAkB;EAChE,OAAO,+BAA+B;CACxC;CACA,OAAO;AACT;AACA,SAAS,YAAY,OAAO,QAAQ;CAClC,OAAO,SAAS,OAAO;EACrB,IAAI,MAAM,OAAO,MAAM,MAAM,OAAO,OAAO,OAAO,IAAI,OAAO,OAAO;EACpE,IAAI,SAAS,OAAO,KAAK,OAAO,OAAO,MAAM,KAAK,MAAM;EACxD,OAAO,OAAO,KAAK,SAAS,QAAQ,MAAM;CAC5C;AACF;AACA,SAAS,gBAAgB,OAAO;CAC9B,QAAQ,OAAO,KAAK,EAAE,MAAM,GAAG,EAAE,MAAM,IAAI;AAC7C;AACA,SAAS,WAAW,OAAO,cAAc;CACvC,IAAI,UAAU,KAAK,IAAI,IAAI,YAAY;CACvC,OAAO,KAAK,MAAM,QAAQ,OAAO,IAAI;AACvC"}
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from "./Slider.mjs";
|
|
2
1
|
import { SliderContext } from "./constants.mjs";
|
|
3
2
|
import { SliderFrame } from "./SliderImpl.mjs";
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
|
|
4
|
+
export * from "./Slider.mjs"
|
|
5
|
+
|
|
6
|
+
export { SliderContext, SliderFrame };
|
package/dist/jsx/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from "./Slider.mjs";
|
|
2
1
|
import { SliderContext } from "./constants.mjs";
|
|
3
2
|
import { SliderFrame } from "./SliderImpl.mjs";
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
|
|
4
|
+
export * from "./Slider.mjs"
|
|
5
|
+
|
|
6
|
+
export { SliderContext, SliderFrame };
|