@hanzo/gui 4.7.3 → 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 (136) hide show
  1. package/hanzogui.config.ts +4 -0
  2. package/linear-gradient/index.cjs +1 -1
  3. package/linear-gradient/index.native.cjs +1 -1
  4. package/native/index.cjs +1 -1
  5. package/native-test/index.cjs +1 -1
  6. package/native-test/index.native.cjs +1 -1
  7. package/package.json +80 -87
  8. package/react-native-web/index.cjs +1 -1
  9. package/react-native-web/index.native.cjs +1 -1
  10. package/src/{createGui.ts → createHanzogui.ts} +13 -13
  11. package/src/index.ts +181 -39
  12. package/src/linear-gradient.ts +1 -0
  13. package/src/views/Anchor.tsx +38 -4
  14. package/src/views/Fieldset.tsx +22 -0
  15. package/src/views/HanzoguiProvider.tsx +14 -0
  16. package/src/views/Text.tsx +3 -3
  17. package/tsconfig.json +2 -2
  18. package/types/createHanzogui.d.ts +6 -0
  19. package/types/index.d.ts +47 -28
  20. package/types/linear-gradient.d.ts +2 -0
  21. package/types/views/Anchor.d.ts +14 -2
  22. package/types/views/EnsureFlexed.d.ts +1 -1
  23. package/types/views/Fieldset.d.ts +8 -0
  24. package/types/views/HanzoguiProvider.d.ts +3 -0
  25. package/types/views/Text.d.ts +1 -1
  26. package/types/views/VisuallyHidden.d.ts +1 -1
  27. package/web/index.cjs +1 -1
  28. package/web/index.native.cjs +1 -1
  29. package/dist/cjs/createGui.cjs +0 -80
  30. package/dist/cjs/createGui.native.js +0 -89
  31. package/dist/cjs/createGui.native.js.map +0 -1
  32. package/dist/cjs/index.cjs +0 -77
  33. package/dist/cjs/index.native.js +0 -80
  34. package/dist/cjs/index.native.js.map +0 -1
  35. package/dist/cjs/setup.cjs +0 -30
  36. package/dist/cjs/setup.native.js +0 -35
  37. package/dist/cjs/setup.native.js.map +0 -1
  38. package/dist/cjs/viewTypes.cjs +0 -18
  39. package/dist/cjs/viewTypes.native.js +0 -21
  40. package/dist/cjs/viewTypes.native.js.map +0 -1
  41. package/dist/cjs/views/Anchor.cjs +0 -34
  42. package/dist/cjs/views/Anchor.native.js +0 -37
  43. package/dist/cjs/views/Anchor.native.js.map +0 -1
  44. package/dist/cjs/views/EnsureFlexed.cjs +0 -38
  45. package/dist/cjs/views/EnsureFlexed.native.js +0 -41
  46. package/dist/cjs/views/EnsureFlexed.native.js.map +0 -1
  47. package/dist/cjs/views/GuiProvider.cjs +0 -29
  48. package/dist/cjs/views/GuiProvider.native.js +0 -32
  49. package/dist/cjs/views/GuiProvider.native.js.map +0 -1
  50. package/dist/cjs/views/Text.cjs +0 -40
  51. package/dist/cjs/views/Text.native.js +0 -43
  52. package/dist/cjs/views/Text.native.js.map +0 -1
  53. package/dist/cjs/views/VisuallyHidden.cjs +0 -60
  54. package/dist/cjs/views/VisuallyHidden.native.js +0 -63
  55. package/dist/cjs/views/VisuallyHidden.native.js.map +0 -1
  56. package/dist/esm/createGui.mjs +0 -55
  57. package/dist/esm/createGui.mjs.map +0 -1
  58. package/dist/esm/createGui.native.js +0 -61
  59. package/dist/esm/createGui.native.js.map +0 -1
  60. package/dist/esm/index.js +0 -44
  61. package/dist/esm/index.js.map +0 -1
  62. package/dist/esm/index.mjs +0 -44
  63. package/dist/esm/index.mjs.map +0 -1
  64. package/dist/esm/index.native.js +0 -44
  65. package/dist/esm/index.native.js.map +0 -1
  66. package/dist/esm/setup.mjs +0 -6
  67. package/dist/esm/setup.mjs.map +0 -1
  68. package/dist/esm/setup.native.js +0 -8
  69. package/dist/esm/setup.native.js.map +0 -1
  70. package/dist/esm/viewTypes.mjs +0 -2
  71. package/dist/esm/viewTypes.mjs.map +0 -1
  72. package/dist/esm/viewTypes.native.js +0 -2
  73. package/dist/esm/viewTypes.native.js.map +0 -1
  74. package/dist/esm/views/Anchor.mjs +0 -9
  75. package/dist/esm/views/Anchor.mjs.map +0 -1
  76. package/dist/esm/views/Anchor.native.js +0 -9
  77. package/dist/esm/views/Anchor.native.js.map +0 -1
  78. package/dist/esm/views/EnsureFlexed.mjs +0 -13
  79. package/dist/esm/views/EnsureFlexed.mjs.map +0 -1
  80. package/dist/esm/views/EnsureFlexed.native.js +0 -13
  81. package/dist/esm/views/EnsureFlexed.native.js.map +0 -1
  82. package/dist/esm/views/GuiProvider.mjs +0 -4
  83. package/dist/esm/views/GuiProvider.mjs.map +0 -1
  84. package/dist/esm/views/GuiProvider.native.js +0 -4
  85. package/dist/esm/views/GuiProvider.native.js.map +0 -1
  86. package/dist/esm/views/Text.mjs +0 -15
  87. package/dist/esm/views/Text.mjs.map +0 -1
  88. package/dist/esm/views/Text.native.js +0 -15
  89. package/dist/esm/views/Text.native.js.map +0 -1
  90. package/dist/esm/views/VisuallyHidden.mjs +0 -35
  91. package/dist/esm/views/VisuallyHidden.mjs.map +0 -1
  92. package/dist/esm/views/VisuallyHidden.native.js +0 -35
  93. package/dist/esm/views/VisuallyHidden.native.js.map +0 -1
  94. package/dist/jsx/createGui.mjs +0 -55
  95. package/dist/jsx/createGui.mjs.map +0 -1
  96. package/dist/jsx/createGui.native.js +0 -89
  97. package/dist/jsx/createGui.native.js.map +0 -1
  98. package/dist/jsx/index.js +0 -44
  99. package/dist/jsx/index.js.map +0 -1
  100. package/dist/jsx/index.mjs +0 -44
  101. package/dist/jsx/index.mjs.map +0 -1
  102. package/dist/jsx/index.native.js +0 -80
  103. package/dist/jsx/index.native.js.map +0 -1
  104. package/dist/jsx/setup.mjs +0 -6
  105. package/dist/jsx/setup.mjs.map +0 -1
  106. package/dist/jsx/setup.native.js +0 -35
  107. package/dist/jsx/setup.native.js.map +0 -1
  108. package/dist/jsx/viewTypes.mjs +0 -2
  109. package/dist/jsx/viewTypes.mjs.map +0 -1
  110. package/dist/jsx/viewTypes.native.js +0 -21
  111. package/dist/jsx/viewTypes.native.js.map +0 -1
  112. package/dist/jsx/views/Anchor.mjs +0 -9
  113. package/dist/jsx/views/Anchor.mjs.map +0 -1
  114. package/dist/jsx/views/Anchor.native.js +0 -37
  115. package/dist/jsx/views/Anchor.native.js.map +0 -1
  116. package/dist/jsx/views/EnsureFlexed.mjs +0 -13
  117. package/dist/jsx/views/EnsureFlexed.mjs.map +0 -1
  118. package/dist/jsx/views/EnsureFlexed.native.js +0 -41
  119. package/dist/jsx/views/EnsureFlexed.native.js.map +0 -1
  120. package/dist/jsx/views/GuiProvider.mjs +0 -4
  121. package/dist/jsx/views/GuiProvider.mjs.map +0 -1
  122. package/dist/jsx/views/GuiProvider.native.js +0 -32
  123. package/dist/jsx/views/GuiProvider.native.js.map +0 -1
  124. package/dist/jsx/views/Text.mjs +0 -15
  125. package/dist/jsx/views/Text.mjs.map +0 -1
  126. package/dist/jsx/views/Text.native.js +0 -43
  127. package/dist/jsx/views/Text.native.js.map +0 -1
  128. package/dist/jsx/views/VisuallyHidden.mjs +0 -35
  129. package/dist/jsx/views/VisuallyHidden.mjs.map +0 -1
  130. package/dist/jsx/views/VisuallyHidden.native.js +0 -63
  131. package/dist/jsx/views/VisuallyHidden.native.js.map +0 -1
  132. package/gui.config.ts +0 -4
  133. package/scripts/publish.sh +0 -61
  134. package/src/views/GuiProvider.tsx +0 -5
  135. package/types/createGui.d.ts +0 -6
  136. package/types/views/GuiProvider.d.ts +0 -4
@@ -1,6 +1,6 @@
1
- import { Text as GuiText, styled } from '@hanzogui/core'
1
+ import { Text as HanzoguiText, styled } from '@hanzogui/core'
2
2
 
3
- export const Text = styled(GuiText, {
3
+ export const Text = styled(HanzoguiText, {
4
4
  variants: {
5
5
  unstyled: {
6
6
  false: {
@@ -10,6 +10,6 @@ export const Text = styled(GuiText, {
10
10
  } as const,
11
11
 
12
12
  defaultVariants: {
13
- unstyled: process.env.GUI_HEADLESS === '1',
13
+ unstyled: process.env.HANZOGUI_HEADLESS === '1',
14
14
  },
15
15
  })
package/tsconfig.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "composite": true
5
5
  },
6
6
  "exclude": [
7
- "gui.config.ts",
7
+ "hanzogui.config.ts",
8
8
  "test",
9
9
  "dist",
10
10
  "types",
@@ -39,7 +39,7 @@
39
39
  "path": "../../core/get-token"
40
40
  },
41
41
  {
42
- "path": "../../core/helpers-gui"
42
+ "path": "../../core/helpers-hanzogui"
43
43
  },
44
44
  {
45
45
  "path": "../../core/react-native-media-driver"
@@ -0,0 +1,6 @@
1
+ import { createHanzogui as createHanzoguiCore } from '@hanzogui/core';
2
+ /**
3
+ * Adds some helpful validation at dev time only for `hanzogui` specifically
4
+ **/
5
+ export declare const createHanzogui: typeof createHanzoguiCore;
6
+ //# sourceMappingURL=createHanzogui.d.ts.map
package/types/index.d.ts CHANGED
@@ -1,45 +1,64 @@
1
1
  import './setup';
2
- export * from '@hanzogui/core';
3
- export * from '@hanzogui/stacks';
4
- export * from '@hanzogui/shapes';
5
2
  export * from '@hanzogui/spacer';
3
+ export * from '@hanzogui/accordion';
4
+ export * from '@hanzogui/adapt';
5
+ export * from '@hanzogui/alert-dialog';
6
+ export * from '@hanzogui/animate';
6
7
  export * from '@hanzogui/animate-presence';
8
+ export * from '@hanzogui/avatar';
7
9
  export * from '@hanzogui/button';
8
- export * from '@hanzogui/popover';
9
- export * from '@hanzogui/radio-group';
10
- export * from '@hanzogui/tooltip';
11
- export * from '@hanzogui/switch';
10
+ export * from '@hanzogui/card';
12
11
  export * from '@hanzogui/checkbox';
12
+ export * from '@hanzogui/collapsible';
13
+ export * from '@hanzogui/compose-refs';
14
+ export * from '@hanzogui/create-context';
13
15
  export * from '@hanzogui/dialog';
14
- export * from '@hanzogui/sheet';
15
- export * from '@hanzogui/adapt';
16
- export * from '@hanzogui/label';
17
- export * from '@hanzogui/input';
18
- export * from '@hanzogui/select';
19
- export * from '@hanzogui/separator';
20
- export * from '@hanzogui/slider';
21
- export * from '@hanzogui/tabs';
22
- export * from '@hanzogui/toggle-group';
23
- export * from '@hanzogui/accordion';
24
- export * from '@hanzogui/avatar';
25
- export * from '@hanzogui/card';
16
+ export * from '@hanzogui/font-size';
26
17
  export * from '@hanzogui/form';
27
18
  export * from '@hanzogui/group';
19
+ export * from '@hanzogui/react-native-media-driver';
20
+ export * from '@hanzogui/elements';
21
+ export * from '@hanzogui/component-helpers';
28
22
  export * from '@hanzogui/image';
23
+ export * from '@hanzogui/label';
29
24
  export * from '@hanzogui/list-item';
25
+ export * from '@hanzogui/menu';
26
+ export * from '@hanzogui/context-menu';
27
+ export * from '@hanzogui/create-menu';
28
+ export * from '@hanzogui/popover';
29
+ export * from '@hanzogui/popper';
30
30
  export * from '@hanzogui/portal';
31
31
  export * from '@hanzogui/progress';
32
+ export * from '@hanzogui/radio-group';
32
33
  export * from '@hanzogui/scroll-view';
33
- export * from '@hanzogui/spinner';
34
+ export * from '@hanzogui/select';
35
+ export * from '@hanzogui/separator';
36
+ export * from '@hanzogui/shapes';
37
+ export * from '@hanzogui/sheet';
38
+ export * from '@hanzogui/slider';
39
+ export * from '@hanzogui/stacks';
40
+ export * from '@hanzogui/switch';
41
+ export * from '@hanzogui/tabs';
34
42
  export * from '@hanzogui/text';
43
+ export * from '@hanzogui/theme';
35
44
  export * from '@hanzogui/toast';
45
+ export * from '@hanzogui/toggle-group';
46
+ export * from '@hanzogui/tooltip';
47
+ export * from '@hanzogui/use-controllable-state';
48
+ export * from '@hanzogui/use-debounce';
49
+ export * from '@hanzogui/use-force-update';
50
+ export * from '@hanzogui/element';
51
+ export * from '@hanzogui/use-window-dimensions';
36
52
  export * from '@hanzogui/visually-hidden';
37
- export * from '@hanzogui/focusable';
38
- export * from '@hanzogui/elements';
39
- export { createThemes, createThemeBuilder } from '@hanzogui/theme-builder';
40
- export { shorthands } from '@hanzogui/shorthands';
41
- export { getDefaultGuiConfig } from '@hanzogui/config-default';
42
- export { Theme, useTheme } from '@hanzogui/web';
43
- export type { ThemeName } from '@hanzogui/web';
44
- export { Anchor, type AnchorProps } from './views/Anchor';
53
+ export * from './createHanzogui';
54
+ export * from './viewTypes';
55
+ export * from './views/HanzoguiProvider';
56
+ export * from './views/Anchor';
57
+ export * from './views/EnsureFlexed';
58
+ export * from './views/Fieldset';
59
+ export * from '@hanzogui/input';
60
+ export * from '@hanzogui/spinner';
61
+ export * from './views/Text';
62
+ export type { TransitionKeys, TransitionProp, ColorTokens, CreateHanzoguiConfig, CreateHanzoguiProps, FontColorTokens, FontLanguages, FontLetterSpacingTokens, FontLineHeightTokens, FontFamilyTokens, FontSizeTokens, FontStyleTokens, FontTokens, FontTransformTokens, FontWeightTokens, GenericFont, GenericStackVariants, GenericHanzoguiConfig, GenericTextVariants, GetAnimationKeys, GetProps, GetRef, GetThemeValueForKey, GroupNames, Longhands, Media, MediaPropKeys, MediaQueries, MediaQueryState, RadiusTokens, Shorthands, SizeTokens, SpaceTokens, SpecificTokens, StackNonStyleProps, ViewProps, StaticConfig, Styleable, HanzoguiBaseTheme, HanzoguiBuildOptions, HanzoguiComponent, HanzoguiConfig, HanzoguiCustomConfig, HanzoguiElement, HanzoguiInternalConfig, HanzoguiProviderProps, HanzoguiSettings, HanzoguiTextElement, TextNonStyleProps, TextProps, ThemeKeys, ThemeName, ThemeParsed, ThemeProps, Themes, ThemeTokens, ThemeValueFallback, Token, Tokens, TypeOverride, Variable, VariantSpreadExtras, VariantSpreadFunction, ZIndexTokens, ViewStyle, TextStyle, } from '@hanzogui/core';
63
+ export { ClientOnly, Configuration, ComponentContext, GroupContext, FontLanguage, Theme, View, createComponent, createFont, createShorthands, createStyledContext, createTokens, createVariable, getConfig, getMedia, getCSSStylesAtomic, getThemes, getToken, getTokenValue, getTokens, getVariable, getVariableName, getVariableValue, insertFont, setConfig, setupDev, _withStableStyle, isBrowser, isChrome, isClient, isServer, isHanzoguiComponent, isHanzoguiElement, isTouchable, isVariable, isWeb, isWebTouchable, matchMedia, mediaObjectToString, mediaQueryConfig, mediaState, setOnLayoutStrategy, styled, themeable, useClientValue, useDidFinishSSR, useEvent, useGet, useIsTouchDevice, useIsomorphicLayoutEffect, useMedia, useProps, usePropsAndStyle, useStyle, useConfiguration, useTheme, useThemeName, variableToString, withStaticProperties, } from '@hanzogui/core';
45
64
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { LinearGradient, type LinearGradientProps } from '@hanzogui/linear-gradient';
2
+ //# sourceMappingURL=linear-gradient.d.ts.map
@@ -1,3 +1,15 @@
1
- export declare const Anchor: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, any, any, any, any, any>;
2
- export type AnchorProps = React.ComponentProps<typeof Anchor>;
1
+ import type { SizableTextProps } from '@hanzogui/text';
2
+ export interface AnchorExtraProps {
3
+ href?: string;
4
+ target?: string;
5
+ rel?: string;
6
+ }
7
+ export type AnchorProps = SizableTextProps & AnchorExtraProps;
8
+ export declare const Anchor: import("@hanzogui/core").HanzoguiComponent<Omit<import("@hanzogui/core").GetFinalProps<import("@hanzogui/core").TextNonStyleProps, import("@hanzogui/core").TextStylePropsBase, {
9
+ unstyled?: boolean | undefined;
10
+ size?: import("@hanzogui/core").FontSizeTokens | undefined;
11
+ }>, keyof AnchorExtraProps> & AnchorExtraProps, import("@hanzogui/core").HanzoguiTextElement, import("@hanzogui/core").TextNonStyleProps & AnchorExtraProps, import("@hanzogui/core").TextStylePropsBase, {
12
+ unstyled?: boolean | undefined;
13
+ size?: import("@hanzogui/core").FontSizeTokens | undefined;
14
+ }, import("@hanzogui/core").StaticConfigPublic>;
3
15
  //# sourceMappingURL=Anchor.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const EnsureFlexed: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").GuiTextElement, import("@hanzogui/core").RNGuiTextNonStyleProps, import("@hanzogui/core").TextStylePropsBase, {}, import("@hanzogui/core").StaticConfigPublic>;
1
+ export declare const EnsureFlexed: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiTextElement, import("@hanzogui/core").RNHanzoguiTextNonStyleProps, import("@hanzogui/core").TextStylePropsBase, {}, import("@hanzogui/core").StaticConfigPublic>;
2
2
  //# sourceMappingURL=EnsureFlexed.d.ts.map
@@ -0,0 +1,8 @@
1
+ import type { GetProps } from '@hanzogui/core';
2
+ export declare const Fieldset: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
3
+ elevation?: number | import("@hanzogui/core").SizeTokens | undefined;
4
+ fullscreen?: boolean | undefined;
5
+ horizontal?: boolean | undefined;
6
+ }, import("@hanzogui/core").StaticConfigPublic>;
7
+ export type FieldsetProps = GetProps<typeof Fieldset>;
8
+ //# sourceMappingURL=Fieldset.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { HanzoguiProviderProps } from '@hanzogui/core';
2
+ export declare const HanzoguiProvider: ({ children, ...props }: HanzoguiProviderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=HanzoguiProvider.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare const Text: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").GuiTextElement, import("@hanzogui/core").RNGuiTextNonStyleProps, import("@hanzogui/core").TextStylePropsBase, {
1
+ export declare const Text: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiTextElement, import("@hanzogui/core").RNHanzoguiTextNonStyleProps, import("@hanzogui/core").TextStylePropsBase, {
2
2
  unstyled?: boolean | undefined;
3
3
  }, import("@hanzogui/core").StaticConfigPublic>;
4
4
  //# sourceMappingURL=Text.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare const VisuallyHidden: import("@hanzogui/core").GuiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
1
+ export declare const VisuallyHidden: import("@hanzogui/core").HanzoguiComponent<import("@hanzogui/core").TamaDefer, import("@hanzogui/core").HanzoguiElement, import("@hanzogui/core").RNHanzoguiViewNonStyleProps, import("@hanzogui/core").StackStyleBase, {
2
2
  visible?: boolean | undefined;
3
3
  preserveDimensions?: boolean | undefined;
4
4
  }, import("@hanzogui/core").StaticConfigPublic>;
package/web/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- // compat with hanzo-gui static compiler
1
+ // compat with hanzogui static compiler
2
2
  Object.assign(module.exports, require('../dist/cjs/index.cjs'))
@@ -1,2 +1,2 @@
1
- // compat with hanzo-gui static compiler
1
+ // compat with hanzogui static compiler
2
2
  Object.assign(module.exports, require('../dist/cjs/index.cjs'))
@@ -1,80 +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 createGui_exports = {};
24
- __export(createGui_exports, {
25
- createGui: () => createGui
26
- });
27
- module.exports = __toCommonJS(createGui_exports);
28
- var import_core = require("@hanzogui/core");
29
- const createGui = process.env.NODE_ENV !== "development" ? import_core.createGui : conf => {
30
- const sizeTokenKeys = ["$true"];
31
- const hasKeys = (expectedKeys, obj) => {
32
- return expectedKeys.every(k => typeof obj[k] !== "undefined");
33
- };
34
- const guiConfig = (0, import_core.createGui)(conf);
35
- for (const name of ["size", "space"]) {
36
- const tokenSet = guiConfig.tokensParsed[name];
37
- if (!tokenSet) {
38
- throw new Error(`Expected tokens for "${name}" in ${Object.keys(guiConfig.tokensParsed).join(", ")}`);
39
- }
40
- if (!hasKeys(sizeTokenKeys, tokenSet)) {
41
- throw new Error(`
42
- createGui() missing expected tokens.${name}:
43
-
44
- Received: ${Object.keys(tokenSet).join(", ")}
45
-
46
- Expected: ${sizeTokenKeys.join(", ")}
47
-
48
- GUI expects a "true" key that is the same value as your default size. This is so
49
- it can size things up or down from the defaults without assuming which keys you use.
50
-
51
- Please define a "true" or "$true" key on your size and space tokens like so (example):
52
-
53
- size: {
54
- sm: 2,
55
- md: 10,
56
- true: 10, // this means "md" is your default size
57
- lg: 20,
58
- }
59
-
60
- `);
61
- }
62
- }
63
- const expected = Object.keys(guiConfig.tokensParsed.size);
64
- for (const name of ["radius", "zIndex"]) {
65
- const tokenSet = guiConfig.tokensParsed[name];
66
- const received = Object.keys(tokenSet);
67
- const hasSomeOverlap = received.some(rk => expected.includes(rk));
68
- if (!hasSomeOverlap) {
69
- throw new Error(`
70
- createGui() invalid tokens.${name}:
71
-
72
- Received: ${received.join(", ")}
73
-
74
- Expected a subset of: ${expected.join(", ")}
75
-
76
- `);
77
- }
78
- }
79
- return guiConfig;
80
- };
@@ -1,89 +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 createGui_exports = {};
26
- __export(createGui_exports, {
27
- createGui: () => createGui
28
- });
29
- module.exports = __toCommonJS(createGui_exports);
30
- var import_core = require("@hanzogui/core");
31
- var createGui = process.env.NODE_ENV !== "development" ? import_core.createGui : function (conf) {
32
- var sizeTokenKeys = ["$true"];
33
- var hasKeys = function (expectedKeys, obj) {
34
- return expectedKeys.every(function (k) {
35
- return typeof obj[k] !== "undefined";
36
- });
37
- };
38
- var guiConfig = (0, import_core.createGui)(conf);
39
- for (var _i = 0, _iter = ["size", "space"]; _i < _iter.length; _i++) {
40
- var name = _iter[_i];
41
- var tokenSet = guiConfig.tokensParsed[name];
42
- if (!tokenSet) {
43
- throw new Error(`Expected tokens for "${name}" in ${Object.keys(guiConfig.tokensParsed).join(", ")}`);
44
- }
45
- if (!hasKeys(sizeTokenKeys, tokenSet)) {
46
- throw new Error(`
47
- createGui() missing expected tokens.${name}:
48
-
49
- Received: ${Object.keys(tokenSet).join(", ")}
50
-
51
- Expected: ${sizeTokenKeys.join(", ")}
52
-
53
- GUI expects a "true" key that is the same value as your default size. This is so
54
- it can size things up or down from the defaults without assuming which keys you use.
55
-
56
- Please define a "true" or "$true" key on your size and space tokens like so (example):
57
-
58
- size: {
59
- sm: 2,
60
- md: 10,
61
- true: 10, // this means "md" is your default size
62
- lg: 20,
63
- }
64
-
65
- `);
66
- }
67
- }
68
- var expected = Object.keys(guiConfig.tokensParsed.size);
69
- for (var _i1 = 0, _iter1 = ["radius", "zIndex"]; _i1 < _iter1.length; _i1++) {
70
- var name1 = _iter1[_i1];
71
- var tokenSet1 = guiConfig.tokensParsed[name1];
72
- var received = Object.keys(tokenSet1);
73
- var hasSomeOverlap = received.some(function (rk) {
74
- return expected.includes(rk);
75
- });
76
- if (!hasSomeOverlap) {
77
- throw new Error(`
78
- createGui() invalid tokens.${name1}:
79
-
80
- Received: ${received.join(", ")}
81
-
82
- Expected a subset of: ${expected.join(", ")}
83
-
84
- `);
85
- }
86
- }
87
- return guiConfig;
88
- };
89
- //# sourceMappingURL=createGui.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createGui_exports","__export","createGui","module","exports","import_core","require","process","env","NODE_ENV","conf","sizeTokenKeys","hasKeys","expectedKeys","obj","every","k","guiConfig","_i","_iter","length","name","tokenSet","tokensParsed","Error","Object","keys","join","expected","size","_i1","_iter1","name1","tokenSet1","received","hasSomeOverlap","some","rk","includes"],"sources":["../../src/createGui.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA2C,CAAAK,iBAAA;AAMpC,IAAAK,WAAM,GACXC,OAAA,CAAQ,gBAAI,CAAa;AAGnB,IAAAJ,SAAM,GAAAK,OAAA,CAAgBC,GAAC,CAAAC,QAAO,qBAAAJ,WAAA,CAAAH,SAAA,aAAAQ,IAAA;EAE9B,IAAAC,aAAiB,IACf,OAAO,CACT;EAEA,IAAAC,OAAM,YAAAA,CAAYC,YAAA,EAAAC,GAAA;IAGlB,OAAAD,YAAoB,CAAAE,KAAA,CAAQ,UAAOC,CAAY;MAC7C,OAAM,OAAAF,GAAW,CAAAE,CAAA,MAAU;IAC3B;EACE;EAAU,IAAAC,SACR,OAAAZ,WAAwB,CAAAH,SAAI,EAAQQ,IAAA;EAAO,SACzCQ,EAAA,MAAAC,KAAU,UACV,EAAU,OACd,GACFD,EAAA,GAAAC,KAAA,CAAAC,MAAA,EAAAF,EAAA;IACA,IAAIG,IAAC,GAAAF,KAAQ,CAAAD,EAAA;IACX,IAAAI,QAAU,GAAAL,SAAM,CAAAM,YAAA,CAAAF,IAAA;IAAA,KAAAC,QAAA;MACc,UAAAE,KAAA,yBAAAH,IAAA,QAAAI,MAAA,CAAAC,IAAA,CAAAT,SAAA,CAAAM,YAAA,EAAAI,IAAA;IAAA;IAEE,KAAAf,OAAA,CAAAD,aAAA,EAAAW,QAAA;MAAA,MAEhC,IAAAE,KAAA;AAAwB,sCAAAH,IAAA;AAAA;AAAA,YAAAI,MAAA,CAAAC,IAAA,CAAAJ,QAAA,EAAAK,IAAA;AAAA;AAAA,YAAAhB,aAAA,CAAAgB,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcnC;AACS;AAIF;AACA;AACE;IACA;EACA;EACA,IAAAC,QAAK,GAAAH,MAAA,CAAAC,IAAgB,CAAAT,SAAA,CAAAM,YAAA,CAAAM,IAAA;EACnB,SAAAC,GAAM,GAAI,GAAAC,MAAM,cACK,WAAAD,GAAA,GAAAC,MAErB,CAAAX,MAAS,EAAKU,GAAA,EAAK;IAAA,IAAAE,KAAA,GAAAD,MAAA,CAAAD,GAAA;IAAA,IAAAG,SAAA,GAAAhB,SAEP,CAAAM,YAAkB,CAACS,KAAA;IAAA,IAAAE,QAAA,GAAAT,MAAA,CAAAC,IAAA,CAAAO,SAAA;IAE1C,IAAAE,cAAA,GAAAD,QAAA,CAAAE,IAAA,WAAAC,EAAA;MACS,OAAAT,QAAA,CAAAU,QAAA,CAAAD,EAAA;IACF;IAEA,KAAOF,cAAA;MACT,UAAAX,KAAA","ignoreList":[]}
@@ -1,77 +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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
22
- value: true
23
- }), mod);
24
- var index_exports = {};
25
- __export(index_exports, {
26
- Anchor: () => import_Anchor.Anchor,
27
- Theme: () => import_web.Theme,
28
- createThemeBuilder: () => import_theme_builder.createThemeBuilder,
29
- createThemes: () => import_theme_builder.createThemes,
30
- getDefaultGuiConfig: () => import_config_default.getDefaultGuiConfig,
31
- shorthands: () => import_shorthands.shorthands,
32
- useTheme: () => import_web.useTheme
33
- });
34
- module.exports = __toCommonJS(index_exports);
35
- var import_setup = require("./setup.cjs");
36
- __reExport(index_exports, require("@hanzogui/core"), module.exports);
37
- __reExport(index_exports, require("@hanzogui/stacks"), module.exports);
38
- __reExport(index_exports, require("@hanzogui/shapes"), module.exports);
39
- __reExport(index_exports, require("@hanzogui/spacer"), module.exports);
40
- __reExport(index_exports, require("@hanzogui/animate-presence"), module.exports);
41
- __reExport(index_exports, require("@hanzogui/button"), module.exports);
42
- __reExport(index_exports, require("@hanzogui/popover"), module.exports);
43
- __reExport(index_exports, require("@hanzogui/radio-group"), module.exports);
44
- __reExport(index_exports, require("@hanzogui/tooltip"), module.exports);
45
- __reExport(index_exports, require("@hanzogui/switch"), module.exports);
46
- __reExport(index_exports, require("@hanzogui/checkbox"), module.exports);
47
- __reExport(index_exports, require("@hanzogui/dialog"), module.exports);
48
- __reExport(index_exports, require("@hanzogui/sheet"), module.exports);
49
- __reExport(index_exports, require("@hanzogui/adapt"), module.exports);
50
- __reExport(index_exports, require("@hanzogui/label"), module.exports);
51
- __reExport(index_exports, require("@hanzogui/input"), module.exports);
52
- __reExport(index_exports, require("@hanzogui/select"), module.exports);
53
- __reExport(index_exports, require("@hanzogui/separator"), module.exports);
54
- __reExport(index_exports, require("@hanzogui/slider"), module.exports);
55
- __reExport(index_exports, require("@hanzogui/tabs"), module.exports);
56
- __reExport(index_exports, require("@hanzogui/toggle-group"), module.exports);
57
- __reExport(index_exports, require("@hanzogui/accordion"), module.exports);
58
- __reExport(index_exports, require("@hanzogui/avatar"), module.exports);
59
- __reExport(index_exports, require("@hanzogui/card"), module.exports);
60
- __reExport(index_exports, require("@hanzogui/form"), module.exports);
61
- __reExport(index_exports, require("@hanzogui/group"), module.exports);
62
- __reExport(index_exports, require("@hanzogui/image"), module.exports);
63
- __reExport(index_exports, require("@hanzogui/list-item"), module.exports);
64
- __reExport(index_exports, require("@hanzogui/portal"), module.exports);
65
- __reExport(index_exports, require("@hanzogui/progress"), module.exports);
66
- __reExport(index_exports, require("@hanzogui/scroll-view"), module.exports);
67
- __reExport(index_exports, require("@hanzogui/spinner"), module.exports);
68
- __reExport(index_exports, require("@hanzogui/text"), module.exports);
69
- __reExport(index_exports, require("@hanzogui/toast"), module.exports);
70
- __reExport(index_exports, require("@hanzogui/visually-hidden"), module.exports);
71
- __reExport(index_exports, require("@hanzogui/focusable"), module.exports);
72
- __reExport(index_exports, require("@hanzogui/elements"), module.exports);
73
- var import_theme_builder = require("@hanzogui/theme-builder");
74
- var import_shorthands = require("@hanzogui/shorthands");
75
- var import_config_default = require("@hanzogui/config-default");
76
- var import_web = require("@hanzogui/web");
77
- var import_Anchor = require("./views/Anchor.cjs");
@@ -1,80 +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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
24
- value: true
25
- }), mod);
26
- var index_exports = {};
27
- __export(index_exports, {
28
- Anchor: () => import_Anchor.Anchor,
29
- Theme: () => import_web.Theme,
30
- createThemeBuilder: () => import_theme_builder.createThemeBuilder,
31
- createThemes: () => import_theme_builder.createThemes,
32
- getDefaultGuiConfig: () => import_config_default.getDefaultGuiConfig,
33
- shorthands: () => import_shorthands.shorthands,
34
- useTheme: () => import_web.useTheme
35
- });
36
- module.exports = __toCommonJS(index_exports);
37
- var import_setup = require("./setup.native.js");
38
- __reExport(index_exports, require("@hanzogui/core"), module.exports);
39
- __reExport(index_exports, require("@hanzogui/stacks"), module.exports);
40
- __reExport(index_exports, require("@hanzogui/shapes"), module.exports);
41
- __reExport(index_exports, require("@hanzogui/spacer"), module.exports);
42
- __reExport(index_exports, require("@hanzogui/animate-presence"), module.exports);
43
- __reExport(index_exports, require("@hanzogui/button"), module.exports);
44
- __reExport(index_exports, require("@hanzogui/popover"), module.exports);
45
- __reExport(index_exports, require("@hanzogui/radio-group"), module.exports);
46
- __reExport(index_exports, require("@hanzogui/tooltip"), module.exports);
47
- __reExport(index_exports, require("@hanzogui/switch"), module.exports);
48
- __reExport(index_exports, require("@hanzogui/checkbox"), module.exports);
49
- __reExport(index_exports, require("@hanzogui/dialog"), module.exports);
50
- __reExport(index_exports, require("@hanzogui/sheet"), module.exports);
51
- __reExport(index_exports, require("@hanzogui/adapt"), module.exports);
52
- __reExport(index_exports, require("@hanzogui/label"), module.exports);
53
- __reExport(index_exports, require("@hanzogui/input"), module.exports);
54
- __reExport(index_exports, require("@hanzogui/select"), module.exports);
55
- __reExport(index_exports, require("@hanzogui/separator"), module.exports);
56
- __reExport(index_exports, require("@hanzogui/slider"), module.exports);
57
- __reExport(index_exports, require("@hanzogui/tabs"), module.exports);
58
- __reExport(index_exports, require("@hanzogui/toggle-group"), module.exports);
59
- __reExport(index_exports, require("@hanzogui/accordion"), module.exports);
60
- __reExport(index_exports, require("@hanzogui/avatar"), module.exports);
61
- __reExport(index_exports, require("@hanzogui/card"), module.exports);
62
- __reExport(index_exports, require("@hanzogui/form"), module.exports);
63
- __reExport(index_exports, require("@hanzogui/group"), module.exports);
64
- __reExport(index_exports, require("@hanzogui/image"), module.exports);
65
- __reExport(index_exports, require("@hanzogui/list-item"), module.exports);
66
- __reExport(index_exports, require("@hanzogui/portal"), module.exports);
67
- __reExport(index_exports, require("@hanzogui/progress"), module.exports);
68
- __reExport(index_exports, require("@hanzogui/scroll-view"), module.exports);
69
- __reExport(index_exports, require("@hanzogui/spinner"), module.exports);
70
- __reExport(index_exports, require("@hanzogui/text"), module.exports);
71
- __reExport(index_exports, require("@hanzogui/toast"), module.exports);
72
- __reExport(index_exports, require("@hanzogui/visually-hidden"), module.exports);
73
- __reExport(index_exports, require("@hanzogui/focusable"), module.exports);
74
- __reExport(index_exports, require("@hanzogui/elements"), module.exports);
75
- var import_theme_builder = require("@hanzogui/theme-builder");
76
- var import_shorthands = require("@hanzogui/shorthands");
77
- var import_config_default = require("@hanzogui/config-default");
78
- var import_web = require("@hanzogui/web");
79
- var import_Anchor = require("./views/Anchor.native.js");
80
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","Anchor","import_Anchor","Theme","import_web","createThemeBuilder","import_theme_builder","createThemes","getDefaultGuiConfig","import_config_default","shorthands","import_shorthands","useTheme","module","exports","import_setup","require","__reExport"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"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","ignoreList":[]}
@@ -1,30 +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 __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
22
- value: mod,
23
- enumerable: true
24
- }) : target, mod));
25
- var import_polyfill_dev = require("@hanzogui/polyfill-dev");
26
- var React = __toESM(require("react"), 1);
27
- globalThis["React"] ||= React;
28
- if (typeof requestAnimationFrame === "undefined") {
29
- globalThis["requestAnimationFrame"] = typeof setImmediate === "undefined" ? setTimeout : setImmediate;
30
- }
@@ -1,35 +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 __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
- get: () => from[key],
13
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
- });
15
- }
16
- return to;
17
- };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
- // If the importer is in node compatibility mode or this is not an ESM
20
- // file that has been converted to a CommonJS file using a Babel-
21
- // compatible transform (i.e. "__esModule" has not been set), then set
22
- // "default" to the CommonJS "module.exports" for node compatibility.
23
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
- value: mod,
25
- enumerable: true
26
- }) : target, mod));
27
- var import_polyfill_dev = require("@hanzogui/polyfill-dev");
28
- var React = __toESM(require("react"), 1);
29
- var _globalThis;
30
- var _React;
31
- (_globalThis = globalThis)[_React = "React"] || (_globalThis[_React] = React);
32
- if (typeof requestAnimationFrame === "undefined") {
33
- globalThis["requestAnimationFrame"] = typeof setImmediate === "undefined" ? setTimeout : setImmediate;
34
- }
35
- //# sourceMappingURL=setup.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["import_polyfill_dev","require","React","__toESM","_globalThis","_React","globalThis"],"sources":["../../src/setup.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;gBAAA;AAEA,IAAAA,mBAAuB,GAAAC,OAAA;AAIvB,IAAAC,KAAA,GAAWC,OAAO,CAAAF,OAAM;AAGxB,IAAIG,WAAO;AACT,IAAAC,MAAA;AAEF,CAAAD,WAAA,GAAAE,UAAA,EAAAD,MAAA,gBAAAD,WAAA,CAAAC,MAAA,IAAAH,KAAA","ignoreList":[]}