@hanzogui/checkbox 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 +15 -15
- package/src/Checkbox.tsx +3 -3
- package/src/CheckboxStyledContext.tsx +2 -2
- package/src/createCheckbox.tsx +9 -9
- package/src/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzogui/checkbox",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"clean:build": "hanzo-gui-build clean:build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hanzogui/checkbox-headless": "2.0.
|
|
41
|
-
"@hanzogui/compose-refs": "2.0.
|
|
42
|
-
"@hanzogui/constants": "2.0.
|
|
43
|
-
"@hanzogui/core": "2.0.
|
|
44
|
-
"@hanzogui/create-context": "2.0.
|
|
45
|
-
"@hanzogui/focusable": "2.0.
|
|
46
|
-
"@hanzogui/get-token": "2.0.
|
|
47
|
-
"@hanzogui/helpers": "2.0.
|
|
48
|
-
"@hanzogui/label": "2.0.
|
|
49
|
-
"@hanzogui/stacks": "2.0.
|
|
50
|
-
"@hanzogui/use-controllable-state": "2.0.
|
|
51
|
-
"@hanzogui/font-size": "2.0.
|
|
52
|
-
"@hanzogui/use-previous": "2.0.
|
|
40
|
+
"@hanzogui/checkbox-headless": "2.0.1",
|
|
41
|
+
"@hanzogui/compose-refs": "2.0.1",
|
|
42
|
+
"@hanzogui/constants": "2.0.1",
|
|
43
|
+
"@hanzogui/core": "2.0.1",
|
|
44
|
+
"@hanzogui/create-context": "2.0.1",
|
|
45
|
+
"@hanzogui/focusable": "2.0.1",
|
|
46
|
+
"@hanzogui/get-token": "2.0.1",
|
|
47
|
+
"@hanzogui/helpers": "2.0.1",
|
|
48
|
+
"@hanzogui/label": "2.0.1",
|
|
49
|
+
"@hanzogui/stacks": "2.0.1",
|
|
50
|
+
"@hanzogui/use-controllable-state": "2.0.1",
|
|
51
|
+
"@hanzogui/font-size": "2.0.1",
|
|
52
|
+
"@hanzogui/use-previous": "2.0.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@hanzogui/build": "2.0.
|
|
55
|
+
"@hanzogui/build": "2.0.1",
|
|
56
56
|
"react": ">=19"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
package/src/Checkbox.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// fork of radix
|
|
2
2
|
// https://github.com/radix-ui/primitives/tree/main/packages/react/checkbox/src/Checkbox.tsx
|
|
3
3
|
|
|
4
|
-
import { getVariableValue, styled } from '@
|
|
5
|
-
import { getSize } from '@
|
|
6
|
-
import { YStack } from '@
|
|
4
|
+
import { getVariableValue, styled } from '@hanzo/gui-core'
|
|
5
|
+
import { getSize } from '@hanzo/gui-get-token'
|
|
6
|
+
import { YStack } from '@hanzo/gui-stacks'
|
|
7
7
|
|
|
8
8
|
import { CheckboxStyledContext } from './CheckboxStyledContext'
|
|
9
9
|
|
|
@@ -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
|
|
|
4
4
|
export const CheckboxStyledContext = createStyledContext<{
|
|
5
5
|
size: SizeTokens
|
package/src/createCheckbox.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
CheckedState,
|
|
3
3
|
CheckboxExtraProps as HeadlessCheckboxExtraProps,
|
|
4
|
-
} from '@
|
|
5
|
-
import { isIndeterminate, useCheckbox } from '@
|
|
6
|
-
import type { GetProps, NativeValue, SizeTokens, ViewProps } from '@
|
|
4
|
+
} from '@hanzo/gui-checkbox-headless'
|
|
5
|
+
import { isIndeterminate, useCheckbox } from '@hanzo/gui-checkbox-headless'
|
|
6
|
+
import type { GetProps, NativeValue, SizeTokens, ViewProps } from '@hanzo/gui-core'
|
|
7
7
|
import {
|
|
8
8
|
getVariableValue,
|
|
9
9
|
isWeb,
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
useProps,
|
|
12
12
|
useTheme,
|
|
13
13
|
withStaticProperties,
|
|
14
|
-
} from '@
|
|
15
|
-
import { registerFocusable } from '@
|
|
16
|
-
import { getFontSize } from '@
|
|
17
|
-
import { getSize } from '@
|
|
18
|
-
import { useGetThemedIcon } from '@
|
|
19
|
-
import { useControllableState } from '@
|
|
14
|
+
} from '@hanzo/gui-core'
|
|
15
|
+
import { registerFocusable } from '@hanzo/gui-focusable'
|
|
16
|
+
import { getFontSize } from '@hanzo/gui-font-size'
|
|
17
|
+
import { getSize } from '@hanzo/gui-get-token'
|
|
18
|
+
import { useGetThemedIcon } from '@hanzo/gui-helpers'
|
|
19
|
+
import { useControllableState } from '@hanzo/gui-use-controllable-state'
|
|
20
20
|
import React, { useMemo } from 'react'
|
|
21
21
|
|
|
22
22
|
import { CheckboxFrame, CheckboxIndicatorFrame } from './Checkbox'
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { createCheckbox } from './createCheckbox'
|
|
|
4
4
|
export * from './createCheckbox'
|
|
5
5
|
export * from './Checkbox'
|
|
6
6
|
export * from './CheckboxStyledContext'
|
|
7
|
-
export type { CheckedState } from '@
|
|
7
|
+
export type { CheckedState } from '@hanzo/gui-checkbox-headless'
|
|
8
8
|
|
|
9
9
|
export const Checkbox = createCheckbox({
|
|
10
10
|
Frame: CheckboxFrame,
|