@tamagui/slider 1.0.1-beta.37 → 1.0.1-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/cjs/index.js CHANGED
File without changes
File without changes
package/dist/cjs/types.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/esm/index.js CHANGED
File without changes
File without changes
package/dist/esm/types.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/jsx/index.js CHANGED
File without changes
package/dist/jsx/types.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/slider",
3
- "version": "1.0.1-beta.37",
3
+ "version": "1.0.1-beta.40",
4
4
  "sideEffects": true,
5
5
  "source": "src/index.ts",
6
6
  "types": "./types/index.d.ts",
@@ -18,12 +18,12 @@
18
18
  "clean:build": "tamagui-build clean:build"
19
19
  },
20
20
  "dependencies": {
21
- "@tamagui/compose-refs": "^1.0.1-beta.37",
22
- "@tamagui/core": "^1.0.1-beta.37",
23
- "@tamagui/create-context": "^1.0.1-beta.37",
24
- "@tamagui/stacks": "^1.0.1-beta.37",
25
- "@tamagui/use-controllable-state": "^1.0.1-beta.37",
26
- "@tamagui/use-direction": "^1.0.1-beta.37"
21
+ "@tamagui/compose-refs": "^1.0.1-beta.40",
22
+ "@tamagui/core": "^1.0.1-beta.40",
23
+ "@tamagui/create-context": "^1.0.1-beta.40",
24
+ "@tamagui/stacks": "^1.0.1-beta.40",
25
+ "@tamagui/use-controllable-state": "^1.0.1-beta.40",
26
+ "@tamagui/use-direction": "^1.0.1-beta.40"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "*",
@@ -31,7 +31,7 @@
31
31
  "react-native": "*"
32
32
  },
33
33
  "devDependencies": {
34
- "@tamagui/build": "^1.0.1-beta.37",
34
+ "@tamagui/build": "^1.0.1-beta.40",
35
35
  "@types/react-native": "^0.67.3",
36
36
  "react": "*",
37
37
  "react-dom": "*",
@@ -1,50 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var context_exports = {};
19
- __export(context_exports, {
20
- SLIDER_NAME: () => SLIDER_NAME,
21
- SliderOrientationProvider: () => SliderOrientationProvider,
22
- SliderProvider: () => SliderProvider,
23
- createSliderContext: () => createSliderContext,
24
- createSliderScope: () => createSliderScope,
25
- useSliderContext: () => useSliderContext,
26
- useSliderOrientationContext: () => useSliderOrientationContext
27
- });
28
- module.exports = __toCommonJS(context_exports);
29
- var import_create_context = require("@tamagui/create-context");
30
- const SLIDER_NAME = "Slider";
31
- const [createSliderContext, createSliderScope] = (0, import_create_context.createContextScope)(SLIDER_NAME);
32
- const [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);
33
- const [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext(SLIDER_NAME, {
34
- startEdge: "left",
35
- endEdge: "right",
36
- sizeProp: "width",
37
- size: 0,
38
- direction: 1
39
- });
40
- // Annotate the CommonJS export names for ESM import in node:
41
- 0 && (module.exports = {
42
- SLIDER_NAME,
43
- SliderOrientationProvider,
44
- SliderProvider,
45
- createSliderContext,
46
- createSliderScope,
47
- useSliderContext,
48
- useSliderOrientationContext
49
- });
50
- //# sourceMappingURL=context.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/context.tsx"],
4
- "sourcesContent": ["import { SizeTokens } from '@tamagui/core'\nimport { createContextScope } from '@tamagui/create-context'\n\nimport { SliderContextValue } from './types'\n\nexport const SLIDER_NAME = 'Slider'\n\nexport const [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME)\n\nexport const [SliderProvider, useSliderContext] =\n createSliderContext<SliderContextValue>(SLIDER_NAME)\n\nexport const [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext<{\n startEdge: 'bottom' | 'left' | 'right'\n endEdge: 'top' | 'right' | 'left'\n sizeProp: 'width' | 'height'\n size: number | SizeTokens\n direction: number\n}>(SLIDER_NAME, {\n startEdge: 'left',\n endEdge: 'right',\n sizeProp: 'width',\n size: 0,\n direction: 1,\n})\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,4BAAmC;AAI5B,MAAM,cAAc;AAEpB,MAAM,CAAC,qBAAqB,qBAAqB,8CAAmB,WAAW;AAE/E,MAAM,CAAC,gBAAgB,oBAC5B,oBAAwC,WAAW;AAE9C,MAAM,CAAC,2BAA2B,+BAA+B,oBAMrE,aAAa;AAAA,EACd,WAAW;AAAA,EACX,SAAS;AAAA,EACT,UAAU;AAAA,EACV,MAAM;AAAA,EACN,WAAW;AACb,CAAC;",
6
- "names": []
7
- }
@@ -1,21 +0,0 @@
1
- import { createContextScope } from "@tamagui/create-context";
2
- const SLIDER_NAME = "Slider";
3
- const [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME);
4
- const [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);
5
- const [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext(SLIDER_NAME, {
6
- startEdge: "left",
7
- endEdge: "right",
8
- sizeProp: "width",
9
- size: 0,
10
- direction: 1
11
- });
12
- export {
13
- SLIDER_NAME,
14
- SliderOrientationProvider,
15
- SliderProvider,
16
- createSliderContext,
17
- createSliderScope,
18
- useSliderContext,
19
- useSliderOrientationContext
20
- };
21
- //# sourceMappingURL=context.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/context.tsx"],
4
- "sourcesContent": ["import { SizeTokens } from '@tamagui/core'\nimport { createContextScope } from '@tamagui/create-context'\n\nimport { SliderContextValue } from './types'\n\nexport const SLIDER_NAME = 'Slider'\n\nexport const [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME)\n\nexport const [SliderProvider, useSliderContext] =\n createSliderContext<SliderContextValue>(SLIDER_NAME)\n\nexport const [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext<{\n startEdge: 'bottom' | 'left' | 'right'\n endEdge: 'top' | 'right' | 'left'\n sizeProp: 'width' | 'height'\n size: number | SizeTokens\n direction: number\n}>(SLIDER_NAME, {\n startEdge: 'left',\n endEdge: 'right',\n sizeProp: 'width',\n size: 0,\n direction: 1,\n})\n"],
5
- "mappings": "AACA;AAIO,MAAM,cAAc;AAEpB,MAAM,CAAC,qBAAqB,qBAAqB,mBAAmB,WAAW;AAE/E,MAAM,CAAC,gBAAgB,oBAC5B,oBAAwC,WAAW;AAE9C,MAAM,CAAC,2BAA2B,+BAA+B,oBAMrE,aAAa;AAAA,EACd,WAAW;AAAA,EACX,SAAS;AAAA,EACT,UAAU;AAAA,EACV,MAAM;AAAA,EACN,WAAW;AACb,CAAC;",
6
- "names": []
7
- }
@@ -1,20 +0,0 @@
1
- import { createContextScope } from "@tamagui/create-context";
2
- const SLIDER_NAME = "Slider";
3
- const [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME);
4
- const [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);
5
- const [SliderOrientationProvider, useSliderOrientationContext] = createSliderContext(SLIDER_NAME, {
6
- startEdge: "left",
7
- endEdge: "right",
8
- sizeProp: "width",
9
- size: 0,
10
- direction: 1
11
- });
12
- export {
13
- SLIDER_NAME,
14
- SliderOrientationProvider,
15
- SliderProvider,
16
- createSliderContext,
17
- createSliderScope,
18
- useSliderContext,
19
- useSliderOrientationContext
20
- };
@@ -1,50 +0,0 @@
1
- /// <reference types="react" />
2
- import { SizeTokens } from '@tamagui/core';
3
- import { SliderContextValue } from './types';
4
- export declare const SLIDER_NAME = "Slider";
5
- export declare const createSliderContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType | undefined) => readonly [{
6
- (props: ContextValueType & {
7
- scope: import("@tamagui/create-context").Scope<ContextValueType>;
8
- children: import("react").ReactNode;
9
- }): JSX.Element;
10
- displayName: string;
11
- }, (consumerName: string, scope: import("@tamagui/create-context").Scope<ContextValueType | undefined>) => ContextValueType], createSliderScope: import("@tamagui/create-context").CreateScope;
12
- export declare const SliderProvider: {
13
- (props: SliderContextValue & {
14
- scope: import("@tamagui/create-context").Scope<SliderContextValue>;
15
- children: import("react").ReactNode;
16
- }): JSX.Element;
17
- displayName: string;
18
- }, useSliderContext: (consumerName: string, scope: import("@tamagui/create-context").Scope<SliderContextValue | undefined>) => SliderContextValue;
19
- export declare const SliderOrientationProvider: {
20
- (props: {
21
- startEdge: 'bottom' | 'left' | 'right';
22
- endEdge: 'top' | 'right' | 'left';
23
- sizeProp: 'width' | 'height';
24
- size: number | SizeTokens;
25
- direction: number;
26
- } & {
27
- scope: import("@tamagui/create-context").Scope<{
28
- startEdge: 'bottom' | 'left' | 'right';
29
- endEdge: 'top' | 'right' | 'left';
30
- sizeProp: 'width' | 'height';
31
- size: number | SizeTokens;
32
- direction: number;
33
- }>;
34
- children: import("react").ReactNode;
35
- }): JSX.Element;
36
- displayName: string;
37
- }, useSliderOrientationContext: (consumerName: string, scope: import("@tamagui/create-context").Scope<{
38
- startEdge: 'bottom' | 'left' | 'right';
39
- endEdge: 'top' | 'right' | 'left';
40
- sizeProp: 'width' | 'height';
41
- size: number | SizeTokens;
42
- direction: number;
43
- } | undefined>) => {
44
- startEdge: 'bottom' | 'left' | 'right';
45
- endEdge: 'top' | 'right' | 'left';
46
- sizeProp: 'width' | 'height';
47
- size: number | SizeTokens;
48
- direction: number;
49
- };
50
- //# sourceMappingURL=context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,eAAO,MAAM,WAAW,WAAW,CAAA;AAEnC,eAAO,MAAO,mBAAmB;;;;;;8HAAE,iBAAiB,+CAAmC,CAAA;AAEvF,eAAO,MAAO,cAAc;;;;;;GAAE,gBAAgB,8HACQ,CAAA;AAEtD,eAAO,MAAO,yBAAyB;;mBAC1B,QAAQ,GAAG,MAAM,GAAG,OAAO;iBAC7B,KAAK,GAAG,OAAO,GAAG,MAAM;kBACvB,OAAO,GAAG,QAAQ;cACtB,MAAM,GAAG,UAAU;mBACd,MAAM;;;uBAJN,QAAQ,GAAG,MAAM,GAAG,OAAO;qBAC7B,KAAK,GAAG,OAAO,GAAG,MAAM;sBACvB,OAAO,GAAG,QAAQ;kBACtB,MAAM,GAAG,UAAU;uBACd,MAAM;;;;;GALsB,2BAA2B;eACvD,QAAQ,GAAG,MAAM,GAAG,OAAO;aAC7B,KAAK,GAAG,OAAO,GAAG,MAAM;cACvB,OAAO,GAAG,QAAQ;UACtB,MAAM,GAAG,UAAU;eACd,MAAM;;eAJN,QAAQ,GAAG,MAAM,GAAG,OAAO;aAC7B,KAAK,GAAG,OAAO,GAAG,MAAM;cACvB,OAAO,GAAG,QAAQ;UACtB,MAAM,GAAG,UAAU;eACd,MAAM;CAOjB,CAAA"}