@hanzogui/tabs 2.0.0 → 2.0.4
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/package.json +16 -16
- package/src/StyledContext.tsx +2 -2
- package/src/Tabs.tsx +3 -3
- package/src/createTabs.tsx +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/tabs",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
"clean:build": "hanzo-gui-build clean:build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hanzogui/compose-refs": "2.0.
|
|
41
|
-
"@hanzogui/constants": "2.0.
|
|
42
|
-
"@hanzogui/core": "2.0.
|
|
43
|
-
"@hanzogui/create-context": "2.0.
|
|
44
|
-
"@hanzogui/element": "2.0.
|
|
45
|
-
"@hanzogui/get-button-sized": "2.0.
|
|
46
|
-
"@hanzogui/group": "2.0.
|
|
47
|
-
"@hanzogui/helpers": "2.0.
|
|
48
|
-
"@hanzogui/roving-focus": "2.0.
|
|
49
|
-
"@hanzogui/sizable-context": "2.0.
|
|
50
|
-
"@hanzogui/stacks": "2.0.
|
|
51
|
-
"@hanzogui/use-controllable-state": "2.0.
|
|
52
|
-
"@hanzogui/use-direction": "2.0.
|
|
53
|
-
"@hanzogui/web": "2.0.
|
|
40
|
+
"@hanzogui/compose-refs": "2.0.1",
|
|
41
|
+
"@hanzogui/constants": "2.0.1",
|
|
42
|
+
"@hanzogui/core": "2.0.1",
|
|
43
|
+
"@hanzogui/create-context": "2.0.1",
|
|
44
|
+
"@hanzogui/element": "2.0.1",
|
|
45
|
+
"@hanzogui/get-button-sized": "2.0.1",
|
|
46
|
+
"@hanzogui/group": "2.0.1",
|
|
47
|
+
"@hanzogui/helpers": "2.0.1",
|
|
48
|
+
"@hanzogui/roving-focus": "2.0.1",
|
|
49
|
+
"@hanzogui/sizable-context": "2.0.1",
|
|
50
|
+
"@hanzogui/stacks": "2.0.1",
|
|
51
|
+
"@hanzogui/use-controllable-state": "2.0.1",
|
|
52
|
+
"@hanzogui/use-direction": "2.0.1",
|
|
53
|
+
"@hanzogui/web": "2.0.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@hanzogui/build": "2.0.
|
|
56
|
+
"@hanzogui/build": "2.0.1",
|
|
57
57
|
"react": ">=19",
|
|
58
58
|
"react-native": "0.83.2"
|
|
59
59
|
},
|
package/src/StyledContext.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SizeTokens } from '@
|
|
2
|
-
import { createStyledContext } from '@
|
|
1
|
+
import type { SizeTokens } from '@hanzo/gui-core'
|
|
2
|
+
import { createStyledContext } from '@hanzo/gui-core'
|
|
3
3
|
import type { TabsProps } from './createTabs'
|
|
4
4
|
|
|
5
5
|
export type TabsContextValue = {
|
package/src/Tabs.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { styled, View } from '@
|
|
2
|
-
import { getButtonSized } from '@
|
|
3
|
-
import { SizableStack, ThemeableStack } from '@
|
|
1
|
+
import { styled, View } from '@hanzo/gui-core'
|
|
2
|
+
import { getButtonSized } from '@hanzo/gui-get-button-sized'
|
|
3
|
+
import { SizableStack, ThemeableStack } from '@hanzo/gui-stacks'
|
|
4
4
|
|
|
5
5
|
const TABS_NAME = 'Tabs'
|
|
6
6
|
export const DefaultTabsFrame = styled(SizableStack, {
|
package/src/createTabs.tsx
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { composeRefs } from '@
|
|
2
|
-
import { isWeb } from '@
|
|
3
|
-
import type { GroupProps } from '@
|
|
4
|
-
import { Group, useGroupItem } from '@
|
|
5
|
-
import { composeEventHandlers, withStaticProperties } from '@
|
|
6
|
-
import { RovingFocusGroup, type RovingFocusGroupProps } from '@
|
|
7
|
-
import { SizableContext } from '@
|
|
8
|
-
import { useControllableState } from '@
|
|
9
|
-
import { useDirection } from '@
|
|
10
|
-
import type { GetProps, GuiElement, ViewProps } from '@
|
|
11
|
-
import { useEvent } from '@
|
|
1
|
+
import { composeRefs } from '@hanzo/gui-compose-refs'
|
|
2
|
+
import { isWeb } from '@hanzo/gui-constants'
|
|
3
|
+
import type { GroupProps } from '@hanzo/gui-group'
|
|
4
|
+
import { Group, useGroupItem } from '@hanzo/gui-group'
|
|
5
|
+
import { composeEventHandlers, withStaticProperties } from '@hanzo/gui-helpers'
|
|
6
|
+
import { RovingFocusGroup, type RovingFocusGroupProps } from '@hanzo/gui-roving-focus'
|
|
7
|
+
import { SizableContext } from '@hanzo/gui-sizable-context'
|
|
8
|
+
import { useControllableState } from '@hanzo/gui-use-controllable-state'
|
|
9
|
+
import { useDirection } from '@hanzo/gui-use-direction'
|
|
10
|
+
import type { GetProps, GuiElement, ViewProps } from '@hanzo/gui-web'
|
|
11
|
+
import { useEvent } from '@hanzo/gui-web'
|
|
12
12
|
import * as React from 'react'
|
|
13
13
|
import type { LayoutRectangle } from 'react-native'
|
|
14
14
|
import { TabsProvider, useTabsContext } from './StyledContext'
|