@tamagui/get-button-sized 1.135.4 → 1.135.6

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,42 +1,50 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  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);
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var index_exports = {};
17
24
  __export(index_exports, {
18
25
  getButtonSized: () => getButtonSized
19
26
  });
20
27
  module.exports = __toCommonJS(index_exports);
21
- var import_get_token = require("@tamagui/get-token"), getButtonSized = function(val, param) {
22
- var { tokens, props } = param;
23
- if (!(!val || props.circular)) {
24
- if (typeof val == "number")
25
- return {
28
+ var import_get_token = require("@tamagui/get-token"),
29
+ getButtonSized = function (val, param) {
30
+ var {
31
+ tokens,
32
+ props
33
+ } = param;
34
+ if (!(!val || props.circular)) {
35
+ if (typeof val == "number") return {
26
36
  paddingHorizontal: val * 0.25,
27
37
  height: val,
28
38
  borderRadius: props.circular ? 1e5 : val * 0.2
29
39
  };
30
- var xSize = (0, import_get_token.getSpace)(val), _tokens_radius_val, radiusToken = (_tokens_radius_val = tokens.radius[val]) !== null && _tokens_radius_val !== void 0 ? _tokens_radius_val : tokens.radius.$true;
31
- return {
32
- paddingHorizontal: xSize,
33
- height: val,
34
- borderRadius: props.circular ? 1e5 : radiusToken
35
- };
36
- }
37
- };
38
- // Annotate the CommonJS export names for ESM import in node:
39
- 0 && (module.exports = {
40
- getButtonSized
41
- });
42
- //# sourceMappingURL=index.js.map
40
+ var xSize = (0, import_get_token.getSpace)(val),
41
+ _tokens_radius_val,
42
+ radiusToken = (_tokens_radius_val = tokens.radius[val]) !== null && _tokens_radius_val !== void 0 ? _tokens_radius_val : tokens.radius.$true;
43
+ return {
44
+ paddingHorizontal: xSize,
45
+ height: val,
46
+ borderRadius: props.circular ? 1e5 : radiusToken
47
+ };
48
+ }
49
+ };
50
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAyB,+BACd,iBAAiB,SAAS,KAAK,OAAO;AAC7C,MAAI,EAAE,QAAQ,MAAM,IAAI;AACxB,MAAI,GAAC,OAAO,MAAM,WAGlB;AAAA,QAAI,OAAO,OAAQ;AACf,aAAO;AAAA,QACH,mBAAmB,MAAM;AAAA,QACzB,QAAQ;AAAA,QACR,cAAc,MAAM,WAAW,MAAS,MAAM;AAAA,MAClD;AAEJ,QAAI,YAAQ,2BAAS,GAAG,GACpB,oBACA,eAAe,qBAAqB,OAAO,OAAO,GAAG,OAAO,QAAQ,uBAAuB,SAAS,qBAAqB,OAAO,OAAO;AAC3I,WAAO;AAAA,MACH,mBAAmB;AAAA,MACnB,QAAQ;AAAA,MACR,cAAc,MAAM,WAAW,MAAS;AAAA,IAC5C;AAAA;AACJ;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","getButtonSized","module","exports","import_get_token","require","val","param","tokens","props","circular","paddingHorizontal","height","borderRadius","xSize","getSpace","_tokens_radius_val","radiusToken","radius","$true"],"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,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAyB,CAAAK,aAAA;AAGlB,IAAAK,gBAAM,GAAiBC,OAE5B,CAAE,oBACC;EAAAJ,cAAA,YAAAA,CAAAK,GAAA,EAAAC,KAAA;IACH,IAAI;MAACC,MAAO;MAAAC;IAAM,IAAAF,KAAA;IAChB,OAAAD,GAAA,IAAAG,KAAA,CAAAC,QAAA;MAEF,IAAI,OAAOJ,GAAA,IAAQ,UACjB,OAAO;QACLK,iBAAmB,EAAAL,GAAA,GAAM;QACzBM,MAAQ,EAAAN,GAAA;QACRO,YAAc,EAAAJ,KAAM,CAAAC,QAAA,GAAW,MAAUJ,GAAA,GAAM;MACjD;MAEF,IAAMQ,KAAA,OAAQV,gBAAA,CAAAW,QAAA,EAAST,GAAG;QACpBU,kBAAc;QAAAC,WAAiB,IAAAD,kBAAmB,GAAAR,MAAA,CAAAU,MAAA,CAAAZ,GAAA,eAAAU,kBAAA,cAAAA,kBAAA,GAAAR,MAAA,CAAAU,MAAA,CAAAC,KAAA;MACxD,OAAO;QACLR,iBAAmB,EAAAG,KAAA;QACnBF,MAAQ,EAAAN,GAAA;QACRO,YAAc,EAAAJ,KAAM,CAAAC,QAAA,GAAW,MAAUO;MAC3C;IACF","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/get-button-sized",
3
- "version": "1.135.4",
3
+ "version": "1.135.6",
4
+ "type": "module",
4
5
  "types": "./types/index.d.ts",
5
6
  "main": "dist/cjs",
6
7
  "module": "dist/esm",
@@ -31,11 +32,11 @@
31
32
  }
32
33
  },
33
34
  "dependencies": {
34
- "@tamagui/get-token": "1.135.4",
35
- "@tamagui/web": "1.135.4"
35
+ "@tamagui/get-token": "1.135.6",
36
+ "@tamagui/web": "1.135.6"
36
37
  },
37
38
  "devDependencies": {
38
- "@tamagui/build": "1.135.4",
39
+ "@tamagui/build": "1.135.6",
39
40
  "react": "*"
40
41
  },
41
42
  "publishConfig": {