@cripty2001/utils 0.0.104 → 0.0.105

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.
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = InputComponent;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const utils_1 = require("@cripty2001/utils");
6
5
  const lucide_react_1 = require("lucide-react");
7
6
  const react_1 = require("react");
7
+ const index_1 = require("../index");
8
8
  function InputComponent(props) {
9
9
  const variant = props.variant;
10
10
  const baseClassName = props.variants[variant ?? "default"];
11
11
  const [error, setError] = (0, react_1.useState)(null);
12
12
  return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row justify-between items-center gap-2", children: [props.label &&
13
13
  (0, jsx_runtime_1.jsx)("label", { className: "block mb-1 text-sm font-medium text-gray-700 dark:text-gray-300", children: props.label }), props.copy &&
14
- (0, jsx_runtime_1.jsx)(lucide_react_1.CopyIcon, { className: "w-4 h-4 cursor-pointer", onClick: () => (0, utils_1.copyToClipboard)(props.value) })] }), (0, jsx_runtime_1.jsx)("div", { className: "relative", children: props.children({
14
+ (0, jsx_runtime_1.jsx)(lucide_react_1.CopyIcon, { className: "w-4 h-4 cursor-pointer", onClick: () => (0, index_1.copyToClipboard)(props.value) })] }), (0, jsx_runtime_1.jsx)("div", { className: "relative", children: props.children({
15
15
  value: props.value,
16
16
  setValue: (v) => {
17
17
  try {
@@ -1,6 +1,6 @@
1
- import type { AppserverData } from "@cripty2001/utils/appserver/client";
2
- import type { Dispatcher } from "@cripty2001/utils/dispatcher";
3
1
  import type React from "react";
2
+ import type { AppserverData } from "../Appserver/client";
3
+ import type { Dispatcher } from "../Dispatcher";
4
4
  export type LoaderProps<T extends AppserverData> = {
5
5
  data: Dispatcher<unknown, T>;
6
6
  children: (data: T) => React.ReactNode;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = Loader;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_whispr_1 = require("@cripty2001/utils/react-whispr");
5
+ const react_whispr_1 = require("../react-whispr");
6
6
  function Loader(props) {
7
7
  const data = (0, react_whispr_1.useWhisprValue)(props.data.data);
8
8
  return ((0, jsx_runtime_1.jsx)("div", { className: "", children: (0, jsx_runtime_1.jsx)(Content, { data: data, children: (data) => props.children(data) }) }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.104",
3
+ "version": "0.0.105",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {