@hanzogui/checkbox 2.0.4 → 2.0.5
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/Checkbox.cjs +3 -3
- package/dist/cjs/Checkbox.native.js +3 -3
- package/dist/cjs/CheckboxStyledContext.cjs +1 -1
- package/dist/cjs/CheckboxStyledContext.native.js +1 -1
- package/dist/cjs/createCheckbox.cjs +7 -7
- package/dist/cjs/createCheckbox.native.js +7 -7
- package/dist/esm/Checkbox.mjs +3 -3
- package/dist/esm/Checkbox.native.js +3 -3
- package/dist/esm/CheckboxStyledContext.mjs +1 -1
- package/dist/esm/CheckboxStyledContext.native.js +1 -1
- package/dist/esm/createCheckbox.mjs +6 -6
- package/dist/esm/createCheckbox.native.js +7 -7
- package/dist/jsx/Checkbox.mjs +3 -3
- package/dist/jsx/Checkbox.native.js +3 -3
- package/dist/jsx/CheckboxStyledContext.mjs +1 -1
- package/dist/jsx/CheckboxStyledContext.native.js +1 -1
- package/dist/jsx/createCheckbox.mjs +6 -6
- package/dist/jsx/createCheckbox.native.js +7 -7
- package/package.json +1 -1
- 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/dist/cjs/Checkbox.cjs
CHANGED
|
@@ -24,9 +24,9 @@ __export(Checkbox_exports, {
|
|
|
24
24
|
CheckboxIndicatorFrame: () => CheckboxIndicatorFrame
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(Checkbox_exports);
|
|
27
|
-
var import_gui_core = require("@
|
|
28
|
-
import_gui_get_token = require("@
|
|
29
|
-
import_gui_stacks = require("@
|
|
27
|
+
var import_gui_core = require("@hanzogui/core"),
|
|
28
|
+
import_gui_get_token = require("@hanzogui/get-token"),
|
|
29
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
30
30
|
import_CheckboxStyledContext = require("./CheckboxStyledContext.cjs");
|
|
31
31
|
const INDICATOR_NAME = "CheckboxIndicator",
|
|
32
32
|
CheckboxIndicatorFrame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
|
|
@@ -26,9 +26,9 @@ __export(Checkbox_exports, {
|
|
|
26
26
|
CheckboxIndicatorFrame: () => CheckboxIndicatorFrame
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(Checkbox_exports);
|
|
29
|
-
var import_gui_core = require("@
|
|
30
|
-
import_gui_get_token = require("@
|
|
31
|
-
import_gui_stacks = require("@
|
|
29
|
+
var import_gui_core = require("@hanzogui/core"),
|
|
30
|
+
import_gui_get_token = require("@hanzogui/get-token"),
|
|
31
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
32
32
|
import_CheckboxStyledContext = require("./CheckboxStyledContext.native.js"),
|
|
33
33
|
INDICATOR_NAME = "CheckboxIndicator",
|
|
34
34
|
CheckboxIndicatorFrame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
|
|
@@ -23,7 +23,7 @@ __export(CheckboxStyledContext_exports, {
|
|
|
23
23
|
CheckboxStyledContext: () => CheckboxStyledContext
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(CheckboxStyledContext_exports);
|
|
26
|
-
var import_gui_core = require("@
|
|
26
|
+
var import_gui_core = require("@hanzogui/core");
|
|
27
27
|
const CheckboxStyledContext = (0, import_gui_core.createStyledContext)({
|
|
28
28
|
size: "$true",
|
|
29
29
|
scaleIcon: 1,
|
|
@@ -25,7 +25,7 @@ __export(CheckboxStyledContext_exports, {
|
|
|
25
25
|
CheckboxStyledContext: () => CheckboxStyledContext
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(CheckboxStyledContext_exports);
|
|
28
|
-
var import_gui_core = require("@
|
|
28
|
+
var import_gui_core = require("@hanzogui/core"),
|
|
29
29
|
CheckboxStyledContext = (0, import_gui_core.createStyledContext)({
|
|
30
30
|
size: "$true",
|
|
31
31
|
scaleIcon: 1,
|
|
@@ -35,13 +35,13 @@ __export(createCheckbox_exports, {
|
|
|
35
35
|
createCheckbox: () => createCheckbox
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(createCheckbox_exports);
|
|
38
|
-
var import_gui_checkbox_headless = require("@
|
|
39
|
-
import_gui_core = require("@
|
|
40
|
-
import_gui_focusable = require("@
|
|
41
|
-
import_gui_font_size = require("@
|
|
42
|
-
import_gui_get_token = require("@
|
|
43
|
-
import_gui_helpers = require("@
|
|
44
|
-
import_gui_use_controllable_state = require("@
|
|
38
|
+
var import_gui_checkbox_headless = require("@hanzogui/checkbox-headless"),
|
|
39
|
+
import_gui_core = require("@hanzogui/core"),
|
|
40
|
+
import_gui_focusable = require("@hanzogui/focusable"),
|
|
41
|
+
import_gui_font_size = require("@hanzogui/font-size"),
|
|
42
|
+
import_gui_get_token = require("@hanzogui/get-token"),
|
|
43
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
44
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
45
45
|
import_react = __toESM(require("react"), 1),
|
|
46
46
|
import_Checkbox = require("./Checkbox.cjs"),
|
|
47
47
|
import_CheckboxStyledContext = require("./CheckboxStyledContext.cjs"),
|
|
@@ -38,13 +38,13 @@ __export(createCheckbox_exports, {
|
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(createCheckbox_exports);
|
|
40
40
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
41
|
-
import_gui_checkbox_headless = require("@
|
|
42
|
-
import_gui_core = require("@
|
|
43
|
-
import_gui_focusable = require("@
|
|
44
|
-
import_gui_font_size = require("@
|
|
45
|
-
import_gui_get_token = require("@
|
|
46
|
-
import_gui_helpers = require("@
|
|
47
|
-
import_gui_use_controllable_state = require("@
|
|
41
|
+
import_gui_checkbox_headless = require("@hanzogui/checkbox-headless"),
|
|
42
|
+
import_gui_core = require("@hanzogui/core"),
|
|
43
|
+
import_gui_focusable = require("@hanzogui/focusable"),
|
|
44
|
+
import_gui_font_size = require("@hanzogui/font-size"),
|
|
45
|
+
import_gui_get_token = require("@hanzogui/get-token"),
|
|
46
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
47
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
48
48
|
import_react = __toESM(require("react"), 1),
|
|
49
49
|
import_Checkbox = require("./Checkbox.native.js"),
|
|
50
50
|
import_CheckboxStyledContext = require("./CheckboxStyledContext.native.js"),
|
package/dist/esm/Checkbox.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getVariableValue, styled } from "@
|
|
2
|
-
import { getSize } from "@
|
|
3
|
-
import { YStack } from "@
|
|
1
|
+
import { getVariableValue, styled } from "@hanzogui/core";
|
|
2
|
+
import { getSize } from "@hanzogui/get-token";
|
|
3
|
+
import { YStack } from "@hanzogui/stacks";
|
|
4
4
|
import { CheckboxStyledContext } from "./CheckboxStyledContext.mjs";
|
|
5
5
|
const INDICATOR_NAME = "CheckboxIndicator",
|
|
6
6
|
CheckboxIndicatorFrame = styled(YStack, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getVariableValue, styled } from "@
|
|
2
|
-
import { getSize } from "@
|
|
3
|
-
import { YStack } from "@
|
|
1
|
+
import { getVariableValue, styled } from "@hanzogui/core";
|
|
2
|
+
import { getSize } from "@hanzogui/get-token";
|
|
3
|
+
import { YStack } from "@hanzogui/stacks";
|
|
4
4
|
import { CheckboxStyledContext } from "./CheckboxStyledContext.native.js";
|
|
5
5
|
var INDICATOR_NAME = "CheckboxIndicator",
|
|
6
6
|
CheckboxIndicatorFrame = styled(YStack, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { isIndeterminate, useCheckbox } from "@
|
|
2
|
-
import { getVariableValue, isWeb, shouldRenderNativePlatform, useProps, useTheme, withStaticProperties } from "@
|
|
3
|
-
import { getFontSize } from "@
|
|
4
|
-
import { getSize } from "@
|
|
5
|
-
import { useGetThemedIcon } from "@
|
|
6
|
-
import { useControllableState } from "@
|
|
1
|
+
import { isIndeterminate, useCheckbox } from "@hanzogui/checkbox-headless";
|
|
2
|
+
import { getVariableValue, isWeb, shouldRenderNativePlatform, useProps, useTheme, withStaticProperties } from "@hanzogui/core";
|
|
3
|
+
import { getFontSize } from "@hanzogui/font-size";
|
|
4
|
+
import { getSize } from "@hanzogui/get-token";
|
|
5
|
+
import { useGetThemedIcon } from "@hanzogui/helpers";
|
|
6
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
7
7
|
import React, { useMemo } from "react";
|
|
8
8
|
import { CheckboxFrame, CheckboxIndicatorFrame } from "./Checkbox.mjs";
|
|
9
9
|
import { CheckboxStyledContext } from "./CheckboxStyledContext.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { isIndeterminate, useCheckbox } from "@
|
|
3
|
-
import { getVariableValue, isWeb, shouldRenderNativePlatform, useProps, useTheme, withStaticProperties } from "@
|
|
4
|
-
import { registerFocusable } from "@
|
|
5
|
-
import { getFontSize } from "@
|
|
6
|
-
import { getSize } from "@
|
|
7
|
-
import { useGetThemedIcon } from "@
|
|
8
|
-
import { useControllableState } from "@
|
|
2
|
+
import { isIndeterminate, useCheckbox } from "@hanzogui/checkbox-headless";
|
|
3
|
+
import { getVariableValue, isWeb, shouldRenderNativePlatform, useProps, useTheme, withStaticProperties } from "@hanzogui/core";
|
|
4
|
+
import { registerFocusable } from "@hanzogui/focusable";
|
|
5
|
+
import { getFontSize } from "@hanzogui/font-size";
|
|
6
|
+
import { getSize } from "@hanzogui/get-token";
|
|
7
|
+
import { useGetThemedIcon } from "@hanzogui/helpers";
|
|
8
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
9
9
|
import React, { useMemo } from "react";
|
|
10
10
|
import { CheckboxFrame, CheckboxIndicatorFrame } from "./Checkbox.native.js";
|
|
11
11
|
import { CheckboxStyledContext } from "./CheckboxStyledContext.native.js";
|
package/dist/jsx/Checkbox.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getVariableValue, styled } from "@
|
|
2
|
-
import { getSize } from "@
|
|
3
|
-
import { YStack } from "@
|
|
1
|
+
import { getVariableValue, styled } from "@hanzogui/core";
|
|
2
|
+
import { getSize } from "@hanzogui/get-token";
|
|
3
|
+
import { YStack } from "@hanzogui/stacks";
|
|
4
4
|
import { CheckboxStyledContext } from "./CheckboxStyledContext.mjs";
|
|
5
5
|
const INDICATOR_NAME = "CheckboxIndicator",
|
|
6
6
|
CheckboxIndicatorFrame = styled(YStack, {
|
|
@@ -26,9 +26,9 @@ __export(Checkbox_exports, {
|
|
|
26
26
|
CheckboxIndicatorFrame: () => CheckboxIndicatorFrame
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(Checkbox_exports);
|
|
29
|
-
var import_gui_core = require("@
|
|
30
|
-
import_gui_get_token = require("@
|
|
31
|
-
import_gui_stacks = require("@
|
|
29
|
+
var import_gui_core = require("@hanzogui/core"),
|
|
30
|
+
import_gui_get_token = require("@hanzogui/get-token"),
|
|
31
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
32
32
|
import_CheckboxStyledContext = require("./CheckboxStyledContext.native.js"),
|
|
33
33
|
INDICATOR_NAME = "CheckboxIndicator",
|
|
34
34
|
CheckboxIndicatorFrame = (0, import_gui_core.styled)(import_gui_stacks.YStack, {
|
|
@@ -25,7 +25,7 @@ __export(CheckboxStyledContext_exports, {
|
|
|
25
25
|
CheckboxStyledContext: () => CheckboxStyledContext
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(CheckboxStyledContext_exports);
|
|
28
|
-
var import_gui_core = require("@
|
|
28
|
+
var import_gui_core = require("@hanzogui/core"),
|
|
29
29
|
CheckboxStyledContext = (0, import_gui_core.createStyledContext)({
|
|
30
30
|
size: "$true",
|
|
31
31
|
scaleIcon: 1,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { isIndeterminate, useCheckbox } from "@
|
|
2
|
-
import { getVariableValue, isWeb, shouldRenderNativePlatform, useProps, useTheme, withStaticProperties } from "@
|
|
3
|
-
import { getFontSize } from "@
|
|
4
|
-
import { getSize } from "@
|
|
5
|
-
import { useGetThemedIcon } from "@
|
|
6
|
-
import { useControllableState } from "@
|
|
1
|
+
import { isIndeterminate, useCheckbox } from "@hanzogui/checkbox-headless";
|
|
2
|
+
import { getVariableValue, isWeb, shouldRenderNativePlatform, useProps, useTheme, withStaticProperties } from "@hanzogui/core";
|
|
3
|
+
import { getFontSize } from "@hanzogui/font-size";
|
|
4
|
+
import { getSize } from "@hanzogui/get-token";
|
|
5
|
+
import { useGetThemedIcon } from "@hanzogui/helpers";
|
|
6
|
+
import { useControllableState } from "@hanzogui/use-controllable-state";
|
|
7
7
|
import React, { useMemo } from "react";
|
|
8
8
|
import { CheckboxFrame, CheckboxIndicatorFrame } from "./Checkbox.mjs";
|
|
9
9
|
import { CheckboxStyledContext } from "./CheckboxStyledContext.mjs";
|
|
@@ -38,13 +38,13 @@ __export(createCheckbox_exports, {
|
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(createCheckbox_exports);
|
|
40
40
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
41
|
-
import_gui_checkbox_headless = require("@
|
|
42
|
-
import_gui_core = require("@
|
|
43
|
-
import_gui_focusable = require("@
|
|
44
|
-
import_gui_font_size = require("@
|
|
45
|
-
import_gui_get_token = require("@
|
|
46
|
-
import_gui_helpers = require("@
|
|
47
|
-
import_gui_use_controllable_state = require("@
|
|
41
|
+
import_gui_checkbox_headless = require("@hanzogui/checkbox-headless"),
|
|
42
|
+
import_gui_core = require("@hanzogui/core"),
|
|
43
|
+
import_gui_focusable = require("@hanzogui/focusable"),
|
|
44
|
+
import_gui_font_size = require("@hanzogui/font-size"),
|
|
45
|
+
import_gui_get_token = require("@hanzogui/get-token"),
|
|
46
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
47
|
+
import_gui_use_controllable_state = require("@hanzogui/use-controllable-state"),
|
|
48
48
|
import_react = __toESM(require("react"), 1),
|
|
49
49
|
import_Checkbox = require("./Checkbox.native.js"),
|
|
50
50
|
import_CheckboxStyledContext = require("./CheckboxStyledContext.native.js"),
|
package/package.json
CHANGED
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 '@hanzogui/core'
|
|
5
|
+
import { getSize } from '@hanzogui/get-token'
|
|
6
|
+
import { YStack } from '@hanzogui/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 '@hanzogui/core'
|
|
2
|
+
import { createStyledContext } from '@hanzogui/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 '@hanzogui/checkbox-headless'
|
|
5
|
+
import { isIndeterminate, useCheckbox } from '@hanzogui/checkbox-headless'
|
|
6
|
+
import type { GetProps, NativeValue, SizeTokens, ViewProps } from '@hanzogui/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 '@hanzogui/core'
|
|
15
|
+
import { registerFocusable } from '@hanzogui/focusable'
|
|
16
|
+
import { getFontSize } from '@hanzogui/font-size'
|
|
17
|
+
import { getSize } from '@hanzogui/get-token'
|
|
18
|
+
import { useGetThemedIcon } from '@hanzogui/helpers'
|
|
19
|
+
import { useControllableState } from '@hanzogui/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 '@hanzogui/checkbox-headless'
|
|
8
8
|
|
|
9
9
|
export const Checkbox = createCheckbox({
|
|
10
10
|
Frame: CheckboxFrame,
|