@hanzogui/stacks 8.3.0 → 8.3.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.
Files changed (125) hide show
  1. package/dist/cjs/NestingContext.js +7 -0
  2. package/dist/cjs/NestingContext.js.map +1 -0
  3. package/dist/cjs/SizableStack.js +29 -0
  4. package/dist/cjs/SizableStack.js.map +1 -0
  5. package/dist/cjs/Stacks.js +48 -0
  6. package/dist/cjs/Stacks.js.map +1 -0
  7. package/dist/cjs/ThemeableStack.js +39 -0
  8. package/dist/cjs/ThemeableStack.js.map +1 -0
  9. package/dist/cjs/getElevation.js +45 -0
  10. package/dist/cjs/getElevation.js.map +1 -0
  11. package/dist/cjs/index.js +9 -0
  12. package/dist/cjs/index.js.map +1 -0
  13. package/dist/cjs/package.json +1 -0
  14. package/dist/cjs/variants.js +39 -0
  15. package/dist/cjs/variants.js.map +1 -0
  16. package/dist/esm/NestingContext.js +3 -0
  17. package/dist/esm/NestingContext.js.map +1 -0
  18. package/dist/esm/SizableStack.js +26 -0
  19. package/dist/esm/SizableStack.js.map +1 -0
  20. package/dist/esm/Stacks.js +45 -0
  21. package/dist/esm/Stacks.js.map +1 -0
  22. package/dist/esm/ThemeableStack.js +36 -0
  23. package/dist/esm/ThemeableStack.js.map +1 -0
  24. package/dist/esm/getElevation.js +40 -0
  25. package/dist/esm/getElevation.js.map +1 -0
  26. package/dist/esm/index.js +6 -6
  27. package/dist/esm/index.js.map +1 -1
  28. package/dist/esm/variants.js +35 -0
  29. package/dist/esm/variants.js.map +1 -0
  30. package/package.json +16 -16
  31. package/src/SizableStack.tsx +2 -2
  32. package/src/Stacks.tsx +1 -1
  33. package/src/ThemeableStack.tsx +2 -2
  34. package/src/index.ts +5 -5
  35. package/src/variants.tsx +1 -1
  36. package/types/SizableStack.d.ts +7 -7
  37. package/types/Stacks.d.ts +1 -1
  38. package/types/Stacks.d.ts.map +1 -1
  39. package/types/ThemeableStack.d.ts +13 -17
  40. package/types/ThemeableStack.d.ts.map +1 -1
  41. package/types/getElevation.d.ts +2 -2
  42. package/types/getElevation.d.ts.map +1 -1
  43. package/types/index.d.ts +5 -5
  44. package/types/index.d.ts.map +1 -1
  45. package/types/variants.d.ts +2 -2
  46. package/types/variants.d.ts.map +1 -1
  47. package/dist/cjs/NestingContext.cjs +0 -40
  48. package/dist/cjs/NestingContext.native.js +0 -43
  49. package/dist/cjs/NestingContext.native.js.map +0 -1
  50. package/dist/cjs/SizableStack.cjs +0 -52
  51. package/dist/cjs/SizableStack.native.js +0 -55
  52. package/dist/cjs/SizableStack.native.js.map +0 -1
  53. package/dist/cjs/Stacks.cjs +0 -62
  54. package/dist/cjs/Stacks.native.js +0 -65
  55. package/dist/cjs/Stacks.native.js.map +0 -1
  56. package/dist/cjs/ThemeableStack.cjs +0 -63
  57. package/dist/cjs/ThemeableStack.native.js +0 -66
  58. package/dist/cjs/ThemeableStack.native.js.map +0 -1
  59. package/dist/cjs/getElevation.cjs +0 -70
  60. package/dist/cjs/getElevation.native.js +0 -74
  61. package/dist/cjs/getElevation.native.js.map +0 -1
  62. package/dist/cjs/index.cjs +0 -24
  63. package/dist/cjs/index.native.js +0 -27
  64. package/dist/cjs/index.native.js.map +0 -1
  65. package/dist/cjs/variants.cjs +0 -68
  66. package/dist/cjs/variants.native.js +0 -73
  67. package/dist/cjs/variants.native.js.map +0 -1
  68. package/dist/esm/NestingContext.mjs +0 -4
  69. package/dist/esm/NestingContext.mjs.map +0 -1
  70. package/dist/esm/NestingContext.native.js +0 -4
  71. package/dist/esm/NestingContext.native.js.map +0 -1
  72. package/dist/esm/SizableStack.mjs +0 -27
  73. package/dist/esm/SizableStack.mjs.map +0 -1
  74. package/dist/esm/SizableStack.native.js +0 -27
  75. package/dist/esm/SizableStack.native.js.map +0 -1
  76. package/dist/esm/Stacks.mjs +0 -34
  77. package/dist/esm/Stacks.mjs.map +0 -1
  78. package/dist/esm/Stacks.native.js +0 -34
  79. package/dist/esm/Stacks.native.js.map +0 -1
  80. package/dist/esm/ThemeableStack.mjs +0 -37
  81. package/dist/esm/ThemeableStack.mjs.map +0 -1
  82. package/dist/esm/ThemeableStack.native.js +0 -37
  83. package/dist/esm/ThemeableStack.native.js.map +0 -1
  84. package/dist/esm/getElevation.mjs +0 -44
  85. package/dist/esm/getElevation.mjs.map +0 -1
  86. package/dist/esm/getElevation.native.js +0 -45
  87. package/dist/esm/getElevation.native.js.map +0 -1
  88. package/dist/esm/index.mjs +0 -6
  89. package/dist/esm/index.mjs.map +0 -1
  90. package/dist/esm/index.native.js +0 -6
  91. package/dist/esm/index.native.js.map +0 -1
  92. package/dist/esm/variants.mjs +0 -41
  93. package/dist/esm/variants.mjs.map +0 -1
  94. package/dist/esm/variants.native.js +0 -43
  95. package/dist/esm/variants.native.js.map +0 -1
  96. package/dist/jsx/NestingContext.mjs +0 -4
  97. package/dist/jsx/NestingContext.mjs.map +0 -1
  98. package/dist/jsx/NestingContext.native.js +0 -43
  99. package/dist/jsx/NestingContext.native.js.map +0 -1
  100. package/dist/jsx/SizableStack.mjs +0 -27
  101. package/dist/jsx/SizableStack.mjs.map +0 -1
  102. package/dist/jsx/SizableStack.native.js +0 -55
  103. package/dist/jsx/SizableStack.native.js.map +0 -1
  104. package/dist/jsx/Stacks.mjs +0 -34
  105. package/dist/jsx/Stacks.mjs.map +0 -1
  106. package/dist/jsx/Stacks.native.js +0 -65
  107. package/dist/jsx/Stacks.native.js.map +0 -1
  108. package/dist/jsx/ThemeableStack.mjs +0 -37
  109. package/dist/jsx/ThemeableStack.mjs.map +0 -1
  110. package/dist/jsx/ThemeableStack.native.js +0 -66
  111. package/dist/jsx/ThemeableStack.native.js.map +0 -1
  112. package/dist/jsx/getElevation.mjs +0 -44
  113. package/dist/jsx/getElevation.mjs.map +0 -1
  114. package/dist/jsx/getElevation.native.js +0 -74
  115. package/dist/jsx/getElevation.native.js.map +0 -1
  116. package/dist/jsx/index.js +0 -6
  117. package/dist/jsx/index.js.map +0 -1
  118. package/dist/jsx/index.mjs +0 -6
  119. package/dist/jsx/index.mjs.map +0 -1
  120. package/dist/jsx/index.native.js +0 -27
  121. package/dist/jsx/index.native.js.map +0 -1
  122. package/dist/jsx/variants.mjs +0 -41
  123. package/dist/jsx/variants.mjs.map +0 -1
  124. package/dist/jsx/variants.native.js +0 -73
  125. package/dist/jsx/variants.native.js.map +0 -1
package/types/Stacks.d.ts CHANGED
@@ -10,7 +10,7 @@ export type YStackProps = Omit<GetProps<typeof YStack>, keyof StackVariants> & S
10
10
  export type XStackProps = YStackProps;
11
11
  export type ZStackProps = YStackProps;
12
12
  export declare const fullscreenStyle: {
13
- readonly position: "absolute";
13
+ readonly position: 'absolute';
14
14
  readonly inset: 0;
15
15
  };
16
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Stacks.d.ts","sourceRoot":"","sources":["../src/Stacks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAK1D,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB,SAAS,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAChC;AAED,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC,GAC1E,aAAa,CAAA;AAEf,MAAM,MAAM,WAAW,GAAG,WAAW,CAAA;AACrC,MAAM,MAAM,WAAW,GAAG,WAAW,CAAA;AAErC,eAAO,MAAM,eAAe;;;CAGlB,CAAA;AAaV;;;GAGG;AACH,eAAO,MAAM,MAAM;;;8CAGjB,CAAA;AAIF;;;GAGG;AACH,eAAO,MAAM,MAAM;;;8CAGjB,CAAA;AAIF;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;EASlB,CAAA"}
1
+ {"version":3,"file":"Stacks.d.ts","sourceRoot":"","sources":["../src/Stacks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAK1D,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB,SAAS,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAChC;AAED,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC,GAC1E,aAAa,CAAA;AAEf,MAAM,MAAM,WAAW,GAAG,WAAW,CAAA;AACrC,MAAM,MAAM,WAAW,GAAG,WAAW,CAAA;AAErC,eAAO,MAAM,eAAe;aAC1B,QAAQ,EAAE,UAAU;aACpB,KAAK,EAAE,CAAC;CACA,CAAA;AAaV;;;GAGG;AACH,eAAO,MAAM,MAAM;;;8CAGjB,CAAA;AAIF;;;GAGG;AACH,eAAO,MAAM,MAAM;;;8CAGjB,CAAA;AAIF;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;EASlB,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { GetProps } from '@hanzogui/core';
2
+ import { bordered } from './variants.tsx';
2
3
  export declare const themeableVariants: {
3
4
  readonly circular: {
4
5
  true: (_: any, { props, tokens }: {
@@ -8,30 +9,25 @@ export declare const themeableVariants: {
8
9
  borderRadius: number;
9
10
  padding: number;
10
11
  } | {
12
+ borderRadius: number;
13
+ padding: number;
11
14
  width: any;
12
15
  height: any;
13
16
  maxWidth: any;
14
17
  maxHeight: any;
15
18
  minWidth: any;
16
19
  minHeight: any;
17
- borderRadius: number;
18
- padding: number;
19
20
  };
20
21
  };
21
22
  readonly elevate: {
22
23
  true: (_: boolean, extras: any) => any;
23
24
  };
24
25
  readonly bordered: {
25
- readonly true: (val: boolean | number, { props }: {
26
- props: any;
27
- }) => {
28
- borderWidth: number;
29
- borderColor: string;
30
- };
26
+ readonly true: typeof bordered;
31
27
  };
32
28
  readonly transparent: {
33
29
  readonly true: {
34
- readonly backgroundColor: "transparent";
30
+ readonly backgroundColor: 'transparent';
35
31
  };
36
32
  };
37
33
  readonly chromeless: {
@@ -44,6 +40,9 @@ export declare const themeableVariants: {
44
40
  };
45
41
  };
46
42
  readonly all: {
43
+ readonly backgroundColor: string;
44
+ readonly borderColor: string;
45
+ readonly shadowColor: string;
47
46
  readonly hoverStyle: {
48
47
  backgroundColor: string;
49
48
  borderColor: string;
@@ -68,20 +67,17 @@ export declare const themeableVariants: {
68
67
  borderColor: string;
69
68
  };
70
69
  };
71
- readonly backgroundColor: string;
72
- readonly borderColor: string;
73
- readonly shadowColor: string;
74
70
  };
75
71
  };
76
72
  };
77
73
  export declare const ThemeableStack: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
78
- elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
79
- transparent?: boolean | undefined;
80
- fullscreen?: boolean | undefined;
74
+ bordered?: boolean | undefined;
75
+ chromeless?: "all" | boolean | undefined;
81
76
  circular?: boolean | undefined;
82
77
  elevate?: boolean | undefined;
83
- bordered?: boolean | undefined;
84
- chromeless?: boolean | "all" | undefined;
78
+ elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
79
+ fullscreen?: boolean | undefined;
80
+ transparent?: boolean | undefined;
85
81
  }, import("@hanzogui/web").StaticConfigPublic>;
86
82
  export type ThemeableStackProps = GetProps<typeof ThemeableStack>;
87
83
  //# sourceMappingURL=ThemeableStack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeableStack.d.ts","sourceRoot":"","sources":["../src/ThemeableStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAiB9C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBpB,CAAA;AAEV,eAAO,MAAM,cAAc;;;;;;;;8CAEzB,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"ThemeableStack.d.ts","sourceRoot":"","sources":["../src/ThemeableStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAK9C,OAAO,EAAE,QAAQ,EAAqB,MAAM,gBAAgB,CAAA;AAY5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;iBAK1B,IAAI;;;iBAIJ,IAAI;qBACF,eAAe,EAAE,aAAa;;;;;;;;;gBAdhC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BL,CAAA;AAEV,eAAO,MAAM,cAAc;;;;;;;;8CAEzB,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -1,12 +1,12 @@
1
1
  import type { SizeTokens, SizeVariantSpreadFunction, ViewProps, VariantSpreadExtras } from '@hanzogui/core';
2
2
  export declare const getElevation: SizeVariantSpreadFunction<ViewProps>;
3
3
  export declare const getSizedElevation: (val: SizeTokens | number | boolean, { theme, tokens }: VariantSpreadExtras<any>) => {
4
- elevationAndroid?: number | undefined;
5
- shadowColor: import("@hanzogui/web").Variable<string> | import("@hanzogui/web").Variable<any> | import("@hanzogui/web").Variable<undefined> | undefined;
4
+ shadowColor: import("@hanzogui/web").Variable<any> | import("@hanzogui/web").Variable<undefined> | import("@hanzogui/web").Variable<string> | undefined;
6
5
  shadowRadius: number;
7
6
  shadowOffset: {
8
7
  height: number;
9
8
  width: number;
10
9
  };
10
+ elevationAndroid?: number | undefined;
11
11
  } | undefined;
12
12
  //# sourceMappingURL=getElevation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getElevation.d.ts","sourceRoot":"","sources":["../src/getElevation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,yBAAyB,EACzB,SAAS,EACT,mBAAmB,EACpB,MAAM,gBAAgB,CAAA;AAGvB,eAAO,MAAM,YAAY,EAAE,yBAAyB,CAAC,SAAS,CAM7D,CAAA;AAED,eAAO,MAAM,iBAAiB,GAC5B,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,EAClC,mBAAmB,mBAAmB,CAAC,GAAG,CAAC;;;;;;;;aA4B5C,CAAA"}
1
+ {"version":3,"file":"getElevation.d.ts","sourceRoot":"","sources":["../src/getElevation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,yBAAyB,EACzB,SAAS,EACT,mBAAmB,EACpB,MAAM,gBAAgB,CAAA;AAGvB,eAAO,MAAM,YAAY,EAAE,yBAAyB,CAAC,SAAS,CAM7D,CAAA;AAED,eAAO,MAAM,iBAAiB,QACvB,UAAU,GAAG,MAAM,GAAG,OAAO,qBACf,mBAAmB,CAAC,GAAG,CAAC;;;;;;;;aA4B5C,CAAA"}
package/types/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from './Stacks';
2
- export * from './ThemeableStack';
3
- export * from './SizableStack';
4
- export * from './NestingContext';
5
- export * from './getElevation';
1
+ export * from './Stacks.tsx';
2
+ export * from './ThemeableStack.tsx';
3
+ export * from './SizableStack.tsx';
4
+ export * from './NestingContext.tsx';
5
+ export * from './getElevation.tsx';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA"}
@@ -15,14 +15,14 @@ export declare const circular: {
15
15
  borderRadius: number;
16
16
  padding: number;
17
17
  } | {
18
+ borderRadius: number;
19
+ padding: number;
18
20
  width: any;
19
21
  height: any;
20
22
  maxWidth: any;
21
23
  maxHeight: any;
22
24
  minWidth: any;
23
25
  minHeight: any;
24
- borderRadius: number;
25
- padding: number;
26
26
  };
27
27
  };
28
28
  //# sourceMappingURL=variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../src/variants.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;cACR,OAAO,UAAU,GAAG,KACyB,GAAG;CAE3D,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,KAAK,OAAO,GAAG,MAAM,EAAE;;CAAS;;;CAMxD,CAAA;AAOD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAgBpB,CAAA"}
1
+ {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../src/variants.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;IAClB,IAAI,MAAM,OAAO,UAAU,GAAG,KACyB,GAAG;CAE3D,CAAA;AAED,eAAO,MAAM,QAAQ,QAAS,OAAO,GAAG,MAAM;;;IAG1C,WAAW;IACX,WAAW;CAEd,CAAA;AAOD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAgBpB,CAAA"}
@@ -1,40 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: true
30
- }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
34
- var NestingContext_exports = {};
35
- __export(NestingContext_exports, {
36
- ButtonNestingContext: () => ButtonNestingContext
37
- });
38
- module.exports = __toCommonJS(NestingContext_exports);
39
- var import_react = __toESM(require("react"), 1);
40
- const ButtonNestingContext = import_react.default.createContext(false);
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
32
- }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
36
- var NestingContext_exports = {};
37
- __export(NestingContext_exports, {
38
- ButtonNestingContext: () => ButtonNestingContext
39
- });
40
- module.exports = __toCommonJS(NestingContext_exports);
41
- var import_react = __toESM(require("react"), 1);
42
- var ButtonNestingContext = /* @__PURE__ */import_react.default.createContext(false);
43
- //# sourceMappingURL=NestingContext.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","NestingContext_exports","__export","ButtonNestingContext","module","exports","import_react","__toESM","require"],"sources":["../../src/NestingContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkB,CAAAK,sBAAA;AAEX,IAAAK,YAAM,GAAAC,OAAA,CAAAC,OAAuB","ignoreList":[]}
@@ -1,52 +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) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var SizableStack_exports = {};
24
- __export(SizableStack_exports, {
25
- SizableStack: () => SizableStack
26
- });
27
- module.exports = __toCommonJS(SizableStack_exports);
28
- var import_core = require("@hanzogui/core");
29
- var import_get_button_sized = require("@hanzogui/get-button-sized");
30
- var import_ThemeableStack = require("./ThemeableStack.cjs");
31
- var import_variants = require("./variants.cjs");
32
- const SizableStack = (0, import_core.styled)(import_ThemeableStack.ThemeableStack, {
33
- name: "SizableStack",
34
- variants: {
35
- unstyled: {
36
- true: {
37
- elevate: false,
38
- bordered: false
39
- }
40
- },
41
- circular: import_variants.circular,
42
- elevate: import_variants.elevate,
43
- bordered: {
44
- true: import_variants.bordered
45
- },
46
- size: {
47
- "...size": (val, extras) => {
48
- return (0, import_get_button_sized.getButtonSized)(val, extras);
49
- }
50
- }
51
- }
52
- });
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var SizableStack_exports = {};
26
- __export(SizableStack_exports, {
27
- SizableStack: () => SizableStack
28
- });
29
- module.exports = __toCommonJS(SizableStack_exports);
30
- var import_core = require("@hanzogui/core");
31
- var import_get_button_sized = require("@hanzogui/get-button-sized");
32
- var import_ThemeableStack = require("./ThemeableStack.native.js");
33
- var import_variants = require("./variants.native.js");
34
- var SizableStack = (0, import_core.styled)(import_ThemeableStack.ThemeableStack, {
35
- name: "SizableStack",
36
- variants: {
37
- unstyled: {
38
- true: {
39
- elevate: false,
40
- bordered: false
41
- }
42
- },
43
- circular: import_variants.circular,
44
- elevate: import_variants.elevate,
45
- bordered: {
46
- true: import_variants.bordered
47
- },
48
- size: {
49
- "...size": function (val, extras) {
50
- return (0, import_get_button_sized.getButtonSized)(val, extras);
51
- }
52
- }
53
- }
54
- });
55
- //# sourceMappingURL=SizableStack.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SizableStack_exports","__export","SizableStack","module","exports","import_core","require","import_get_button_sized","import_ThemeableStack","import_variants","styled","ThemeableStack","name","variants","unstyled","true","elevate","bordered","circular","size","...size","val","extras","getButtonSized"],"sources":["../../src/SizableStack.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAuB,CAAAK,oBAAA;AACvB,IAAAK,WAAA,GAAAC,OAAA,iBAA+B;AAE/B,IAAAC,uBAAA,GAA+BD,OAAA;AAC/B,IAAAE,qBAA4C,GAAAF,OAAA;AAErC,IAAAG,eAAM,GAAAH,OAAe;AAAuB,IACjDJ,YAAM,OAAAG,WAAA,CAAAK,MAAA,EAAAF,qBAAA,CAAAG,cAAA;EAENC,IAAA,gBAAU;EAAAC,QACR;IAAUC,QACF;MAAAC,IACJ;QACAC,OAAA,OAAU;QACZC,QAAA;MACF;IAEA;IACAC,QAAA,EAAAT,eAAA,CAAAS,QAAA;IAEAF,OAAA,EAAAP,eAAU,CAAAO,OAAA;IAAAC,QACF;MACRF,IAAA,EAAAN,eAAA,CAAAQ;IAEA;IAAME,IACJ;MACE,oBAAAC,CAAOC,GAAA,EAAAC,MAAA;QACT,WAAAf,uBAAA,CAAAgB,cAAA,EAAAF,GAAA,EAAAC,MAAA;MACF;IACF;EACD","ignoreList":[]}
@@ -1,62 +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) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var Stacks_exports = {};
24
- __export(Stacks_exports, {
25
- XStack: () => XStack,
26
- YStack: () => YStack,
27
- ZStack: () => ZStack,
28
- fullscreenStyle: () => fullscreenStyle
29
- });
30
- module.exports = __toCommonJS(Stacks_exports);
31
- var import_core = require("@hanzogui/core");
32
- var import_getElevation = require("./getElevation.cjs");
33
- const fullscreenStyle = {
34
- position: "absolute",
35
- inset: 0
36
- };
37
- const variants = {
38
- fullscreen: {
39
- true: fullscreenStyle
40
- },
41
- elevation: {
42
- "...size": import_getElevation.getElevation,
43
- ":number": import_getElevation.getElevation
44
- }
45
- };
46
- const YStack = (0, import_core.styled)(import_core.View, {
47
- flexDirection: "column",
48
- variants
49
- });
50
- YStack["displayName"] = "YStack";
51
- const XStack = (0, import_core.styled)(import_core.View, {
52
- flexDirection: "row",
53
- variants
54
- });
55
- XStack["displayName"] = "XStack";
56
- const ZStack = (0, import_core.styled)(YStack, {
57
- position: "relative"
58
- }, {
59
- neverFlatten: true,
60
- isZStack: true
61
- });
62
- ZStack["displayName"] = "ZStack";
@@ -1,65 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var Stacks_exports = {};
26
- __export(Stacks_exports, {
27
- XStack: () => XStack,
28
- YStack: () => YStack,
29
- ZStack: () => ZStack,
30
- fullscreenStyle: () => fullscreenStyle
31
- });
32
- module.exports = __toCommonJS(Stacks_exports);
33
- var import_core = require("@hanzogui/core");
34
- var import_getElevation = require("./getElevation.native.js");
35
- var fullscreenStyle = {
36
- position: "absolute",
37
- inset: 0
38
- };
39
- var variants = {
40
- fullscreen: {
41
- true: fullscreenStyle
42
- },
43
- elevation: {
44
- "...size": import_getElevation.getElevation,
45
- ":number": import_getElevation.getElevation
46
- }
47
- };
48
- var YStack = (0, import_core.styled)(import_core.View, {
49
- flexDirection: "column",
50
- variants
51
- });
52
- YStack["displayName"] = "YStack";
53
- var XStack = (0, import_core.styled)(import_core.View, {
54
- flexDirection: "row",
55
- variants
56
- });
57
- XStack["displayName"] = "XStack";
58
- var ZStack = (0, import_core.styled)(YStack, {
59
- position: "relative"
60
- }, {
61
- neverFlatten: true,
62
- isZStack: true
63
- });
64
- ZStack["displayName"] = "ZStack";
65
- //# sourceMappingURL=Stacks.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","Stacks_exports","__export","XStack","YStack","ZStack","fullscreenStyle","module","exports","import_core","require","import_getElevation","position","inset","variants","fullscreen","true","elevation","getElevation","styled","View","flexDirection","neverFlatten","isZStack"],"sources":["../../src/Stacks.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAZ,YAA6B,CAAAK,cAAA;AAE7B,IAAAQ,WAAA,GAAAC,OAAA,CAA6B;AAiBtB,IAAAC,mBAAM,GAAkBD,OAAA;AAAA,IAC7BJ,eAAU;EACVM,QAAO;EACTC,KAAA;AAEA;AAAiB,IACfC,QAAA,GAAY;EAAAC,UACJ;IACRC,IAAA,EAAAV;EAEA;EAAWW,SACT;IACA,WAAWN,mBAAA,CAAAO,YAAA;IACb,WAAAP,mBAAA,CAAAO;EACF;AAMO;AAA4B,IACjCd,MAAA,OAAeK,WAAA,CAAAU,MAAA,EAAAV,WAAA,CAAAW,IAAA;EACfC,aAAA;EACDP;AAED;AAMOV,MAAM,cAAS;AAAa,IACjCD,MAAA,OAAeM,WAAA,CAAAU,MAAA,EAAAV,WAAA,CAAAW,IAAA;EACfC,aAAA;EACDP;AAED;AAMOX,MAAM,cAAS;AAAA,IACpBE,MAAA,OAAAI,WAAA,CAAAU,MAAA,EAAAf,MAAA;EACAQ,QAAA;AAAA;EAEAU,YAAA;EACAC,QAAA;AAAA;AACgBlB,MACd,cAAU","ignoreList":[]}
@@ -1,63 +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) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var ThemeableStack_exports = {};
24
- __export(ThemeableStack_exports, {
25
- ThemeableStack: () => ThemeableStack,
26
- themeableVariants: () => themeableVariants
27
- });
28
- module.exports = __toCommonJS(ThemeableStack_exports);
29
- var import_core = require("@hanzogui/core");
30
- var import_Stacks = require("./Stacks.cjs");
31
- var import_variants = require("./variants.cjs");
32
- const chromelessStyle = {
33
- backgroundColor: "transparent",
34
- borderColor: "transparent",
35
- shadowColor: "transparent",
36
- hoverStyle: {
37
- borderColor: "transparent"
38
- }
39
- };
40
- const themeableVariants = {
41
- circular: import_variants.circular,
42
- elevate: import_variants.elevate,
43
- bordered: {
44
- true: import_variants.bordered
45
- },
46
- transparent: {
47
- true: {
48
- backgroundColor: "transparent"
49
- }
50
- },
51
- chromeless: {
52
- true: chromelessStyle,
53
- all: {
54
- ...chromelessStyle,
55
- hoverStyle: chromelessStyle,
56
- pressStyle: chromelessStyle,
57
- focusStyle: chromelessStyle
58
- }
59
- }
60
- };
61
- const ThemeableStack = (0, import_core.styled)(import_Stacks.YStack, {
62
- variants: themeableVariants
63
- });
@@ -1,66 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var ThemeableStack_exports = {};
26
- __export(ThemeableStack_exports, {
27
- ThemeableStack: () => ThemeableStack,
28
- themeableVariants: () => themeableVariants
29
- });
30
- module.exports = __toCommonJS(ThemeableStack_exports);
31
- var import_core = require("@hanzogui/core");
32
- var import_Stacks = require("./Stacks.native.js");
33
- var import_variants = require("./variants.native.js");
34
- var chromelessStyle = {
35
- backgroundColor: "transparent",
36
- borderColor: "transparent",
37
- shadowColor: "transparent",
38
- hoverStyle: {
39
- borderColor: "transparent"
40
- }
41
- };
42
- var themeableVariants = {
43
- circular: import_variants.circular,
44
- elevate: import_variants.elevate,
45
- bordered: {
46
- true: import_variants.bordered
47
- },
48
- transparent: {
49
- true: {
50
- backgroundColor: "transparent"
51
- }
52
- },
53
- chromeless: {
54
- true: chromelessStyle,
55
- all: {
56
- ...chromelessStyle,
57
- hoverStyle: chromelessStyle,
58
- pressStyle: chromelessStyle,
59
- focusStyle: chromelessStyle
60
- }
61
- }
62
- };
63
- var ThemeableStack = (0, import_core.styled)(import_Stacks.YStack, {
64
- variants: themeableVariants
65
- });
66
- //# sourceMappingURL=ThemeableStack.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","ThemeableStack_exports","__export","ThemeableStack","themeableVariants","module","exports","import_core","require","import_Stacks","import_variants","chromelessStyle","backgroundColor","borderColor","shadowColor","hoverStyle","circular","elevate","bordered","true","transparent","chromeless","all","pressStyle","focusStyle","styled","YStack","variants"],"sources":["../../src/ThemeableStack.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAV,YAAuB,CAAAK,sBAAA;AAEvB,IAAAM,WAAA,GAAAC,OAAuB;AAEvB,IAAAC,aAAA,GAAAD,OAA4C;AAE5C,IAAAE,eAAM,GAAAF,OAAkB;AAAA,IACtBG,eAAiB;EACjBC,eAAa;EACbC,WAAA,EAAa;EAEbC,WAAA,EAAY;EAAAC,UACV;IACFF,WAAA;EACF;AAEO;AAA0B,IAC/BT,iBAAA;EACAY,QAAA,EAAAN,eAAA,CAAAM,QAAA;EAEAC,OAAA,EAAAP,eAAU,CAAAO,OAAA;EAAAC,QACF;IACRC,IAAA,EAAAT,eAAA,CAAAQ;EAEA;EAAaE,WACL;IAAAD,IACJ;MACFP,eAAA;IACF;EAEA;EAAYS,UACJ;IACNF,IAAA,EAAKR,eAAA;IAAAW,GACH,EAAG;MACH,GAAAX,eAAY;MACZI,UAAA,EAAYJ,eAAA;MACZY,UAAA,EAAYZ,eAAA;MACda,UAAA,EAAAb;IACF;EACF;AAEO;AAAsC,IAC3CR,cAAU,OAAAI,WAAA,CAAAkB,MAAA,EAAAhB,aAAA,CAAAiB,MAAA;EACXC,QAAA,EAAAvB","ignoreList":[]}