@hanzogui/button 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/Button.cjs +6 -6
- package/dist/cjs/Button.native.js +6 -6
- package/dist/cjs/Button.test.cjs +3 -3
- package/dist/cjs/Button.test.native.js +3 -3
- package/dist/cjs/v1/Button.cjs +8 -8
- package/dist/cjs/v1/Button.native.js +8 -8
- package/dist/cjs/v1/Button.test.cjs +3 -3
- package/dist/cjs/v1/Button.test.native.js +3 -3
- package/dist/esm/Button.mjs +6 -6
- package/dist/esm/Button.native.js +6 -6
- package/dist/esm/Button.test.mjs +3 -3
- package/dist/esm/Button.test.native.js +3 -3
- package/dist/esm/v1/Button.mjs +8 -8
- package/dist/esm/v1/Button.native.js +8 -8
- package/dist/esm/v1/Button.test.mjs +3 -3
- package/dist/esm/v1/Button.test.native.js +3 -3
- package/dist/jsx/Button.mjs +6 -6
- package/dist/jsx/Button.native.js +6 -6
- package/dist/jsx/Button.test.mjs +3 -3
- package/dist/jsx/Button.test.native.js +3 -3
- package/dist/jsx/v1/Button.mjs +8 -8
- package/dist/jsx/v1/Button.native.js +8 -8
- package/dist/jsx/v1/Button.test.mjs +3 -3
- package/dist/jsx/v1/Button.test.native.js +3 -3
- package/package.json +1 -1
- package/src/Button.test.tsx +2 -2
- package/src/Button.tsx +7 -7
- package/src/v1/Button.test.tsx +2 -2
- package/src/v1/Button.tsx +10 -10
package/dist/cjs/Button.cjs
CHANGED
|
@@ -24,12 +24,12 @@ __export(Button_exports, {
|
|
|
24
24
|
ButtonContext: () => ButtonContext
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(Button_exports);
|
|
27
|
-
var import_gui_font_size = require("@
|
|
28
|
-
import_gui_get_button_sized = require("@
|
|
29
|
-
import_gui_helpers = require("@
|
|
30
|
-
import_gui_stacks = require("@
|
|
31
|
-
import_gui_text = require("@
|
|
32
|
-
import_gui_web = require("@
|
|
27
|
+
var import_gui_font_size = require("@hanzogui/font-size"),
|
|
28
|
+
import_gui_get_button_sized = require("@hanzogui/get-button-sized"),
|
|
29
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
30
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
31
|
+
import_gui_text = require("@hanzogui/text"),
|
|
32
|
+
import_gui_web = require("@hanzogui/web"),
|
|
33
33
|
import_react = require("react"),
|
|
34
34
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
const context = (0, import_gui_web.createStyledContext)({
|
|
@@ -27,12 +27,12 @@ __export(Button_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(Button_exports);
|
|
29
29
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
30
|
-
import_gui_font_size = require("@
|
|
31
|
-
import_gui_get_button_sized = require("@
|
|
32
|
-
import_gui_helpers = require("@
|
|
33
|
-
import_gui_stacks = require("@
|
|
34
|
-
import_gui_text = require("@
|
|
35
|
-
import_gui_web = require("@
|
|
30
|
+
import_gui_font_size = require("@hanzogui/font-size"),
|
|
31
|
+
import_gui_get_button_sized = require("@hanzogui/get-button-sized"),
|
|
32
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
33
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
34
|
+
import_gui_text = require("@hanzogui/text"),
|
|
35
|
+
import_gui_web = require("@hanzogui/web"),
|
|
36
36
|
import_react = require("react"),
|
|
37
37
|
context = (0, import_gui_web.createStyledContext)({
|
|
38
38
|
size: void 0,
|
package/dist/cjs/Button.test.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var import_gui_config_default = require("@
|
|
2
|
-
import_gui_core = require("@
|
|
1
|
+
var import_gui_config_default = require("@hanzogui/config-default"),
|
|
2
|
+
import_gui_core = require("@hanzogui/core"),
|
|
3
3
|
import_vitest = require("vitest"),
|
|
4
4
|
import_Button = require("./Button.cjs"),
|
|
5
5
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
-
const conf = (0, import_gui_core.
|
|
6
|
+
const conf = (0, import_gui_core.createGui)((0, import_gui_config_default.getDefaultGuiConfig)());
|
|
7
7
|
(0, import_vitest.describe)("Button", () => {
|
|
8
8
|
(0, import_vitest.test)("123", () => {
|
|
9
9
|
(0, import_vitest.expect)(!0).toBeTruthy();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
4
|
-
import_gui_config_default = require("@
|
|
5
|
-
import_gui_core = require("@
|
|
4
|
+
import_gui_config_default = require("@hanzogui/config-default"),
|
|
5
|
+
import_gui_core = require("@hanzogui/core"),
|
|
6
6
|
import_vitest = require("vitest"),
|
|
7
7
|
import_Button = require("./Button.native.js"),
|
|
8
|
-
conf = (0, import_gui_core.
|
|
8
|
+
conf = (0, import_gui_core.createGui)((0, import_gui_config_default.getDefaultGuiConfig)());
|
|
9
9
|
(0, import_vitest.describe)("Button", function () {
|
|
10
10
|
(0, import_vitest.test)("123", function () {
|
|
11
11
|
(0, import_vitest.expect)(!0).toBeTruthy();
|
package/dist/cjs/v1/Button.cjs
CHANGED
|
@@ -28,15 +28,15 @@ __export(Button_exports, {
|
|
|
28
28
|
useButton: () => useButton
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(Button_exports);
|
|
31
|
-
var import_gui_font_size = require("@
|
|
32
|
-
import_gui_get_button_sized = require("@
|
|
33
|
-
import_gui_helpers = require("@
|
|
34
|
-
import_gui_helpers2 = require("@
|
|
35
|
-
import_gui_stacks = require("@
|
|
36
|
-
import_gui_text = require("@
|
|
37
|
-
import_gui_web = require("@
|
|
31
|
+
var import_gui_font_size = require("@hanzogui/font-size"),
|
|
32
|
+
import_gui_get_button_sized = require("@hanzogui/get-button-sized"),
|
|
33
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
34
|
+
import_gui_helpers2 = require("@hanzogui/helpers"),
|
|
35
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
36
|
+
import_gui_text = require("@hanzogui/text"),
|
|
37
|
+
import_gui_web = require("@hanzogui/web"),
|
|
38
38
|
import_react = require("react"),
|
|
39
|
-
import_gui_spacer = require("@
|
|
39
|
+
import_gui_spacer = require("@hanzogui/spacer"),
|
|
40
40
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
41
41
|
const ButtonContext = (0, import_gui_web.createStyledContext)({
|
|
42
42
|
// keeping these here means they work with styled() passing down color to text
|
|
@@ -31,15 +31,15 @@ __export(Button_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(Button_exports);
|
|
33
33
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
34
|
-
import_gui_font_size = require("@
|
|
35
|
-
import_gui_get_button_sized = require("@
|
|
36
|
-
import_gui_helpers = require("@
|
|
37
|
-
import_gui_helpers2 = require("@
|
|
38
|
-
import_gui_stacks = require("@
|
|
39
|
-
import_gui_text = require("@
|
|
40
|
-
import_gui_web = require("@
|
|
34
|
+
import_gui_font_size = require("@hanzogui/font-size"),
|
|
35
|
+
import_gui_get_button_sized = require("@hanzogui/get-button-sized"),
|
|
36
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
37
|
+
import_gui_helpers2 = require("@hanzogui/helpers"),
|
|
38
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
39
|
+
import_gui_text = require("@hanzogui/text"),
|
|
40
|
+
import_gui_web = require("@hanzogui/web"),
|
|
41
41
|
import_react = require("react"),
|
|
42
|
-
import_gui_spacer = require("@
|
|
42
|
+
import_gui_spacer = require("@hanzogui/spacer"),
|
|
43
43
|
ButtonContext = (0, import_gui_web.createStyledContext)({
|
|
44
44
|
// keeping these here means they work with styled() passing down color to text
|
|
45
45
|
color: void 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var import_gui_config_default = require("@
|
|
2
|
-
import_gui_core = require("@
|
|
1
|
+
var import_gui_config_default = require("@hanzogui/config-default"),
|
|
2
|
+
import_gui_core = require("@hanzogui/core"),
|
|
3
3
|
import_vitest = require("vitest");
|
|
4
|
-
const conf = (0, import_gui_core.
|
|
4
|
+
const conf = (0, import_gui_core.createGui)((0, import_gui_config_default.getDefaultGuiConfig)());
|
|
5
5
|
(0, import_vitest.describe)("Button", () => {
|
|
6
6
|
(0, import_vitest.test)("123", () => {
|
|
7
7
|
(0, import_vitest.expect)(!0).toBeTruthy();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var import_gui_config_default = require("@
|
|
4
|
-
import_gui_core = require("@
|
|
3
|
+
var import_gui_config_default = require("@hanzogui/config-default"),
|
|
4
|
+
import_gui_core = require("@hanzogui/core"),
|
|
5
5
|
import_vitest = require("vitest"),
|
|
6
|
-
conf = (0, import_gui_core.
|
|
6
|
+
conf = (0, import_gui_core.createGui)((0, import_gui_config_default.getDefaultGuiConfig)());
|
|
7
7
|
(0, import_vitest.describe)("Button", function () {
|
|
8
8
|
(0, import_vitest.test)("123", function () {
|
|
9
9
|
(0, import_vitest.expect)(!0).toBeTruthy();
|
package/dist/esm/Button.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFontSize } from "@
|
|
2
|
-
import { getButtonSized } from "@
|
|
3
|
-
import { getIcon, useCurrentColor } from "@
|
|
4
|
-
import { ButtonNestingContext, getElevation, themeableVariants } from "@
|
|
5
|
-
import { SizableText, wrapChildrenInText } from "@
|
|
6
|
-
import { createStyledContext, getTokenValue, styled, useProps, View, withStaticProperties } from "@
|
|
1
|
+
import { getFontSize } from "@hanzogui/font-size";
|
|
2
|
+
import { getButtonSized } from "@hanzogui/get-button-sized";
|
|
3
|
+
import { getIcon, useCurrentColor } from "@hanzogui/helpers";
|
|
4
|
+
import { ButtonNestingContext, getElevation, themeableVariants } from "@hanzogui/stacks";
|
|
5
|
+
import { SizableText, wrapChildrenInText } from "@hanzogui/text";
|
|
6
|
+
import { createStyledContext, getTokenValue, styled, useProps, View, withStaticProperties } from "@hanzogui/web";
|
|
7
7
|
import { useContext } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
const context = createStyledContext({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { getFontSize } from "@
|
|
3
|
-
import { getButtonSized } from "@
|
|
4
|
-
import { getIcon, useCurrentColor } from "@
|
|
5
|
-
import { ButtonNestingContext, getElevation, themeableVariants } from "@
|
|
6
|
-
import { SizableText, wrapChildrenInText } from "@
|
|
7
|
-
import { createStyledContext, getTokenValue, styled, useProps, View, withStaticProperties } from "@
|
|
2
|
+
import { getFontSize } from "@hanzogui/font-size";
|
|
3
|
+
import { getButtonSized } from "@hanzogui/get-button-sized";
|
|
4
|
+
import { getIcon, useCurrentColor } from "@hanzogui/helpers";
|
|
5
|
+
import { ButtonNestingContext, getElevation, themeableVariants } from "@hanzogui/stacks";
|
|
6
|
+
import { SizableText, wrapChildrenInText } from "@hanzogui/text";
|
|
7
|
+
import { createStyledContext, getTokenValue, styled, useProps, View, withStaticProperties } from "@hanzogui/web";
|
|
8
8
|
import { useContext } from "react";
|
|
9
9
|
var context = createStyledContext({
|
|
10
10
|
size: void 0,
|
package/dist/esm/Button.test.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
2
|
+
import { createGui } from "@hanzogui/core";
|
|
3
3
|
import { describe, expect, test } from "vitest";
|
|
4
4
|
import { Button } from "./Button.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
const conf =
|
|
6
|
+
const conf = createGui(getDefaultGuiConfig());
|
|
7
7
|
describe("Button", () => {
|
|
8
8
|
test("123", () => {
|
|
9
9
|
expect(!0).toBeTruthy();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
3
|
+
import { createGui } from "@hanzogui/core";
|
|
4
4
|
import { describe, expect, test } from "vitest";
|
|
5
5
|
import { Button } from "./Button.native.js";
|
|
6
|
-
var conf =
|
|
6
|
+
var conf = createGui(getDefaultGuiConfig());
|
|
7
7
|
describe("Button", function () {
|
|
8
8
|
test("123", function () {
|
|
9
9
|
expect(!0).toBeTruthy();
|
package/dist/esm/v1/Button.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { getFontSize } from "@
|
|
2
|
-
import { getButtonSized } from "@
|
|
3
|
-
import { withStaticProperties } from "@
|
|
4
|
-
import { useGetThemedIcon } from "@
|
|
5
|
-
import { ButtonNestingContext, ThemeableStack } from "@
|
|
6
|
-
import { SizableText, wrapChildrenInText } from "@
|
|
7
|
-
import { createStyledContext, getVariableValue, styled, useProps } from "@
|
|
1
|
+
import { getFontSize } from "@hanzogui/font-size";
|
|
2
|
+
import { getButtonSized } from "@hanzogui/get-button-sized";
|
|
3
|
+
import { withStaticProperties } from "@hanzogui/helpers";
|
|
4
|
+
import { useGetThemedIcon } from "@hanzogui/helpers";
|
|
5
|
+
import { ButtonNestingContext, ThemeableStack } from "@hanzogui/stacks";
|
|
6
|
+
import { SizableText, wrapChildrenInText } from "@hanzogui/text";
|
|
7
|
+
import { createStyledContext, getVariableValue, styled, useProps } from "@hanzogui/web";
|
|
8
8
|
import { useContext } from "react";
|
|
9
|
-
import { spacedChildren } from "@
|
|
9
|
+
import { spacedChildren } from "@hanzogui/spacer";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
const ButtonContext = createStyledContext({
|
|
12
12
|
// keeping these here means they work with styled() passing down color to text
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getFontSize } from "@
|
|
3
|
-
import { getButtonSized } from "@
|
|
4
|
-
import { withStaticProperties } from "@
|
|
5
|
-
import { useGetThemedIcon } from "@
|
|
6
|
-
import { ButtonNestingContext, ThemeableStack } from "@
|
|
7
|
-
import { SizableText, wrapChildrenInText } from "@
|
|
8
|
-
import { createStyledContext, getVariableValue, styled, useProps } from "@
|
|
2
|
+
import { getFontSize } from "@hanzogui/font-size";
|
|
3
|
+
import { getButtonSized } from "@hanzogui/get-button-sized";
|
|
4
|
+
import { withStaticProperties } from "@hanzogui/helpers";
|
|
5
|
+
import { useGetThemedIcon } from "@hanzogui/helpers";
|
|
6
|
+
import { ButtonNestingContext, ThemeableStack } from "@hanzogui/stacks";
|
|
7
|
+
import { SizableText, wrapChildrenInText } from "@hanzogui/text";
|
|
8
|
+
import { createStyledContext, getVariableValue, styled, useProps } from "@hanzogui/web";
|
|
9
9
|
import { useContext } from "react";
|
|
10
|
-
import { spacedChildren } from "@
|
|
10
|
+
import { spacedChildren } from "@hanzogui/spacer";
|
|
11
11
|
var ButtonContext = createStyledContext({
|
|
12
12
|
// keeping these here means they work with styled() passing down color to text
|
|
13
13
|
color: void 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
2
|
+
import { createGui } from "@hanzogui/core";
|
|
3
3
|
import { describe, expect, test } from "vitest";
|
|
4
|
-
const conf =
|
|
4
|
+
const conf = createGui(getDefaultGuiConfig());
|
|
5
5
|
describe("Button", () => {
|
|
6
6
|
test("123", () => {
|
|
7
7
|
expect(!0).toBeTruthy();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
2
|
+
import { createGui } from "@hanzogui/core";
|
|
3
3
|
import { describe, expect, test } from "vitest";
|
|
4
|
-
var conf =
|
|
4
|
+
var conf = createGui(getDefaultGuiConfig());
|
|
5
5
|
describe("Button", function () {
|
|
6
6
|
test("123", function () {
|
|
7
7
|
expect(!0).toBeTruthy();
|
package/dist/jsx/Button.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFontSize } from "@
|
|
2
|
-
import { getButtonSized } from "@
|
|
3
|
-
import { getIcon, useCurrentColor } from "@
|
|
4
|
-
import { ButtonNestingContext, getElevation, themeableVariants } from "@
|
|
5
|
-
import { SizableText, wrapChildrenInText } from "@
|
|
6
|
-
import { createStyledContext, getTokenValue, styled, useProps, View, withStaticProperties } from "@
|
|
1
|
+
import { getFontSize } from "@hanzogui/font-size";
|
|
2
|
+
import { getButtonSized } from "@hanzogui/get-button-sized";
|
|
3
|
+
import { getIcon, useCurrentColor } from "@hanzogui/helpers";
|
|
4
|
+
import { ButtonNestingContext, getElevation, themeableVariants } from "@hanzogui/stacks";
|
|
5
|
+
import { SizableText, wrapChildrenInText } from "@hanzogui/text";
|
|
6
|
+
import { createStyledContext, getTokenValue, styled, useProps, View, withStaticProperties } from "@hanzogui/web";
|
|
7
7
|
import { useContext } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
const context = createStyledContext({
|
|
@@ -27,12 +27,12 @@ __export(Button_exports, {
|
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(Button_exports);
|
|
29
29
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
30
|
-
import_gui_font_size = require("@
|
|
31
|
-
import_gui_get_button_sized = require("@
|
|
32
|
-
import_gui_helpers = require("@
|
|
33
|
-
import_gui_stacks = require("@
|
|
34
|
-
import_gui_text = require("@
|
|
35
|
-
import_gui_web = require("@
|
|
30
|
+
import_gui_font_size = require("@hanzogui/font-size"),
|
|
31
|
+
import_gui_get_button_sized = require("@hanzogui/get-button-sized"),
|
|
32
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
33
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
34
|
+
import_gui_text = require("@hanzogui/text"),
|
|
35
|
+
import_gui_web = require("@hanzogui/web"),
|
|
36
36
|
import_react = require("react"),
|
|
37
37
|
context = (0, import_gui_web.createStyledContext)({
|
|
38
38
|
size: void 0,
|
package/dist/jsx/Button.test.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
2
|
+
import { createGui } from "@hanzogui/core";
|
|
3
3
|
import { describe, expect, test } from "vitest";
|
|
4
4
|
import { Button } from "./Button.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
const conf =
|
|
6
|
+
const conf = createGui(getDefaultGuiConfig());
|
|
7
7
|
describe("Button", () => {
|
|
8
8
|
test("123", () => {
|
|
9
9
|
expect(!0).toBeTruthy();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
4
|
-
import_gui_config_default = require("@
|
|
5
|
-
import_gui_core = require("@
|
|
4
|
+
import_gui_config_default = require("@hanzogui/config-default"),
|
|
5
|
+
import_gui_core = require("@hanzogui/core"),
|
|
6
6
|
import_vitest = require("vitest"),
|
|
7
7
|
import_Button = require("./Button.native.js"),
|
|
8
|
-
conf = (0, import_gui_core.
|
|
8
|
+
conf = (0, import_gui_core.createGui)((0, import_gui_config_default.getDefaultGuiConfig)());
|
|
9
9
|
(0, import_vitest.describe)("Button", function () {
|
|
10
10
|
(0, import_vitest.test)("123", function () {
|
|
11
11
|
(0, import_vitest.expect)(!0).toBeTruthy();
|
package/dist/jsx/v1/Button.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { getFontSize } from "@
|
|
2
|
-
import { getButtonSized } from "@
|
|
3
|
-
import { withStaticProperties } from "@
|
|
4
|
-
import { useGetThemedIcon } from "@
|
|
5
|
-
import { ButtonNestingContext, ThemeableStack } from "@
|
|
6
|
-
import { SizableText, wrapChildrenInText } from "@
|
|
7
|
-
import { createStyledContext, getVariableValue, styled, useProps } from "@
|
|
1
|
+
import { getFontSize } from "@hanzogui/font-size";
|
|
2
|
+
import { getButtonSized } from "@hanzogui/get-button-sized";
|
|
3
|
+
import { withStaticProperties } from "@hanzogui/helpers";
|
|
4
|
+
import { useGetThemedIcon } from "@hanzogui/helpers";
|
|
5
|
+
import { ButtonNestingContext, ThemeableStack } from "@hanzogui/stacks";
|
|
6
|
+
import { SizableText, wrapChildrenInText } from "@hanzogui/text";
|
|
7
|
+
import { createStyledContext, getVariableValue, styled, useProps } from "@hanzogui/web";
|
|
8
8
|
import { useContext } from "react";
|
|
9
|
-
import { spacedChildren } from "@
|
|
9
|
+
import { spacedChildren } from "@hanzogui/spacer";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
const ButtonContext = createStyledContext({
|
|
12
12
|
// keeping these here means they work with styled() passing down color to text
|
|
@@ -31,15 +31,15 @@ __export(Button_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(Button_exports);
|
|
33
33
|
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
34
|
-
import_gui_font_size = require("@
|
|
35
|
-
import_gui_get_button_sized = require("@
|
|
36
|
-
import_gui_helpers = require("@
|
|
37
|
-
import_gui_helpers2 = require("@
|
|
38
|
-
import_gui_stacks = require("@
|
|
39
|
-
import_gui_text = require("@
|
|
40
|
-
import_gui_web = require("@
|
|
34
|
+
import_gui_font_size = require("@hanzogui/font-size"),
|
|
35
|
+
import_gui_get_button_sized = require("@hanzogui/get-button-sized"),
|
|
36
|
+
import_gui_helpers = require("@hanzogui/helpers"),
|
|
37
|
+
import_gui_helpers2 = require("@hanzogui/helpers"),
|
|
38
|
+
import_gui_stacks = require("@hanzogui/stacks"),
|
|
39
|
+
import_gui_text = require("@hanzogui/text"),
|
|
40
|
+
import_gui_web = require("@hanzogui/web"),
|
|
41
41
|
import_react = require("react"),
|
|
42
|
-
import_gui_spacer = require("@
|
|
42
|
+
import_gui_spacer = require("@hanzogui/spacer"),
|
|
43
43
|
ButtonContext = (0, import_gui_web.createStyledContext)({
|
|
44
44
|
// keeping these here means they work with styled() passing down color to text
|
|
45
45
|
color: void 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getDefaultGuiConfig } from "@hanzogui/config-default";
|
|
2
|
+
import { createGui } from "@hanzogui/core";
|
|
3
3
|
import { describe, expect, test } from "vitest";
|
|
4
|
-
const conf =
|
|
4
|
+
const conf = createGui(getDefaultGuiConfig());
|
|
5
5
|
describe("Button", () => {
|
|
6
6
|
test("123", () => {
|
|
7
7
|
expect(!0).toBeTruthy();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var import_gui_config_default = require("@
|
|
4
|
-
import_gui_core = require("@
|
|
3
|
+
var import_gui_config_default = require("@hanzogui/config-default"),
|
|
4
|
+
import_gui_core = require("@hanzogui/core"),
|
|
5
5
|
import_vitest = require("vitest"),
|
|
6
|
-
conf = (0, import_gui_core.
|
|
6
|
+
conf = (0, import_gui_core.createGui)((0, import_gui_config_default.getDefaultGuiConfig)());
|
|
7
7
|
(0, import_vitest.describe)("Button", function () {
|
|
8
8
|
(0, import_vitest.test)("123", function () {
|
|
9
9
|
(0, import_vitest.expect)(!0).toBeTruthy();
|
package/package.json
CHANGED
package/src/Button.test.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getDefaultGuiConfig } from '@
|
|
2
|
-
import { createGui } from '@
|
|
1
|
+
import { getDefaultGuiConfig } from '@hanzogui/config-default'
|
|
2
|
+
import { createGui } from '@hanzogui/core'
|
|
3
3
|
import { describe, expect, test } from 'vitest'
|
|
4
4
|
import { Button } from './Button'
|
|
5
5
|
|
package/src/Button.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getFontSize } from '@
|
|
2
|
-
import { getButtonSized } from '@
|
|
3
|
-
import { getIcon, useCurrentColor } from '@
|
|
4
|
-
import { ButtonNestingContext, getElevation, themeableVariants } from '@
|
|
5
|
-
import { SizableText, wrapChildrenInText } from '@
|
|
6
|
-
import type { ColorTokens, GetProps, SizeTokens, Token } from '@
|
|
1
|
+
import { getFontSize } from '@hanzogui/font-size'
|
|
2
|
+
import { getButtonSized } from '@hanzogui/get-button-sized'
|
|
3
|
+
import { getIcon, useCurrentColor } from '@hanzogui/helpers'
|
|
4
|
+
import { ButtonNestingContext, getElevation, themeableVariants } from '@hanzogui/stacks'
|
|
5
|
+
import { SizableText, wrapChildrenInText } from '@hanzogui/text'
|
|
6
|
+
import type { ColorTokens, GetProps, SizeTokens, Token } from '@hanzogui/web'
|
|
7
7
|
import {
|
|
8
8
|
createStyledContext,
|
|
9
9
|
getTokenValue,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useProps,
|
|
12
12
|
View,
|
|
13
13
|
withStaticProperties,
|
|
14
|
-
} from '@
|
|
14
|
+
} from '@hanzogui/web'
|
|
15
15
|
import type { FunctionComponent, JSX } from 'react'
|
|
16
16
|
import { useContext } from 'react'
|
|
17
17
|
|
package/src/v1/Button.test.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getDefaultGuiConfig } from '@
|
|
2
|
-
import { createGui } from '@
|
|
1
|
+
import { getDefaultGuiConfig } from '@hanzogui/config-default'
|
|
2
|
+
import { createGui } from '@hanzogui/core'
|
|
3
3
|
import { describe, expect, test } from 'vitest'
|
|
4
4
|
|
|
5
5
|
const conf = createGui(getDefaultGuiConfig())
|
package/src/v1/Button.tsx
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { getFontSize } from '@
|
|
2
|
-
import { getButtonSized } from '@
|
|
3
|
-
import { withStaticProperties } from '@
|
|
4
|
-
import { useGetThemedIcon } from '@
|
|
5
|
-
import { ButtonNestingContext, ThemeableStack } from '@
|
|
6
|
-
import type { TextContextStyles, TextParentStyles } from '@
|
|
7
|
-
import { SizableText, wrapChildrenInText } from '@
|
|
8
|
-
import type { FontSizeTokens, GetProps, SizeTokens, ThemeableProps } from '@
|
|
9
|
-
import { createStyledContext, getVariableValue, styled, useProps } from '@
|
|
1
|
+
import { getFontSize } from '@hanzogui/font-size'
|
|
2
|
+
import { getButtonSized } from '@hanzogui/get-button-sized'
|
|
3
|
+
import { withStaticProperties } from '@hanzogui/helpers'
|
|
4
|
+
import { useGetThemedIcon } from '@hanzogui/helpers'
|
|
5
|
+
import { ButtonNestingContext, ThemeableStack } from '@hanzogui/stacks'
|
|
6
|
+
import type { TextContextStyles, TextParentStyles } from '@hanzogui/text'
|
|
7
|
+
import { SizableText, wrapChildrenInText } from '@hanzogui/text'
|
|
8
|
+
import type { FontSizeTokens, GetProps, SizeTokens, ThemeableProps } from '@hanzogui/web'
|
|
9
|
+
import { createStyledContext, getVariableValue, styled, useProps } from '@hanzogui/web'
|
|
10
10
|
import type { FunctionComponent, JSX } from 'react'
|
|
11
11
|
import { useContext } from 'react'
|
|
12
|
-
import { spacedChildren } from '@
|
|
12
|
+
import { spacedChildren } from '@hanzogui/spacer'
|
|
13
13
|
|
|
14
14
|
type ButtonVariant = 'outlined'
|
|
15
15
|
|