stone-kit 0.0.72 → 0.0.74

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 {};
@@ -57,11 +57,11 @@ const m = ({
57
57
  title: t,
58
58
  titleId: l,
59
59
  ...r
60
- }, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M20.0271 17.7683C19.4144 17.8984 18.7788 17.9669 18.1273 17.9669C13.1019 17.9669 9.02797 13.893 9.02797 8.86758C9.02797 6.63171 9.83439 4.58419 11.1722 3C7.05879 3.87373 3.97278 7.52682 3.97278 11.9007C3.97278 16.9261 8.04668 21 13.0721 21C15.8616 21 18.358 19.7447 20.0271 17.7683Z", stroke: "currentColor", strokeLinejoin: "round" })), P = o(A), D = ({
60
+ }, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M20.0271 17.7683C19.4144 17.8984 18.7788 17.9669 18.1273 17.9669C13.1019 17.9669 9.02797 13.893 9.02797 8.86758C9.02797 6.63171 9.83439 4.58419 11.1722 3C7.05879 3.87373 3.97278 7.52682 3.97278 11.9007C3.97278 16.9261 8.04668 21 13.0721 21C15.8616 21 18.358 19.7447 20.0271 17.7683Z", stroke: "currentColor", strokeLinejoin: "round" })), P = o(A), Z = ({
61
61
  title: t,
62
62
  titleId: l,
63
63
  ...r
64
- }, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M5 12.5C5 9.13823 5 7.45734 5.71653 6.49727C6.35659 5.63964 7.34765 5.0959 8.43174 5.00756C9.64533 4.90868 11.119 5.78102 14.0664 7.52571C16.8259 9.15915 18.2056 9.97587 18.6811 11.0259C19.1063 11.9649 19.1063 13.0351 18.6811 13.9741C18.2056 15.0241 16.8259 15.8409 14.0664 17.4743C11.119 19.219 9.64533 20.0913 8.43174 19.9924C7.34765 19.9041 6.35659 19.3604 5.71653 18.5027C5 17.5427 5 15.8618 5 12.5Z", fill: "currentColor" })), Z = o(D), q = ({
64
+ }, a) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M5 12.5C5 9.13823 5 7.45734 5.71653 6.49727C6.35659 5.63964 7.34765 5.0959 8.43174 5.00756C9.64533 4.90868 11.119 5.78102 14.0664 7.52571C16.8259 9.15915 18.2056 9.97587 18.6811 11.0259C19.1063 11.9649 19.1063 13.0351 18.6811 13.9741C18.2056 15.0241 16.8259 15.8409 14.0664 17.4743C11.119 19.219 9.64533 20.0913 8.43174 19.9924C7.34765 19.9041 6.35659 19.3604 5.71653 18.5027C5 17.5427 5 15.8618 5 12.5Z", fill: "currentColor" })), D = o(Z), q = ({
65
65
  title: t,
66
66
  titleId: l,
67
67
  ...r
@@ -161,7 +161,11 @@ const m = ({
161
161
  title: t,
162
162
  titleId: l,
163
163
  ...r
164
- }, a) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M16.987 5c-.63 0-1.234.301-1.618.814l-2.354 3.35c-.25.335-.798.374-1.094.078l-.661-.661a1.353 1.353 0 0 0-.963-.4h-.09c-.364 0-.706.143-.963.4l-.967.967a.318.318 0 0 0 0 .45l5.728 5.728a.317.317 0 0 0 .45 0l.966-.968c.258-.257.4-.599.4-.963v-.09c0-.363-.142-.705-.4-.963l-.66-.66a.725.725 0 0 1 .07-1.088l3.365-2.367c.505-.378.806-.98.806-1.612A2.017 2.017 0 0 0 16.988 5Zm.106 2.545a.637.637 0 1 1 .002-1.274.637.637 0 0 1-.002 1.274ZM8.105 10.728a.318.318 0 0 0-.45 0L5.373 13.01c-.24.24-.373.56-.373.9 0 .34.132.66.373.9l.489.489c.1.1.255.122.38.053l1.12-.623-.622 1.122a.318.318 0 0 0 .053.379l2.398 2.398c.24.24.56.373.9.373.34 0 .66-.133.9-.373l2.282-2.282a.318.318 0 0 0 0-.45l-5.168-5.168Z", fill: "#B1B5C4" }), /* @__PURE__ */ e.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ e.createElement("path", { d: "m4.222 4.222 15.556 15.556M1 12c0 6.075 4.925 11 11 11s11-4.925 11-11S18.075 1 12 1 1 5.925 1 12Z", stroke: "#777E91", strokeLinecap: "round" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "a" }, /* @__PURE__ */ e.createElement("path", { fill: "#fff", d: "M0 0h24v24H0z" })))), V1 = o($1), A1 = {
164
+ }, a) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M16.987 5c-.63 0-1.234.301-1.618.814l-2.354 3.35c-.25.335-.798.374-1.094.078l-.661-.661a1.353 1.353 0 0 0-.963-.4h-.09c-.364 0-.706.143-.963.4l-.967.967a.318.318 0 0 0 0 .45l5.728 5.728a.317.317 0 0 0 .45 0l.966-.968c.258-.257.4-.599.4-.963v-.09c0-.363-.142-.705-.4-.963l-.66-.66a.725.725 0 0 1 .07-1.088l3.365-2.367c.505-.378.806-.98.806-1.612A2.017 2.017 0 0 0 16.988 5Zm.106 2.545a.637.637 0 1 1 .002-1.274.637.637 0 0 1-.002 1.274ZM8.105 10.728a.318.318 0 0 0-.45 0L5.373 13.01c-.24.24-.373.56-.373.9 0 .34.132.66.373.9l.489.489c.1.1.255.122.38.053l1.12-.623-.622 1.122a.318.318 0 0 0 .053.379l2.398 2.398c.24.24.56.373.9.373.34 0 .66-.133.9-.373l2.282-2.282a.318.318 0 0 0 0-.45l-5.168-5.168Z", fill: "#B1B5C4" }), /* @__PURE__ */ e.createElement("g", { clipPath: "url(#a)" }, /* @__PURE__ */ e.createElement("path", { d: "m4.222 4.222 15.556 15.556M1 12c0 6.075 4.925 11 11 11s11-4.925 11-11S18.075 1 12 1 1 5.925 1 12Z", stroke: "#777E91", strokeLinecap: "round" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "a" }, /* @__PURE__ */ e.createElement("path", { fill: "#fff", d: "M0 0h24v24H0z" })))), V1 = o($1), A1 = ({
165
+ title: t,
166
+ titleId: l,
167
+ ...r
168
+ }, a) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: a, "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M18 12 8 18V6l10 6Z", fill: "currentColor" })), P1 = o(A1), Z1 = {
165
169
  loader: () => /* @__PURE__ */ n(i, {}),
166
170
  filter: () => /* @__PURE__ */ n(d, {}),
167
171
  fullscreen: () => /* @__PURE__ */ n(v, {}),
@@ -176,7 +180,7 @@ const m = ({
176
180
  layersFilled: () => /* @__PURE__ */ n(H, {}),
177
181
  minus: () => /* @__PURE__ */ n(V, {}),
178
182
  moon: () => /* @__PURE__ */ n(P, {}),
179
- play: () => /* @__PURE__ */ n(Z, {}),
183
+ play: () => /* @__PURE__ */ n(D, {}),
180
184
  plus: () => /* @__PURE__ */ n(U, {}),
181
185
  ruble: () => /* @__PURE__ */ n(j, {}),
182
186
  share: () => /* @__PURE__ */ n(O, {}),
@@ -201,9 +205,10 @@ const m = ({
201
205
  building: () => /* @__PURE__ */ n(R1, {}),
202
206
  case: () => /* @__PURE__ */ n(S1, {}),
203
207
  sport: () => /* @__PURE__ */ n(H1, {}),
204
- withoutDecor: () => /* @__PURE__ */ n(V1, {})
205
- }, Z1 = ({ name: t, size: l = "24", color: r, additionalClass: a, deg: c }) => {
206
- const s = A1[t];
208
+ withoutDecor: () => /* @__PURE__ */ n(V1, {}),
209
+ play2: () => /* @__PURE__ */ n(P1, {})
210
+ }, U1 = ({ name: t, size: l = "24", color: r, additionalClass: a, deg: c }) => {
211
+ const s = Z1[t];
207
212
  return /* @__PURE__ */ n(
208
213
  "div",
209
214
  {
@@ -219,5 +224,5 @@ const m = ({
219
224
  );
220
225
  };
221
226
  export {
222
- Z1 as NewIcon
227
+ U1 as NewIcon
223
228
  };
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.74",
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;