stone-kit 0.0.412 → 0.0.413

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/README.md CHANGED
@@ -1,59 +1,59 @@
1
- # Stone-kit
2
-
3
- Uikit for stone redesign 2.0
4
-
5
- ## Installation
6
-
7
- Package installation:
8
-
9
- ```bash
10
- npm i stone-kit@latest
11
- ```
12
-
13
- ## Usage
14
-
15
- For Next.js page router in App.tsx:
16
-
17
- ```bash
18
- import 'stone-kit/dist/style.css'
19
- ```
20
-
21
- and then:
22
-
23
- ```bash
24
- import {Button} from 'stone-kit'
25
- ```
26
-
27
- For other projects u can immediately:
28
-
29
- ```bash
30
- import {Button} from 'stone-kit'
31
- ```
32
-
33
- ## Docs
34
-
35
- ### ButtonProps
36
-
37
- size: optional, size of button. types : 'large' | 'medium' | 'small' | 'tiny'
38
-
39
- pre: optional, insert icon/text before button text. type: ReactNode
40
-
41
- post: optional, insert icon/text after button text. type: ReactNode
42
-
43
- variant: optional, color variants of button. type:
44
- 'blue',
45
- 'gray',
46
- 'whiteStroke',
47
- 'sokolniki',
48
- 'black',
49
- 'whiteFilled'
50
-
51
- width: optional, width of button. type: 'auto' | 'full'
52
-
53
- additionalClass: optional, add your custom class to button. type: 'string'
54
-
55
- as: optional, u can convert button to link. type: 'button' | 'link'. 'button' by default.
56
-
57
- ### MobileButtonProps
58
-
59
- ### Tag
1
+ # Stone-kit
2
+
3
+ Uikit for stone redesign 2.0
4
+
5
+ ## Installation
6
+
7
+ Package installation:
8
+
9
+ ```bash
10
+ npm i stone-kit@latest
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ For Next.js page router in App.tsx:
16
+
17
+ ```bash
18
+ import 'stone-kit/dist/style.css'
19
+ ```
20
+
21
+ and then:
22
+
23
+ ```bash
24
+ import {Button} from 'stone-kit'
25
+ ```
26
+
27
+ For other projects u can immediately:
28
+
29
+ ```bash
30
+ import {Button} from 'stone-kit'
31
+ ```
32
+
33
+ ## Docs
34
+
35
+ ### ButtonProps
36
+
37
+ size: optional, size of button. types : 'large' | 'medium' | 'small' | 'tiny'
38
+
39
+ pre: optional, insert icon/text before button text. type: ReactNode
40
+
41
+ post: optional, insert icon/text after button text. type: ReactNode
42
+
43
+ variant: optional, color variants of button. type:
44
+ 'blue',
45
+ 'gray',
46
+ 'whiteStroke',
47
+ 'sokolniki',
48
+ 'black',
49
+ 'whiteFilled'
50
+
51
+ width: optional, width of button. type: 'auto' | 'full'
52
+
53
+ additionalClass: optional, add your custom class to button. type: 'string'
54
+
55
+ as: optional, u can convert button to link. type: 'button' | 'link'. 'button' by default.
56
+
57
+ ### MobileButtonProps
58
+
59
+ ### Tag
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  interface Props {
3
- text: string;
3
+ text?: string;
4
4
  error: boolean;
5
5
  isChecked?: boolean;
6
+ children?: React.ReactNode;
6
7
  }
7
8
  export type Ref = HTMLInputElement;
8
9
  export declare const CheckBox: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,22 +1,23 @@
1
- import { jsxs as a, jsx as c } from "react/jsx-runtime";
2
- import { Input as b } from "../Input/ui/Input.js";
3
- import { c as h } from "../../index-rKuIKazb.js";
4
- import { forwardRef as m } from "react";
5
- import { NewIcon as x } from "../NewIcon/ui/NewIcon.js";
6
- const _ = "_checkboxLabel_19nrs_1", i = "_labelText_19nrs_37", k = "_error_19nrs_45", d = "_checkIcon_19nrs_53", e = {
7
- checkboxLabel: _,
8
- labelText: i,
9
- error: k,
10
- checkIcon: d
11
- }, r = h.bind(e), N = m(({
12
- text: s,
13
- isChecked: t,
14
- error: o,
15
- ...n
16
- }, l) => /* @__PURE__ */ a("label", { className: r(e.checkboxLabel, { [e.error]: o }), children: [
17
- /* @__PURE__ */ c(b, { type: "checkbox", ...n, ref: l }),
18
- t && /* @__PURE__ */ c(
19
- x,
1
+ import { jsxs as b, jsx as c } from "react/jsx-runtime";
2
+ import { Input as h } from "../Input/ui/Input.js";
3
+ import { c as m } from "../../index-rKuIKazb.js";
4
+ import { forwardRef as i } from "react";
5
+ import { NewIcon as _ } from "../NewIcon/ui/NewIcon.js";
6
+ const x = "_checkboxLabel_19nrs_1", k = "_labelText_19nrs_37", d = "_error_19nrs_45", p = "_checkIcon_19nrs_53", e = {
7
+ checkboxLabel: x,
8
+ labelText: k,
9
+ error: d,
10
+ checkIcon: p
11
+ }, s = m.bind(e), u = i(({
12
+ text: o,
13
+ isChecked: n,
14
+ error: r,
15
+ children: t,
16
+ ...l
17
+ }, a) => /* @__PURE__ */ b("label", { className: s(e.checkboxLabel, { [e.error]: r }), children: [
18
+ /* @__PURE__ */ c(h, { type: "checkbox", ...l, ref: a }),
19
+ n && /* @__PURE__ */ c(
20
+ _,
20
21
  {
21
22
  additionalClass: e.checkIcon,
22
23
  color: "white",
@@ -28,11 +29,12 @@ const _ = "_checkboxLabel_19nrs_1", i = "_labelText_19nrs_37", k = "_error_19nrs
28
29
  /* @__PURE__ */ c(
29
30
  "div",
30
31
  {
31
- className: r(e.labelText, { [e.error]: o }),
32
- dangerouslySetInnerHTML: { __html: s }
32
+ className: s(e.labelText, { [e.error]: r }),
33
+ dangerouslySetInnerHTML: o ? { __html: o } : void 0,
34
+ children: t
33
35
  }
34
36
  )
35
37
  ] }));
36
38
  export {
37
- N as CheckBox
39
+ u as CheckBox
38
40
  };
@@ -30,5 +30,5 @@ type IFormPageInputs = {
30
30
  advCheckBox?: boolean;
31
31
  textarea?: string;
32
32
  };
33
- export declare const ModalForm: ({ isFormOpen, setIsFormOpen, title, isEmail, isPhone, isTextArea, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, personalCheckBox, advCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
33
+ export declare const ModalForm: ({ isFormOpen, setIsFormOpen, title, isEmail, isPhone, isTextArea, isRequiredPhone, isRequiredEmail, isRequiredPhoneOrEmail, textAreaPlaceholder, subTitle, submitHandler, modalWidth, rowsTextArea, advCheckBox, }: IModalFormProps) => import("react/jsx-runtime").JSX.Element | null;
34
34
  export {};