@hanzogui/toggle-group 3.0.2 → 7.3.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.
- package/LICENSE +40 -19
- package/dist/cjs/Toggle.cjs +129 -124
- package/dist/cjs/Toggle.native.js +132 -127
- package/dist/cjs/Toggle.native.js.map +1 -1
- package/dist/cjs/ToggleGroup.cjs +218 -202
- package/dist/cjs/ToggleGroup.native.js +232 -222
- package/dist/cjs/ToggleGroup.native.js.map +1 -1
- package/dist/cjs/context.cjs +20 -16
- package/dist/cjs/context.native.js +20 -18
- package/dist/cjs/context.native.js.map +1 -1
- package/dist/cjs/index.cjs +13 -11
- package/dist/cjs/index.native.js +13 -11
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/types.cjs +7 -5
- package/dist/cjs/types.native.js +7 -5
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/Toggle.mjs +98 -95
- package/dist/esm/Toggle.mjs.map +1 -1
- package/dist/esm/Toggle.native.js +102 -99
- package/dist/esm/Toggle.native.js.map +1 -1
- package/dist/esm/ToggleGroup.mjs +182 -168
- package/dist/esm/ToggleGroup.mjs.map +1 -1
- package/dist/esm/ToggleGroup.native.js +197 -189
- package/dist/esm/ToggleGroup.native.js.map +1 -1
- package/dist/esm/context.mjs +6 -4
- package/dist/esm/context.mjs.map +1 -1
- package/dist/esm/context.native.js +6 -6
- package/dist/esm/context.native.js.map +1 -1
- package/dist/jsx/Toggle.mjs +98 -95
- package/dist/jsx/Toggle.mjs.map +1 -1
- package/dist/jsx/Toggle.native.js +132 -127
- package/dist/jsx/Toggle.native.js.map +1 -1
- package/dist/jsx/ToggleGroup.mjs +182 -168
- package/dist/jsx/ToggleGroup.mjs.map +1 -1
- package/dist/jsx/ToggleGroup.native.js +232 -222
- package/dist/jsx/ToggleGroup.native.js.map +1 -1
- package/dist/jsx/context.mjs +6 -4
- package/dist/jsx/context.mjs.map +1 -1
- package/dist/jsx/context.native.js +20 -18
- package/dist/jsx/context.native.js.map +1 -1
- package/dist/jsx/index.native.js +13 -11
- package/dist/jsx/types.native.js +7 -5
- package/package.json +22 -19
- package/src/Toggle.tsx +1 -1
- package/types/Toggle.d.ts +17 -17
- package/types/Toggle.d.ts.map +1 -0
- package/types/ToggleGroup.d.ts +40 -40
- package/types/ToggleGroup.d.ts.map +1 -0
- package/types/context.d.ts +1 -1
- package/types/context.d.ts.map +1 -0
- package/types/index.d.ts.map +1 -0
- package/types/types.d.ts +1 -1
- package/types/types.d.ts.map +1 -0
package/dist/jsx/index.native.js
CHANGED
|
@@ -5,21 +5,23 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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, {
|
|
15
16
|
get: () => from[key],
|
|
16
17
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
18
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
23
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
22
|
-
value:
|
|
24
|
+
value: true
|
|
23
25
|
}), mod);
|
|
24
26
|
var index_exports = {};
|
|
25
27
|
__export(index_exports, {
|
package/dist/jsx/types.native.js
CHANGED
|
@@ -5,14 +5,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __copyProps = (to, from, except, desc) => {
|
|
8
|
-
if (from && typeof from
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
}
|
|
12
14
|
return to;
|
|
13
15
|
};
|
|
14
16
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
15
|
-
value:
|
|
17
|
+
value: true
|
|
16
18
|
}), mod);
|
|
17
19
|
var types_exports = {};
|
|
18
20
|
module.exports = __toCommonJS(types_exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/toggle-group",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -30,31 +30,34 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "
|
|
34
|
-
"watch": "
|
|
35
|
-
"clean": "
|
|
36
|
-
"clean:build": "
|
|
33
|
+
"build": "gui-build",
|
|
34
|
+
"watch": "gui-build --watch",
|
|
35
|
+
"clean": "gui-build clean",
|
|
36
|
+
"clean:build": "gui-build clean:build"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@hanzogui/constants": "3.0
|
|
40
|
-
"@hanzogui/create-context": "3.0
|
|
41
|
-
"@hanzogui/focusable": "3.0
|
|
42
|
-
"@hanzogui/get-token": "3.0
|
|
43
|
-
"@hanzogui/helpers": "3.0
|
|
44
|
-
"@hanzogui/
|
|
45
|
-
"@hanzogui/
|
|
46
|
-
"@hanzogui/
|
|
47
|
-
"@hanzogui/
|
|
48
|
-
"@hanzogui/use-
|
|
49
|
-
"@hanzogui/
|
|
50
|
-
"@hanzogui/
|
|
39
|
+
"@hanzogui/constants": "7.3.0",
|
|
40
|
+
"@hanzogui/create-context": "7.3.0",
|
|
41
|
+
"@hanzogui/focusable": "7.3.0",
|
|
42
|
+
"@hanzogui/get-token": "7.3.0",
|
|
43
|
+
"@hanzogui/helpers": "7.3.0",
|
|
44
|
+
"@hanzogui/component-helpers": "7.3.0",
|
|
45
|
+
"@hanzogui/roving-focus": "7.3.0",
|
|
46
|
+
"@hanzogui/sizable-context": "7.3.0",
|
|
47
|
+
"@hanzogui/stacks": "7.3.0",
|
|
48
|
+
"@hanzogui/use-controllable-state": "7.3.0",
|
|
49
|
+
"@hanzogui/use-direction": "7.3.0",
|
|
50
|
+
"@hanzogui/font-size": "7.3.0",
|
|
51
|
+
"@hanzogui/web": "7.3.0"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@hanzogui/build": "3.0
|
|
54
|
+
"@hanzogui/build": "7.3.0",
|
|
54
55
|
"react": ">=19"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
58
|
"react": ">=19"
|
|
58
59
|
},
|
|
59
|
-
"module:jsx": "dist/jsx"
|
|
60
|
+
"module:jsx": "dist/jsx",
|
|
61
|
+
"license": "BSD-3-Clause",
|
|
62
|
+
"author": "Hanzo AI <dev@hanzo.ai>"
|
|
60
63
|
}
|
package/src/Toggle.tsx
CHANGED
package/types/Toggle.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { GetProps, GuiElement, ViewStyle } from '@
|
|
1
|
+
import type { GetProps, GuiElement, ViewStyle } from '@hanzogui/web';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export declare const ToggleFrame: import("@
|
|
4
|
-
readonly activeStyle?: Partial<import("@
|
|
3
|
+
export declare const ToggleFrame: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase & {
|
|
4
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
5
5
|
accept: {
|
|
6
6
|
readonly activeStyle: "style";
|
|
7
7
|
};
|
|
8
8
|
}>> | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
unstyled?: boolean | undefined;
|
|
11
|
-
size?: number | import("@
|
|
11
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
12
12
|
defaultActiveStyle?: boolean | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
accept: {
|
|
@@ -27,47 +27,47 @@ type ToggleItemExtraProps = {
|
|
|
27
27
|
activeTheme?: string | null;
|
|
28
28
|
};
|
|
29
29
|
export type ToggleProps = ToggleFrameProps & ToggleItemExtraProps;
|
|
30
|
-
export declare const Toggle: React.ForwardRefExoticComponent<Omit<import("@
|
|
31
|
-
readonly activeStyle?: Partial<import("@
|
|
30
|
+
export declare const Toggle: React.ForwardRefExoticComponent<Omit<import("@hanzogui/web").StackNonStyleProps, "unstyled" | keyof import("@hanzogui/web").StackStyleBase | "size" | "activeStyle" | "defaultActiveStyle"> & import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
31
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
32
32
|
accept: {
|
|
33
33
|
readonly activeStyle: "style";
|
|
34
34
|
};
|
|
35
35
|
}>> | undefined;
|
|
36
36
|
}> & {
|
|
37
37
|
unstyled?: boolean | undefined;
|
|
38
|
-
size?: number | import("@
|
|
38
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
39
39
|
defaultActiveStyle?: boolean | undefined;
|
|
40
|
-
} & import("@
|
|
41
|
-
readonly activeStyle?: Partial<import("@
|
|
40
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
41
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
42
42
|
accept: {
|
|
43
43
|
readonly activeStyle: "style";
|
|
44
44
|
};
|
|
45
45
|
}>> | undefined;
|
|
46
|
-
}>> & import("@
|
|
47
|
-
readonly activeStyle?: Partial<import("@
|
|
46
|
+
}>> & import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
47
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
48
48
|
accept: {
|
|
49
49
|
readonly activeStyle: "style";
|
|
50
50
|
};
|
|
51
51
|
}>> | undefined;
|
|
52
52
|
}> & {
|
|
53
53
|
unstyled?: boolean | undefined;
|
|
54
|
-
size?: number | import("@
|
|
54
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
55
55
|
defaultActiveStyle?: boolean | undefined;
|
|
56
|
-
} & import("@
|
|
57
|
-
readonly activeStyle?: Partial<import("@
|
|
56
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
57
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
58
58
|
accept: {
|
|
59
59
|
readonly activeStyle: "style";
|
|
60
60
|
};
|
|
61
61
|
}>> | undefined;
|
|
62
|
-
}>>> & import("@
|
|
63
|
-
readonly activeStyle?: Partial<import("@
|
|
62
|
+
}>>> & import("@hanzogui/web").WithMediaProps<import("@hanzogui/web").WithThemeShorthandsAndPseudos<import("@hanzogui/web").StackStyleBase & {
|
|
63
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
64
64
|
accept: {
|
|
65
65
|
readonly activeStyle: "style";
|
|
66
66
|
};
|
|
67
67
|
}>> | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
unstyled?: boolean | undefined;
|
|
70
|
-
size?: number | import("@
|
|
70
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
71
71
|
defaultActiveStyle?: boolean | undefined;
|
|
72
72
|
}>> & ToggleItemExtraProps & React.RefAttributes<GuiElement>>;
|
|
73
73
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../src/Toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;EAuEvB,CAAA;AAED,KAAK,gBAAgB,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA;AAEpD,KAAK,oBAAoB,GAAG;IAC1B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,cAAc,CAAC,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAA;IACtC,WAAW,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;IAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,oBAAoB,CAAA;AAEjE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DA8ClB,CAAA"}
|
package/types/ToggleGroup.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RovingFocusGroup } from '@
|
|
2
|
-
import type { GetProps, GuiElement } from '@
|
|
1
|
+
import { RovingFocusGroup } from '@hanzogui/roving-focus';
|
|
2
|
+
import type { GetProps, GuiElement } from '@hanzogui/web';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { ToggleFrame } from './Toggle';
|
|
5
5
|
type ToggleGroupItemProps = GetProps<typeof ToggleFrame> & {
|
|
@@ -18,73 +18,73 @@ interface ToggleGroupMultipleProps extends ToggleGroupImplMultipleProps {
|
|
|
18
18
|
}
|
|
19
19
|
type ToggleGroupProps = ToggleGroupSingleProps | ToggleGroupMultipleProps;
|
|
20
20
|
declare const ToggleGroup: React.ForwardRefExoticComponent<ScopedProps<ToggleGroupProps> & React.RefAttributes<GuiElement>> & {
|
|
21
|
-
Item: import("@
|
|
22
|
-
readonly activeStyle?: Partial<import("@
|
|
21
|
+
Item: import("@hanzogui/web").GuiComponent<Omit<import("@hanzogui/web").GetFinalProps<import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase & {
|
|
22
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
23
23
|
accept: {
|
|
24
24
|
readonly activeStyle: "style";
|
|
25
25
|
};
|
|
26
26
|
}>> | undefined;
|
|
27
27
|
}, {
|
|
28
28
|
unstyled?: boolean | undefined;
|
|
29
|
-
size?: number | import("@
|
|
29
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
30
30
|
defaultActiveStyle?: boolean | undefined;
|
|
31
|
-
}>, "theme" | "debug" | "style" | `$${string}` | `$${number}` | import("@
|
|
32
|
-
readonly activeStyle?: Partial<import("@
|
|
31
|
+
}>, "theme" | "debug" | "style" | `$${string}` | `$${number}` | import("@hanzogui/web").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "render" | "hitSlop" | "children" | "target" | "htmlFor" | "asChild" | "dangerouslySetInnerHTML" | "disabled" | "className" | "themeShallow" | "unstyled" | "id" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "role" | "disableOptimization" | "forceStyle" | "disableClassName" | "animatedBy" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | keyof import("@hanzogui/web").StackStyleBase | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "size" | "activeStyle" | "value" | "defaultActiveStyle" | keyof import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
32
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
33
33
|
accept: {
|
|
34
34
|
readonly activeStyle: "style";
|
|
35
35
|
};
|
|
36
36
|
}>> | undefined;
|
|
37
37
|
}> & {
|
|
38
38
|
unstyled?: boolean | undefined;
|
|
39
|
-
size?: number | import("@
|
|
39
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
40
40
|
defaultActiveStyle?: boolean | undefined;
|
|
41
|
-
} & import("@
|
|
42
|
-
readonly activeStyle?: Partial<import("@
|
|
41
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
42
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
43
43
|
accept: {
|
|
44
44
|
readonly activeStyle: "style";
|
|
45
45
|
};
|
|
46
46
|
}>> | undefined;
|
|
47
|
-
}>>> | "__scopeToggleGroup"> & Omit<import("@
|
|
48
|
-
readonly activeStyle?: Partial<import("@
|
|
47
|
+
}>>> | "__scopeToggleGroup"> & Omit<import("@hanzogui/web").StackNonStyleProps, "unstyled" | keyof import("@hanzogui/web").StackStyleBase | "size" | "activeStyle" | "defaultActiveStyle"> & import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
48
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
49
49
|
accept: {
|
|
50
50
|
readonly activeStyle: "style";
|
|
51
51
|
};
|
|
52
52
|
}>> | undefined;
|
|
53
53
|
}> & {
|
|
54
54
|
unstyled?: boolean | undefined;
|
|
55
|
-
size?: number | import("@
|
|
55
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
56
56
|
defaultActiveStyle?: boolean | undefined;
|
|
57
|
-
} & import("@
|
|
58
|
-
readonly activeStyle?: Partial<import("@
|
|
57
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
58
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
59
59
|
accept: {
|
|
60
60
|
readonly activeStyle: "style";
|
|
61
61
|
};
|
|
62
62
|
}>> | undefined;
|
|
63
|
-
}>> & import("@
|
|
64
|
-
readonly activeStyle?: Partial<import("@
|
|
63
|
+
}>> & import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
64
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
65
65
|
accept: {
|
|
66
66
|
readonly activeStyle: "style";
|
|
67
67
|
};
|
|
68
68
|
}>> | undefined;
|
|
69
69
|
}> & {
|
|
70
70
|
unstyled?: boolean | undefined;
|
|
71
|
-
size?: number | import("@
|
|
71
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
72
72
|
defaultActiveStyle?: boolean | undefined;
|
|
73
|
-
} & import("@
|
|
74
|
-
readonly activeStyle?: Partial<import("@
|
|
73
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
74
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
75
75
|
accept: {
|
|
76
76
|
readonly activeStyle: "style";
|
|
77
77
|
};
|
|
78
78
|
}>> | undefined;
|
|
79
|
-
}>>> & import("@
|
|
80
|
-
readonly activeStyle?: Partial<import("@
|
|
79
|
+
}>>> & import("@hanzogui/web").WithMediaProps<import("@hanzogui/web").WithThemeShorthandsAndPseudos<import("@hanzogui/web").StackStyleBase & {
|
|
80
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
81
81
|
accept: {
|
|
82
82
|
readonly activeStyle: "style";
|
|
83
83
|
};
|
|
84
84
|
}>> | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
unstyled?: boolean | undefined;
|
|
87
|
-
size?: number | import("@
|
|
87
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
88
88
|
defaultActiveStyle?: boolean | undefined;
|
|
89
89
|
}>> & {
|
|
90
90
|
value: string;
|
|
@@ -92,47 +92,47 @@ declare const ToggleGroup: React.ForwardRefExoticComponent<ScopedProps<ToggleGro
|
|
|
92
92
|
disabled?: boolean;
|
|
93
93
|
} & {
|
|
94
94
|
__scopeToggleGroup?: string;
|
|
95
|
-
}, GuiElement, import("@
|
|
96
|
-
readonly activeStyle?: Partial<import("@
|
|
95
|
+
}, GuiElement, import("@hanzogui/web").StackNonStyleProps & Omit<import("@hanzogui/web").StackNonStyleProps, "unstyled" | keyof import("@hanzogui/web").StackStyleBase | "size" | "activeStyle" | "defaultActiveStyle"> & import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
96
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
97
97
|
accept: {
|
|
98
98
|
readonly activeStyle: "style";
|
|
99
99
|
};
|
|
100
100
|
}>> | undefined;
|
|
101
101
|
}> & {
|
|
102
102
|
unstyled?: boolean | undefined;
|
|
103
|
-
size?: number | import("@
|
|
103
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
104
104
|
defaultActiveStyle?: boolean | undefined;
|
|
105
|
-
} & import("@
|
|
106
|
-
readonly activeStyle?: Partial<import("@
|
|
105
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
106
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
107
107
|
accept: {
|
|
108
108
|
readonly activeStyle: "style";
|
|
109
109
|
};
|
|
110
110
|
}>> | undefined;
|
|
111
|
-
}>> & import("@
|
|
112
|
-
readonly activeStyle?: Partial<import("@
|
|
111
|
+
}>> & import("@hanzogui/web").WithPseudoProps<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
112
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
113
113
|
accept: {
|
|
114
114
|
readonly activeStyle: "style";
|
|
115
115
|
};
|
|
116
116
|
}>> | undefined;
|
|
117
117
|
}> & {
|
|
118
118
|
unstyled?: boolean | undefined;
|
|
119
|
-
size?: number | import("@
|
|
119
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
120
120
|
defaultActiveStyle?: boolean | undefined;
|
|
121
|
-
} & import("@
|
|
122
|
-
readonly activeStyle?: Partial<import("@
|
|
121
|
+
} & import("@hanzogui/web").WithShorthands<import("@hanzogui/web").WithThemeValues<import("@hanzogui/web").StackStyleBase & {
|
|
122
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
123
123
|
accept: {
|
|
124
124
|
readonly activeStyle: "style";
|
|
125
125
|
};
|
|
126
126
|
}>> | undefined;
|
|
127
|
-
}>>> & import("@
|
|
128
|
-
readonly activeStyle?: Partial<import("@
|
|
127
|
+
}>>> & import("@hanzogui/web").WithMediaProps<import("@hanzogui/web").WithThemeShorthandsAndPseudos<import("@hanzogui/web").StackStyleBase & {
|
|
128
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
129
129
|
accept: {
|
|
130
130
|
readonly activeStyle: "style";
|
|
131
131
|
};
|
|
132
132
|
}>> | undefined;
|
|
133
133
|
}, {
|
|
134
134
|
unstyled?: boolean | undefined;
|
|
135
|
-
size?: number | import("@
|
|
135
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
136
136
|
defaultActiveStyle?: boolean | undefined;
|
|
137
137
|
}>> & {
|
|
138
138
|
value: string;
|
|
@@ -140,15 +140,15 @@ declare const ToggleGroup: React.ForwardRefExoticComponent<ScopedProps<ToggleGro
|
|
|
140
140
|
disabled?: boolean;
|
|
141
141
|
} & {
|
|
142
142
|
__scopeToggleGroup?: string;
|
|
143
|
-
}, import("@
|
|
144
|
-
readonly activeStyle?: Partial<import("@
|
|
143
|
+
}, import("@hanzogui/web").StackStyleBase & {
|
|
144
|
+
readonly activeStyle?: Partial<import("@hanzogui/web").InferStyleProps<import("@hanzogui/web").GuiComponent<import("@hanzogui/web").ViewProps, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, {}>, {
|
|
145
145
|
accept: {
|
|
146
146
|
readonly activeStyle: "style";
|
|
147
147
|
};
|
|
148
148
|
}>> | undefined;
|
|
149
149
|
}, {
|
|
150
150
|
unstyled?: boolean | undefined;
|
|
151
|
-
size?: number | import("@
|
|
151
|
+
size?: number | import("@hanzogui/web").SizeTokens | undefined;
|
|
152
152
|
defaultActiveStyle?: boolean | undefined;
|
|
153
153
|
}, {
|
|
154
154
|
accept: {
|
|
@@ -176,7 +176,7 @@ interface ToggleGroupImplMultipleProps extends ToggleGroupImplProps {
|
|
|
176
176
|
disableDeactivation?: never;
|
|
177
177
|
}
|
|
178
178
|
type RovingFocusGroupProps = React.ComponentPropsWithoutRef<typeof RovingFocusGroup>;
|
|
179
|
-
declare const ToggleGroupFrame: import("@
|
|
179
|
+
declare const ToggleGroupFrame: import("@hanzogui/web").GuiComponent<import("@hanzogui/web").TamaDefer, GuiElement, import("@hanzogui/web").StackNonStyleProps, import("@hanzogui/web").StackStyleBase, {}, import("@hanzogui/web").StaticConfigPublic>;
|
|
180
180
|
type ToggleGroupImplProps = GetProps<typeof ToggleGroupFrame> & {
|
|
181
181
|
orientation?: 'horizontal' | 'vertical';
|
|
182
182
|
rovingFocus?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleGroup.d.ts","sourceRoot":"","sources":["../src/ToggleGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAGzD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAA;AAmB9C,KAAK,oBAAoB,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,GAAG;IACzD,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AA8ED,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEzD,UAAU,sBAAuB,SAAQ,0BAA0B;IACjE,IAAI,EAAE,QAAQ,CAAA;CACf;AAED,UAAU,wBAAyB,SAAQ,4BAA4B;IACrE,IAAI,EAAE,UAAU,CAAA;CACjB;AAED,KAAK,gBAAgB,GAAG,sBAAsB,GAAG,wBAAwB,CAAA;AAEzE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA7FR,MAAM;aACR,MAAM;mBACA,OAAO;;6BA+E6B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAjF9C,MAAM;aACR,MAAM;mBACA,OAAO;;6BA+E6B,MAAM;;;;;;;;;;;;;;;;CA0CtD,CAAA;AAmBD,UAAU,0BAA2B,SAAQ,oBAAoB;IAC/D,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,0EAA0E;IAC1E,aAAa,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,mDAAmD;IACnD,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAwCD,UAAU,4BAA6B,SAAQ,oBAAoB;IACjE,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,0EAA0E;IAC1E,aAAa,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACrC,mBAAmB,CAAC,EAAE,KAAK,CAAA;CAC5B;AAuDD,KAAK,qBAAqB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEpF,QAAA,MAAM,gBAAgB,yNAEpB,CAAA;AAEF,KAAK,oBAAoB,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,GAAG;IAC9D,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,GAAG,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAA;IAClC,IAAI,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAmDD,OAAO,EAAE,WAAW,EAAE,CAAA;AACtB,YAAY,EACV,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EAChB,sBAAsB,GACvB,CAAA"}
|
package/types/context.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;EAGlB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;CAE9B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA"}
|
package/types/types.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA"}
|