@hanzo/gui 2.0.7 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/createGui.cjs +69 -0
- package/dist/cjs/createGui.native.js +77 -0
- package/dist/cjs/createGui.native.js.map +1 -0
- package/dist/cjs/index.cjs +54 -0
- package/dist/cjs/index.native.js +57 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/setup.cjs +26 -0
- package/dist/cjs/setup.native.js +31 -0
- package/dist/cjs/setup.native.js.map +1 -0
- package/dist/cjs/viewTypes.cjs +16 -0
- package/dist/cjs/viewTypes.native.js +19 -0
- package/dist/cjs/viewTypes.native.js.map +1 -0
- package/dist/cjs/views/EnsureFlexed.cjs +36 -0
- package/dist/cjs/views/EnsureFlexed.native.js +39 -0
- package/dist/cjs/views/EnsureFlexed.native.js.map +1 -0
- package/dist/cjs/views/GuiProvider.cjs +27 -0
- package/dist/cjs/views/GuiProvider.native.js +30 -0
- package/dist/cjs/views/GuiProvider.native.js.map +1 -0
- package/dist/cjs/views/Text.cjs +38 -0
- package/dist/cjs/views/Text.native.js +41 -0
- package/dist/cjs/views/Text.native.js.map +1 -0
- package/dist/cjs/views/VisuallyHidden.cjs +58 -0
- package/dist/cjs/views/VisuallyHidden.native.js +61 -0
- package/dist/cjs/views/VisuallyHidden.native.js.map +1 -0
- package/dist/esm/createGui.mjs +46 -0
- package/dist/esm/createGui.mjs.map +1 -0
- package/dist/esm/createGui.native.js +51 -0
- package/dist/esm/createGui.native.js.map +1 -0
- package/dist/esm/index.js +37 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +37 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +37 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/setup.mjs +4 -0
- package/dist/esm/setup.mjs.map +1 -0
- package/dist/esm/setup.native.js +5 -0
- package/dist/esm/setup.native.js.map +1 -0
- package/dist/esm/viewTypes.mjs +2 -0
- package/dist/esm/viewTypes.mjs.map +1 -0
- package/dist/esm/viewTypes.native.js +2 -0
- package/dist/esm/viewTypes.native.js.map +1 -0
- package/dist/esm/views/EnsureFlexed.mjs +13 -0
- package/dist/esm/views/EnsureFlexed.mjs.map +1 -0
- package/dist/esm/views/EnsureFlexed.native.js +13 -0
- package/dist/esm/views/EnsureFlexed.native.js.map +1 -0
- package/dist/esm/views/GuiProvider.mjs +4 -0
- package/dist/esm/views/GuiProvider.mjs.map +1 -0
- package/dist/esm/views/GuiProvider.native.js +4 -0
- package/dist/esm/views/GuiProvider.native.js.map +1 -0
- package/dist/esm/views/Text.mjs +15 -0
- package/dist/esm/views/Text.mjs.map +1 -0
- package/dist/esm/views/Text.native.js +15 -0
- package/dist/esm/views/Text.native.js.map +1 -0
- package/dist/esm/views/VisuallyHidden.mjs +35 -0
- package/dist/esm/views/VisuallyHidden.mjs.map +1 -0
- package/dist/esm/views/VisuallyHidden.native.js +35 -0
- package/dist/esm/views/VisuallyHidden.native.js.map +1 -0
- package/dist/jsx/createGui.mjs +46 -0
- package/dist/jsx/createGui.mjs.map +1 -0
- package/dist/jsx/createGui.native.js +77 -0
- package/dist/jsx/createGui.native.js.map +1 -0
- package/dist/jsx/index.js +37 -0
- package/dist/jsx/index.js.map +1 -0
- package/dist/jsx/index.mjs +37 -0
- package/dist/jsx/index.mjs.map +1 -0
- package/dist/jsx/index.native.js +57 -0
- package/dist/jsx/index.native.js.map +1 -0
- package/dist/jsx/setup.mjs +4 -0
- package/dist/jsx/setup.mjs.map +1 -0
- package/dist/jsx/setup.native.js +31 -0
- package/dist/jsx/setup.native.js.map +1 -0
- package/dist/jsx/viewTypes.mjs +2 -0
- package/dist/jsx/viewTypes.mjs.map +1 -0
- package/dist/jsx/viewTypes.native.js +19 -0
- package/dist/jsx/viewTypes.native.js.map +1 -0
- package/dist/jsx/views/EnsureFlexed.mjs +13 -0
- package/dist/jsx/views/EnsureFlexed.mjs.map +1 -0
- package/dist/jsx/views/EnsureFlexed.native.js +39 -0
- package/dist/jsx/views/EnsureFlexed.native.js.map +1 -0
- package/dist/jsx/views/GuiProvider.mjs +4 -0
- package/dist/jsx/views/GuiProvider.mjs.map +1 -0
- package/dist/jsx/views/GuiProvider.native.js +30 -0
- package/dist/jsx/views/GuiProvider.native.js.map +1 -0
- package/dist/jsx/views/Text.mjs +15 -0
- package/dist/jsx/views/Text.mjs.map +1 -0
- package/dist/jsx/views/Text.native.js +41 -0
- package/dist/jsx/views/Text.native.js.map +1 -0
- package/dist/jsx/views/VisuallyHidden.mjs +35 -0
- package/dist/jsx/views/VisuallyHidden.mjs.map +1 -0
- package/dist/jsx/views/VisuallyHidden.native.js +61 -0
- package/dist/jsx/views/VisuallyHidden.native.js.map +1 -0
- package/package.json +54 -3
- package/src/index.ts +38 -157
- package/types/index.d.ts +2 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/gui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"description": "Style and UI for React (web and native) meet an optimizing compiler",
|
|
6
6
|
"repository": {
|
|
@@ -95,8 +95,59 @@
|
|
|
95
95
|
"@hanzogui/use-force-update": "workspace:*",
|
|
96
96
|
"@hanzogui/use-window-dimensions": "workspace:*",
|
|
97
97
|
"@hanzogui/font-size": "workspace:*",
|
|
98
|
-
"@hanzogui/stacks": "
|
|
99
|
-
"@hanzogui/web": "workspace:*"
|
|
98
|
+
"@hanzogui/stacks": "2.0.5",
|
|
99
|
+
"@hanzogui/web": "workspace:*",
|
|
100
|
+
"@hanzogui/spacer": "2.0.5",
|
|
101
|
+
"@hanzogui/animate-presence": "2.0.5",
|
|
102
|
+
"@hanzogui/button": "2.0.5",
|
|
103
|
+
"@hanzogui/popover": "2.0.5",
|
|
104
|
+
"@hanzogui/radio-group": "2.0.5",
|
|
105
|
+
"@hanzogui/tooltip": "2.0.5",
|
|
106
|
+
"@hanzogui/switch": "2.0.5",
|
|
107
|
+
"@hanzogui/checkbox": "2.0.5",
|
|
108
|
+
"@hanzogui/dialog": "2.0.5",
|
|
109
|
+
"@hanzogui/sheet": "2.0.5",
|
|
110
|
+
"@hanzogui/adapt": "2.0.5",
|
|
111
|
+
"@hanzogui/label": "2.0.5",
|
|
112
|
+
"@hanzogui/input": "2.0.5",
|
|
113
|
+
"@hanzogui/select": "2.0.5",
|
|
114
|
+
"@hanzogui/separator": "2.0.5",
|
|
115
|
+
"@hanzogui/slider": "2.0.5",
|
|
116
|
+
"@hanzogui/tabs": "2.0.5",
|
|
117
|
+
"@hanzogui/toggle-group": "2.0.5",
|
|
118
|
+
"@hanzogui/accordion": "2.0.5",
|
|
119
|
+
"@hanzogui/avatar": "2.0.5",
|
|
120
|
+
"@hanzogui/card": "2.0.5",
|
|
121
|
+
"@hanzogui/form": "2.0.5",
|
|
122
|
+
"@hanzogui/group": "2.0.5",
|
|
123
|
+
"@hanzogui/image": "2.0.5",
|
|
124
|
+
"@hanzogui/list-item": "2.0.5",
|
|
125
|
+
"@hanzogui/portal": "2.0.5",
|
|
126
|
+
"@hanzogui/progress": "2.0.5",
|
|
127
|
+
"@hanzogui/scroll-view": "2.0.5",
|
|
128
|
+
"@hanzogui/spinner": "2.0.5",
|
|
129
|
+
"@hanzogui/text": "2.0.5",
|
|
130
|
+
"@hanzogui/toast": "2.0.5",
|
|
131
|
+
"@hanzogui/visually-hidden": "2.0.5",
|
|
132
|
+
"@hanzogui/z-index-stack": "2.0.5",
|
|
133
|
+
"@hanzogui/focusable": "2.0.5",
|
|
134
|
+
"@hanzogui/focus-scope": "2.0.5",
|
|
135
|
+
"@hanzogui/focus-guard": "2.0.5",
|
|
136
|
+
"@hanzogui/dismiss": "2.0.5",
|
|
137
|
+
"@hanzogui/dismissable": "2.0.5",
|
|
138
|
+
"@hanzogui/collection": "2.0.5",
|
|
139
|
+
"@hanzogui/remove-scroll": "2.0.5",
|
|
140
|
+
"@hanzogui/roving-focus": "2.0.5",
|
|
141
|
+
"@hanzogui/popper": "2.0.5",
|
|
142
|
+
"@hanzogui/animate": "2.0.5",
|
|
143
|
+
"@hanzogui/context-menu": "2.0.5",
|
|
144
|
+
"@hanzogui/create-menu": "2.0.5",
|
|
145
|
+
"@hanzogui/elements": "2.0.5",
|
|
146
|
+
"@hanzogui/menu": "2.0.5",
|
|
147
|
+
"@hanzogui/checkbox-headless": "2.0.5",
|
|
148
|
+
"@hanzogui/radio-headless": "2.0.5",
|
|
149
|
+
"@hanzogui/switch-headless": "2.0.5",
|
|
150
|
+
"@hanzogui/tabs-headless": "2.0.5"
|
|
100
151
|
},
|
|
101
152
|
"devDependencies": {
|
|
102
153
|
"@hanzogui/build": "workspace:*",
|
package/src/index.ts
CHANGED
|
@@ -1,162 +1,43 @@
|
|
|
1
|
-
export * from '@hanzogui/stacks'
|
|
2
1
|
import './setup'
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
export * from '@hanzogui/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export * from '@hanzogui/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export * from '@hanzogui/
|
|
12
|
-
export * from '@hanzogui/
|
|
13
|
-
export * from '@hanzogui/
|
|
14
|
-
export * from '@hanzogui/
|
|
3
|
+
// Core styling engine
|
|
4
|
+
export * from '@hanzogui/core'
|
|
5
|
+
|
|
6
|
+
// Stack components
|
|
7
|
+
export * from '@hanzogui/stacks'
|
|
8
|
+
|
|
9
|
+
// UI Components
|
|
10
|
+
export * from '@hanzogui/spacer'
|
|
11
|
+
export * from '@hanzogui/animate-presence'
|
|
12
|
+
export * from '@hanzogui/button'
|
|
13
|
+
export * from '@hanzogui/popover'
|
|
14
|
+
export * from '@hanzogui/radio-group'
|
|
15
|
+
export * from '@hanzogui/tooltip'
|
|
16
|
+
export * from '@hanzogui/switch'
|
|
17
|
+
export * from '@hanzogui/checkbox'
|
|
15
18
|
export * from '@hanzogui/dialog'
|
|
16
|
-
export * from '@hanzogui/adapt'
|
|
17
19
|
export * from '@hanzogui/sheet'
|
|
20
|
+
export * from '@hanzogui/adapt'
|
|
21
|
+
export * from '@hanzogui/label'
|
|
22
|
+
export * from '@hanzogui/input'
|
|
23
|
+
export * from '@hanzogui/select'
|
|
24
|
+
export * from '@hanzogui/separator'
|
|
25
|
+
export * from '@hanzogui/slider'
|
|
26
|
+
export * from '@hanzogui/tabs'
|
|
27
|
+
export * from '@hanzogui/toggle-group'
|
|
28
|
+
export * from '@hanzogui/accordion'
|
|
29
|
+
export * from '@hanzogui/avatar'
|
|
30
|
+
export * from '@hanzogui/card'
|
|
31
|
+
export * from '@hanzogui/form'
|
|
32
|
+
export * from '@hanzogui/group'
|
|
33
|
+
export * from '@hanzogui/image'
|
|
34
|
+
export * from '@hanzogui/list-item'
|
|
35
|
+
export * from '@hanzogui/portal'
|
|
36
|
+
export * from '@hanzogui/progress'
|
|
37
|
+
export * from '@hanzogui/scroll-view'
|
|
38
|
+
export * from '@hanzogui/spinner'
|
|
39
|
+
export * from '@hanzogui/text'
|
|
40
|
+
export * from '@hanzogui/toast'
|
|
18
41
|
export * from '@hanzogui/visually-hidden'
|
|
19
|
-
|
|
20
|
-
export * from '
|
|
21
|
-
|
|
22
|
-
export * from './viewTypes'
|
|
23
|
-
export * from './views/GuiProvider'
|
|
24
|
-
|
|
25
|
-
export * from './views/EnsureFlexed'
|
|
26
|
-
export * from './views/Text'
|
|
27
|
-
|
|
28
|
-
// since we overlap with ViewProps and potentially others
|
|
29
|
-
// lets be explicit on what gets exported
|
|
30
|
-
export type {
|
|
31
|
-
TransitionKeys,
|
|
32
|
-
TransitionProp,
|
|
33
|
-
ColorTokens,
|
|
34
|
-
CreateGuiConfig,
|
|
35
|
-
CreateGuiProps,
|
|
36
|
-
FontColorTokens,
|
|
37
|
-
FontLanguages,
|
|
38
|
-
FontLetterSpacingTokens,
|
|
39
|
-
FontLineHeightTokens,
|
|
40
|
-
FontFamilyTokens,
|
|
41
|
-
FontSizeTokens,
|
|
42
|
-
FontStyleTokens,
|
|
43
|
-
FontTokens,
|
|
44
|
-
FontTransformTokens,
|
|
45
|
-
FontWeightTokens,
|
|
46
|
-
GenericFont,
|
|
47
|
-
GenericStackVariants,
|
|
48
|
-
GenericGuiConfig,
|
|
49
|
-
GenericTextVariants,
|
|
50
|
-
GetAnimationKeys,
|
|
51
|
-
GetProps,
|
|
52
|
-
GetRef,
|
|
53
|
-
GetThemeValueForKey,
|
|
54
|
-
GroupNames,
|
|
55
|
-
Longhands,
|
|
56
|
-
Media,
|
|
57
|
-
MediaPropKeys,
|
|
58
|
-
MediaQueries,
|
|
59
|
-
MediaQueryState,
|
|
60
|
-
RadiusTokens,
|
|
61
|
-
Shorthands,
|
|
62
|
-
SizeTokens,
|
|
63
|
-
SpaceTokens,
|
|
64
|
-
SpecificTokens,
|
|
65
|
-
StackNonStyleProps,
|
|
66
|
-
ViewProps,
|
|
67
|
-
StaticConfig,
|
|
68
|
-
Styleable,
|
|
69
|
-
GuiBaseTheme,
|
|
70
|
-
GuiBuildOptions,
|
|
71
|
-
GuiComponent,
|
|
72
|
-
GuiConfig,
|
|
73
|
-
GuiCustomConfig,
|
|
74
|
-
GuiElement,
|
|
75
|
-
GuiInternalConfig,
|
|
76
|
-
GuiProviderProps,
|
|
77
|
-
GuiSettings,
|
|
78
|
-
GuiTextElement,
|
|
79
|
-
TextNonStyleProps,
|
|
80
|
-
TextProps,
|
|
81
|
-
ThemeKeys,
|
|
82
|
-
ThemeName,
|
|
83
|
-
ThemeParsed,
|
|
84
|
-
ThemeProps,
|
|
85
|
-
Themes,
|
|
86
|
-
ThemeTokens,
|
|
87
|
-
ThemeValueFallback,
|
|
88
|
-
Token,
|
|
89
|
-
Tokens,
|
|
90
|
-
TypeOverride,
|
|
91
|
-
Variable,
|
|
92
|
-
VariantSpreadExtras,
|
|
93
|
-
VariantSpreadFunction,
|
|
94
|
-
ZIndexTokens,
|
|
95
|
-
ViewStyle,
|
|
96
|
-
TextStyle,
|
|
97
|
-
} from '@hanzogui/core'
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
ClientOnly,
|
|
101
|
-
Configuration,
|
|
102
|
-
ComponentContext,
|
|
103
|
-
GroupContext,
|
|
104
|
-
FontLanguage,
|
|
105
|
-
// components
|
|
106
|
-
Theme,
|
|
107
|
-
View,
|
|
108
|
-
createComponent,
|
|
109
|
-
createFont,
|
|
110
|
-
createShorthands,
|
|
111
|
-
createStyledContext,
|
|
112
|
-
createTokens,
|
|
113
|
-
createVariable,
|
|
114
|
-
getConfig,
|
|
115
|
-
getMedia,
|
|
116
|
-
getCSSStylesAtomic,
|
|
117
|
-
getThemes,
|
|
118
|
-
getToken,
|
|
119
|
-
getTokenValue,
|
|
120
|
-
getTokens,
|
|
121
|
-
getVariable,
|
|
122
|
-
getVariableName,
|
|
123
|
-
getVariableValue,
|
|
124
|
-
insertFont,
|
|
125
|
-
setConfig,
|
|
126
|
-
setupDev,
|
|
127
|
-
_withStableStyle,
|
|
128
|
-
// constants
|
|
129
|
-
isBrowser,
|
|
130
|
-
isChrome,
|
|
131
|
-
isClient,
|
|
132
|
-
isServer,
|
|
133
|
-
isGuiComponent,
|
|
134
|
-
isGuiElement,
|
|
135
|
-
isTouchable,
|
|
136
|
-
isVariable,
|
|
137
|
-
isWeb,
|
|
138
|
-
isWebTouchable,
|
|
139
|
-
matchMedia,
|
|
140
|
-
mediaObjectToString,
|
|
141
|
-
mediaQueryConfig,
|
|
142
|
-
mediaState,
|
|
143
|
-
setOnLayoutStrategy,
|
|
144
|
-
styled,
|
|
145
|
-
themeable,
|
|
146
|
-
// hooks
|
|
147
|
-
useClientValue,
|
|
148
|
-
useDidFinishSSR,
|
|
149
|
-
useEvent,
|
|
150
|
-
useGet,
|
|
151
|
-
useIsTouchDevice,
|
|
152
|
-
useIsomorphicLayoutEffect,
|
|
153
|
-
useMedia,
|
|
154
|
-
useProps,
|
|
155
|
-
usePropsAndStyle,
|
|
156
|
-
useStyle,
|
|
157
|
-
useConfiguration,
|
|
158
|
-
useTheme,
|
|
159
|
-
useThemeName,
|
|
160
|
-
variableToString,
|
|
161
|
-
withStaticProperties,
|
|
162
|
-
} from '@hanzogui/core'
|
|
42
|
+
export * from '@hanzogui/focusable'
|
|
43
|
+
export * from '@hanzogui/elements'
|
package/types/index.d.ts
CHANGED
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
export * from '@hanzogui/stacks';
|
|
2
1
|
import './setup';
|
|
3
|
-
export * from '@hanzogui/
|
|
4
|
-
export * from '@hanzogui/
|
|
5
|
-
export * from '@hanzogui/font-size';
|
|
6
|
-
export * from '@hanzogui/react-native-media-driver';
|
|
7
|
-
export * from '@hanzogui/helpers';
|
|
8
|
-
export * from '@hanzogui/theme';
|
|
9
|
-
export * from '@hanzogui/use-controllable-state';
|
|
10
|
-
export * from '@hanzogui/use-debounce';
|
|
11
|
-
export * from '@hanzogui/use-force-update';
|
|
12
|
-
export * from '@hanzogui/element';
|
|
13
|
-
export * from '@hanzogui/use-window-dimensions';
|
|
14
|
-
export * from '@hanzogui/dialog';
|
|
15
|
-
export * from '@hanzogui/adapt';
|
|
16
|
-
export * from '@hanzogui/sheet';
|
|
17
|
-
export * from '@hanzogui/visually-hidden';
|
|
18
|
-
export * from './createGui';
|
|
19
|
-
export * from './viewTypes';
|
|
20
|
-
export * from './views/GuiProvider';
|
|
21
|
-
export * from './views/EnsureFlexed';
|
|
22
|
-
export * from './views/Text';
|
|
23
|
-
export type { TransitionKeys, TransitionProp, ColorTokens, CreateGuiConfig, CreateGuiProps, FontColorTokens, FontLanguages, FontLetterSpacingTokens, FontLineHeightTokens, FontFamilyTokens, FontSizeTokens, FontStyleTokens, FontTokens, FontTransformTokens, FontWeightTokens, GenericFont, GenericStackVariants, GenericGuiConfig, GenericTextVariants, GetAnimationKeys, GetProps, GetRef, GetThemeValueForKey, GroupNames, Longhands, Media, MediaPropKeys, MediaQueries, MediaQueryState, RadiusTokens, Shorthands, SizeTokens, SpaceTokens, SpecificTokens, StackNonStyleProps, ViewProps, StaticConfig, Styleable, GuiBaseTheme, GuiBuildOptions, GuiComponent, GuiConfig, GuiCustomConfig, GuiElement, GuiInternalConfig, GuiProviderProps, GuiSettings, GuiTextElement, TextNonStyleProps, TextProps, ThemeKeys, ThemeName, ThemeParsed, ThemeProps, Themes, ThemeTokens, ThemeValueFallback, Token, Tokens, TypeOverride, Variable, VariantSpreadExtras, VariantSpreadFunction, ZIndexTokens, ViewStyle, TextStyle, } from '@hanzogui/core';
|
|
24
|
-
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, isGuiComponent, isGuiElement, 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';
|
|
2
|
+
export * from '@hanzogui/core';
|
|
3
|
+
export * from '@hanzogui/stacks';
|
|
25
4
|
//# sourceMappingURL=index.d.ts.map
|