@gohanfromgoku/ui-kit 0.1.0 → 0.1.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "preact/jsx-runtime";
|
|
2
2
|
import { memo, forwardRef } from "preact/compat";
|
|
3
|
-
import checkProps from "../../helpers/
|
|
3
|
+
import { checkProps } from "../../helpers/index";
|
|
4
4
|
const defaultProps = {
|
|
5
5
|
onClick: () => { },
|
|
6
6
|
disabled: false,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "preact/jsx-runtime";
|
|
2
2
|
import { memo } from "preact/compat";
|
|
3
|
-
import checkProps from "../../helpers/
|
|
3
|
+
import { checkProps } from "../../helpers/index";
|
|
4
4
|
import { translate } from "../../translations/index";
|
|
5
5
|
const defaultProps = {
|
|
6
6
|
onChange: () => { },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "preact/jsx-runtime";
|
|
2
|
-
import checkProps from "../../helpers/
|
|
2
|
+
import { checkProps } from "../../helpers/index";
|
|
3
3
|
import { translate } from "../../translations/index";
|
|
4
4
|
import { forwardRef, memo, useMemo } from "preact/compat";
|
|
5
5
|
const defaultProps = {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "preact/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef } from "preact/hooks";
|
|
3
3
|
import { memo } from "preact/compat";
|
|
4
|
-
import checkProps from "../../helpers/
|
|
5
|
-
import toast from "../../helpers/toast";
|
|
4
|
+
import { checkProps, toast } from "../../helpers/index";
|
|
6
5
|
import { translate } from "../../translations/index";
|
|
7
6
|
const isTouchDevice = () => typeof window !== "undefined" && "ontouchstart" in window;
|
|
8
7
|
const styles = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { signal, computed } from "@preact/signals";
|
|
2
|
-
import objectPath from "../helpers/
|
|
2
|
+
import { objectPath } from "../helpers/index";
|
|
3
3
|
export const languages = signal({});
|
|
4
4
|
export const language = signal(window.localStorage.getItem("language") || "en");
|
|
5
5
|
const translations = computed(() => objectPath(languages.value[language.value]));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gohanfromgoku/ui-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "ui-kit is a TypeScript based UI component library designed for building modern web applications with ease and efficiency.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"scripts": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@preact/signals": "^2.5.1",
|
|
34
|
-
"preact": "^10.28.
|
|
34
|
+
"preact": "^10.28.1",
|
|
35
35
|
"tsc-alias": "^1.8.16",
|
|
36
36
|
"typescript": "^5.9.3"
|
|
37
37
|
},
|