@tamagui/helpers 1.101.0 → 1.101.1

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/types.js CHANGED
@@ -2,7 +2,10 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
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) => {
6
9
  if (from && typeof from == "object" || typeof from == "function")
7
10
  for (let key of __getOwnPropNames(from))
8
11
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
@@ -10,5 +13,13 @@ var __copyProps = (to, from, except, desc) => {
10
13
  };
11
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
15
  var types_exports = {};
16
+ __export(types_exports, {
17
+ StyleObjectIdentifier: () => StyleObjectIdentifier,
18
+ StyleObjectProperty: () => StyleObjectProperty,
19
+ StyleObjectPseudo: () => StyleObjectPseudo,
20
+ StyleObjectRules: () => StyleObjectRules,
21
+ StyleObjectValue: () => StyleObjectValue
22
+ });
13
23
  module.exports = __toCommonJS(types_exports);
24
+ const StyleObjectProperty = 0, StyleObjectValue = 1, StyleObjectIdentifier = 2, StyleObjectPseudo = 3, StyleObjectRules = 4;
14
25
  //# sourceMappingURL=types.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/types.ts"],
4
- "mappings": ";;;;;;;;;;;AAAA;AAAA;",
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,MAAM,sBAAsB,GACtB,mBAAmB,GACnB,wBAAwB,GACxB,oBAAoB,GACpB,mBAAmB;",
5
5
  "names": []
6
6
  }
@@ -3,7 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
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) => {
7
10
  if (from && typeof from == "object" || typeof from == "function")
8
11
  for (let key of __getOwnPropNames(from))
9
12
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
@@ -11,5 +14,21 @@ var __copyProps = (to, from, except, desc) => {
11
14
  };
12
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
16
  var types_exports = {};
17
+ __export(types_exports, {
18
+ StyleObjectIdentifier: () => StyleObjectIdentifier,
19
+ StyleObjectProperty: () => StyleObjectProperty,
20
+ StyleObjectPseudo: () => StyleObjectPseudo,
21
+ StyleObjectRules: () => StyleObjectRules,
22
+ StyleObjectValue: () => StyleObjectValue
23
+ });
14
24
  module.exports = __toCommonJS(types_exports);
25
+ var StyleObjectProperty = 0, StyleObjectValue = 1, StyleObjectIdentifier = 2, StyleObjectPseudo = 3, StyleObjectRules = 4;
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ StyleObjectIdentifier,
29
+ StyleObjectProperty,
30
+ StyleObjectPseudo,
31
+ StyleObjectRules,
32
+ StyleObjectValue
33
+ });
15
34
  //# sourceMappingURL=types.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/tamagui/packages/helpers/src/types.ts"],
4
- "mappings": ";;;;;;;;;;;;AAME;;",
5
- "names": []
4
+ "mappings": ";;;;;;;;;;;;;;;AAQA;;;;;;;;;AAAO,IAAMA,sBAAsB,GACtBC,mBAAmB,GACnBC,wBAAwB,GACxBC,oBAAoB,GACpBC,mBAAmB;",
5
+ "names": ["StyleObjectProperty", "StyleObjectValue", "StyleObjectIdentifier", "StyleObjectPseudo", "StyleObjectRules"]
6
6
  }
package/dist/esm/types.js CHANGED
@@ -1 +1,9 @@
1
+ const StyleObjectProperty = 0, StyleObjectValue = 1, StyleObjectIdentifier = 2, StyleObjectPseudo = 3, StyleObjectRules = 4;
2
+ export {
3
+ StyleObjectIdentifier,
4
+ StyleObjectProperty,
5
+ StyleObjectPseudo,
6
+ StyleObjectRules,
7
+ StyleObjectValue
8
+ };
1
9
  //# sourceMappingURL=types.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "mappings": "",
3
+ "sources": ["../../src/types.ts"],
4
+ "mappings": "AAQO,MAAM,sBAAsB,GACtB,mBAAmB,GACnB,wBAAwB,GACxB,oBAAoB,GACpB,mBAAmB;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,6 @@
1
+ const StyleObjectProperty = 0,
2
+ StyleObjectValue = 1,
3
+ StyleObjectIdentifier = 2,
4
+ StyleObjectPseudo = 3,
5
+ StyleObjectRules = 4;
6
+ export { StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue };
@@ -1 +1,9 @@
1
+ var StyleObjectProperty = 0, StyleObjectValue = 1, StyleObjectIdentifier = 2, StyleObjectPseudo = 3, StyleObjectRules = 4;
2
+ export {
3
+ StyleObjectIdentifier,
4
+ StyleObjectProperty,
5
+ StyleObjectPseudo,
6
+ StyleObjectRules,
7
+ StyleObjectValue
8
+ };
1
9
  //# sourceMappingURL=types.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "mappings": "",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/helpers/src/types.ts"],
4
+ "mappings": "AAQO,IAAMA,sBAAsB,GACtBC,mBAAmB,GACnBC,wBAAwB,GACxBC,oBAAoB,GACpBC,mBAAmB;",
5
+ "names": ["StyleObjectProperty", "StyleObjectValue", "StyleObjectIdentifier", "StyleObjectPseudo", "StyleObjectRules"]
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/helpers",
3
- "version": "1.101.0",
3
+ "version": "1.101.1",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -19,11 +19,11 @@
19
19
  "clean:build": "tamagui-build clean:build"
20
20
  },
21
21
  "dependencies": {
22
- "@tamagui/constants": "1.101.0",
23
- "@tamagui/simple-hash": "1.101.0"
22
+ "@tamagui/constants": "1.101.1",
23
+ "@tamagui/simple-hash": "1.101.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@tamagui/build": "1.101.0"
26
+ "@tamagui/build": "1.101.1"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
package/src/types.ts CHANGED
@@ -1,11 +1,15 @@
1
- export type StyleObject = {
2
- property: string
3
- pseudo?: 'hover' | 'focus' | 'focus-visible' | 'active'
4
- identifier: string
5
- rules: string[]
1
+ export type StyleObject = [
2
+ property: string,
3
+ value: any,
4
+ identifier: string,
5
+ pseudo: 'hover' | 'focus' | 'focus-visible' | 'active' | undefined,
6
+ rules: string[],
7
+ ]
6
8
 
7
- // only in test mode
8
- value?: any
9
- }
9
+ export const StyleObjectProperty = 0
10
+ export const StyleObjectValue = 1
11
+ export const StyleObjectIdentifier = 2
12
+ export const StyleObjectPseudo = 3
13
+ export const StyleObjectRules = 4
10
14
 
11
15
  export type MediaStyleObject = Omit<StyleObject, 'value'>
package/types/types.d.ts CHANGED
@@ -1,9 +1,14 @@
1
- export type StyleObject = {
2
- property: string;
3
- pseudo?: 'hover' | 'focus' | 'focus-visible' | 'active';
4
- identifier: string;
5
- rules: string[];
6
- value?: any;
7
- };
1
+ export type StyleObject = [
2
+ property: string,
3
+ value: any,
4
+ identifier: string,
5
+ pseudo: 'hover' | 'focus' | 'focus-visible' | 'active' | undefined,
6
+ rules: string[]
7
+ ];
8
+ export declare const StyleObjectProperty = 0;
9
+ export declare const StyleObjectValue = 1;
10
+ export declare const StyleObjectIdentifier = 2;
11
+ export declare const StyleObjectPseudo = 3;
12
+ export declare const StyleObjectRules = 4;
8
13
  export type MediaStyleObject = Omit<StyleObject, 'value'>;
9
14
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,eAAe,GAAG,QAAQ,CAAA;IACvD,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,EAAE,CAAA;IAGf,KAAK,CAAC,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,GAAG;IACV,UAAU,EAAE,MAAM;IAClB,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,eAAe,GAAG,QAAQ,GAAG,SAAS;IAClE,KAAK,EAAE,MAAM,EAAE;CAChB,CAAA;AAED,eAAO,MAAM,mBAAmB,IAAI,CAAA;AACpC,eAAO,MAAM,gBAAgB,IAAI,CAAA;AACjC,eAAO,MAAM,qBAAqB,IAAI,CAAA;AACtC,eAAO,MAAM,iBAAiB,IAAI,CAAA;AAClC,eAAO,MAAM,gBAAgB,IAAI,CAAA;AAEjC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"withStaticProperties.d.ts","sourceRoot":"","sources":["../src/withStaticProperties.tsx"],"names":[],"mappings":"AAIA,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAE3B,eAAO,MAAM,oBAAoB,qCACpB,CAAC,eACC,CAAC,KACb,SAAS,CAAC,EAAE,CAAC,CAsBf,CAAA"}
1
+ {"version":3,"file":"withStaticProperties.d.ts","sourceRoot":"","sources":["../src/withStaticProperties.tsx"],"names":[],"mappings":"AAIA,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAE3B,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,QAAQ,EAAE,CAAC,aAC7C,CAAC,eACC,CAAC,KACb,QAAQ,CAAC,CAAC,EAAE,CAAC,CAsBf,CAAA"}