@hanzo/gui 8.0.2 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css-check.mjs +76 -22
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/views/GuiProvider.cjs +9 -1
- package/dist/cjs/views/GuiProvider.native.js +14 -1
- package/dist/cjs/views/GuiProvider.native.js.map +1 -1
- package/dist/dist-WUUTYzbQ.cjs +540 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/views/GuiProvider.mjs +9 -1
- package/dist/esm/views/GuiProvider.mjs.map +1 -1
- package/dist/esm/views/GuiProvider.native.js +14 -1
- package/dist/esm/views/GuiProvider.native.js.map +1 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/views/GuiProvider.mjs +9 -1
- package/dist/jsx/views/GuiProvider.mjs.map +1 -1
- package/dist/jsx/views/GuiProvider.native.js +14 -1
- package/dist/jsx/views/GuiProvider.native.js.map +1 -1
- package/dist/native.cjs +3824 -1315
- package/dist/objectSpread2-wS8nGfQI.cjs +163 -0
- package/dist/test.cjs +3825 -1316
- package/package.json +67 -66
- package/src/index.ts +4 -1
- package/src/views/GuiProvider.tsx +40 -3
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/views/Anchor.d.ts +7 -1
- package/types/views/Anchor.d.ts.map +1 -1
- package/types/views/EnsureFlexed.d.ts +1 -1
- package/types/views/EnsureFlexed.d.ts.map +1 -1
- package/types/views/Fieldset.d.ts +5 -1
- package/types/views/Fieldset.d.ts.map +1 -1
- package/types/views/GuiProvider.d.ts +20 -2
- package/types/views/GuiProvider.d.ts.map +1 -1
- package/types/views/Text.d.ts +3 -1
- package/types/views/Text.d.ts.map +1 -1
- package/types/views/VisuallyHidden.d.ts +4 -1
- package/types/views/VisuallyHidden.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/gui",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"description": "Style and UI for React (web and native) meet an optimizing compiler",
|
|
6
6
|
"repository": {
|
|
@@ -101,73 +101,74 @@
|
|
|
101
101
|
"test": "node --test css-check.test.mjs"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
-
"@hanzogui/accordion": "8.
|
|
105
|
-
"@hanzogui/adapt": "8.
|
|
106
|
-
"@hanzogui/alert-dialog": "8.
|
|
107
|
-
"@hanzogui/animate": "8.
|
|
108
|
-
"@hanzogui/animate-presence": "8.
|
|
109
|
-
"@hanzogui/avatar": "8.
|
|
110
|
-
"@hanzogui/button": "8.
|
|
111
|
-
"@hanzogui/card": "8.
|
|
112
|
-
"@hanzogui/checkbox": "8.
|
|
113
|
-
"@hanzogui/collapsible": "8.
|
|
114
|
-
"@hanzogui/component-helpers": "8.
|
|
115
|
-
"@hanzogui/compose-refs": "8.
|
|
116
|
-
"@hanzogui/constants": "8.
|
|
117
|
-
"@hanzogui/context-menu": "8.
|
|
118
|
-
"@hanzogui/core": "8.
|
|
119
|
-
"@hanzogui/create-context": "8.
|
|
120
|
-
"@hanzogui/create-menu": "8.
|
|
121
|
-
"@hanzogui/dialog": "8.
|
|
122
|
-
"@hanzogui/element": "8.
|
|
123
|
-
"@hanzogui/elements": "8.
|
|
124
|
-
"@hanzogui/fake-react-native": "8.
|
|
125
|
-
"@hanzogui/focusable": "8.
|
|
126
|
-
"@hanzogui/font-size": "8.
|
|
127
|
-
"@hanzogui/form": "8.
|
|
128
|
-
"@hanzogui/get-button-sized": "8.
|
|
129
|
-
"@hanzogui/get-font-sized": "8.
|
|
130
|
-
"@hanzogui/get-token": "8.
|
|
131
|
-
"@hanzogui/group": "8.
|
|
132
|
-
"@hanzogui/image": "8.
|
|
133
|
-
"@hanzogui/input": "8.
|
|
134
|
-
"@hanzogui/label": "8.
|
|
135
|
-
"@hanzogui/linear-gradient": "8.
|
|
136
|
-
"@hanzogui/list-item": "8.
|
|
137
|
-
"@hanzogui/menu": "8.
|
|
138
|
-
"@hanzogui/polyfill-dev": "8.
|
|
139
|
-
"@hanzogui/popover": "8.
|
|
140
|
-
"@hanzogui/popper": "8.
|
|
141
|
-
"@hanzogui/portal": "8.
|
|
142
|
-
"@hanzogui/progress": "8.
|
|
143
|
-
"@hanzogui/radio-group": "8.
|
|
144
|
-
"@hanzogui/react-native-media-driver": "8.
|
|
145
|
-
"@hanzogui/scroll-view": "8.
|
|
146
|
-
"@hanzogui/select": "8.
|
|
147
|
-
"@hanzogui/separator": "8.
|
|
148
|
-
"@hanzogui/shapes": "8.
|
|
149
|
-
"@hanzogui/sheet": "8.
|
|
150
|
-
"@hanzogui/slider": "8.
|
|
151
|
-
"@hanzogui/spacer": "8.
|
|
152
|
-
"@hanzogui/spinner": "8.
|
|
153
|
-
"@hanzogui/stacks": "8.
|
|
154
|
-
"@hanzogui/switch": "8.
|
|
155
|
-
"@hanzogui/tabs": "8.
|
|
156
|
-
"@hanzogui/
|
|
157
|
-
"@hanzogui/
|
|
158
|
-
"@hanzogui/
|
|
159
|
-
"@hanzogui/
|
|
160
|
-
"@hanzogui/
|
|
161
|
-
"@hanzogui/
|
|
162
|
-
"@hanzogui/use-
|
|
163
|
-
"@hanzogui/use-
|
|
164
|
-
"@hanzogui/use-
|
|
165
|
-
"@hanzogui/
|
|
166
|
-
"@hanzogui/
|
|
167
|
-
"@hanzogui/
|
|
104
|
+
"@hanzogui/accordion": "8.1.1",
|
|
105
|
+
"@hanzogui/adapt": "8.1.1",
|
|
106
|
+
"@hanzogui/alert-dialog": "8.1.1",
|
|
107
|
+
"@hanzogui/animate": "8.1.1",
|
|
108
|
+
"@hanzogui/animate-presence": "8.1.1",
|
|
109
|
+
"@hanzogui/avatar": "8.1.1",
|
|
110
|
+
"@hanzogui/button": "8.1.1",
|
|
111
|
+
"@hanzogui/card": "8.1.1",
|
|
112
|
+
"@hanzogui/checkbox": "8.1.1",
|
|
113
|
+
"@hanzogui/collapsible": "8.1.1",
|
|
114
|
+
"@hanzogui/component-helpers": "8.1.1",
|
|
115
|
+
"@hanzogui/compose-refs": "8.1.1",
|
|
116
|
+
"@hanzogui/constants": "8.1.1",
|
|
117
|
+
"@hanzogui/context-menu": "8.1.1",
|
|
118
|
+
"@hanzogui/core": "8.1.1",
|
|
119
|
+
"@hanzogui/create-context": "8.1.1",
|
|
120
|
+
"@hanzogui/create-menu": "8.1.1",
|
|
121
|
+
"@hanzogui/dialog": "8.1.1",
|
|
122
|
+
"@hanzogui/element": "8.1.1",
|
|
123
|
+
"@hanzogui/elements": "8.1.1",
|
|
124
|
+
"@hanzogui/fake-react-native": "8.1.1",
|
|
125
|
+
"@hanzogui/focusable": "8.1.1",
|
|
126
|
+
"@hanzogui/font-size": "8.1.1",
|
|
127
|
+
"@hanzogui/form": "8.1.1",
|
|
128
|
+
"@hanzogui/get-button-sized": "8.1.1",
|
|
129
|
+
"@hanzogui/get-font-sized": "8.1.1",
|
|
130
|
+
"@hanzogui/get-token": "8.1.1",
|
|
131
|
+
"@hanzogui/group": "8.1.1",
|
|
132
|
+
"@hanzogui/image": "8.1.1",
|
|
133
|
+
"@hanzogui/input": "8.1.1",
|
|
134
|
+
"@hanzogui/label": "8.1.1",
|
|
135
|
+
"@hanzogui/linear-gradient": "8.1.1",
|
|
136
|
+
"@hanzogui/list-item": "8.1.1",
|
|
137
|
+
"@hanzogui/menu": "8.1.1",
|
|
138
|
+
"@hanzogui/polyfill-dev": "8.1.1",
|
|
139
|
+
"@hanzogui/popover": "8.1.1",
|
|
140
|
+
"@hanzogui/popper": "8.1.1",
|
|
141
|
+
"@hanzogui/portal": "8.1.1",
|
|
142
|
+
"@hanzogui/progress": "8.1.1",
|
|
143
|
+
"@hanzogui/radio-group": "8.1.1",
|
|
144
|
+
"@hanzogui/react-native-media-driver": "8.1.1",
|
|
145
|
+
"@hanzogui/scroll-view": "8.1.1",
|
|
146
|
+
"@hanzogui/select": "8.1.1",
|
|
147
|
+
"@hanzogui/separator": "8.1.1",
|
|
148
|
+
"@hanzogui/shapes": "8.1.1",
|
|
149
|
+
"@hanzogui/sheet": "8.1.1",
|
|
150
|
+
"@hanzogui/slider": "8.1.1",
|
|
151
|
+
"@hanzogui/spacer": "8.1.1",
|
|
152
|
+
"@hanzogui/spinner": "8.1.1",
|
|
153
|
+
"@hanzogui/stacks": "8.1.1",
|
|
154
|
+
"@hanzogui/switch": "8.1.1",
|
|
155
|
+
"@hanzogui/tabs": "8.1.1",
|
|
156
|
+
"@hanzogui/telemetry": "8.1.1",
|
|
157
|
+
"@hanzogui/text": "8.1.1",
|
|
158
|
+
"@hanzogui/theme": "8.1.1",
|
|
159
|
+
"@hanzogui/toast": "8.1.1",
|
|
160
|
+
"@hanzogui/toggle-group": "8.1.1",
|
|
161
|
+
"@hanzogui/tooltip": "8.1.1",
|
|
162
|
+
"@hanzogui/use-controllable-state": "8.1.1",
|
|
163
|
+
"@hanzogui/use-debounce": "8.1.1",
|
|
164
|
+
"@hanzogui/use-force-update": "8.1.1",
|
|
165
|
+
"@hanzogui/use-window-dimensions": "8.1.1",
|
|
166
|
+
"@hanzogui/visually-hidden": "8.1.1",
|
|
167
|
+
"@hanzogui/web": "8.1.1",
|
|
168
|
+
"@hanzogui/z-index-stack": "8.1.1"
|
|
168
169
|
},
|
|
169
170
|
"devDependencies": {
|
|
170
|
-
"@hanzogui/build": "8.
|
|
171
|
+
"@hanzogui/build": "8.1.1",
|
|
171
172
|
"react": ">=19",
|
|
172
173
|
"react-native": "0.83.2",
|
|
173
174
|
"react-native-web": "^0.21.0"
|
package/src/index.ts
CHANGED
|
@@ -112,7 +112,10 @@ export type {
|
|
|
112
112
|
GuiCustomConfig,
|
|
113
113
|
GuiElement,
|
|
114
114
|
GuiInternalConfig,
|
|
115
|
-
GuiProviderProps
|
|
115
|
+
// GuiProviderProps is NOT re-exported from core here: ./views/GuiProvider
|
|
116
|
+
// exports the one for THIS package's provider, which is the core props plus
|
|
117
|
+
// `telemetry`. Two exports of one name would silently hand callers the
|
|
118
|
+
// narrower type and make the telemetry prop look like a mistake.
|
|
116
119
|
GuiSettings,
|
|
117
120
|
GuiTextElement,
|
|
118
121
|
TextNonStyleProps,
|
|
@@ -1,14 +1,51 @@
|
|
|
1
|
-
import type { GuiProviderProps } from '@hanzogui/core'
|
|
1
|
+
import type { GuiProviderProps as CoreGuiProviderProps } from '@hanzogui/core'
|
|
2
2
|
import { GuiProvider as OGProvider } from '@hanzogui/core'
|
|
3
3
|
import { PortalProvider } from '@hanzogui/portal'
|
|
4
|
+
import { TelemetryProvider, type TelemetryConfig } from '@hanzogui/telemetry'
|
|
4
5
|
import { ZIndexStackContext } from '@hanzogui/z-index-stack'
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
/** Telemetry posture for a gui app.
|
|
8
|
+
*
|
|
9
|
+
* Omit it and you get telemetry: pageviews, unhandled errors, React render
|
|
10
|
+
* errors and interaction capture, POSTed to the one Hanzo front door
|
|
11
|
+
* (`api.hanzo.ai/v1/event`), with the product name inferred from the runtime
|
|
12
|
+
* and the publishable ingest key read from the environment. Nothing to wire,
|
|
13
|
+
* on web, on desktop and on native alike.
|
|
14
|
+
*
|
|
15
|
+
* Pass an object to shape it (`product`, `ingestKey`, `host`, `consent`,
|
|
16
|
+
* `replay`, …), or `false` to mount nothing at all. */
|
|
17
|
+
export type GuiTelemetry = boolean | TelemetryConfig
|
|
18
|
+
|
|
19
|
+
/** An intersection, not `interface … extends`: the core props are a mapped
|
|
20
|
+
* `Omit<…> &` type, and extending that loses members (`children` among them). */
|
|
21
|
+
export type GuiProviderProps = CoreGuiProviderProps & {
|
|
22
|
+
/** See {@link GuiTelemetry}. Defaults to on. */
|
|
23
|
+
telemetry?: GuiTelemetry
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const GuiProvider = ({ children, telemetry, ...props }: GuiProviderProps) => {
|
|
27
|
+
const tree = (
|
|
8
28
|
<OGProvider {...props}>
|
|
9
29
|
<ZIndexStackContext.Provider value={1}>
|
|
10
30
|
<PortalProvider shouldAddRootHost>{children}</PortalProvider>
|
|
11
31
|
</ZIndexStackContext.Provider>
|
|
12
32
|
</OGProvider>
|
|
13
33
|
)
|
|
34
|
+
|
|
35
|
+
if (telemetry === false) return tree
|
|
36
|
+
|
|
37
|
+
// OUTSIDE the gui tree, deliberately: the boundary inside TelemetryProvider is
|
|
38
|
+
// the only thing that can observe a crash in gui's own render, and it re-throws
|
|
39
|
+
// afterwards so the app's error UI still decides what the user sees.
|
|
40
|
+
//
|
|
41
|
+
// `owner="gui"` is what makes this safe to mount for EVERY app. It collects
|
|
42
|
+
// only while nothing else is collecting: an app that mounts its own
|
|
43
|
+
// <AnalyticsProvider> or <TelemetryProvider> — above this or below it, at
|
|
44
|
+
// startup or on a lazy route — takes the stream, and this one goes inert. One
|
|
45
|
+
// client, one stream, never two.
|
|
46
|
+
return (
|
|
47
|
+
<TelemetryProvider owner="gui" {...(typeof telemetry === 'object' ? telemetry : null)}>
|
|
48
|
+
{tree}
|
|
49
|
+
</TelemetryProvider>
|
|
50
|
+
)
|
|
14
51
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -59,6 +59,6 @@ export * from './views/Fieldset';
|
|
|
59
59
|
export * from '@hanzogui/input';
|
|
60
60
|
export * from '@hanzogui/spinner';
|
|
61
61
|
export * from './views/Text';
|
|
62
|
-
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,
|
|
62
|
+
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, GuiSettings, GuiTextElement, TextNonStyleProps, TextProps, ThemeKeys, ThemeName, ThemeParsed, ThemeProps, Themes, ThemeTokens, ThemeValueFallback, Token, Tokens, TypeOverride, Variable, VariantSpreadExtras, VariantSpreadFunction, ZIndexTokens, ViewStyle, TextStyle, } from '@hanzogui/core';
|
|
63
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, 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';
|
|
64
64
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAEhB,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qCAAqC,CAAA;AACnD,cAAc,oBAAoB,CAAA;AAClC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC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,EACT,SAAS,GACV,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EACL,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,YAAY,EAEZ,KAAK,EACL,IAAI,EACJ,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,EACb,SAAS,EACT,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,QAAQ,EACR,gBAAgB,EAEhB,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,WAAW,EACX,UAAU,EACV,KAAK,EACL,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,MAAM,EACN,SAAS,EAET,cAAc,EACd,eAAe,EACf,QAAQ,EACR,MAAM,EACN,gBAAgB,EAChB,yBAAyB,EACzB,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,gBAAgB,CAAA"}
|
package/types/views/Anchor.d.ts
CHANGED
|
@@ -5,5 +5,11 @@ export interface AnchorExtraProps {
|
|
|
5
5
|
rel?: string;
|
|
6
6
|
}
|
|
7
7
|
export type AnchorProps = SizableTextProps & AnchorExtraProps;
|
|
8
|
-
export declare const Anchor:
|
|
8
|
+
export declare const Anchor: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").TextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
9
|
+
unstyled?: boolean | undefined;
|
|
10
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
11
|
+
}>, keyof AnchorExtraProps> & AnchorExtraProps, import("@hanzogui/web").GuiTextElement, import("@hanzogui/web").TextNonStyleProps & AnchorExtraProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
12
|
+
unstyled?: boolean | undefined;
|
|
13
|
+
size?: import("@hanzogui/web").FontSizeTokens | undefined;
|
|
14
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
9
15
|
//# sourceMappingURL=Anchor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../src/views/Anchor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAItD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,gBAAgB,CAAA;AAQ7D,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Anchor.d.ts","sourceRoot":"","sources":["../../src/views/Anchor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAItD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,gBAAgB,CAAA;AAQ7D,eAAO,MAAM,MAAM;;;;;;8CAuBlB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const EnsureFlexed:
|
|
1
|
+
export declare const EnsureFlexed: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiTextElement, import("@hanzogui/core").RNGuiTextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {}, import("@hanzogui/web").StaticConfigPublic>;
|
|
2
2
|
//# sourceMappingURL=EnsureFlexed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnsureFlexed.d.ts","sourceRoot":"","sources":["../../src/views/EnsureFlexed.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"EnsureFlexed.d.ts","sourceRoot":"","sources":["../../src/views/EnsureFlexed.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,8PAQvB,CAAA"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { GetProps } from '@hanzogui/core';
|
|
2
|
-
export declare const Fieldset:
|
|
2
|
+
export declare const Fieldset: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
3
|
+
elevation?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
4
|
+
fullscreen?: boolean | undefined;
|
|
5
|
+
horizontal?: boolean | undefined;
|
|
6
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
3
7
|
export type FieldsetProps = GetProps<typeof Fieldset>;
|
|
4
8
|
//# sourceMappingURL=Fieldset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fieldset.d.ts","sourceRoot":"","sources":["../../src/views/Fieldset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAI9C,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Fieldset.d.ts","sourceRoot":"","sources":["../../src/views/Fieldset.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAI9C,eAAO,MAAM,QAAQ;;;;8CAenB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
import type { GuiProviderProps } from '@hanzogui/core';
|
|
2
|
-
|
|
1
|
+
import type { GuiProviderProps as CoreGuiProviderProps } from '@hanzogui/core';
|
|
2
|
+
import { type TelemetryConfig } from '@hanzogui/telemetry';
|
|
3
|
+
/** Telemetry posture for a gui app.
|
|
4
|
+
*
|
|
5
|
+
* Omit it and you get telemetry: pageviews, unhandled errors, React render
|
|
6
|
+
* errors and interaction capture, POSTed to the one Hanzo front door
|
|
7
|
+
* (`api.hanzo.ai/v1/event`), with the product name inferred from the runtime
|
|
8
|
+
* and the publishable ingest key read from the environment. Nothing to wire,
|
|
9
|
+
* on web, on desktop and on native alike.
|
|
10
|
+
*
|
|
11
|
+
* Pass an object to shape it (`product`, `ingestKey`, `host`, `consent`,
|
|
12
|
+
* `replay`, …), or `false` to mount nothing at all. */
|
|
13
|
+
export type GuiTelemetry = boolean | TelemetryConfig;
|
|
14
|
+
/** An intersection, not `interface … extends`: the core props are a mapped
|
|
15
|
+
* `Omit<…> &` type, and extending that loses members (`children` among them). */
|
|
16
|
+
export type GuiProviderProps = CoreGuiProviderProps & {
|
|
17
|
+
/** See {@link GuiTelemetry}. Defaults to on. */
|
|
18
|
+
telemetry?: GuiTelemetry;
|
|
19
|
+
};
|
|
20
|
+
export declare const GuiProvider: ({ children, telemetry, ...props }: GuiProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
21
|
//# sourceMappingURL=GuiProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GuiProvider.d.ts","sourceRoot":"","sources":["../../src/views/GuiProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"GuiProvider.d.ts","sourceRoot":"","sources":["../../src/views/GuiProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAG9E,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAG7E;;;;;;;;;wDASwD;AACxD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,eAAe,CAAA;AAEpD;kFACkF;AAClF,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,gDAAgD;IAChD,SAAS,CAAC,EAAE,YAAY,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,mCAAmC,gBAAgB,4CAyB9E,CAAA"}
|
package/types/views/Text.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export declare const Text:
|
|
1
|
+
export declare const Text: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiTextElement, import("@hanzogui/core").RNGuiTextNonStyleProps, import("@hanzogui/web").TextStylePropsBase, {
|
|
2
|
+
unstyled?: boolean | undefined;
|
|
3
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
2
4
|
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/views/Text.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/views/Text.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;8CAYf,CAAA"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export declare const VisuallyHidden:
|
|
1
|
+
export declare const VisuallyHidden: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, import("@hanzogui/web").GuiElement, import("@hanzogui/core").RNGuiViewNonStyleProps, import("@hanzogui/web").StackStyleBase, {
|
|
2
|
+
visible?: boolean | undefined;
|
|
3
|
+
preserveDimensions?: boolean | undefined;
|
|
4
|
+
}, import("@hanzogui/web").StaticConfigPublic>;
|
|
2
5
|
//# sourceMappingURL=VisuallyHidden.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["../../src/views/VisuallyHidden.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.d.ts","sourceRoot":"","sources":["../../src/views/VisuallyHidden.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;8CAgCzB,CAAA"}
|