@hanzogui/stacks 3.0.1 → 7.0.0

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 (87) hide show
  1. package/package.json +10 -10
  2. package/src/Stacks.tsx +3 -3
  3. package/types/SizableStack.d.ts +5 -5
  4. package/types/Stacks.d.ts +10 -10
  5. package/types/ThemeableStack.d.ts +4 -4
  6. package/types/getElevation.d.ts +2 -2
  7. package/dist/cjs/NestingContext.cjs +0 -38
  8. package/dist/cjs/NestingContext.native.js +0 -41
  9. package/dist/cjs/NestingContext.native.js.map +0 -1
  10. package/dist/cjs/SizableStack.cjs +0 -48
  11. package/dist/cjs/SizableStack.native.js +0 -53
  12. package/dist/cjs/SizableStack.native.js.map +0 -1
  13. package/dist/cjs/Stacks.cjs +0 -60
  14. package/dist/cjs/Stacks.native.js +0 -63
  15. package/dist/cjs/Stacks.native.js.map +0 -1
  16. package/dist/cjs/ThemeableStack.cjs +0 -61
  17. package/dist/cjs/ThemeableStack.native.js +0 -64
  18. package/dist/cjs/ThemeableStack.native.js.map +0 -1
  19. package/dist/cjs/getElevation.cjs +0 -59
  20. package/dist/cjs/getElevation.native.js +0 -66
  21. package/dist/cjs/getElevation.native.js.map +0 -1
  22. package/dist/cjs/index.cjs +0 -22
  23. package/dist/cjs/index.native.js +0 -25
  24. package/dist/cjs/index.native.js.map +0 -1
  25. package/dist/cjs/variants.cjs +0 -60
  26. package/dist/cjs/variants.native.js +0 -69
  27. package/dist/cjs/variants.native.js.map +0 -1
  28. package/dist/esm/NestingContext.mjs +0 -4
  29. package/dist/esm/NestingContext.mjs.map +0 -1
  30. package/dist/esm/NestingContext.native.js +0 -4
  31. package/dist/esm/NestingContext.native.js.map +0 -1
  32. package/dist/esm/SizableStack.mjs +0 -25
  33. package/dist/esm/SizableStack.mjs.map +0 -1
  34. package/dist/esm/SizableStack.native.js +0 -27
  35. package/dist/esm/SizableStack.native.js.map +0 -1
  36. package/dist/esm/Stacks.mjs +0 -34
  37. package/dist/esm/Stacks.mjs.map +0 -1
  38. package/dist/esm/Stacks.native.js +0 -34
  39. package/dist/esm/Stacks.native.js.map +0 -1
  40. package/dist/esm/ThemeableStack.mjs +0 -37
  41. package/dist/esm/ThemeableStack.mjs.map +0 -1
  42. package/dist/esm/ThemeableStack.native.js +0 -37
  43. package/dist/esm/ThemeableStack.native.js.map +0 -1
  44. package/dist/esm/getElevation.mjs +0 -35
  45. package/dist/esm/getElevation.mjs.map +0 -1
  46. package/dist/esm/getElevation.native.js +0 -39
  47. package/dist/esm/getElevation.native.js.map +0 -1
  48. package/dist/esm/index.js +0 -6
  49. package/dist/esm/index.js.map +0 -1
  50. package/dist/esm/index.mjs +0 -6
  51. package/dist/esm/index.mjs.map +0 -1
  52. package/dist/esm/index.native.js +0 -6
  53. package/dist/esm/index.native.js.map +0 -1
  54. package/dist/esm/variants.mjs +0 -35
  55. package/dist/esm/variants.mjs.map +0 -1
  56. package/dist/esm/variants.native.js +0 -41
  57. package/dist/esm/variants.native.js.map +0 -1
  58. package/dist/jsx/NestingContext.mjs +0 -4
  59. package/dist/jsx/NestingContext.mjs.map +0 -1
  60. package/dist/jsx/NestingContext.native.js +0 -41
  61. package/dist/jsx/NestingContext.native.js.map +0 -1
  62. package/dist/jsx/SizableStack.mjs +0 -25
  63. package/dist/jsx/SizableStack.mjs.map +0 -1
  64. package/dist/jsx/SizableStack.native.js +0 -53
  65. package/dist/jsx/SizableStack.native.js.map +0 -1
  66. package/dist/jsx/Stacks.mjs +0 -34
  67. package/dist/jsx/Stacks.mjs.map +0 -1
  68. package/dist/jsx/Stacks.native.js +0 -63
  69. package/dist/jsx/Stacks.native.js.map +0 -1
  70. package/dist/jsx/ThemeableStack.mjs +0 -37
  71. package/dist/jsx/ThemeableStack.mjs.map +0 -1
  72. package/dist/jsx/ThemeableStack.native.js +0 -64
  73. package/dist/jsx/ThemeableStack.native.js.map +0 -1
  74. package/dist/jsx/getElevation.mjs +0 -35
  75. package/dist/jsx/getElevation.mjs.map +0 -1
  76. package/dist/jsx/getElevation.native.js +0 -66
  77. package/dist/jsx/getElevation.native.js.map +0 -1
  78. package/dist/jsx/index.js +0 -6
  79. package/dist/jsx/index.js.map +0 -1
  80. package/dist/jsx/index.mjs +0 -6
  81. package/dist/jsx/index.mjs.map +0 -1
  82. package/dist/jsx/index.native.js +0 -25
  83. package/dist/jsx/index.native.js.map +0 -1
  84. package/dist/jsx/variants.mjs +0 -35
  85. package/dist/jsx/variants.mjs.map +0 -1
  86. package/dist/jsx/variants.native.js +0 -69
  87. package/dist/jsx/variants.native.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzogui/stacks",
3
- "version": "3.0.1",
3
+ "version": "7.0.0",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "source": "src/index.ts",
6
6
  "files": [
@@ -31,22 +31,22 @@
31
31
  "access": "public"
32
32
  },
33
33
  "scripts": {
34
- "build": "hanzo-gui-build",
35
- "watch": "hanzo-gui-build --watch",
36
- "clean": "hanzo-gui-build clean",
37
- "clean:build": "hanzo-gui-build clean:build"
34
+ "build": "hanzogui-build",
35
+ "watch": "hanzogui-build --watch",
36
+ "clean": "hanzogui-build clean",
37
+ "clean:build": "hanzogui-build clean:build"
38
38
  },
39
39
  "dependencies": {
40
- "@hanzogui/core": "3.0.0",
41
- "@hanzogui/get-button-sized": "3.0.0",
42
- "@hanzogui/web": "3.0.0"
40
+ "@hanzogui/core": "^7.0.0",
41
+ "@hanzogui/get-button-sized": "^7.0.0",
42
+ "@hanzogui/web": "^7.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@hanzogui/build": "3.0.0",
45
+ "@hanzogui/build": "^7.0.0",
46
46
  "react": ">=19"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": ">=19"
50
50
  },
51
51
  "module:jsx": "dist/jsx"
52
- }
52
+ }
package/src/Stacks.tsx CHANGED
@@ -36,7 +36,7 @@ const variants = {
36
36
 
37
37
  /**
38
38
  * @summary A view that arranges its children in a vertical line.
39
- * @see — Docs https://gui.dev/ui/stacks#xstack-ystack-zstack
39
+ * @see — Docs https://hanzogui.dev/ui/stacks#xstack-ystack-zstack
40
40
  */
41
41
  export const YStack = styled(View, {
42
42
  flexDirection: 'column',
@@ -47,7 +47,7 @@ YStack['displayName'] = 'YStack'
47
47
 
48
48
  /**
49
49
  * @summary A view that arranges its children in a horizontal line.
50
- * @see — Docs https://gui.dev/ui/stacks#xstack-ystack-zstack
50
+ * @see — Docs https://hanzogui.dev/ui/stacks#xstack-ystack-zstack
51
51
  */
52
52
  export const XStack = styled(View, {
53
53
  flexDirection: 'row',
@@ -58,7 +58,7 @@ XStack['displayName'] = 'XStack'
58
58
 
59
59
  /**
60
60
  * @summary A view that stacks its children on top of each other.
61
- * @see — Docs https://gui.dev/ui/stacks#xstack-ystack-zstack
61
+ * @see — Docs https://hanzogui.dev/ui/stacks#xstack-ystack-zstack
62
62
  */
63
63
  export const ZStack = styled(
64
64
  YStack,
@@ -1,14 +1,14 @@
1
- import type { GetProps } from '@gui/web';
2
- export declare const SizableStack: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, import("@gui/core").GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
3
- size?: import("@gui/core").SizeTokens | undefined;
1
+ import type { GetProps } from '@hanzogui/web';
2
+ export declare const SizableStack: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
3
+ size?: import("@hanzogui/core").SizeTokens | undefined;
4
4
  unstyled?: boolean | undefined;
5
- elevation?: number | import("@gui/core").SizeTokens | undefined;
5
+ elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
6
6
  transparent?: boolean | undefined;
7
7
  fullscreen?: boolean | undefined;
8
8
  circular?: boolean | undefined;
9
9
  elevate?: boolean | undefined;
10
10
  bordered?: boolean | undefined;
11
11
  chromeless?: boolean | "all" | undefined;
12
- }, import("@gui/core").StaticConfigPublic>;
12
+ }, import("@hanzogui/core").StaticConfigPublic>;
13
13
  export type SizableStackProps = GetProps<typeof SizableStack>;
14
14
  //# sourceMappingURL=SizableStack.d.ts.map
package/types/Stacks.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { GetProps, SizeTokens } from '@gui/core';
1
+ import type { GetProps, SizeTokens } from '@hanzogui/core';
2
2
  export interface StackVariants {
3
3
  /**
4
4
  * @deprecated use `inset: 0, position: 'absolute'` instead
@@ -15,28 +15,28 @@ export declare const fullscreenStyle: {
15
15
  };
16
16
  /**
17
17
  * @summary A view that arranges its children in a vertical line.
18
- * @see — Docs https://gui.dev/ui/stacks#xstack-ystack-zstack
18
+ * @see — Docs https://hanzogui.dev/ui/stacks#xstack-ystack-zstack
19
19
  */
20
- export declare const YStack: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, import("@gui/core").GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
20
+ export declare const YStack: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
21
21
  elevation?: number | SizeTokens | undefined;
22
22
  fullscreen?: boolean | undefined;
23
- }, import("@gui/core").StaticConfigPublic>;
23
+ }, import("@hanzogui/core").StaticConfigPublic>;
24
24
  /**
25
25
  * @summary A view that arranges its children in a horizontal line.
26
- * @see — Docs https://gui.dev/ui/stacks#xstack-ystack-zstack
26
+ * @see — Docs https://hanzogui.dev/ui/stacks#xstack-ystack-zstack
27
27
  */
28
- export declare const XStack: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, import("@gui/core").GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
28
+ export declare const XStack: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
29
29
  elevation?: number | SizeTokens | undefined;
30
30
  fullscreen?: boolean | undefined;
31
- }, import("@gui/core").StaticConfigPublic>;
31
+ }, import("@hanzogui/core").StaticConfigPublic>;
32
32
  /**
33
33
  * @summary A view that stacks its children on top of each other.
34
- * @see — Docs https://gui.dev/ui/stacks#xstack-ystack-zstack
34
+ * @see — Docs https://hanzogui.dev/ui/stacks#xstack-ystack-zstack
35
35
  */
36
- export declare const ZStack: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, import("@gui/core").GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
36
+ export declare const ZStack: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
37
37
  elevation?: number | SizeTokens | undefined;
38
38
  fullscreen?: boolean | undefined;
39
- }, import("@gui/core").StaticConfigPublic & {
39
+ }, import("@hanzogui/core").StaticConfigPublic & {
40
40
  neverFlatten: true;
41
41
  isZStack: true;
42
42
  }>;
@@ -1,4 +1,4 @@
1
- import type { GetProps } from '@gui/core';
1
+ import type { GetProps } from '@hanzogui/core';
2
2
  export declare const themeableVariants: {
3
3
  readonly circular: {
4
4
  true: (_: any, { props, tokens }: {
@@ -74,14 +74,14 @@ export declare const themeableVariants: {
74
74
  };
75
75
  };
76
76
  };
77
- export declare const ThemeableStack: import("@gui/core").GuiComponent<import("@gui/core").TamaDefer, import("@gui/core").GuiElement, import("@gui/core").RNGuiViewNonStyleProps, import("@gui/core").StackStyleBase, {
78
- elevation?: number | import("@gui/core").SizeTokens | undefined;
77
+ export declare const ThemeableStack: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
78
+ elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
79
79
  transparent?: boolean | undefined;
80
80
  fullscreen?: boolean | undefined;
81
81
  circular?: boolean | undefined;
82
82
  elevate?: boolean | undefined;
83
83
  bordered?: boolean | undefined;
84
84
  chromeless?: boolean | "all" | undefined;
85
- }, import("@gui/core").StaticConfigPublic>;
85
+ }, import("@hanzogui/core").StaticConfigPublic>;
86
86
  export type ThemeableStackProps = GetProps<typeof ThemeableStack>;
87
87
  //# sourceMappingURL=ThemeableStack.d.ts.map
@@ -1,8 +1,8 @@
1
- import type { SizeTokens, SizeVariantSpreadFunction, ViewProps, VariantSpreadExtras } from '@gui/core';
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
4
  elevationAndroid?: number | undefined;
5
- shadowColor: import("@gui/core").Variable<string> | import("@gui/core").Variable<any> | import("@gui/core").Variable<undefined> | undefined;
5
+ shadowColor: import("@hanzogui/core").Variable<string> | import("@hanzogui/core").Variable<any> | import("@hanzogui/core").Variable<undefined> | undefined;
6
6
  shadowRadius: number;
7
7
  shadowOffset: {
8
8
  height: number;
@@ -1,38 +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
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
32
- var NestingContext_exports = {};
33
- __export(NestingContext_exports, {
34
- ButtonNestingContext: () => ButtonNestingContext
35
- });
36
- module.exports = __toCommonJS(NestingContext_exports);
37
- var import_react = __toESM(require("react"), 1);
38
- const ButtonNestingContext = import_react.default.createContext(!1);
@@ -1,41 +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
- __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
- get: () => from[key],
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
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: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
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
- ButtonNestingContext = /* @__PURE__ */import_react.default.createContext(!1);
41
- //# 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","default","createContext"],"sources":["../../src/NestingContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,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;EAAAL,oBAAyB,kBAAAG,YAAA,CAAAG,OAAA,CAAAC,aAAA","ignoreList":[]}
@@ -1,48 +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: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
- get: () => from[key],
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
16
- return to;
17
- };
18
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
20
- }), mod);
21
- var SizableStack_exports = {};
22
- __export(SizableStack_exports, {
23
- SizableStack: () => SizableStack
24
- });
25
- module.exports = __toCommonJS(SizableStack_exports);
26
- var import_gui_core = require("@hanzogui/core"),
27
- import_gui_get_button_sized = require("@hanzogui/get-button-sized"),
28
- import_ThemeableStack = require("./ThemeableStack.cjs"),
29
- import_variants = require("./variants.cjs");
30
- const SizableStack = (0, import_gui_core.styled)(import_ThemeableStack.ThemeableStack, {
31
- name: "SizableStack",
32
- variants: {
33
- unstyled: {
34
- true: {
35
- elevate: !1,
36
- bordered: !1
37
- }
38
- },
39
- circular: import_variants.circular,
40
- elevate: import_variants.elevate,
41
- bordered: {
42
- true: import_variants.bordered
43
- },
44
- size: {
45
- "...size": (val, extras) => (0, import_gui_get_button_sized.getButtonSized)(val, extras)
46
- }
47
- }
48
- });
@@ -1,53 +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: !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);
23
- var SizableStack_exports = {};
24
- __export(SizableStack_exports, {
25
- SizableStack: () => SizableStack
26
- });
27
- module.exports = __toCommonJS(SizableStack_exports);
28
- var import_gui_core = require("@hanzogui/core"),
29
- import_gui_get_button_sized = require("@hanzogui/get-button-sized"),
30
- import_ThemeableStack = require("./ThemeableStack.native.js"),
31
- import_variants = require("./variants.native.js"),
32
- SizableStack = (0, import_gui_core.styled)(import_ThemeableStack.ThemeableStack, {
33
- name: "SizableStack",
34
- variants: {
35
- unstyled: {
36
- true: {
37
- elevate: !1,
38
- bordered: !1
39
- }
40
- },
41
- circular: import_variants.circular,
42
- elevate: import_variants.elevate,
43
- bordered: {
44
- true: import_variants.bordered
45
- },
46
- size: {
47
- "...size": function (val, extras) {
48
- return (0, import_gui_get_button_sized.getButtonSized)(val, extras);
49
- }
50
- }
51
- }
52
- });
53
- //# sourceMappingURL=SizableStack.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","SizableStack_exports","__export","SizableStack","module","exports","import_gui_core","require","import_gui_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,oBACvB;AAKO,IAAAK,eAAM,GAAAC,OAAe;EAAOC,2BAAA,GAAAD,OAAgB;EAAAE,qBAAA,GAAAF,OAAA;EAAAG,eAAA,GAAAH,OAAA;EAAAJ,YAAA,OAAAG,eAAA,CAAAK,MAAA,EAAAF,qBAAA,CAAAG,cAAA;IACjDC,IAAA,EAAM;IAENC,QAAA,EAAU;MACRC,QAAA,EAAU;QACRC,IAAA,EAAM;UACJC,OAAA,EAAS;UACTC,QAAA,EAAU;QACZ;MACF;MAEAC,QAAA,EAAAT,eAAA,CAAAS,QAAA;MACAF,OAAA,EAAAP,eAAA,CAAAO,OAAA;MAEAC,QAAA,EAAU;QACRF,IAAA,EAAMN,eAAA,CAAAQ;MACR;MAEAE,IAAA,EAAM;QACJ,WAAW,SAAAC,CAAMC,GAAA,EAAAC,MAAA,EACR;UAEX,WAAAf,2BAAA,CAAAgB,cAAA,EAAAF,GAAA,EAAAC,MAAA;QACF;MACD","ignoreList":[]}
@@ -1,60 +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: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
- get: () => from[key],
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
16
- return to;
17
- };
18
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
20
- }), mod);
21
- var Stacks_exports = {};
22
- __export(Stacks_exports, {
23
- XStack: () => XStack,
24
- YStack: () => YStack,
25
- ZStack: () => ZStack,
26
- fullscreenStyle: () => fullscreenStyle
27
- });
28
- module.exports = __toCommonJS(Stacks_exports);
29
- var import_gui_core = require("@hanzogui/core"),
30
- import_getElevation = require("./getElevation.cjs");
31
- const fullscreenStyle = {
32
- position: "absolute",
33
- inset: 0
34
- },
35
- variants = {
36
- fullscreen: {
37
- true: fullscreenStyle
38
- },
39
- elevation: {
40
- "...size": import_getElevation.getElevation,
41
- ":number": import_getElevation.getElevation
42
- }
43
- },
44
- YStack = (0, import_gui_core.styled)(import_gui_core.View, {
45
- flexDirection: "column",
46
- variants
47
- });
48
- YStack.displayName = "YStack";
49
- const XStack = (0, import_gui_core.styled)(import_gui_core.View, {
50
- flexDirection: "row",
51
- variants
52
- });
53
- XStack.displayName = "XStack";
54
- const ZStack = (0, import_gui_core.styled)(YStack, {
55
- position: "relative"
56
- }, {
57
- neverFlatten: !0,
58
- isZStack: !0
59
- });
60
- ZStack.displayName = "ZStack";
@@ -1,63 +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: !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);
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_gui_core = require("@hanzogui/core"),
32
- import_getElevation = require("./getElevation.native.js"),
33
- fullscreenStyle = {
34
- position: "absolute",
35
- inset: 0
36
- },
37
- variants = {
38
- fullscreen: {
39
- true: fullscreenStyle
40
- },
41
- elevation: {
42
- "...size": import_getElevation.getElevation,
43
- ":number": import_getElevation.getElevation
44
- }
45
- },
46
- YStack = (0, import_gui_core.styled)(import_gui_core.View, {
47
- flexDirection: "column",
48
- variants
49
- });
50
- YStack.displayName = "YStack";
51
- var XStack = (0, import_gui_core.styled)(import_gui_core.View, {
52
- flexDirection: "row",
53
- variants
54
- });
55
- XStack.displayName = "XStack";
56
- var ZStack = (0, import_gui_core.styled)(YStack, {
57
- position: "relative"
58
- }, {
59
- neverFlatten: !0,
60
- isZStack: !0
61
- });
62
- ZStack.displayName = "ZStack";
63
- //# 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_gui_core","require","import_getElevation","position","inset","variants","fullscreen","true","elevation","getElevation","styled","View","flexDirection","displayName","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;AAmBtB,IAAAQ,eAAM,GAAAC,OAAkB;EAAAC,mBAAA,GAAAD,OAAA;EAAAJ,eAAA;IAC7BM,QAAA,EAAU;IACVC,KAAA,EAAO;EACT;EAEMC,QAAA,GAAW;IACfC,UAAA,EAAY;MACVC,IAAA,EAAMV;IACR;IAEAW,SAAA,EAAW;MACT,WAAWN,mBAAA,CAAAO,YAAA;MACX,WAAWP,mBAAA,CAAAO;IACb;EACF;EAMad,MAAA,OAASK,eAAA,CAAAU,MAAA,EAAOV,eAAA,CAAAW,IAAA,EAAM;IACjCC,aAAA,EAAe;IACfP;EACF,CAAC;AAEDV,MAAA,CAAOkB,WAAA,GAAiB;AAMjB,IAAAnB,MAAM,OAAAM,eAAS,CAAAU,MAAA,EAAAV,eAAO,CAAAW,IAAA;EAC3BC,aAAA,EAAe;EACfP;AACF,CAAC;AAEDX,MAAA,CAAOmB,WAAA,GAAiB;AAMjB,IAAAjB,MAAM,OAAAI,eAAS,CAAAU,MAAA,EAAAf,MAAA;EACpBQ,QAAA;AAAA,GACA;EAAAW,YACY;EACZC,QAAA;AAAA,EACA;AAAAnB,MACE,CAAAiB,WAAc","ignoreList":[]}
@@ -1,61 +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: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
- get: () => from[key],
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
16
- return to;
17
- };
18
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
20
- }), mod);
21
- var ThemeableStack_exports = {};
22
- __export(ThemeableStack_exports, {
23
- ThemeableStack: () => ThemeableStack,
24
- themeableVariants: () => themeableVariants
25
- });
26
- module.exports = __toCommonJS(ThemeableStack_exports);
27
- var import_gui_core = require("@hanzogui/core"),
28
- import_Stacks = require("./Stacks.cjs"),
29
- import_variants = require("./variants.cjs");
30
- const chromelessStyle = {
31
- backgroundColor: "transparent",
32
- borderColor: "transparent",
33
- shadowColor: "transparent",
34
- hoverStyle: {
35
- borderColor: "transparent"
36
- }
37
- },
38
- themeableVariants = {
39
- circular: import_variants.circular,
40
- elevate: import_variants.elevate,
41
- bordered: {
42
- true: import_variants.bordered
43
- },
44
- transparent: {
45
- true: {
46
- backgroundColor: "transparent"
47
- }
48
- },
49
- chromeless: {
50
- true: chromelessStyle,
51
- all: {
52
- ...chromelessStyle,
53
- hoverStyle: chromelessStyle,
54
- pressStyle: chromelessStyle,
55
- focusStyle: chromelessStyle
56
- }
57
- }
58
- },
59
- ThemeableStack = (0, import_gui_core.styled)(import_Stacks.YStack, {
60
- variants: themeableVariants
61
- });
@@ -1,64 +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: !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);
23
- var ThemeableStack_exports = {};
24
- __export(ThemeableStack_exports, {
25
- ThemeableStack: () => ThemeableStack,
26
- themeableVariants: () => themeableVariants
27
- });
28
- module.exports = __toCommonJS(ThemeableStack_exports);
29
- var import_gui_core = require("@hanzogui/core"),
30
- import_Stacks = require("./Stacks.native.js"),
31
- import_variants = require("./variants.native.js"),
32
- chromelessStyle = {
33
- backgroundColor: "transparent",
34
- borderColor: "transparent",
35
- shadowColor: "transparent",
36
- hoverStyle: {
37
- borderColor: "transparent"
38
- }
39
- },
40
- 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
- ThemeableStack = (0, import_gui_core.styled)(import_Stacks.YStack, {
62
- variants: themeableVariants
63
- });
64
- //# 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_gui_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,sBAEvB;AAIA,IAAAM,eAAM,GAAAC,OAAkB;EAAAC,aAAA,GAAAD,OAAA;EAAAE,eAAA,GAAAF,OAAA;EAAAG,eAAA;IACtBC,eAAA,EAAiB;IACjBC,WAAA,EAAa;IACbC,WAAA,EAAa;IAEbC,UAAA,EAAY;MACVF,WAAA,EAAa;IACf;EACF;EAEaT,iBAAA,GAAoB;IAC/BY,QAAA,EAAAN,eAAA,CAAAM,QAAA;IACAC,OAAA,EAAAP,eAAA,CAAAO,OAAA;IAEAC,QAAA,EAAU;MACRC,IAAA,EAAMT,eAAA,CAAAQ;IACR;IAEAE,WAAA,EAAa;MACXD,IAAA,EAAM;QACJP,eAAA,EAAiB;MACnB;IACF;IAEAS,UAAA,EAAY;MACVF,IAAA,EAAMR,eAAA;MACNW,GAAA,EAAK;QACH,GAAGX,eAAA;QACHI,UAAA,EAAYJ,eAAA;QACZY,UAAA,EAAYZ,eAAA;QACZa,UAAA,EAAYb;MACd;IACF;EACF;EAEaR,cAAA,OAAiBI,eAAA,CAAAkB,MAAA,EAAOhB,aAAA,CAAAiB,MAAA,EAAQ;IAC3CC,QAAA,EAAUvB;EACZ,CAAC","ignoreList":[]}