@tamagui/switch 1.88.10 → 1.88.12
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/StyledContext.js +26 -0
- package/dist/cjs/StyledContext.js.map +6 -0
- package/dist/cjs/StyledContext.native.js +31 -0
- package/dist/cjs/StyledContext.native.js.map +6 -0
- package/dist/esm/StyledContext.js +10 -0
- package/dist/esm/StyledContext.js.map +6 -0
- package/dist/esm/StyledContext.native.js +31 -0
- package/dist/esm/StyledContext.native.js.map +6 -0
- package/dist/jsx/StyledContext.js +10 -0
- package/dist/jsx/StyledContext.js.map +6 -0
- package/dist/jsx/StyledContext.native.js +31 -0
- package/dist/jsx/StyledContext.native.js.map +6 -0
- package/package.json +12 -12
- package/types/StyledContext.d.ts.map +1 -0
- package/types/Switch.d.ts +2 -2
- package/types/Switch.d.ts.map +1 -1
- package/types/createSwitch.d.ts +3 -3
- package/types/index.d.ts +3 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var StyledContext_exports = {};
|
|
16
|
+
__export(StyledContext_exports, {
|
|
17
|
+
SwitchStyledContext: () => SwitchStyledContext
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(StyledContext_exports);
|
|
20
|
+
var import_core = require("@tamagui/core");
|
|
21
|
+
const SwitchStyledContext = (0, import_core.createStyledContext)({
|
|
22
|
+
size: void 0,
|
|
23
|
+
frameWidth: 0,
|
|
24
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=StyledContext.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var StyledContext_exports = {};
|
|
17
|
+
__export(StyledContext_exports, {
|
|
18
|
+
SwitchStyledContext: () => SwitchStyledContext
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(StyledContext_exports);
|
|
21
|
+
var import_core = require("@tamagui/core");
|
|
22
|
+
const SwitchStyledContext = (0, import_core.createStyledContext)({
|
|
23
|
+
size: void 0,
|
|
24
|
+
frameWidth: 0,
|
|
25
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
26
|
+
});
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
SwitchStyledContext
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=StyledContext.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createStyledContext } from "@tamagui/core";
|
|
2
|
+
const SwitchStyledContext = createStyledContext({
|
|
3
|
+
size: void 0,
|
|
4
|
+
frameWidth: 0,
|
|
5
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
SwitchStyledContext
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=StyledContext.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var StyledContext_exports = {};
|
|
17
|
+
__export(StyledContext_exports, {
|
|
18
|
+
SwitchStyledContext: () => SwitchStyledContext
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(StyledContext_exports);
|
|
21
|
+
var import_core = require("@tamagui/core");
|
|
22
|
+
const SwitchStyledContext = (0, import_core.createStyledContext)({
|
|
23
|
+
size: void 0,
|
|
24
|
+
frameWidth: 0,
|
|
25
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
26
|
+
});
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
SwitchStyledContext
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=StyledContext.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createStyledContext } from "@tamagui/core";
|
|
2
|
+
const SwitchStyledContext = createStyledContext({
|
|
3
|
+
size: void 0,
|
|
4
|
+
frameWidth: 0,
|
|
5
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
SwitchStyledContext
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=StyledContext.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
+
var StyledContext_exports = {};
|
|
17
|
+
__export(StyledContext_exports, {
|
|
18
|
+
SwitchStyledContext: () => SwitchStyledContext
|
|
19
|
+
});
|
|
20
|
+
module.exports = __toCommonJS(StyledContext_exports);
|
|
21
|
+
var import_core = require("@tamagui/core");
|
|
22
|
+
const SwitchStyledContext = (0, import_core.createStyledContext)({
|
|
23
|
+
size: void 0,
|
|
24
|
+
frameWidth: 0,
|
|
25
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
26
|
+
});
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
SwitchStyledContext
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=StyledContext.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/switch",
|
|
3
|
-
"version": "1.88.
|
|
3
|
+
"version": "1.88.12",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tamagui/compose-refs": "1.88.
|
|
36
|
-
"@tamagui/constants": "1.88.
|
|
37
|
-
"@tamagui/core": "1.88.
|
|
38
|
-
"@tamagui/focusable": "1.88.
|
|
39
|
-
"@tamagui/get-token": "1.88.
|
|
40
|
-
"@tamagui/helpers": "1.88.
|
|
41
|
-
"@tamagui/label": "1.88.
|
|
42
|
-
"@tamagui/stacks": "1.88.
|
|
43
|
-
"@tamagui/use-controllable-state": "1.88.
|
|
44
|
-
"@tamagui/use-previous": "1.88.
|
|
35
|
+
"@tamagui/compose-refs": "1.88.12",
|
|
36
|
+
"@tamagui/constants": "1.88.12",
|
|
37
|
+
"@tamagui/core": "1.88.12",
|
|
38
|
+
"@tamagui/focusable": "1.88.12",
|
|
39
|
+
"@tamagui/get-token": "1.88.12",
|
|
40
|
+
"@tamagui/helpers": "1.88.12",
|
|
41
|
+
"@tamagui/label": "1.88.12",
|
|
42
|
+
"@tamagui/stacks": "1.88.12",
|
|
43
|
+
"@tamagui/use-controllable-state": "1.88.12",
|
|
44
|
+
"@tamagui/use-previous": "1.88.12"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": "*",
|
|
48
48
|
"react-native": "*"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@tamagui/build": "1.88.
|
|
51
|
+
"@tamagui/build": "1.88.12",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-native": "^0.72.6"
|
|
54
54
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StyledContext.d.ts","sourceRoot":"","sources":["../src/StyledContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuB,MAAM,eAAe,CAAA;AAE/D,eAAO,MAAM,mBAAmB;gBAClB,MAAM;;;EAOlB,CAAA"}
|
package/types/Switch.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const SwitchThumb: import("@tamagui/core").TamaguiComponent<impor
|
|
|
16
16
|
radiused?: boolean | undefined;
|
|
17
17
|
padded?: boolean | undefined;
|
|
18
18
|
chromeless?: boolean | "all" | undefined;
|
|
19
|
-
},
|
|
19
|
+
}, import("@tamagui/core").StaticConfigPublic>;
|
|
20
20
|
export declare const SwitchFrame: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
21
21
|
size?: SizeTokens | undefined;
|
|
22
22
|
checked?: boolean | undefined;
|
|
@@ -24,5 +24,5 @@ export declare const SwitchFrame: import("@tamagui/core").TamaguiComponent<impor
|
|
|
24
24
|
unstyled?: boolean | undefined;
|
|
25
25
|
elevation?: number | SizeTokens | undefined;
|
|
26
26
|
fullscreen?: boolean | undefined;
|
|
27
|
-
},
|
|
27
|
+
}, import("@tamagui/core").StaticConfigPublic>;
|
|
28
28
|
//# sourceMappingURL=Switch.d.ts.map
|
package/types/Switch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../src/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,MAAM,eAAe,CAAA;AAMpE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../src/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,MAAM,eAAe,CAAA;AAMpE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;8CA+BtB,CAAA;AAOF,eAAO,MAAM,WAAW;;;;;;;8CA6CtB,CAAA"}
|
package/types/createSwitch.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare function createSwitch<F extends SwitchComponent, T extends Switch
|
|
|
47
47
|
unstyled?: boolean | undefined;
|
|
48
48
|
elevation?: number | SizeTokens | undefined;
|
|
49
49
|
fullscreen?: boolean | undefined;
|
|
50
|
-
},
|
|
50
|
+
}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig" | "extractable" | "styleable"> & {
|
|
51
51
|
__tama: [Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
52
52
|
size?: SizeTokens | undefined;
|
|
53
53
|
checked?: boolean | undefined;
|
|
@@ -62,7 +62,7 @@ export declare function createSwitch<F extends SwitchComponent, T extends Switch
|
|
|
62
62
|
unstyled?: boolean | undefined;
|
|
63
63
|
elevation?: number | SizeTokens | undefined;
|
|
64
64
|
fullscreen?: boolean | undefined;
|
|
65
|
-
},
|
|
65
|
+
}, import("@tamagui/core").StaticConfigPublic];
|
|
66
66
|
} & {
|
|
67
67
|
Thumb: import("@tamagui/core").TamaguiComponent<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
68
68
|
size?: SizeTokens | undefined;
|
|
@@ -98,7 +98,7 @@ export declare function createSwitch<F extends SwitchComponent, T extends Switch
|
|
|
98
98
|
radiused?: boolean | undefined;
|
|
99
99
|
padded?: boolean | undefined;
|
|
100
100
|
chromeless?: boolean | "all" | undefined;
|
|
101
|
-
},
|
|
101
|
+
}, import("@tamagui/core").StaticConfigPublic>;
|
|
102
102
|
};
|
|
103
103
|
export {};
|
|
104
104
|
//# sourceMappingURL=createSwitch.d.ts.map
|
package/types/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const Switch: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
23
23
|
unstyled?: boolean | undefined;
|
|
24
24
|
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
25
25
|
fullscreen?: boolean | undefined;
|
|
26
|
-
},
|
|
26
|
+
}, import("@tamagui/web").StaticConfigPublic> & Omit<import("@tamagui/web").StaticConfigPublic, "staticConfig" | "extractable" | "styleable"> & {
|
|
27
27
|
__tama: [Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
28
28
|
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
29
29
|
checked?: boolean | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const Switch: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
38
38
|
unstyled?: boolean | undefined;
|
|
39
39
|
elevation?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
40
40
|
fullscreen?: boolean | undefined;
|
|
41
|
-
},
|
|
41
|
+
}, import("@tamagui/web").StaticConfigPublic];
|
|
42
42
|
} & {
|
|
43
43
|
Thumb: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
44
44
|
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
@@ -74,6 +74,6 @@ export declare const Switch: import("react").ForwardRefExoticComponent<Omit<impo
|
|
|
74
74
|
radiused?: boolean | undefined;
|
|
75
75
|
padded?: boolean | undefined;
|
|
76
76
|
chromeless?: boolean | "all" | undefined;
|
|
77
|
-
},
|
|
77
|
+
}, import("@tamagui/web").StaticConfigPublic>;
|
|
78
78
|
};
|
|
79
79
|
//# sourceMappingURL=index.d.ts.map
|