stone-kit 0.0.72 → 0.0.73

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,48 +1,57 @@
1
- import { jsxs as q, jsx as n } from "react/jsx-runtime";
2
- import { c as W } from "../../../index-DIxK0V-G.js";
3
- const d = "_inputWrapper_qoqna_10", h = "_inputWrapperPost_qoqna_34", P = "_inputWrapperPre_qoqna_35", m = "_light_qoqna_47", f = "_dark_qoqna_80", g = "_inputWrapperError_qoqna_116", r = {
1
+ import { jsxs as q, jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as W } from "react";
3
+ import { c as d } from "../../../index-DIxK0V-G.js";
4
+ const h = "_inputWrapper_qoqna_10", m = "_inputWrapperPost_qoqna_34", f = "_inputWrapperPre_qoqna_35", P = "_light_qoqna_47", w = "_dark_qoqna_80", g = "_inputWrapperError_qoqna_116", r = {
4
5
  "auto-width": "_auto-width_qoqna_1",
5
6
  "full-width": "_full-width_qoqna_6",
6
- inputWrapper: d,
7
- inputWrapperPost: h,
8
- inputWrapperPre: P,
9
- light: m,
10
- dark: f,
7
+ inputWrapper: h,
8
+ inputWrapperPost: m,
9
+ inputWrapperPre: f,
10
+ light: P,
11
+ dark: w,
11
12
  inputWrapperError: g
12
- }, w = W.bind(r), E = ({
13
- size_s: a = "large",
14
- size_m: i,
15
- size_l: e,
16
- pre: p = !1,
17
- post: t = !1,
18
- variant: o = "light",
19
- width: s = "auto",
20
- error: _,
21
- additionalClass: u = "",
22
- ref: l,
23
- ...c
24
- }) => /* @__PURE__ */ q(
25
- "div",
26
- {
27
- className: w(
28
- r.inputWrapper,
29
- r[`${a}-size`],
30
- r[`${i}-size_m`],
31
- r[`${e}-size_l`],
32
- r[`${o}`],
33
- { [r.inputWrapperPre]: p },
34
- { [r.inputWrapperPost]: t },
35
- r[`${s}-width`],
36
- { [r.inputWrapperError]: _ },
37
- u
38
- ),
39
- children: [
40
- p && /* @__PURE__ */ n("span", { children: p }),
41
- /* @__PURE__ */ n("input", { ref: l, ...c }),
42
- t && /* @__PURE__ */ n("span", { children: t })
43
- ]
44
- }
13
+ }, $ = d.bind(r), x = W(
14
+ ({
15
+ size_s: n = "large",
16
+ size_m: i,
17
+ size_l: o,
18
+ pre: p = !1,
19
+ post: t = !1,
20
+ variant: e = "light",
21
+ width: s = "auto",
22
+ error: _,
23
+ additionalClass: u = "",
24
+ ...l
25
+ }, c) => /* @__PURE__ */ q(
26
+ "div",
27
+ {
28
+ className: $(
29
+ r.inputWrapper,
30
+ r[`${n}-size`],
31
+ r[`${i}-size_m`],
32
+ r[`${o}-size_l`],
33
+ r[`${e}`],
34
+ { [r.inputWrapperPre]: p },
35
+ { [r.inputWrapperPost]: t },
36
+ r[`${s}-width`],
37
+ { [r.inputWrapperError]: _ },
38
+ u
39
+ ),
40
+ children: [
41
+ p && /* @__PURE__ */ a("span", { children: p }),
42
+ /* @__PURE__ */ a(
43
+ "input",
44
+ {
45
+ ref: c,
46
+ ...l
47
+ }
48
+ ),
49
+ t && /* @__PURE__ */ a("span", { children: t })
50
+ ]
51
+ }
52
+ )
45
53
  );
54
+ x.displayName = "Input";
46
55
  export {
47
- E as Input
56
+ x as Input
48
57
  };
@@ -18,7 +18,6 @@ interface InputProps {
18
18
  variant?: inputVariant;
19
19
  width?: inputWidth;
20
20
  additionalClass?: string;
21
- ref?: React.RefObject<HTMLInputElement>;
22
21
  }
23
22
  export type ComponentProps = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
24
23
  export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.72",
5
+ "version": "0.0.73",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ComponentProps } from './Input.types';
3
-
4
- export declare const Input: ({ size_s, size_m, size_l, pre, post, variant, width, error, additionalClass, ref, ...props }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;