@tamagui/switch 1.88.1 → 1.88.2

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.
@@ -1,15 +1,38 @@
1
- import { createSwitch } from "./createSwitch";
2
- import { SwitchFrame, SwitchThumb } from "./Switch";
3
- export * from "./Switch";
4
- export * from "./SwitchContext";
5
- export * from "./createSwitch";
6
- const Switch = createSwitch({
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
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var src_exports = {};
17
+ __export(src_exports, {
18
+ Switch: () => Switch
19
+ });
20
+ module.exports = __toCommonJS(src_exports);
21
+ var import_createSwitch = require("./createSwitch"), import_Switch = require("./Switch");
22
+ __reExport(src_exports, require("./Switch"), module.exports);
23
+ __reExport(src_exports, require("./SwitchContext"), module.exports);
24
+ __reExport(src_exports, require("./createSwitch"), module.exports);
25
+ const Switch = (0, import_createSwitch.createSwitch)({
7
26
  // @ts-ignore
8
- Frame: SwitchFrame,
27
+ Frame: import_Switch.SwitchFrame,
9
28
  // @ts-ignore
10
- Thumb: SwitchThumb
29
+ Thumb: import_Switch.SwitchThumb
30
+ });
31
+ // Annotate the CommonJS export names for ESM import in node:
32
+ 0 && (module.exports = {
33
+ Switch,
34
+ ...require("./Switch"),
35
+ ...require("./SwitchContext"),
36
+ ...require("./createSwitch")
11
37
  });
12
- export {
13
- Switch
14
- };
15
38
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,SAAS,oBAAoB;AAC7B,SAAS,aAAa,mBAAmB;AAEzC,cAAc;AACd,cAAc;AACd,cAAc;AAEP,MAAM,SAAS,aAAa;AAAA;AAAA,EAEjC,OAAO;AAAA;AAAA,EAEP,OAAO;AACT,CAAC;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA6B,2BAC7B,gBAAyC;AAEzC,wBAAc,qBAHd;AAIA,wBAAc,4BAJd;AAKA,wBAAc,2BALd;AAOO,MAAM,aAAS,kCAAa;AAAA;AAAA,EAEjC,OAAO;AAAA;AAAA,EAEP,OAAO;AACT,CAAC;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/switch",
3
- "version": "1.88.1",
3
+ "version": "1.88.2",
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.1",
36
- "@tamagui/constants": "1.88.1",
37
- "@tamagui/core": "1.88.1",
38
- "@tamagui/focusable": "1.88.1",
39
- "@tamagui/get-token": "1.88.1",
40
- "@tamagui/helpers": "1.88.1",
41
- "@tamagui/label": "1.88.1",
42
- "@tamagui/stacks": "1.88.1",
43
- "@tamagui/use-controllable-state": "1.88.1",
44
- "@tamagui/use-previous": "1.88.1"
35
+ "@tamagui/compose-refs": "1.88.2",
36
+ "@tamagui/constants": "1.88.2",
37
+ "@tamagui/core": "1.88.2",
38
+ "@tamagui/focusable": "1.88.2",
39
+ "@tamagui/get-token": "1.88.2",
40
+ "@tamagui/helpers": "1.88.2",
41
+ "@tamagui/label": "1.88.2",
42
+ "@tamagui/stacks": "1.88.2",
43
+ "@tamagui/use-controllable-state": "1.88.2",
44
+ "@tamagui/use-previous": "1.88.2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "*",
48
48
  "react-native": "*"
49
49
  },
50
50
  "devDependencies": {
51
- "@tamagui/build": "1.88.1",
51
+ "@tamagui/build": "1.88.2",
52
52
  "react": "^18.2.0",
53
53
  "react-native": "^0.72.6"
54
54
  },