@tamagui/slider 2.0.0-rc.9 → 2.0.0
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 +450 -429
- package/dist/cjs/Slider.native.js +452 -458
- package/dist/cjs/Slider.native.js.map +1 -1
- package/dist/cjs/SliderImpl.cjs +127 -100
- package/dist/cjs/SliderImpl.native.js +147 -117
- package/dist/cjs/SliderImpl.native.js.map +1 -1
- package/dist/cjs/constants.cjs +39 -37
- package/dist/cjs/constants.native.js +40 -38
- package/dist/cjs/constants.native.js.map +1 -1
- package/dist/cjs/helpers.cjs +32 -20
- package/dist/cjs/helpers.native.js +34 -26
- package/dist/cjs/helpers.native.js.map +1 -1
- package/dist/cjs/index.cjs +15 -13
- package/dist/cjs/index.native.js +15 -13
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/types.cjs +7 -5
- package/dist/cjs/types.native.js +7 -5
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/Slider.mjs +407 -395
- package/dist/esm/Slider.mjs.map +1 -1
- package/dist/esm/Slider.native.js +408 -423
- package/dist/esm/Slider.native.js.map +1 -1
- package/dist/esm/SliderImpl.mjs +95 -70
- package/dist/esm/SliderImpl.mjs.map +1 -1
- package/dist/esm/SliderImpl.native.js +115 -87
- package/dist/esm/SliderImpl.native.js.map +1 -1
- package/dist/esm/constants.mjs +27 -27
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js +27 -27
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/esm/helpers.mjs +20 -10
- package/dist/esm/helpers.mjs.map +1 -1
- package/dist/esm/helpers.native.js +22 -16
- package/dist/esm/helpers.native.js.map +1 -1
- package/dist/esm/index.js +4 -7
- package/dist/esm/index.js.map +1 -6
- package/dist/jsx/Slider.mjs +407 -395
- package/dist/jsx/Slider.mjs.map +1 -1
- package/dist/jsx/Slider.native.js +452 -458
- package/dist/jsx/Slider.native.js.map +1 -1
- package/dist/jsx/SliderImpl.mjs +95 -70
- package/dist/jsx/SliderImpl.mjs.map +1 -1
- package/dist/jsx/SliderImpl.native.js +147 -117
- package/dist/jsx/SliderImpl.native.js.map +1 -1
- package/dist/jsx/constants.mjs +27 -27
- package/dist/jsx/constants.mjs.map +1 -1
- package/dist/jsx/constants.native.js +40 -38
- package/dist/jsx/constants.native.js.map +1 -1
- package/dist/jsx/helpers.mjs +20 -10
- package/dist/jsx/helpers.mjs.map +1 -1
- package/dist/jsx/helpers.native.js +34 -26
- package/dist/jsx/helpers.native.js.map +1 -1
- package/dist/jsx/index.js +4 -7
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +15 -13
- package/dist/jsx/types.native.js +7 -5
- package/package.json +16 -16
- package/dist/cjs/Slider.js +0 -486
- package/dist/cjs/Slider.js.map +0 -6
- package/dist/cjs/SliderImpl.js +0 -115
- package/dist/cjs/SliderImpl.js.map +0 -6
- package/dist/cjs/constants.js +0 -47
- package/dist/cjs/constants.js.map +0 -6
- package/dist/cjs/helpers.js +0 -74
- package/dist/cjs/helpers.js.map +0 -6
- package/dist/cjs/index.js +0 -23
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/types.js.map +0 -6
- package/dist/esm/Slider.js +0 -499
- package/dist/esm/Slider.js.map +0 -6
- package/dist/esm/SliderImpl.js +0 -98
- package/dist/esm/SliderImpl.js.map +0 -6
- package/dist/esm/constants.js +0 -31
- package/dist/esm/constants.js.map +0 -6
- package/dist/esm/helpers.js +0 -58
- package/dist/esm/helpers.js.map +0 -6
- package/dist/esm/types.js +0 -1
- package/dist/esm/types.js.map +0 -6
- package/dist/jsx/Slider.js +0 -499
- package/dist/jsx/Slider.js.map +0 -6
- package/dist/jsx/SliderImpl.js +0 -98
- package/dist/jsx/SliderImpl.js.map +0 -6
- package/dist/jsx/constants.js +0 -31
- package/dist/jsx/constants.js.map +0 -6
- package/dist/jsx/helpers.js +0 -58
- package/dist/jsx/helpers.js.map +0 -6
- package/dist/jsx/types.js +0 -1
- package/dist/jsx/types.js.map +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SliderImpl_exports","__export","SliderFrame","SliderImpl","module","exports","import_jsx_runtime","require","import_constants","import_core","import_get_token","import_stacks","React","__toESM","import_react_native","import_constants2","_instanceof","left","right","Symbol","hasInstance","styled","YStack","position","variants","orientation","horizontal","vertical","size","val","extras","props","Math","round","getVariableValue","getSize","height","borderRadius","justifyContent","width","alignItems","forwardRef","forwardedRef","__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown","children","sliderProps","context","useSliderContext","handleResponderGrant","useCallback","event","_props_onResponderGrant","onResponderGrant","call","target","thumbIndex","thumbs","get","isStartingOnThumb","isWeb","HTMLElement","has","focus","valueIndexToChangeRef","current","handleResponderMove","_props_onResponderMove","onResponderMove","stopPropagation","handleResponderRelease","_props_onResponderRelease","onResponderRelease","jsx","ref","onKeyDown","key","preventDefault","PAGE_KEYS","concat","ARROW_KEYS","includes","View","onMoveShouldSetResponderCapture","onMoveShouldSetResponder","onStartShouldSetResponder","onResponderTerminationRequest","style","inset"],"sources":["../../src/SliderImpl.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SliderImpl_exports","__export","SliderFrame","SliderImpl","module","exports","import_jsx_runtime","require","import_constants","import_core","import_get_token","import_stacks","React","__toESM","import_react_native","import_constants2","_instanceof","left","right","Symbol","hasInstance","styled","YStack","position","variants","orientation","horizontal","vertical","size","val","extras","props","Math","round","getVariableValue","getSize","height","borderRadius","justifyContent","width","alignItems","forwardRef","forwardedRef","__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown","children","sliderProps","context","useSliderContext","handleResponderGrant","useCallback","event","_props_onResponderGrant","onResponderGrant","call","target","thumbIndex","thumbs","get","isStartingOnThumb","isWeb","HTMLElement","has","focus","valueIndexToChangeRef","current","handleResponderMove","_props_onResponderMove","onResponderMove","stopPropagation","handleResponderRelease","_props_onResponderRelease","onResponderRelease","jsx","ref","onKeyDown","key","preventDefault","PAGE_KEYS","concat","ARROW_KEYS","includes","View","onMoveShouldSetResponderCapture","onMoveShouldSetResponder","onStartShouldSetResponder","onResponderTerminationRequest","style","inset"],"sources":["../../src/SliderImpl.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA;AAAA;AAIAC,MAAA,CAAAC,OAAA,GAAAV,YAAsB,CAAAK,kBAAA;AAEtB,IAAAM,kBAAyC,GAAAC,OAAA;AACzC,IAAAC,gBAAA,GAAwBD,OAAA;AACxB,IAAAE,WAAA,GAAAF,OAAuB;AACvB,IAAAG,gBAAuB,GAAAH,OAAA;AACvB,IAAAI,aAAA,GAAAJ,OAAqB;AAErB,IAAAK,KAAA,GAAAC,OAAA,CAAAN,OAAqE;AAuH7D,IAAAO,mBAAA,GAAAP,OAAA;AApHD,IAAAQ,iBAAM,GAAcR,OAAA,wBAAO;AAAQ,SACxCS,WAAUA,CAAAC,IAAA,EAAAC,KAAA;EAEV,IAAAA,KAAA,IAAU,eAAAC,MAAA,oBAAAD,KAAA,CAAAC,MAAA,CAAAC,WAAA;IACR,SAAAF,KAAa,CAAAC,MAAA,CAAAC,WAAA,EAAAH,IAAA;EAAA,OACX;IAAa,OACbA,IAAA,YAAWC,KAAA;EAAA;AACb;AAGE,IAAAhB,WAAK,GAAK,IAAAO,WAAA,CAAAY,MAAA,EAAA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yB,GAAW,KAAC,MAAU;YACpBlC,aAAU,CAAAS,KAAA,CAAQ;YAChBA,KAAA,CAAA0B,cAAc;UAEd,WAAA1B,KAAM,CAAAyB,GAAA,UAAe;YAAAjC,YACvB,CAAWQ,KAAA,CAAM;YACfA,KAAA,CAAA0B,cAAa,EAAK;UAElB,WAAAnE,iBAAqB,CAAAoE,SAAA,CAAAC,MAAA,CAAArE,iBAAA,CAAAsE,UAAA,EAAAC,QAAA,CAAA9B,KAAA,CAAAyB,GAAA;YAAAhC,aACZ,CAAAO,KAAA;YACTA,KAAA,CAAA0B,cAAc;UAEd;QAAqB;MACvB;MACFhC,QACF,qBAAA5C,kBAAA,CAAAwE,GAAA,EAAAhE,mBAAA,CAAAyE,IAAA;QAAAC,+BAEA,WAAAA,CAAA;UAAA,OAAC;QAAA;QAAAC,wBACC,WAAAA,CAAA;UAAuC,OACvC;QAAgC;QACCC,yBACjC,WAAAA,CAAA,EAA+B;UAAM,OACrC;QAAkB;QACDC,6BACG,WAAAA,CAAA;UAAA,OACpB,KAAO;QAAiC;QAEvCjC,gBAAA,EAAAJ,oBAAA;QAAAmB,eACH,EAAAF,mBAAA;QAAAM,kBAAA,EAAAF,sBAAA;QACFiB,KAAA;UAAAC,KAAA;UAEJtE,QAAA;QACF","ignoreList":[]}
|
package/dist/cjs/constants.cjs
CHANGED
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var constants_exports = {};
|
|
22
24
|
__export(constants_exports, {
|
|
@@ -32,30 +34,30 @@ __export(constants_exports, {
|
|
|
32
34
|
});
|
|
33
35
|
module.exports = __toCommonJS(constants_exports);
|
|
34
36
|
var import_core = require("@tamagui/core");
|
|
35
|
-
const SLIDER_NAME = "Slider"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
37
|
+
const SLIDER_NAME = "Slider";
|
|
38
|
+
const SliderContext = (0, import_core.createStyledContext)({
|
|
39
|
+
size: "$true",
|
|
40
|
+
min: 0,
|
|
41
|
+
max: 100,
|
|
42
|
+
orientation: "horizontal"
|
|
43
|
+
});
|
|
44
|
+
const {
|
|
45
|
+
Provider: SliderProvider,
|
|
46
|
+
useStyledContext: useSliderContext
|
|
47
|
+
} = SliderContext;
|
|
48
|
+
const {
|
|
49
|
+
Provider: SliderOrientationProvider,
|
|
50
|
+
useStyledContext: useSliderOrientationContext
|
|
51
|
+
} = (0, import_core.createStyledContext)({
|
|
52
|
+
startEdge: "left",
|
|
53
|
+
endEdge: "right",
|
|
54
|
+
sizeProp: "width",
|
|
55
|
+
size: 0,
|
|
56
|
+
direction: 1
|
|
57
|
+
});
|
|
58
|
+
const PAGE_KEYS = ["PageUp", "PageDown"];
|
|
59
|
+
const ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
60
|
+
const BACK_KEYS = {
|
|
61
|
+
ltr: ["ArrowDown", "Home", "ArrowLeft", "PageDown"],
|
|
62
|
+
rtl: ["ArrowDown", "Home", "ArrowRight", "PageDown"]
|
|
63
|
+
};
|
|
@@ -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 constants_exports = {};
|
|
24
26
|
__export(constants_exports, {
|
|
@@ -33,32 +35,32 @@ __export(constants_exports, {
|
|
|
33
35
|
useSliderOrientationContext: () => useSliderOrientationContext
|
|
34
36
|
});
|
|
35
37
|
module.exports = __toCommonJS(constants_exports);
|
|
36
|
-
var import_core = require("@tamagui/core")
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
38
|
+
var import_core = require("@tamagui/core");
|
|
39
|
+
var SLIDER_NAME = "Slider";
|
|
40
|
+
var SliderContext = (0, import_core.createStyledContext)({
|
|
41
|
+
size: "$true",
|
|
42
|
+
min: 0,
|
|
43
|
+
max: 100,
|
|
44
|
+
orientation: "horizontal"
|
|
45
|
+
});
|
|
46
|
+
var {
|
|
47
|
+
Provider: SliderProvider,
|
|
48
|
+
useStyledContext: useSliderContext
|
|
49
|
+
} = SliderContext;
|
|
50
|
+
var {
|
|
51
|
+
Provider: SliderOrientationProvider,
|
|
52
|
+
useStyledContext: useSliderOrientationContext
|
|
53
|
+
} = (0, import_core.createStyledContext)({
|
|
54
|
+
startEdge: "left",
|
|
55
|
+
endEdge: "right",
|
|
56
|
+
sizeProp: "width",
|
|
57
|
+
size: 0,
|
|
58
|
+
direction: 1
|
|
59
|
+
});
|
|
60
|
+
var PAGE_KEYS = ["PageUp", "PageDown"];
|
|
61
|
+
var ARROW_KEYS = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"];
|
|
62
|
+
var BACK_KEYS = {
|
|
63
|
+
ltr: ["ArrowDown", "Home", "ArrowLeft", "PageDown"],
|
|
64
|
+
rtl: ["ArrowDown", "Home", "ArrowRight", "PageDown"]
|
|
65
|
+
};
|
|
64
66
|
//# sourceMappingURL=constants.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","ARROW_KEYS","BACK_KEYS","PAGE_KEYS","SLIDER_NAME","SliderContext","SliderOrientationProvider","SliderProvider","useSliderContext","useSliderOrientationContext","module","exports","import_core","require","createStyledContext","size","min","max","orientation","Provider","useStyledContext","startEdge","endEdge","sizeProp","direction"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","constants_exports","__export","ARROW_KEYS","BACK_KEYS","PAGE_KEYS","SLIDER_NAME","SliderContext","SliderOrientationProvider","SliderProvider","useSliderContext","useSliderOrientationContext","module","exports","import_core","require","createStyledContext","size","min","max","orientation","Provider","useStyledContext","startEdge","endEdge","sizeProp","direction"],"sources":["../../src/constants.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,yBAAA,EAAAA,CAAA,KAAAA,yBAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,gBAAA,EAAAA,CAAA,KAAAA,gBAAA;EAAAC,2BAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAjB,YAAqD,CAAAK,iBAAA;AAI9C,IAAAa,WAAM,GAAAC,OAAc;AAEpB,IAAAT,WAAM,WAAgB;AAAwC,IACnEC,aAAM,OAAAO,WAAA,CAAAE,mBAAA;EACNC,IAAA,EAAK;EACLC,GAAA,EAAK;EACLC,GAAA;EACqBC,WAAA;AAEhB;AAGA;EAAMC,QAAA,EAAAZ,cAAA;EAAAa,gBAAA,EAAAZ;AAAA,IAAAH,aAAA;AAAA,IACX;EAAAc,QAAU,EAAAb,yBAAA;EAAAc,gBAAA,EAAAX;AAAA,QAAAG,WAAA,CAAAE,mBAAA;EACVO,SAAA;EACFC,OAAI;EAOFC,QAAA,SAAW;EACXR,IAAA;EACAS,SAAA,EAAU;AAAA,EACV;AAAM,IACNrB,SAAW,IACZ,UAEM,UAAM,CACN;AACA,IAAAF,UAAM,IACX,SAAM,EACN,WAAM,EACR,a","ignoreList":[]}
|
package/dist/cjs/helpers.cjs
CHANGED
|
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
21
|
+
value: true
|
|
20
22
|
}), mod);
|
|
21
23
|
var helpers_exports = {};
|
|
22
24
|
__export(helpers_exports, {
|
|
@@ -33,24 +35,33 @@ __export(helpers_exports, {
|
|
|
33
35
|
module.exports = __toCommonJS(helpers_exports);
|
|
34
36
|
function getNextSortedValues(prevValues = [], nextValue, atIndex) {
|
|
35
37
|
const nextValues = [...prevValues];
|
|
36
|
-
|
|
38
|
+
nextValues[atIndex] = nextValue;
|
|
39
|
+
return nextValues.sort((a, b) => a - b);
|
|
37
40
|
}
|
|
38
41
|
function convertValueToPercentage(value, min, max) {
|
|
39
|
-
|
|
42
|
+
const maxSteps = max - min;
|
|
43
|
+
const percentPerStep = 100 / maxSteps;
|
|
44
|
+
return percentPerStep * (value - min);
|
|
40
45
|
}
|
|
41
46
|
function getLabel(index, totalValues) {
|
|
42
|
-
if (totalValues > 2)
|
|
43
|
-
|
|
47
|
+
if (totalValues > 2) {
|
|
48
|
+
return `Value ${index + 1} of ${totalValues}`;
|
|
49
|
+
}
|
|
50
|
+
if (totalValues === 2) {
|
|
51
|
+
return ["Minimum", "Maximum"][index];
|
|
52
|
+
}
|
|
53
|
+
return void 0;
|
|
44
54
|
}
|
|
45
55
|
function getClosestValueIndex(values, nextValue) {
|
|
46
56
|
if (values.length === 1) return 0;
|
|
47
|
-
const distances = values.map(value => Math.abs(value - nextValue))
|
|
48
|
-
|
|
57
|
+
const distances = values.map(value => Math.abs(value - nextValue));
|
|
58
|
+
const closestDistance = Math.min(...distances);
|
|
49
59
|
return distances.indexOf(closestDistance);
|
|
50
60
|
}
|
|
51
61
|
function getThumbInBoundsOffset(width, left, direction) {
|
|
52
|
-
const quarterWidth = width / 4
|
|
53
|
-
|
|
62
|
+
const quarterWidth = width / 4;
|
|
63
|
+
const halfPercent = 50;
|
|
64
|
+
const offset = linearScale([0, halfPercent], [0, quarterWidth]);
|
|
54
65
|
return (quarterWidth - offset(left)) * direction;
|
|
55
66
|
}
|
|
56
67
|
function getStepsBetweenValues(values) {
|
|
@@ -59,9 +70,10 @@ function getStepsBetweenValues(values) {
|
|
|
59
70
|
function hasMinStepsBetweenValues(values, minStepsBetweenValues) {
|
|
60
71
|
if (minStepsBetweenValues > 0) {
|
|
61
72
|
const stepsBetweenValues = getStepsBetweenValues(values);
|
|
62
|
-
|
|
73
|
+
const actualMinStepsBetweenValues = Math.min(...stepsBetweenValues);
|
|
74
|
+
return actualMinStepsBetweenValues >= minStepsBetweenValues;
|
|
63
75
|
}
|
|
64
|
-
return
|
|
76
|
+
return true;
|
|
65
77
|
}
|
|
66
78
|
function linearScale(input, output) {
|
|
67
79
|
return value => {
|
|
@@ -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 helpers_exports = {};
|
|
24
26
|
__export(helpers_exports, {
|
|
@@ -36,33 +38,39 @@ module.exports = __toCommonJS(helpers_exports);
|
|
|
36
38
|
function getNextSortedValues() {
|
|
37
39
|
var prevValues = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [],
|
|
38
40
|
nextValue = arguments.length > 1 ? arguments[1] : void 0,
|
|
39
|
-
atIndex = arguments.length > 2 ? arguments[2] : void 0
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
atIndex = arguments.length > 2 ? arguments[2] : void 0;
|
|
42
|
+
var nextValues = [...prevValues];
|
|
43
|
+
nextValues[atIndex] = nextValue;
|
|
44
|
+
return nextValues.sort(function (a, b) {
|
|
42
45
|
return a - b;
|
|
43
46
|
});
|
|
44
47
|
}
|
|
45
48
|
function convertValueToPercentage(value, min, max) {
|
|
46
|
-
var maxSteps = max - min
|
|
47
|
-
|
|
49
|
+
var maxSteps = max - min;
|
|
50
|
+
var percentPerStep = 100 / maxSteps;
|
|
48
51
|
return percentPerStep * (value - min);
|
|
49
52
|
}
|
|
50
53
|
function getLabel(index, totalValues) {
|
|
51
|
-
if (totalValues > 2)
|
|
52
|
-
|
|
54
|
+
if (totalValues > 2) {
|
|
55
|
+
return `Value ${index + 1} of ${totalValues}`;
|
|
56
|
+
}
|
|
57
|
+
if (totalValues === 2) {
|
|
58
|
+
return ["Minimum", "Maximum"][index];
|
|
59
|
+
}
|
|
60
|
+
return void 0;
|
|
53
61
|
}
|
|
54
62
|
function getClosestValueIndex(values, nextValue) {
|
|
55
63
|
if (values.length === 1) return 0;
|
|
56
64
|
var distances = values.map(function (value) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
65
|
+
return Math.abs(value - nextValue);
|
|
66
|
+
});
|
|
67
|
+
var closestDistance = Math.min(...distances);
|
|
60
68
|
return distances.indexOf(closestDistance);
|
|
61
69
|
}
|
|
62
70
|
function getThumbInBoundsOffset(width, left, direction) {
|
|
63
|
-
var quarterWidth = width / 4
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
var quarterWidth = width / 4;
|
|
72
|
+
var halfPercent = 50;
|
|
73
|
+
var offset = linearScale([0, halfPercent], [0, quarterWidth]);
|
|
66
74
|
return (quarterWidth - offset(left)) * direction;
|
|
67
75
|
}
|
|
68
76
|
function getStepsBetweenValues(values) {
|
|
@@ -72,11 +80,11 @@ function getStepsBetweenValues(values) {
|
|
|
72
80
|
}
|
|
73
81
|
function hasMinStepsBetweenValues(values, minStepsBetweenValues) {
|
|
74
82
|
if (minStepsBetweenValues > 0) {
|
|
75
|
-
var stepsBetweenValues = getStepsBetweenValues(values)
|
|
76
|
-
|
|
83
|
+
var stepsBetweenValues = getStepsBetweenValues(values);
|
|
84
|
+
var actualMinStepsBetweenValues = Math.min(...stepsBetweenValues);
|
|
77
85
|
return actualMinStepsBetweenValues >= minStepsBetweenValues;
|
|
78
86
|
}
|
|
79
|
-
return
|
|
87
|
+
return true;
|
|
80
88
|
}
|
|
81
89
|
function linearScale(input, output) {
|
|
82
90
|
return function (value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","helpers_exports","__export","convertValueToPercentage","getClosestValueIndex","getDecimalCount","getLabel","getNextSortedValues","getThumbInBoundsOffset","hasMinStepsBetweenValues","linearScale","roundValue","module","exports","prevValues","arguments","length","nextValue","atIndex","nextValues","sort","a","b","min","max","maxSteps","percentPerStep","index","totalValues","values","distances","map","Math","abs","closestDistance","indexOf","width","left","direction","quarterWidth","halfPercent","offset","getStepsBetweenValues","slice","minStepsBetweenValues"],"sources":["../../src/helpers.tsx"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","helpers_exports","__export","convertValueToPercentage","getClosestValueIndex","getDecimalCount","getLabel","getNextSortedValues","getThumbInBoundsOffset","hasMinStepsBetweenValues","linearScale","roundValue","module","exports","prevValues","arguments","length","nextValue","atIndex","nextValues","sort","a","b","min","max","maxSteps","percentPerStep","index","totalValues","values","distances","map","Math","abs","closestDistance","indexOf","width","left","direction","quarterWidth","halfPercent","offset","getStepsBetweenValues","slice","minStepsBetweenValues","stepsBetweenValues"],"sources":["../../src/helpers.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,eAAA;AAAAC,QAAA,CAAAD,eAAA;EAAAE,wBAAA,EAAAA,CAAA,KAAAA,wBAAA;EAAAC,oBAAA,EAAAA,CAAA,KAAAA,oBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,mBAAA,EAAAA,CAAA,KAAAA,mBAAA;EAAAC,sBAAA,EAAAA,CAAA,KAAAA,sBAAA;EAAAC,wBAAA,EAAAA,CAAA,KAAAA,wBAAA;EAAAC,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAA,CAAAC,OAAS,GAAAjB,YACd,CAAAK,eAAwB,CACxB;AAGA,SAAMM,mBAAiBA,CAAA;EACvB,IAAAO,UAAW,GAAAC,SAAW,CAAAC,MAAA,QAAAD,SAAA,iBAAAA,SAAA;IAAAE,SAAA,GAAAF,SAAA,CAAAC,MAAA,OAAAD,SAAA;IAAAG,OAAA,GAAAH,SAAA,CAAAC,MAAA,OAAAD,SAAA;EACtB,IAAAI,UAAO,IACT,GAAAL,UAAA,CAEO;EACLK,UAAM,CAAAD,OAAW,IAAAD,SAAM;EACvB,OAAME,UAAA,CAAAC,IAAA,CAAiB,UAAMC,CAAA,EAAAC,CAAA;IAC7B,OAAOD,CAAA,GAAAC,CAAA;EACT;AAKO;AACL,SAAInB,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Q;IAC5B,IAAAC,kBAAA,GAAAH,qBAAA,CAAAb,MAAA","ignoreList":[]}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,21 +3,23 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
14
|
get: () => from[key],
|
|
14
15
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
21
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
20
|
-
value:
|
|
22
|
+
value: true
|
|
21
23
|
}), mod);
|
|
22
24
|
var index_exports = {};
|
|
23
25
|
__export(index_exports, {
|
|
@@ -26,5 +28,5 @@ __export(index_exports, {
|
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(index_exports);
|
|
28
30
|
__reExport(index_exports, require("./Slider.cjs"), module.exports);
|
|
29
|
-
var import_constants = require("./constants.cjs")
|
|
30
|
-
|
|
31
|
+
var import_constants = require("./constants.cjs");
|
|
32
|
+
var import_SliderImpl = require("./SliderImpl.cjs");
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -5,21 +5,23 @@ 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
|
-
|
|
20
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
23
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
22
|
-
value:
|
|
24
|
+
value: true
|
|
23
25
|
}), mod);
|
|
24
26
|
var index_exports = {};
|
|
25
27
|
__export(index_exports, {
|
|
@@ -28,6 +30,6 @@ __export(index_exports, {
|
|
|
28
30
|
});
|
|
29
31
|
module.exports = __toCommonJS(index_exports);
|
|
30
32
|
__reExport(index_exports, require("./Slider.native.js"), module.exports);
|
|
31
|
-
var import_constants = require("./constants.native.js")
|
|
32
|
-
|
|
33
|
+
var import_constants = require("./constants.native.js");
|
|
34
|
+
var import_SliderImpl = require("./SliderImpl.native.js");
|
|
33
35
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","SliderContext","import_constants","SliderFrame","import_SliderImpl","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","SliderContext","import_constants","SliderFrame","import_SliderImpl","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAC,gBAAA,CAAAD,aAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAC,iBAAA,CAAAD;AAAA;AAAAE,MAAA,CAAAC,OAAA,GAAAZ,YAAc,CAAAK,aAAA;AACdQ,UAAA,CAAAR,aAA8B,EAAAS,OAAA,wBAAAH,MAAA,CAAAC,OAAA;AAE9B,IAAAJ,gBAAA,GAAAM,OAA4B","ignoreList":[]}
|
package/dist/cjs/types.cjs
CHANGED
|
@@ -3,14 +3,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
8
|
+
get: () => from[key],
|
|
9
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
10
|
+
});
|
|
11
|
+
}
|
|
10
12
|
return to;
|
|
11
13
|
};
|
|
12
14
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
13
|
-
value:
|
|
15
|
+
value: true
|
|
14
16
|
}), mod);
|
|
15
17
|
var types_exports = {};
|
|
16
18
|
module.exports = __toCommonJS(types_exports);
|
package/dist/cjs/types.native.js
CHANGED
|
@@ -5,14 +5,16 @@ 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
|
-
if (from && typeof from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
}
|
|
12
14
|
return to;
|
|
13
15
|
};
|
|
14
16
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
15
|
-
value:
|
|
17
|
+
value: true
|
|
16
18
|
}), mod);
|
|
17
19
|
var types_exports = {};
|
|
18
20
|
module.exports = __toCommonJS(types_exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
|